]> git.saurik.com Git - bison.git/commitdiff
* src/system.h: Provide default declarations for stpcpy, strndup,
authorAkim Demaille <akim@epita.fr>
Fri, 10 Aug 2001 09:35:50 +0000 (09:35 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 10 Aug 2001 09:35:50 +0000 (09:35 +0000)
and strnlen.

ChangeLog
src/system.h

index d316997adb9756f1cf6152bc91e9853ce33dfa5f..38211fa898168eb11bca64319cd8ae3f5b650d3c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-10  Akim Demaille  <akim@epita.fr>
+
+       * src/system.h: Provide default declarations for stpcpy, strndup,
+       and strnlen.
+
 2001-08-10  Robert Anisko  <anisko_r@epita.fr>
 
        * doc/bison.texinfo (Locations): Update @$ stuff.
@@ -9,7 +14,7 @@
 
 2001-08-08  Marc Autret  <autret_m@epita.fr>
 
-       * 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.
 
        * 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.
index 83e2b0a51f0bde196afc8ac3bb2636f9b4e7b458..f57247897e84dc15c12e301de369472de53d58a6 100644 (file)
@@ -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.  |
 `-----------------*/