home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / linuxdoc-sgml-1.1 / sgmls-1.1 / vms.cfg < prev    next >
Encoding:
Text File  |  1995-05-03  |  7.1 KB  |  219 lines

  1. /* vms.cfg: Configuration file for sgmls on VAX/VMS.
  2. /* For VAX/VMS V5.3 and VAX C V3.2-044.
  3. Contributed by John Lavagnino <LAV@BINAH.CC.BRANDEIS.EDU>. */
  4.  
  5. /* Define HAVE_EXTENDED_PRINTF if your *printf functions supports
  6. X/Open extensions; if they do, then, for example,
  7.  
  8.   printf("%2$s%1$s", "bar", "foo")
  9.  
  10. should print `foobar'.  */
  11.  
  12. /* #define HAVE_EXTENDED_PRINTF 1 */
  13.  
  14. /* Define HAVE_CAT if your system provides the X/Open message
  15. catalogue functions catopen() and catgets(), and you want to use them.
  16. An implementations of these functions is included and will be used if
  17. you don't define this.  On SunOS 4.1.1, if you do define this you
  18. should set CC=/usr/xpg2bin/cc in the makefile. */
  19.  
  20. /* #define HAVE_CAT 1 */
  21.  
  22. #ifdef __STDC__
  23. /* Define this if your compiler supports prototypes. */
  24. #define USE_PROTOTYPES 1
  25. #endif
  26. #define USE_PROTOTYPES 1
  27.  
  28. #ifdef __OBJECTCENTER__
  29. /* Define this if you have <varargs.h> but not <stdarg.h> */
  30. #define VARARGS 1
  31. #endif
  32.  
  33. #ifndef USE_PROTOTYPES
  34. /* Use VARARGS if prototypes are not supported. */
  35. #ifndef VARARGS
  36. #define VARARGS 1
  37. #endif
  38. #endif /* not USE_PROTOTYPES */
  39.  
  40. /* Define this if you do not have strerror(). */
  41. /* #define STRERROR_MISSING 1 */
  42.  
  43. /* Define this unless the character testing functions in ctype.h
  44. are defined for all values representable as an unsigned char.  You do
  45. not need to define this if your system is ANSI C conformant.  You
  46. should define for old Unix systems. */
  47. /*  This has been defined for VMS because its iscntrl says that
  48.   128 through 159 are controls; SHUNCHAR CONTROLS believes that, and you
  49.   can get messages like
  50.     "Non-significant shunned character number 158 not declared UNUSED"
  51.   as a result: that's what happens with the grplvl.sgm test.  (See
  52.   sgmldecl.c for the use of iscntrl that leads to this, and Goldfarb
  53.   page 455 for the rule that's being followed.)  With this
  54.   symbol defined, the VMS version of isascii is used together with
  55.   iscntrl, and isascii is false for eight-bit characters.
  56.     The setting here also affects the form of the output: without the
  57.   isascii test the program is led to believe that some codes with the
  58.   eighth bit set are OK to put in the output without translation,
  59.   because with the eighth bit masked off they look like ordinary letters.
  60.   That happened with output from the test02.sgm test file.  See
  61.   lineout.c, uses of isprint, for the code that's involved here.
  62.                                                                JDL */
  63. #define USE_ISASCII 1
  64.  
  65. /* Define this if your system provides the BSD style string operations
  66. rather than ANSI C ones (eg bcopy() rather than memcpy(), and index()
  67. rather than strchr()). */
  68. /* #define BSD_STRINGS 1 */
  69.  
  70. /* Define this if you have getopt(). */
  71. /* #define HAVE_GETOPT 1 */
  72.  
  73. /*  Much VMSish stuff here.
  74.     Not sure what a good default path is: the one here's just a
  75.    guess.  The unix.cfg default was:
  76.  
  77.    #define DEFAULT_PATH "/usr/local/lib/sgml/%O/%C/%T:%N.%X:%N.%D"
  78.  
  79.    which is better in that it uses elements from the formal
  80.    identifier rather than the parameter entity name.
  81.     FILE_SEP variables set to comma rather than colon: colon can appear
  82.    in a filename, and comma is the usual thing on VMS to separate
  83.    directories in a pathlist.
  84.     In MIN_DAT_SUBS we map slashes to dashes, since % is not a legal
  85.    VMS filename character. */
  86.  
  87. #define PATH_FILE_SEP ','
  88. #define DEFAULT_PATH "sgml_public:%N.%C"
  89. #define PATH_ENV_VAR "SGML_PATH"
  90. #define SYSID_FILE_SEP ','
  91. #define MIN_DAT_SUBS_FROM " /"
  92. #define MIN_DAT_SUBS_TO   "_-"
  93.  
  94. /* Define this if you have access(). */
  95. /*  VMS has access(), but it's one of those half-implemented functions
  96.    in the run-time library: it checks only UIC protection and not
  97.    ACLs, in VAX C V3.2-044.  So it's better to use the replacement
  98.    code provided in entgen.c that just tries to open the file. */
  99. /* #define HAVE_ACCESS 1 */
  100.  
  101. /* Define this if you have <unistd.h>. */
  102. /* #define HAVE_UNISTD_H 1 */
  103.  
  104. /* Define this if you have waitpid(). */
  105. /* #define HAVE_WAITPID 1 */
  106.  
  107. /* Define this to omit tracing functions */
  108. /* #define FINAL 1 */
  109.  
  110. /* Define this you want support for subdocuments.  This is implemented
  111. using features that are not part of Standard C. */
  112. /* Turned off on VMS: the unixproc.c and portproc.c approaches both
  113.   sort of work, but there are problems getting the output of the
  114.   subprocess to go the same place as the main process output.
  115.   Decided I didn't need this enough to mess with it for now.  JDL */
  116. /* #define SUPPORT_SUBDOC 1 */
  117.  
  118. /* Define this if your system is POSIX.1 (ISO 9945-1:1990) compliant. */
  119. /* #define POSIX 1 */
  120.  
  121. /* POSIX.1 compliant systems will certainly have access(), <unistd.h>,
  122. and waitpid(). */
  123. #ifdef POSIX
  124. #ifndef HAVE_ACCESS
  125. #define HAVE_ACCESS 1
  126. #endif
  127. #ifndef HAVE_UNISTD_H
  128. #define HAVE_UNISTD_H 1
  129. #endif
  130. #ifndef HAVE_WAITPID
  131. #define HAVE_WAITPID 1
  132. #endif
  133. #endif /* POSIX */
  134.  
  135. /* Define this if you have the vfork() system call. */
  136. #define HAVE_VFORK 1
  137.  
  138. /* Define this if you have <vfork.h>. */
  139. /* #define HAVE_VFORK_H 1 */
  140.  
  141. /* Define this if you don't have <stdlib.h> */
  142. /* #define STDLIB_H_MISSING 1 */
  143.  
  144. /* Define this if you don't have <stddef.h> */
  145. /* #define STDDEF_H_MISSING 1 */
  146.  
  147. /* Define this if you don't have remove(); unlink() will be used instead. */
  148. /* #define REMOVE_MISSING 1 */
  149.  
  150. /* Define this if you don't have raise(); kill() will be used instead. */
  151. #define RAISE_MISSING 1
  152.  
  153. /* Universal pointer type. */
  154. /* Use this if your compiler doesn't fully support void * */
  155. /* typedef char *UNIV; */
  156. /* Otherwise use this */
  157. typedef void *UNIV;
  158.  
  159. /*  VAX C V3.2-044 rejects the following typedef for some reason.
  160.    But the #define seems to work. */
  161. /* typedef void VOID; */            /* void as a function return type */
  162. #define VOID void
  163.  
  164. /* If you don't have an ANSI C conformant <limits.h>, define
  165. CHAR_SIGNED as 1 or 0 according to whether the `char' type is signed.
  166. The <limits.h> on some versions of System Release V 3.2 is not ANSI C
  167. conformant: the value of CHAR_MIN is 0 even though the `char' type is
  168. signed. */
  169.  
  170. /* #define CHAR_SIGNED 1 */
  171. /* #define CHAR_SIGNED 0 */
  172. #ifndef CHAR_SIGNED
  173. #include <limits.h>
  174. #if CHAR_MIN < 0
  175. #define CHAR_SIGNED 1
  176. #else
  177. #define CHAR_SIGNED 0
  178. #endif
  179. #endif /* not CHAR_SIGNED */
  180.  
  181. /* Assume the system character set is ISO Latin-1. */
  182. #include "latin1.h"
  183.  
  184. /*  Stuff for use in main.c to remove VMS device, directory, extension,
  185.    and version number from error messages.
  186.     We don't need PROG_FOLD, which does upper-to-lower-case folding,
  187.    because VMS does it already. */
  188.  
  189. #define PROG_PREFIX "]:"
  190. #define PROG_STRIP_EXTENSION 1
  191.  
  192. /* Define VMS exit codes.
  193.      stdlib.h is here because it defines its own EXIT_SUCCESS and
  194.    EXIT_FAILURE, which are just 0 and 2; we want nice values that
  195.    don't trigger VMS messages like
  196.     %NONAME-E-NOMSG, Message number 00000002
  197.      So we run stdlib.h here and then redefine these exit codes
  198.    afterwards. */
  199.  
  200. #ifdef VMS
  201. #  pragma nostandard
  202. #  include stdlib
  203. #  include ssdef
  204. #  include stsdef
  205. #  pragma standard
  206. #  define EXIT_SUCCESS        SS$_NORMAL
  207. #  define EXIT_FAILURE        (STS$K_SEVERE | STS$M_INHIB_MSG)
  208. #endif
  209.  
  210. /* Odd VMS include file for process functions (system, execvp). */
  211.  
  212. #ifdef VMS
  213. # ifdef SUPPORT_SUBDOC
  214. #  pragma nostandard
  215. #  include processes
  216. #  pragma standard
  217. # endif
  218. #endif
  219.