summaryrefslogtreecommitdiff
path: root/lang/baci/patches/patch-af
blob: a41f1ad8d9ffd3648d350f53f276f3526d713e03 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
$NetBSD: patch-af,v 1.2 2005/02/19 15:40:54 wiz Exp $

--- ccomp/bac.y.orig	1999-08-31 18:19:03.000000000 +0200
+++ ccomp/bac.y
@@ -3,6 +3,7 @@
        /* based on the grammar for the BenAri Concurrent Pascal compiler */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <time.h>
 #include <assert.h>
@@ -24,9 +25,6 @@ extern   char  lasttoken[];
 extern   void  global_init(int argc, char** argv);
 extern   char  *lastident();
 
-extern   int fprintf(FILE*,const char*,...);
-extern   int printf(const char*,...);
-extern   int free(void*);
 extern   void yyerror(char*); 
 extern   int yylex(void); 
 
@@ -1013,6 +1011,7 @@ then_stmt  :  stmt
 
 the_else  :  ELSE
          { emit(JUMP); $$ = lc; }
+	;
 
 switch_hdr  :  SWITCH  '('  expr  ')'
          { 
@@ -1272,6 +1271,7 @@ break_stmt  :   BREAK  ';'
                }
             }
          }
+	;
 
 return_stmt  :  the_return  opt_expr  ';'
          {