home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / tex / texsrc1 / Src / lib / h / config < prev    next >
Encoding:
Text File  |  1993-05-03  |  2.0 KB  |  75 lines

  1. /* config.h: Master configuration file.  This is included by common.h,
  2.    which everyone includes.  */
  3.  
  4. #ifndef CONFIG_H
  5. #define CONFIG_H
  6.  
  7. /* System dependencies that are figured out by `configure'.  */
  8. #include "c-auto.h"
  9.  
  10. /* ``Standard'' headers.  */
  11. #include "c-std.h"
  12.  
  13. /* Everybody uses PATH_MAX.  */
  14. #include "c-pathmx.h"
  15.  
  16. /* How to open files with fopen.  */
  17. #include "c-fopen.h"
  18.  
  19. /* Macros to discard or keep prototypes.  */
  20. #include "c-proto.h"
  21.  
  22. /* The smallest signed type: use `signed char' if ANSI C, `short' if
  23.    char is unsigned, otherwise `char'.  */
  24. #ifndef SCHAR_TYPE
  25. #ifdef __STDC__
  26. #define SCHAR_TYPE signed char
  27. #else /* not __STDC */
  28. #ifdef __CHAR_UNSIGNED__
  29. #define SCHAR_TYPE short
  30. #else
  31. #define SCHAR_TYPE char
  32. #endif
  33. #endif /* not __STDC__ */
  34. #endif /* not SCHAR_TYPE */
  35. typedef SCHAR_TYPE schar;
  36.  
  37. /* The type `integer' must be a signed integer capable of holding at
  38.    least the range of numbers (-2^31)..(2^31-1).  If your compiler goes
  39.    to great lengths to make programs fail, you might have to change this
  40.    definition.  If this changes, you will probably have to modify
  41.    web2c/fixwrites.c, since it generates code to do integer output using
  42.    "%ld", and casts all integral values to be printed to `long'.  */
  43. #ifndef INTEGER_TYPE
  44. #define INTEGER_TYPE long
  45. #endif
  46. typedef INTEGER_TYPE integer;
  47.  
  48. /* `volatile' is only used in Metafont to avoid bugs in the MIPS C
  49.    compiler.  If this definition goes wrong somehow, just get rid of it
  50.    and the two corresponding substitutions in mf/convert.  */
  51. #ifndef __STDC__
  52. #define volatile
  53. #endif
  54.  
  55. /* System-dependent hacks.  */
  56.  
  57. /* Hack to get around High C on an IBM RT treating `char' differently
  58.    than normal compilers, etc.   */
  59. #if defined (__HIGHC__) && defined (ibm032)
  60. pragma    Off(Char_default_unsigned);
  61. pragma    On(Char_is_rep);
  62. pragma    On(Parm_warnings);
  63. pragma    On(Pointers_compatible);
  64. pragma    On(Pointers_compatible_with_ints);
  65. #endif    /* __HIGHC__ and ibm032 */
  66.  
  67.  
  68. /* Some definitions of our own.  */
  69. #include "common.h"
  70.  
  71. /* RISC OS things */
  72. #include "riscos_ex.h"
  73.  
  74. #endif /* not CONFIG_H */
  75.