home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / Pearls / texmf / source / TeX / common / common.h next >
Encoding:
C/C++ Source or Header  |  1993-10-31  |  1.0 KB  |  54 lines

  1. /* common.h: Definitions and declarations common both to the change
  2.    files and to web2c itself.  */
  3.  
  4. #ifndef COMMON_H
  5. #define COMMON_H
  6.  
  7. #if defined(AMIGA) && defined(LATTICE)
  8. # define VOLATILE
  9. # define CONST const
  10. #else
  11. # ifdef __STDC__
  12. #  define VOLATILE volatile
  13. #  define CONST const
  14. # else
  15. #  define VOLATILE
  16. #  define CONST
  17. # endif
  18. #endif
  19.  
  20.  
  21. /* pltotf et al. use the symbol `index' themselves; we don't want to
  22.    redefine it in those cases (and those programs don't use the other
  23.    string functions, fortunately).  */ 
  24. #ifndef index
  25. #ifndef    BSD
  26. #include <string.h>
  27. #if !defined(AMIGA) || !defined(__SASC_60)
  28. #define index strchr
  29. #define rindex strrchr
  30. #endif
  31. #else /* BSD */
  32. #include <strings.h>
  33. #endif /* BSD */
  34. #endif /* not index */
  35.  
  36. #if !defined(AMIGA) || (!defined(_DCC) && !defined(__SASC_60))
  37. extern char *getenv (), *rindex ();
  38. #endif
  39.  
  40. #if !defined(ANSI) && !defined(_POSIX_SOURCE)
  41. extern SPRINTF_RETURN_TYPE sprintf ();
  42. #endif
  43.  
  44.  
  45. /* Global constants.  */
  46. #define true 1
  47. #define false 0
  48.  
  49. #define TRUE 1
  50. #define FALSE 0
  51.  
  52.  
  53. #endif /* not COMMON_H */
  54.