1 /* unix.cfg: Configuration file for sgmls on Unix. */ 2 3 /* A list of filename templates to use for searching for external entities. 4 The filenames are separated by the character specified in PATH_FILE_SEP. 5 See sgmls.man for details. */ 6 #define DEFAULT_PATH "/usr/share/sgml/%O/%C/%T:%N.%X:%N.%D" 7 /* The character that separates the filenames templates. */ 8 #define PATH_FILE_SEP ':' 9 /* The character that separates filenames in a system identifier. 10 Usually the same as PATH_FILE_SEP. */ 11 #define SYSID_FILE_SEP ':' 12 /* The environment variable that contains the list of filename templates. */ 13 #define PATH_ENV_VAR "SGML_PATH" 14 /* A macro that returns non-zero if the filename is relative to the 15 current directory. */ 16 #define FILE_IS_RELATIVE(p) ((p)[0] != '/') 17 /* A string containing the characters that can separate the directory 18 part of a filename from the basename. */ 19 #define DIR_BASE_SEP "/" 20 /* The environment variable that contains the list of catalog entry files. 21 Filenames are separated by PATH_FILE_SEP. */ 22 #define CATALOG_FILES_ENV_VAR "SGML_CATALOG_FILES" 23 /* Default list of catalog entry files. */ 24 #define DEFAULT_CATALOG_FILES "/usr/local/share/sgml/catalog" 25 26 /* MIN_DAT_SUBS_FROM and MIN_DATS_SUBS_TO tell sgmls how to transform a name 27 or system identifier into a legal filename. A character in 28 MIN_DAT_SUBS_FROM will be transformed into the character in the 29 corresponding position in MIN_DAT_SUBS_TO. If there is no such 30 position, then the character is removed. */ 31 /* This says that spaces should be transformed to underscores, and 32 slashes to percents. */ 33 #define MIN_DAT_SUBS_FROM " /" 34 #define MIN_DAT_SUBS_TO "_%" 35 36 /* Define this to allow tracing. */ 37 /* #define TRACE 1 */ 38 39 /* Define this you want support for subdocuments. This is implemented 40 using features that are not part of Standard C, so you might not want 41 to define it if you are porting to a new system. Otherwise I suggest 42 you leave it defined. */ 43 #define SUPPORT_SUBDOC 1 44 45 /* Define HAVE_EXTENDED_PRINTF if your *printf functions supports 46 X/Open extensions; if they do, then, for example, 47 48 printf("%2$s%1$s", "bar", "foo") 49 50 should print `foobar'. */ 51 52 /* #define HAVE_EXTENDED_PRINTF 1 */ 53 54 /* Define HAVE_CAT if your system provides the X/Open message 55 catalogue functions catopen() and catgets(), and you want to use them. 56 An implementations of these functions is included and will be used if 57 you don't define this. On SunOS 4.1.1, if you do define this you 58 should set CC=/usr/xpg2bin/cc in the makefile. */ 59 60 #define HAVE_CAT 1 61 62 #ifdef __STDC__ 63 /* Define this if your compiler supports prototypes. */ 64 #define USE_PROTOTYPES 1 65 #endif 66 67 /* Can't use <stdarg.h> without prototypes. */ 68 #ifndef USE_PROTOTYPES 69 #define VARARGS 1 70 #endif 71 72 /* If your compiler defines __STDC__ but doesn't provide <stdarg.h>, 73 you must define VARARGS yourself here. */ 74 /* #define VARARGS 1 */ 75 76 /* Define this if you do not have strerror(). */ 77 /* #define STRERROR_MISSING 1 */ 78 79 /* Define this unless the character testing functions in ctype.h 80 are defined for all values representable as an unsigned char. You do 81 not need to define this if your system is ANSI C conformant. You 82 should define for old Unix systems. */ 83 /* #define USE_ISASCII 1 */ 84 85 /* Define this if your system provides the BSD style string operations 86 rather than ANSI C ones (eg bcopy() rather than memcpy(), and index() 87 rather than strchr()). */ 88 /* #define BSD_STRINGS 1 */ 89 90 /* Define this if you have getopt(). */ 91 #define HAVE_GETOPT 1 92 93 /* Define this if you have access(). */ 94 #define HAVE_ACCESS 1 95 96 /* Define this if you have <unistd.h>. */ 97 #define HAVE_UNISTD_H 1 98 99 /* Define this if you have <sys/stat.h>. */ 100 #define HAVE_SYS_STAT_H 1 101 102 /* Define this if you have waitpid(). */ 103 #define HAVE_WAITPID 1 104 105 /* Define this if your system is POSIX.1 (ISO 9945-1:1990) compliant. */ 106 #define POSIX 1 107 108 /* Define this if you have the vfork() system call. */ 109 #define HAVE_VFORK 1 110 111 /* Define this if you have <vfork.h>. */ 112 /* #define HAVE_VFORK_H 1 */ 113 114 /* Define this if you don't have <stdlib.h> */ 115 /* #define STDLIB_H_MISSING 1 */ 116 117 /* Define this if you don't have <stddef.h> */ 118 /* #define STDDEF_H_MISSING 1 */ 119 120 /* Define this if you don't have <limits.h> */ 121 /* #define LIMITS_H_MISSING 1 */ 122 123 /* Define this if you don't have remove(); unlink() will be used instead. */ 124 /* #define REMOVE_MISSING 1 */ 125 126 /* Define this if you don't have raise(); kill() will be used instead. */ 127 /* #define RAISE_MISSING 1 */ 128 129 /* Define this if you don't have fsetpos() and fgetpos(). */ 130 /* #define FPOS_MISSING 1 */ 131 132 /* Universal pointer type. */ 133 /* If your compiler doesn't fully support void *, change `void' to `char'. */ 134 typedef void *UNIV; 135 136 /* If your compiler doesn't support void as a function return type, 137 change `void' to `int'. */ 138 typedef void VOID; 139 140 /* If you don't have an ANSI C conformant <limits.h>, define 141 CHAR_SIGNED as 1 or 0 according to whether the `char' type is signed. 142 The <limits.h> on some versions of System Release V 3.2 is not ANSI C 143 conformant: the value of CHAR_MIN is 0 even though the `char' type is 144 signed. */ 145 146 /* #define CHAR_SIGNED 1 */ 147 /* #define CHAR_SIGNED 0 */ 148 #ifndef CHAR_SIGNED 149 #include <limits.h> 150 #if CHAR_MIN < 0 151 #define CHAR_SIGNED 1 152 #else 153 #define CHAR_SIGNED 0 154 #endif 155 #endif /* not CHAR_SIGNED */ 156 157 /* Assume the system character set is ISO Latin-1. */ 158 #include "latin1.h" 159