home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume26 / mytinfo / part01 / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-26  |  2.1 KB  |  83 lines

  1. /*
  2.  * config.h
  3.  *
  4.  * By Ross Ridge
  5.  * Public Domain
  6.  * 92/02/19 18:56:28
  7.  *
  8.  * @(#) mytinfo config.h 3.3 92/02/19 public domain, By Ross Ridge
  9.  *
  10.  * Read the file INSTALL for more information on configuring mytinfo
  11.  *
  12.  */
  13.  
  14. #ifndef _CONFIG_H_
  15. #define _CONFIG_H_
  16.  
  17. #ifdef __STDC__
  18. #define USE_ANSIC        /* undefine this if your compiler lies */
  19. #endif
  20.  
  21. #define USE_TERMIO        /* use termio (SysIII, SysV) */
  22. #undef USE_SGTTY        /* use sgtty (v7, BSD) */
  23. #define USE_WINSZ        /* get window size from the tty driver */
  24. #undef USE_STRINGS        /* include <strings.h> instead of <string.h> */
  25. #define USE_MYBSEARCH        /* your library doesn't have bsearch */
  26. #define USE_MYSTRTOK        /* your library doesn't have strtok */
  27. #define USE_MYQSORT        /* your library doesn't have qsort */
  28. #define USE_MYMKDIR        /* your library doesn't have mkdir */
  29. #define USE_MEMORY        /* you have an <memory.h> header */
  30. #define USE_FAKE_STDIO        /* don't use real stdio */
  31. #undef USE_DOPRNT        /* no vfprintf, use _doprnt */
  32.  
  33. #define USE_SHORT_BSEARCH    /* speeds up MYBSEARCH on most machines */
  34.  
  35. #define USE_SMALLMEM         /* save some memory */
  36.  
  37. #undef USE_UPBC_KLUDGE        /* do tgoto like real togo */
  38. #undef USE_EXTERN_UPBC        /* get cuu1 and cub1 from externs UP and BC */
  39. #undef USE_LITOUT_KLUDGE    /* an alternate tgoto kludge, not recommened */
  40.  
  41.  
  42. #ifndef USE_ANSIC
  43.  
  44. #undef USE_PROTOTYPES        /* use ANSI C prototypes */
  45. #undef USE_STDLIB        /* you have a <stdlib.h> */
  46. #undef USE_STDARG        /* you have a <stdarg.h> */
  47. #undef USE_STDDEF        /* you have a <stddef.h> */
  48.  
  49. #define const 
  50. #define volatile
  51. #define noreturn        /* a function that doesn't return */
  52.  
  53. typedef char *anyptr;        /* a type that any pointer can be assigned to */
  54.  
  55. #define mysize_t unsigned    /* size_t, the size of an object */
  56.  
  57. #else /* USE_ANSIC */
  58.  
  59. #define USE_PROTOTYPES
  60. #define USE_STDLIB
  61. #define USE_STDARG
  62. #define USE_STDDEF
  63.  
  64. typedef void *anyptr;
  65.  
  66. #define mysize_t size_t
  67.  
  68. #ifdef __GNUC__
  69. #define noreturn volatile
  70. #else
  71. #define noreturn
  72. #endif
  73.  
  74. #endif /* USE_ANSIC */
  75.  
  76. #define TERMCAPFILE "$TERMCAPFILE $HOME/.termcap /etc/termcap"
  77.  
  78. #define TERMINFOSRC "/usr/lib/terminfo/terminfo.src"
  79.  
  80. #define TERMINFODIR "/usr/lib/terminfo"
  81.  
  82. #endif 
  83.