home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / linux / backup / star-1.3.1.tar.gz / star-1.3.1.tar / star-1.3.1 / include / standard.h < prev    next >
C/C++ Source or Header  |  2001-02-23  |  3KB  |  132 lines

  1. /* @(#)standard.h    1.27 01/02/23 Copyright 1985 J. Schilling */
  2. /*
  3.  *    standard definitions
  4.  *
  5.  *    This file should be included past:
  6.  *
  7.  *    mconfig.h / config.h
  8.  *    stdio.h
  9.  *    stdlib.h    (better use stdxlib.h)
  10.  *    unistd.h    (better use unixstd.h) needed LARGEFILE support
  11.  *
  12.  *    Copyright (c) 1985 J. Schilling
  13.  */
  14. /*
  15.  * This program is free software; you can redistribute it and/or modify
  16.  * it under the terms of the GNU General Public License as published by
  17.  * the Free Software Foundation; either version 2, or (at your option)
  18.  * any later version.
  19.  *
  20.  * This program is distributed in the hope that it will be useful,
  21.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  23.  * GNU General Public License for more details.
  24.  *
  25.  * You should have received a copy of the GNU General Public License
  26.  * along with this program; see the file COPYING.  If not, write to
  27.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  28.  */
  29.  
  30. #ifndef _STANDARD_H
  31. #define _STANDARD_H
  32.  
  33. #ifndef _MCONFIG_H
  34. #include <mconfig.h>
  35. #endif
  36. #ifndef _PROTOTYP_H
  37. #include <prototyp.h>
  38. #endif
  39.  
  40. #ifdef    M68000
  41. #    ifndef    tos
  42. #        define    JOS    1
  43. #    endif
  44. #endif
  45.  
  46. /*
  47.  *    fundamental constants
  48.  */
  49. #ifndef    NULL
  50. #    define    NULL        0
  51. #endif
  52. #ifndef    TRUE
  53. #    define    TRUE        1
  54. #    define    FALSE        0
  55. #endif
  56.  
  57. /*
  58.  *    Program exit codes
  59.  */
  60. #define    EX_BAD            (-1)
  61.  
  62. /*
  63.  *    standard storage class definitions
  64.  */
  65. #define    GLOBAL    extern
  66. #define    IMPORT    extern
  67. #define    EXPORT
  68. #define    INTERN    static
  69. #define    LOCAL    static
  70. #define    FAST    register
  71.  
  72. #ifndef    PROTOTYPES
  73. #    ifndef    const
  74. #        define    const
  75. #    endif
  76. #    ifndef    signed
  77. #        define    signed
  78. #    endif
  79. #    ifndef    volatile
  80. #        define    volatile
  81. #    endif
  82. #endif    /* PROTOTYPES */
  83.  
  84. /*
  85.  *    standard type definitions
  86.  *
  87.  *    The hidden Schily BOOL definition is used in case we need to deal
  88.  *    with other BOOL defines on systems we like to port to.
  89.  */
  90. typedef int __SBOOL;
  91. typedef int BOOL;
  92. #ifdef    JOS
  93. #    define    NO_VOID
  94. #endif
  95. #ifdef    NO_VOID
  96.     typedef    int    VOID;
  97. #    ifndef    lint
  98.         typedef int void;
  99. #    endif
  100. #else
  101.     typedef    void    VOID;
  102. #endif
  103.  
  104. #if    defined(_INCL_SYS_TYPES_H) || defined(off_t)
  105. #    ifndef    FOUND_OFF_T
  106. #    define    FOUND_OFF_T
  107. #    endif
  108. #endif
  109. #if    defined(_INCL_SYS_TYPES_H) || defined(size_t)
  110. #    ifndef    FOUND_SIZE_T
  111. #    define    FOUND_SIZE_T
  112. #    endif
  113. #endif
  114.  
  115. #if    defined(_SIZE_T)     || defined(_T_SIZE_) || defined(_T_SIZE) || \
  116.     defined(__SIZE_T)    || defined(_SIZE_T_) || \
  117.     defined(_GCC_SIZE_T) || defined(_SIZET_)  || \
  118.     defined(__sys_stdtypes_h) || defined(___int_size_t_h) || defined(size_t)
  119.  
  120. #ifndef    FOUND_SIZE_T
  121. #    define    FOUND_SIZE_T    /* We already included a size_t definition */
  122. #endif
  123. #endif
  124.  
  125. #if defined(_JOS) || defined(JOS)
  126. #    include <schily.h>
  127. #    include <jos_defs.h>
  128. #    include <jos_io.h>
  129. #endif
  130.  
  131. #endif    /* _STANDARD_H */
  132.