From 5fcfb6e7fb1c1eda60e775e60cf22b650cb188fe Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 10 Sep 1993 12:10:14 +0000 Subject: [PATCH] entered into RCS --- doc/bison.1 | 1 + src/system.h | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/system.h diff --git a/doc/bison.1 b/doc/bison.1 index ec8d979a..7ce9d397 100644 --- a/doc/bison.1 +++ b/doc/bison.1 @@ -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 index 00000000..8d3562c9 --- /dev/null +++ b/src/system.h @@ -0,0 +1,25 @@ +#ifdef MSDOS +#include +#endif + +#if defined(HAVE_STDLIB_H) || defined(MSDOS) +#include +#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 +/* An ANSI string.h and pre-ANSI memory.h might conflict. */ +#if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H) +#include +#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 +/* memory.h and strings.h conflict on some systems. */ +#endif /* not STDC_HEADERS and not HAVE_STRING_H */ -- 2.47.2