Implicit declarations fixes, libchill

Zack Weinberg zack@wolery.cumb.org
Sat May 27 23:05:00 GMT 2000


Libchill is a target library so assuming the existence of C89 headers
is safe.

zw

	* concatstr.c, exh.c: Include stdlib.h and string.h.
	* delaycase.c, eqstr.c, memmove.c, printbuffer.c,
	printevent.c, sendbuffer.c, waitbuffer.c: Include string.h.

===================================================================
Index: concatstr.c
--- concatstr.c	1999/01/11 13:09:19	1.3
+++ concatstr.c	2000/05/28 04:55:08
@@ -1,5 +1,5 @@
 /* Implement string-related runtime actions for CHILL.
-   Copyright (C) 1992,1993 Free Software Foundation, Inc.
+   Copyright (C) 1992,1993,2000 Free Software Foundation, Inc.
    Author: Bill Cox
 
 This file is part of GNU CC.
@@ -25,6 +25,9 @@ Boston, MA 02111-1307, USA.  */
    to be covered by the GNU General Public License.
    This exception does not however invalidate any other reasons why
    the executable file might be covered by the GNU General Public License.  */
+
+#include <stdlib.h>
+#include <string.h>
 
 #define MIN(a, b)  ((a) < (b) ? (a) : (b))
 
===================================================================
Index: delaycase.c
--- delaycase.c	1999/01/11 13:09:23	1.3
+++ delaycase.c	2000/05/28 04:55:08
@@ -26,6 +26,7 @@ Boston, MA 02111-1307, USA.  */
    This exception does not however invalidate any other reasons why
    the executable file might be covered by the GNU General Public License.  */
 
+#include <string.h>
 #include "rtltypes.h"
 #include "rts.h"
 
===================================================================
Index: eqstr.c
--- eqstr.c	1999/01/11 13:09:29	1.3
+++ eqstr.c	2000/05/28 04:55:08
@@ -26,6 +26,8 @@ Boston, MA 02111-1307, USA.  */
    This exception does not however invalidate any other reasons why
    the executable file might be covered by the GNU General Public License.  */
 
+#include <string.h>
+
 extern void cause_exception (char *exname, char *file, int lineno);
 
 /*
===================================================================
Index: exh.c
--- exh.c	1999/01/11 13:09:30	1.4
+++ exh.c	2000/05/28 04:55:08
@@ -30,6 +30,8 @@ Boston, MA 02111-1307, USA.  */
 #define __CHILL_LIB__
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 #include <setjmp.h>
 #include "rtltypes.h"
 
===================================================================
Index: ltstr.c
--- ltstr.c	1999/01/11 13:09:55	1.3
+++ ltstr.c	2000/05/28 04:55:08
@@ -26,6 +26,8 @@ Boston, MA 02111-1307, USA.  */
    This exception does not however invalidate any other reasons why
    the executable file might be covered by the GNU General Public License.  */
 
+#include <string.h>
+
 #define MIN(a, b)  ((a) < (b) ? (a) : (b))
 
 /*
===================================================================
Index: memmove.c
--- memmove.c	1999/01/11 13:09:56	1.3
+++ memmove.c	2000/05/28 04:55:08
@@ -26,6 +26,8 @@ Boston, MA 02111-1307, USA.  */
    This exception does not however invalidate any other reasons why
    the executable file might be covered by the GNU General Public License.  */
 
+#include <string.h>
+
 #define MIN(a, b)  ((a) < (b) ? (a) : (b))
 
 
@@ -52,7 +54,7 @@ void *
 memmove (s1, s2, n)
      void *s1;
      const void *s2;
-     int n;
+     unsigned int n;
 {
   char *sc1 = s1;
   const char *sc2 = s2;
===================================================================
Index: printbuffer.c
--- printbuffer.c	1999/01/11 13:10:02	1.3
+++ printbuffer.c	2000/05/28 04:55:08
@@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA.  */
    the executable file might be covered by the GNU General Public License.  */
 
 #include <stdio.h>
+#include <string.h>
 #include "rtltypes.h"
 #include "rts.h"
 
===================================================================
Index: printevent.c
--- printevent.c	1999/01/11 13:10:03	1.3
+++ printevent.c	2000/05/28 04:55:08
@@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA.  */
    the executable file might be covered by the GNU General Public License.  */
 
 #include <stdio.h>
+#include <string.h>
 #include "rtltypes.h"
 #include "rts.h"
 
===================================================================
Index: sendbuffer.c
--- sendbuffer.c	1999/01/11 13:10:11	1.3
+++ sendbuffer.c	2000/05/28 04:55:08
@@ -26,6 +26,7 @@ Boston, MA 02111-1307, USA.  */
    This exception does not however invalidate any other reasons why
    the executable file might be covered by the GNU General Public License.  */
 
+#include <string.h>
 #include "rtltypes.h"
 #include "rts.h"
 
===================================================================
Index: waitbuffer.c
--- waitbuffer.c	1999/01/11 13:10:23	1.3
+++ waitbuffer.c	2000/05/28 04:55:08
@@ -26,6 +26,7 @@ Boston, MA 02111-1307, USA.  */
    This exception does not however invalidate any other reasons why
    the executable file might be covered by the GNU General Public License.  */
 
+#include <string.h>
 #include "rtltypes.h"
 #include "rts.h"
 


More information about the Gcc-patches mailing list