From 3e69d1185a81872d42542cc5453f38e2edff24ba Mon Sep 17 00:00:00 2001 From: David Given Date: Thu, 24 Nov 2016 21:47:40 +0100 Subject: [PATCH] Fix a whole lot more stray prototypes. --- lang/cem/cemcom.ansi/l_outdef.c | 1 - lang/cem/cemcom.ansi/replace.c | 1 - lang/cem/cpp.ansi/LLlex.c | 1 - lang/cem/cpp.ansi/replace.c | 2 -- lang/m2/m2mm/main.c | 3 +-- modules/src/em_code/insert.c | 3 +-- util/ego/em_ego/em_ego.c | 4 ---- util/ego/ic/ic_lookup.c | 2 -- util/led/main.c | 4 ++-- 9 files changed, 4 insertions(+), 17 deletions(-) diff --git a/lang/cem/cemcom.ansi/l_outdef.c b/lang/cem/cemcom.ansi/l_outdef.c index 32e2172b8..aab98a5b2 100644 --- a/lang/cem/cemcom.ansi/l_outdef.c +++ b/lang/cem/cemcom.ansi/l_outdef.c @@ -37,7 +37,6 @@ extern char *bts2str(); extern char *symbol2str(); -extern char *strchr(); int stat_number = 9999; /* static scope number */ struct outdef OutDef; diff --git a/lang/cem/cemcom.ansi/replace.c b/lang/cem/cemcom.ansi/replace.c index 50978be3c..11908e51b 100644 --- a/lang/cem/cemcom.ansi/replace.c +++ b/lang/cem/cemcom.ansi/replace.c @@ -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(); diff --git a/lang/cem/cpp.ansi/LLlex.c b/lang/cem/cpp.ansi/LLlex.c index dbf8d9ea1..7aa0a1eed 100644 --- a/lang/cem/cpp.ansi/LLlex.c +++ b/lang/cem/cpp.ansi/LLlex.c @@ -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 */ diff --git a/lang/cem/cpp.ansi/replace.c b/lang/cem/cpp.ansi/replace.c index cd7d60696..284b49524 100644 --- a/lang/cem/cpp.ansi/replace.c +++ b/lang/cem/cpp.ansi/replace.c @@ -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 */ diff --git a/lang/m2/m2mm/main.c b/lang/m2/m2mm/main.c index 8b951a8b8..2a8269736 100644 --- a/lang/m2/m2mm/main.c +++ b/lang/m2/m2mm/main.c @@ -11,6 +11,7 @@ /* $Id$ */ +#include #include #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) diff --git a/modules/src/em_code/insert.c b/modules/src/em_code/insert.c index f7526b8e4..fd88cd4ec 100644 --- a/modules/src/em_code/insert.c +++ b/modules/src/em_code/insert.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include "insert.h" @@ -134,8 +135,6 @@ C_findpart(part) return p; } -extern char *strcpy(), *strcat(), *mktemp(); - static swttmp() { diff --git a/util/ego/em_ego/em_ego.c b/util/ego/em_ego/em_ego.c index 60a99ea5d..d29be7385 100644 --- a/util/ego/em_ego/em_ego.c +++ b/util/ego/em_ego/em_ego.c @@ -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] = { diff --git a/util/ego/ic/ic_lookup.c b/util/ego/ic/ic_lookup.c index 8a7afa233..34c2391fa 100644 --- a/util/ego/ic/ic_lookup.c +++ b/util/ego/ic/ic_lookup.c @@ -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) diff --git a/util/led/main.c b/util/led/main.c index 2ec6ca2f8..b176514cb 100644 --- a/util/led/main.c +++ b/util/led/main.c @@ -10,7 +10,9 @@ static char rcsid[] = "$Id$"; * led - linkage editor for ACK assemblers output format */ +#include #include +#include #include #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();