27 lines
709 B
Text
27 lines
709 B
Text
$NetBSD: patch-ai,v 1.2 2015/12/29 23:34:43 dholland Exp $
|
|
|
|
Use standard headers.
|
|
Don't redeclare standard functions.
|
|
|
|
--- ccomp/bac.l.orig 1999-08-31 18:19:04.000000000 +0200
|
|
+++ ccomp/bac.l
|
|
@@ -3,6 +3,7 @@
|
|
|
|
#include <ctype.h>
|
|
#include <stdio.h>
|
|
+#include <string.h>
|
|
#include <sys/types.h>
|
|
|
|
#include "ytab.h"
|
|
@@ -11,11 +12,6 @@
|
|
#include "../include/incfiles.h"
|
|
#include "../include/computil.h"
|
|
|
|
-extern int printf(const char*,...);
|
|
-extern int fprintf(FILE*,const char*,...);
|
|
-extern size_t fwrite(const void*,size_t,size_t,FILE*);
|
|
-extern int fgetc(FILE*);
|
|
-extern int fputc(int,FILE*);
|
|
extern void yyerror(char*);
|
|
|
|
/* FLEX doesn't declare malloc and realloc before it uses them */
|