X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/ff4423cc2856ccc63b0fc72430fdc095208e0b14..4e5caae2c6927e9aef605283975fd5e0e94a6e45:/src/system.h diff --git a/src/system.h b/src/system.h index c6f77dae..f5724789 100644 --- a/src/system.h +++ b/src/system.h @@ -73,6 +73,26 @@ extern int errno; # define PARAMS(p) () #endif + + +/*---------------------. +| Missing prototypes. | +`---------------------*/ + +#if !HAVE_DECL_STPCPY +char *stpcpy PARAMS ((char *dest, const char *src)); +#endif + +#if !HAVE_DECL_STRNDUP +char *strndup PARAMS ((const char *s, size_t size)); +#endif + +#if !HAVE_DECL_STRNLEN +size_t strnlen PARAMS ((const char *s, size_t maxlen)); +#endif + + + /*-----------------. | GCC extensions. | `-----------------*/ @@ -209,8 +229,8 @@ do { \ /* VMS. */ # define EXT_TAB "_tab" # define EXT_OUTPUT ".output" -# define EXT_STYPE_H "_stype.h" -# define EXT_GUARD_C "_guard.c" +# define EXT_STYPE_H "_stype" +# define EXT_GUARD_C "_guard" #else /* ! VMS */ # ifdef MSDOS /* MS DOS. */ @@ -222,8 +242,8 @@ do { \ /* Standard. */ # define EXT_TAB ".tab" # define EXT_OUTPUT ".output" -# define EXT_STYPE_H ".stype.h" -# define EXT_GUARD_C ".guard.c" +# define EXT_STYPE_H ".stype" +# define EXT_GUARD_C ".guard" # endif /* ! MSDOS */ #endif /* ! VMS */