1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
|
/* config.h. Generated by hand for IBM PC Turbo C 2.0. */
#define OS_VAXVMS 1
#define STDC_HEADERS 1
/* #undef _POSIX_SOURCE */
#define HAVE_STDC 1
/* Define if you want old pattern-less string matching in .ini files */
/* #undef HAVE_OLDCODE */
/* Define if you want standard bibclean-specific pattern in .ini files */
#define HAVE_PATTERNS 1
/* Define if you want regular-expression patterns in .ini files using re_comp() */
/* #undef HAVE_RECOMP */
/* #undef HAVE_REGEXP */
/* Define to empty if the keyword does not work. */
/* #undef const */
/* Define if your free() requires (char*) cast instead of (void*) */
/* #undef FREE_CAST_IS_CHAR_STAR */
/* Define if your compiler recognizes \a as an alert (ASCII BEL) character */
#define HAVE_ALERT_CHAR 1
/* Library functions that we need */
#define HAVE_GETCWD 1
/* #undef HAVE_GETWD */
#define HAVE_STRCSPN 1
#define HAVE_STRDUP 1
#define HAVE_STRSPN 1
#define HAVE_STRSTR 1
#define HAVE_STRTOD 1
#define HAVE_STRTOL 1
/* Header files that we might need */
#define HAVE_CONIO_H 1
#define HAVE_CTYPE_H 1
#define HAVE_DESCRIP_H 1
#define HAVE_ERRNO_H 1
#define HAVE_FCNTL_H 1
#define HAVE_IODEF_H 1
#define HAVE_IO_H 1
#define HAVE_JPIDEF_H 1
/* #undef HAVE_LIMITS_H */
/* #undef HAVE_OSFCN_H */
/* #undef HAVE_PWD_H */
/* #undef HAVE_REGEXP_H */
/* #undef HAVE_REGEX_H */
/* #undef HAVE_RMS_H */
/* #undef HAVE_SGTTY_H */
#define HAVE_SSDEF_H 1
/* #undef HAVE_STAT_H */
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
/* #undef HAVE_SYS_IOCTL_H */
/* #undef HAVE_SYS_PARAM_H */
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
/* #undef HAVE_TERMIOS_H */
/* #undef HAVE_TERMIO_H */
#define HAVE_TIME_H 1
#define HAVE_TT2DEF_H 1
#define HAVE_TTDEF_H 1
#define HAVE_TYPES_H 1
/* #undef HAVE_UNISTD_H */
/* #undef HAVE_UNIXIO_H */
/* #undef HAVE_UNIXLIB_H */
#define RCSID(s) static char rcsid[] = s;
/* #undef OS_UNIX */
/* NB: some systems have Standard C header files, but compilers that
do not accept function prototypes (e.g. HP HP-UX 9.0.3 /bin/cc) */
#if defined(STDC_HEADERS) && (defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus))
#define ARGS(plist) plist
#define VOID void
#else
#define ARGS(plist) ()
#define VOID
#endif
#define SCREEN_LINES 24
/***********************************************************************
The limit on file name lengths is non-standard:
-------- ------------- ------------------------------------------
Name Definition System
-------- ------------- ------------------------------------------
FNMAX <stdio.h> PCC-20
MAXPATH <dir.h> Turbo C 2.0, C and C++ 3.0, and TopSpeed C
_MAX_PATH <stdlib.h> Microsoft C 5.0, 6.0, 7.0 and TopSpeed C
MAXPATHLEN <sys/param.h> Sun OS (4.2BSD), 4.3BSD, Gould UTX/32,
HPUX, KCC-20, AIX (RT, RS, PS/2, 370),
HP/Apollo DomainOS, DEC Alpha (OSF/1)
PATH_MAX <stdio.h> SYS V (Silicon Graphics)
PATH_MAX <limits.h> POSIX, DEC Alpha (OSF/1)
FILENAME_MAX <stdio.h> Intel RMX, NeXT Mach, Turbo C/C++ 3.0
-------- ------------- ------------------------------------------
***********************************************************************/
#if defined(HAVE_SYS_PARAM_H)
#include <sys/param.h>
#endif
#if defined(HAVE_LIMITS_H)
#include <limits.h>
#endif
#if defined(HAVE_STDLIB_H)
#include <stdlib.h>
#endif
#if !defined(MAXPATHLEN) && defined(FNMAX)
#define MAXPATHLEN FNMAX
#endif
#if !defined(MAXPATHLEN) && defined(MAXPATH)
#define MAXPATHLEN MAXPATH
#endif
#if !defined(MAXPATHLEN) && defined(_MAX_PATH)
#define MAXPATHLEN _MAX_PATH
#endif
#if !defined(MAXPATHLEN) && defined(PATH_MAX)
#define MAXPATHLEN PATH_MAX
#endif
#if !defined(MAXPATHLEN) && defined(FILENAME_MAX)
#define MAXPATHLEN FILENAME_MAX
#endif
#if !defined(MAXPATHLEN) && defined(FNMAX)
#define MAXPATHLEN 1024
#endif
#if defined(OS_PCDOS)
#define SEP_COMP " ;,|" /* separators between filename components */
#define SEP_PATH "\\" /* separators between directory path and filename */
#endif
#if defined(OS_UNIX)
#define SEP_COMP " ;:,|" /* separators between filename components */
#define SEP_PATH "/" /* separators between directory path and filename */
#endif
#include <stdio.h>
#include <custom.h>
#if !defined(HAVE_IOCTL_PROTOTYPE)
#if defined(__cplusplus) || defined(c_plusplus)
/* system files should have: extern "C" {int ioctl ARGS((int, int, ...));} */
#else
int ioctl ARGS((int, int, ...));
#endif
#endif
#if defined(FREE_CAST_IS_CHAR_STAR)
#define FREE(p) free((char*)(p))
#else
#define FREE(p) free((void*)(p))
#endif
|