From: Akim Demaille Date: Fri, 10 Aug 2001 09:35:50 +0000 (+0000) Subject: * src/system.h: Provide default declarations for stpcpy, strndup, X-Git-Tag: BISON-1_28c~25 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/b77b9ee0a338cdcab3b5ab774cc8418f42e6d19f * src/system.h: Provide default declarations for stpcpy, strndup, and strnlen. --- diff --git a/ChangeLog b/ChangeLog index d316997a..38211fa8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-08-10 Akim Demaille + + * src/system.h: Provide default declarations for stpcpy, strndup, + and strnlen. + 2001-08-10 Robert Anisko * doc/bison.texinfo (Locations): Update @$ stuff. @@ -9,7 +14,7 @@ 2001-08-08 Marc Autret - * doc/bison.texinfo: Change @samp{$<@dots{}>} to + * doc/bison.texinfo: Change @samp{$<@dots{}>} to @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule. Reported by Fabrice Bauzac. @@ -19,11 +24,11 @@ * src/vcg.c (output_node): Fix. * src/vcg.h: Cleanup. * src/print_graph.c: Add comments. - (node_output_size): New global variable. Simplify the formatting of + (node_output_size): New global variable. Simplify the formatting of the VCG graph output. - (print_actions): Unused code is now used. It notifies the final state + (print_actions): Unused code is now used. It notifies the final state and no action states in the VCG graph. It also give the reduce actions. - The `shift and goto' edges are red and the `go to state' edges are + The `shift and goto' edges are red and the `go to state' edges are blue. Get the current node name and node_obstack by argument. (node_obstack): New variable. diff --git a/src/system.h b/src/system.h index 83e2b0a5..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. | `-----------------*/