summaryrefslogtreecommitdiff
path: root/devel/as31/patches/patch-lexer.c
blob: 780f1ed084e67d4bdb92e6c244f5756ce686ddc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-lexer.c,v 1.1 2012/07/03 18:13:26 joerg Exp $

--- lexer.c.orig	2012-07-03 10:49:15.000000000 +0000
+++ lexer.c
@@ -23,16 +23,19 @@
  *
  */
 
+#include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <ctype.h>
 #include "as31.h"
 
+void error(const char *, ...);
+
 extern union ystack yylval;
 extern int pass;
 
 struct symbol *looksym();
 struct opcode *lookop();
-char *malloc();
 int lineno;
 
 static char line[100],*lineptr=line;