X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/45aa0550a1af29ab39c005a956ca39223815df9b..144c1e767a4e18f79733da66b407f86673902cf6:/src/system.h diff --git a/src/system.h b/src/system.h index 068b308a..a1fee01c 100644 --- a/src/system.h +++ b/src/system.h @@ -86,7 +86,7 @@ typedef size_t uintptr_t; #define REALLOC(P, N) ((P) = xrealloc (P, (N) * sizeof *(P))) /* From xstrndup.c. */ -char *xstrndup (const char *s, size_t n); +char *xstrndup (const char *str, size_t size); /*---------------------. @@ -98,23 +98,23 @@ char *stpcpy (char *dest, const char *src); #endif #if defined HAVE_DECL_STRCHR && !HAVE_DECL_STRCHR -char *strchr (const char *s, int c); +char *strchr (const char *str, int ch); #endif #if defined HAVE_DECL_STRSPN && !HAVE_DECL_STRSPN -size_t strspn (const char *s, const char *accept); +size_t strspn (const char *str, const char *accept); #endif #if defined HAVE_DECL_STRNLEN && !HAVE_DECL_STRNLEN -size_t strnlen (const char *s, size_t maxlen); +size_t strnlen (const char *str, size_t maxlen); #endif #if defined HAVE_DECL_MEMCHR && !HAVE_DECL_MEMCHR -void *memchr (const void *s, int c, size_t n); +void *memchr (const void *str, int ch, size_t size); #endif #if defined HAVE_DECL_MEMRCHR && !HAVE_DECL_MEMRCHR -void *memrchr (const void *s, int c, size_t n); +void *memrchr (const void *str, int ch, size_t size); #endif @@ -183,23 +183,7 @@ void *memrchr (const void *s, int c, size_t n); | Booleans. | `-----------*/ -#if HAVE_STDBOOL_H -# include -#else -# ifndef __bool_true_false_are_defined -# if ! HAVE__BOOL -# ifdef __cplusplus -typedef bool _Bool; -# else -typedef unsigned char _Bool; -# endif -# endif -# define bool _Bool -# define false 0 -# define true 1 -# define __bool_true_false_are_defined 1 -# endif -#endif +#include /*-----------.