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}
};
char *strcpy();
char *sprint();
init_pp()

View file

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

View file

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

View file

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

View file

@ -1,6 +1,8 @@
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
/* machine dependent definitions */
/* the following definitions are for the VAX */
@ -269,17 +271,3 @@ extern short final_state;
extern char *allocate();
extern bucket *lookup();
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 <string.h>
#define DEF_LENGTH 8
@ -184,8 +185,6 @@ char *
Salloc(str)
char *str;
{
char *strcpy();
if (str == 0)
str = "";

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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