X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/dbfb6dcd339f9aa3bf2a7ed43521319aaf66f7a5..e9f87b5b7df2e328d2e4196d276c0d96594c906b:/src/system.h diff --git a/src/system.h b/src/system.h index 850c5a7f..b1d15424 100644 --- a/src/system.h +++ b/src/system.h @@ -26,16 +26,6 @@ #include -#ifdef MSDOS -# include -#endif - -#ifdef _MSC_VER -# include -# include -# define getpid _getpid -#endif - #if HAVE_STDLIB_H # include #endif @@ -62,9 +52,6 @@ # 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. */ @@ -102,6 +89,9 @@ char *alloca (); # include "xalloc.h" +/* From xstrndup.c. */ +char *xstrndup PARAMS ((const char *s, size_t n)); + /*---------------------. | Missing prototypes. | `---------------------*/ @@ -110,14 +100,26 @@ char *alloca (); char *stpcpy PARAMS ((char *dest, const char *src)); #endif +#if !HAVE_DECL_STRCHR +char *strchr(const char *s, int c); +#endif + #if !HAVE_DECL_STRNDUP char *strndup PARAMS ((const char *s, size_t size)); #endif +#if !HAVE_DECL_STRSPN +size_t strspn(const char *s, const char *accept); +#endif + #if !HAVE_DECL_STRNLEN size_t strnlen PARAMS ((const char *s, size_t maxlen)); #endif +#if !HAVE_DECL_MEMCHR +void *memchr(const void *s, int c, size_t n); +#endif + /*-----------------. @@ -307,4 +309,4 @@ do { \ # include # endif /* WITH_DMALLOC */ -#endif /* BISON_SYSTEM_H */ +#endif /* ! BISON_SYSTEM_H */