From ae141adb11f65bc5b56133b4540fa007aeb14a91 Mon Sep 17 00:00:00 2001 From: zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Mon, 29 May 2000 19:34:51 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34255 138bc75d-0d04-0410-961f-82ee72b054a4 --- libchill/ChangeLog | 6 ++++++ libchill/concatstr.c | 5 ++++- libchill/delaycase.c | 1 + libchill/eqstr.c | 2 ++ libchill/exh.c | 2 ++ libchill/ltstr.c | 2 ++ libchill/memmove.c | 4 +++- libchill/printbuffer.c | 1 + libchill/printevent.c | 1 + libchill/sendbuffer.c | 1 + libchill/waitbuffer.c | 1 + 11 files changed, 24 insertions(+), 2 deletions(-) diff --git a/libchill/ChangeLog b/libchill/ChangeLog index 7fefa5b663f6..7094f7c991fe 100644 --- a/libchill/ChangeLog +++ b/libchill/ChangeLog @@ -1,3 +1,9 @@ +2000-05-29 Zack Weinberg <zack@wolery.cumb.org> + + * 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. + Mon Apr 3 01:20:50 2000 George France <france@crl.dec.com> * basicio.c (PATH_MAX): Always provide a definition. diff --git a/libchill/concatstr.c b/libchill/concatstr.c index 7cefc3c8c6a0..866d3307ef57 100644 --- a/libchill/concatstr.c +++ b/libchill/concatstr.c @@ -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. @@ -26,6 +26,9 @@ 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 <stdlib.h> +#include <string.h> + #define MIN(a, b) ((a) < (b) ? (a) : (b)) extern void cause_exception (char *exname, char *file, int lineno); diff --git a/libchill/delaycase.c b/libchill/delaycase.c index f66f10c8c409..3c2a3c7777ad 100644 --- a/libchill/delaycase.c +++ b/libchill/delaycase.c @@ -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" diff --git a/libchill/eqstr.c b/libchill/eqstr.c index 37fc6a58b245..9261572a1f00 100644 --- a/libchill/eqstr.c +++ b/libchill/eqstr.c @@ -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); /* diff --git a/libchill/exh.c b/libchill/exh.c index 1c80776076fb..8845d4336d56 100644 --- a/libchill/exh.c +++ b/libchill/exh.c @@ -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" diff --git a/libchill/ltstr.c b/libchill/ltstr.c index 4f89284e5cda..7ddcfda5c3c9 100644 --- a/libchill/ltstr.c +++ b/libchill/ltstr.c @@ -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)) /* diff --git a/libchill/memmove.c b/libchill/memmove.c index c5ec992bd847..a64175b06359 100644 --- a/libchill/memmove.c +++ b/libchill/memmove.c @@ -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; diff --git a/libchill/printbuffer.c b/libchill/printbuffer.c index 39e8527d3f8c..a46cb5d5ef00 100644 --- a/libchill/printbuffer.c +++ b/libchill/printbuffer.c @@ -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" diff --git a/libchill/printevent.c b/libchill/printevent.c index 03b8448ac53e..88c4bc0acc73 100644 --- a/libchill/printevent.c +++ b/libchill/printevent.c @@ -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" diff --git a/libchill/sendbuffer.c b/libchill/sendbuffer.c index 7cfe5b0deb96..7ca229c81bea 100644 --- a/libchill/sendbuffer.c +++ b/libchill/sendbuffer.c @@ -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" diff --git a/libchill/waitbuffer.c b/libchill/waitbuffer.c index cc84295fedd8..939c4fca7a1c 100644 --- a/libchill/waitbuffer.c +++ b/libchill/waitbuffer.c @@ -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" -- GitLab