home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume16 / conf2 / part02 / conf.h next >
Encoding:
C/C++ Source or Header  |  1988-09-14  |  890 b   |  69 lines

  1. #include "config.h"
  2. #include <stdio.h>
  3. #include <sys/types.h>
  4. #include <ctype.h>
  5. #include <signal.h>
  6. #include <sys/stat.h>
  7. #include <pwd.h>
  8. #include <setjmp.h>
  9. #include <errno.h>
  10.  
  11. #ifdef    SYSV
  12. #include <unistd.h>
  13. #include <termio.h>
  14. #include <fcntl.h>
  15. #endif    SYSV
  16.  
  17. #ifdef    BSD
  18. #include <sgtty.h>
  19. #include <sys/ioctl.h>
  20. #include <sys/file.h>
  21.  
  22. #define    index    strchr
  23. #define    rindex    strrchr
  24. #endif    BSD
  25.  
  26.  
  27. #include "structs.h"
  28. #include "extern.h"
  29.  
  30. /*
  31.  * some ASCII values
  32.  *
  33.  */
  34.  
  35. #ifdef    CTRL
  36. #undef    CTRL
  37. #endif    CTRL
  38. #define    CTRL(c)        (c&0x1F)
  39. #define    BELL        0x07
  40. #define    BS        0x08
  41. #define    TAB        0x09
  42. #define    LF        0x0A
  43. #define    CR        0x0D
  44. #define    DEL        0x7F
  45.  
  46. /*
  47.  * some bools
  48.  *
  49.  */
  50.  
  51. #ifdef    TRUE
  52. #undef    TRUE
  53. #endif    TRUE
  54. #define    TRUE    1
  55.  
  56. #ifdef    FALSE
  57. #undef    FALSE
  58. #endif    FALSE
  59. #define    FALSE    0
  60.  
  61. #define    NEXTWORD    1
  62. #define    THEREST        2
  63.  
  64. #define    NOVIS        0
  65. #define    VIS        1
  66.  
  67. #define    forever        for ever
  68. #define    ever        (;;)
  69.