Fix a whole lot more stray prototypes.
authorDavid Given <dg@cowlark.com>
Thu, 24 Nov 2016 20:47:40 +0000 (21:47 +0100)
committerDavid Given <dg@cowlark.com>
Thu, 24 Nov 2016 20:47:40 +0000 (21:47 +0100)
lang/cem/cemcom.ansi/l_outdef.c
lang/cem/cemcom.ansi/replace.c
lang/cem/cpp.ansi/LLlex.c
lang/cem/cpp.ansi/replace.c
lang/m2/m2mm/main.c
modules/src/em_code/insert.c
util/ego/em_ego/em_ego.c
util/ego/ic/ic_lookup.c
util/led/main.c

index 32e2172..aab98a5 100644 (file)
@@ -37,7 +37,6 @@
 
 extern char *bts2str();
 extern char *symbol2str();
-extern char *strchr();
 
 int stat_number = 9999;                        /* static scope number */
 struct outdef OutDef;
index 50978be..11908e5 100644 (file)
@@ -24,7 +24,6 @@
 extern struct idf *GetIdentifier();
 extern int InputLevel;
 struct repl *ReplaceList;      /* list of currently active macros */
-extern char *strcat(), *strcpy();
 
 void macro2buffer();
 void getactuals();
index dbf8d9e..7aa0a1e 100644 (file)
@@ -30,7 +30,6 @@ int LexSave = 0;                /* last character read by GetChar       */
 extern int InputLevel;         /* # of current macro expansions        */
 
 extern char    *string_token();
-extern char    *strcpy();
 extern arith   char_constant();
 #define                FLG_ESEEN       0x01    /* possibly a floating point number */
 #define                FLG_DOTSEEN     0x02    /* certainly a floating point number */
index cd7d606..284b495 100644 (file)
@@ -21,8 +21,6 @@
 #include       "replace.h"
 
 extern char *GetIdentifier();
-extern char *strcpy();
-extern char *strcat();
 extern int InputLevel;
 struct repl *ReplaceList;      /* list of currently active macros */
 
index 8b951a8..2a82697 100644 (file)
@@ -11,6 +11,7 @@
 
 /* $Id$ */
 
+#include       <string.h>
 #include       <alloc.h>
 
 #include       "input.h"
@@ -27,8 +28,6 @@ int           nDEF, mDEF;
 struct file_list *CurrentArg;
 extern int     err_occurred;
 extern int     Roption;
-extern char    *strrchr();
-extern char    *strcpy(), *strcat();
 
 char *
 basename(s)
index f7526b8..fd88cd4 100644 (file)
@@ -10,6 +10,7 @@
 */
 
 #include <stdlib.h>
+#include <string.h>
 #include <em_path.h>
 #include <alloc.h>
 #include "insert.h"
@@ -134,8 +135,6 @@ C_findpart(part)
        return p;
 }
 
-extern char    *strcpy(), *strcat(), *mktemp();
-
 static
 swttmp()
 {
index 60a99ea..d29be73 100644 (file)
@@ -58,10 +58,6 @@ static const struct
 #define MAXARGS 1024 /* mar # of args */
 #define NTEMPS 4 /* # of temporary files; not tunable */
 
-extern char* mktemp();
-extern char* strcpy(), *strcat();
-extern char* strrchr();
-
 static char ddump[128] = TMP_DIR; /* data label dump file */
 static char pdump[128] = TMP_DIR; /* procedure name dump file */
 static char tmpbufs[NTEMPS * 2][128] = {
index 8a7afa2..34c2391 100644 (file)
@@ -26,8 +26,6 @@ prc_p prochash[NPROCHASH];
 num_p numhash[NNUMHASH];
 char *lastname;
 
-extern char    *strcpy();
-
 #define newsym()       (sym_p) newstruct(sym)
 #define newprc()       (prc_p) newstruct(prc)
 #define newnum()       (num_p) newstruct(num)
index 2ec6ca2..b176514 100644 (file)
@@ -10,7 +10,9 @@ static char rcsid[] = "$Id$";
  * led - linkage editor for ACK assemblers output format
  */
 
+#include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <out.h>
 #include "const.h"
 #include "debug.h"
@@ -124,8 +126,6 @@ first_pass(argv)
        register char           *argp;
        int                     sectno;
        int                     h;
-       extern int              atoi();
-       extern char             *strchr();
        extern int              hash();
        extern struct outname   *searchname();