Removed a whole bunch of old strcpy() prototypes in favour of <string.h>.

This commit is contained in:
David Given 2019-02-10 13:20:04 +01:00
parent c8c48221b3
commit 58698bed19
14 changed files with 13 additions and 36 deletions

View file

@ -34,7 +34,6 @@ struct mkey {
{0, K_UNKNOWN} {0, K_UNKNOWN}
}; };
char *strcpy();
char *sprint(); char *sprint();
init_pp() init_pp()

View file

@ -73,7 +73,7 @@ char opdesc[] = {
LLDEF, /* EX_REGVAR */ LLDEF, /* EX_REGVAR */
}; };
string salloc(),strcpy(),strcat(); string salloc();
string mycat(s1,s2) string s1,s2; { string mycat(s1,s2) string s1,s2; {
register string s; register string s;

View file

@ -31,7 +31,6 @@ File *C_ofp;
#ifndef INCORE #ifndef INCORE
File *C_tfr; File *C_tfr;
char *C_tmpfile; char *C_tmpfile;
char *strcpy(), *strcat();
char *C_ibuf = 0; char *C_ibuf = 0;
long C_current_out; long C_current_out;
#endif #endif

View file

@ -2,6 +2,7 @@
static char rcsidp5[] = "$Id$"; static char rcsidp5[] = "$Id$";
#endif #endif
#include <string.h>
#include "parser.h" #include "parser.h"
#include "Lpars.h" #include "Lpars.h"
@ -40,7 +41,6 @@ PRIVATE
openofile(filename) openofile(filename)
char *filename; char *filename;
{ {
char *strcpy(), *strcat();
strcpy(ofilename,filename); strcpy(ofilename,filename);
strcpy(ofiletemp,filename); strcpy(ofiletemp,filename);
strcat(ofiletemp,".new"); strcat(ofiletemp,".new");

View file

@ -1,6 +1,8 @@
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <errno.h>
/* machine dependent definitions */ /* machine dependent definitions */
/* the following definitions are for the VAX */ /* the following definitions are for the VAX */
@ -269,17 +271,3 @@ extern short final_state;
extern char *allocate(); extern char *allocate();
extern bucket *lookup(); extern bucket *lookup();
extern bucket *make_bucket(); extern bucket *make_bucket();
/* system variables */
extern int errno;
/* system functions */
extern void free();
extern char *calloc();
extern char *malloc();
extern char *realloc();
extern char *strcpy();

View file

@ -30,6 +30,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <string.h>
#define DEF_LENGTH 8 #define DEF_LENGTH 8
@ -184,8 +185,6 @@ char *
Salloc(str) Salloc(str)
char *str; char *str;
{ {
char *strcpy();
if (str == 0) if (str == 0)
str = ""; str = "";

View file

@ -14,6 +14,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <string.h>
#ifndef DEF_LENGTH #ifndef DEF_LENGTH
#define DEF_LENGTH 8 #define DEF_LENGTH 8
@ -159,8 +160,6 @@ char *
Salloc(str) Salloc(str)
char *str; char *str;
{ {
char *strcpy();
if (str == 0) { if (str == 0) {
str = ""; str = "";
} }

View file

@ -10,6 +10,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#incoude <string.h>
#define BSIZ 1024 #define BSIZ 1024
char *prog; char *prog;
@ -64,7 +65,6 @@ add_name(nm)
char *nm; char *nm;
{ {
struct namelist *nlp = nl, *lnlp = 0, *nnlp; struct namelist *nlp = nl, *lnlp = 0, *nnlp;
char *strcpy();
while (nlp) { while (nlp) {
register i = strcmp(nm, nlp->name); register i = strcmp(nm, nlp->name);

View file

@ -14,6 +14,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <string.h>
extern char *ProgName; extern char *ProgName;
@ -101,8 +102,6 @@ char *
Salloc(str) Salloc(str)
char *str; char *str;
{ {
char *strcpy();
if (str == 0) if (str == 0)
str = ""; str = "";

View file

@ -5,6 +5,7 @@
/* $Id$ */ /* $Id$ */
/* L E X I C A L A N A L Y Z E R */ /* L E X I C A L A N A L Y Z E R */
#include <string.h>
#include "idfsize.h" #include "idfsize.h"
#include "numsize.h" #include "numsize.h"
#include "strsize.h" #include "strsize.h"
@ -26,7 +27,6 @@ int AccDefined = 0; /* accept "defined(...)" */
int UnknownIdIsZero = 0; /* interpret unknown id as integer 0 */ int UnknownIdIsZero = 0; /* interpret unknown id as integer 0 */
char *string_token(); char *string_token();
char *strcpy();
PushLex() PushLex()
{ {

View file

@ -5,6 +5,7 @@
*/ */
/* PREPROCESSOR: INITIALIZATION ROUTINES */ /* PREPROCESSOR: INITIALIZATION ROUTINES */
#include <string.h>
#include <system.h> #include <system.h>
#include <alloc.h> #include <alloc.h>
#include "class.h" #include "class.h"
@ -30,8 +31,6 @@ PRIVATE struct mkey {
{0, K_UNKNOWN} {0, K_UNKNOWN}
}; };
char *strcpy();
EXPORT EXPORT
init_pp() init_pp()
{ {

View file

@ -20,7 +20,6 @@
#include "class.h" #include "class.h"
#include "interface.h" #include "interface.h"
char *strcpy(), *strcat();
char *long2str(); char *long2str();
extern int InputLevel; extern int InputLevel;

View file

@ -5,6 +5,7 @@
/* $Id$ */ /* $Id$ */
#include <stdio.h> #include <stdio.h>
#include <string.h>
#if __STDC__ #if __STDC__
#include <stdarg.h> #include <stdarg.h>
#else #else
@ -17,9 +18,6 @@
#ifdef LOGGING #ifdef LOGGING
extern int strlen();
extern char *strcpy();
extern long mess_id; /* from io.c */ extern long mess_id; /* from io.c */
extern FILE *fcreat_high(); /* from io.c */ extern FILE *fcreat_high(); /* from io.c */

View file

@ -5,6 +5,8 @@
/* $Id$ */ /* $Id$ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <setjmp.h> #include <setjmp.h>
#include <em_abs.h> #include <em_abs.h>
@ -20,10 +22,6 @@
#include "opcode.h" #include "opcode.h"
#include "rsb.h" #include "rsb.h"
extern int atoi();
extern long atol();
extern char *strcpy();
char mess_file[64] = "int.mess"; /* name of message file */ char mess_file[64] = "int.mess"; /* name of message file */
jmp_buf trapbuf; jmp_buf trapbuf;