typedef char byte;
typedef char * string;
-extern char *malloc(),*myalloc();
+extern char *myalloc();
+
+#if __STDC__
+#include <stdlib.h>
+#else
+extern char *malloc();
+#endif
#include <cg_pattern.h>
char * myalloc(n) {
register char *p;
- p= (char*) malloc((unsigned)n);
+ p= malloc((unsigned)n);
if (p==0) {
yyerror("Out of core");
exit(1);
although it is not directly evident how.
*/
-extern char *sprintf();
-
PRIVATE char *displ_undefs(), *displ_fil(), *displ_sh(), *displ_code();
PRIVATE ptr std_raw(), std_rsb();
PRIVATE int std_bytes(), dtd_bytes(), FRAd_bytes();
#include "mem.h"
#include "linfil.h"
-extern char *sprintf();
-extern _doprnt();
-
extern int running; /* from main.c */
extern char *prog_name; /* from main.c */
extern char *load_name; /* from init.c */
fprintf(fp, "(Fatal error) ");
if (load_name)
fprintf(fp, "%s: ", load_name);
- _doprnt(fmt, ap, fp);
+ vfprintf(fp, fmt, ap);
fputc('\n', fp);
}
va_start(ap);
{
register char *fmt = va_arg(ap, char *);
- _doprnt(fmt, ap, mess_fp);
+ vfprintf(mess_fp, fmt, ap);
}
va_end(ap);
#ifdef LOGGING
-extern char *sprintf();
extern int strlen();
extern char *strcpy();
if (fmt[0] == '@') {
/* include position */
fprintf(log_fp, "%.4s%s, ", fmt, position());
- _doprnt(&fmt[4], ap, log_fp);
+ vfprintf(log_fp, &fmt[4], ap);
}
else {
- _doprnt(&fmt[0], ap, log_fp);
+ vfprintf(log_fp, &fmt[0], ap);
}
}
va_end(ap);
#include <sys/types.h>
#include <sys/stat.h>
+#if __STDC__
+#include <time.h>
+#endif
#include <sys/times.h>
extern int errno; /* UNIX error number */
#define DUPMASK 0x40
-extern long times();
extern long lseek();
#ifdef SYS_V
extern unsigned int alarm();
#include <sys/types.h>
#include <sys/stat.h>
+#if __STDC__
+#include <time.h>
+#endif
#include <sys/times.h>
#include <sgtty.h>
#include <stdio.h>
-extern char *sprintf();
extern FILE *popen();
#include <ip_spec.h>
#include <stdio.h>
-extern char *sprintf();
extern FILE *popen();
char *progname;
#include "rsb.h"
#include "fra.h"
-extern char *sprintf();
-
extern jmp_buf trapbuf; /* from main.c */
int must_test; /* TEST-bit on in EM header word 2 */