entered into RCS
authorRichard M. Stallman <rms@gnu.org>
Fri, 10 Sep 1993 12:10:14 +0000 (12:10 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 10 Sep 1993 12:10:14 +0000 (12:10 +0000)
doc/bison.1
src/system.h [new file with mode: 0644]

index ec8d979a799edac0f39a0b3c90be7515e1f3f493..7ce9d397610e824fac9020573de9505f5d0279fc 100644 (file)
@@ -235,6 +235,7 @@ and exit.
 .B \-h
 .br
 .ns
+.TP
 .B \-\-help
 Print a summary of the options to
 .I bison
diff --git a/src/system.h b/src/system.h
new file mode 100644 (file)
index 0000000..8d3562c
--- /dev/null
@@ -0,0 +1,25 @@
+#ifdef MSDOS
+#include <io.h>
+#endif
+
+#if defined(HAVE_STDLIB_H) || defined(MSDOS)
+#include <stdlib.h>
+#endif
+
+#if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
+#define HAVE_STRING_H 1
+#endif
+
+#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
+#include <string.h>
+/* An ANSI string.h and pre-ANSI memory.h might conflict.  */
+#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
+#include <memory.h>
+#endif /* not STDC_HEADERS and HAVE_MEMORY_H */
+#ifndef bcopy
+#define bcopy(src, dst, num) memcpy((dst), (src), (num))
+#endif
+#else /* not STDC_HEADERS and not HAVE_STRING_H */
+#include <strings.h>
+/* memory.h and strings.h conflict on some systems.  */
+#endif /* not STDC_HEADERS and not HAVE_STRING_H */