summaryrefslogtreecommitdiff
path: root/devel/bcc/patches/patch-at
blob: 8999ef835be53eaa92cf6cce8bd9cfa3384c0a4a (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
39
40
$NetBSD: patch-at,v 1.2 2006/10/10 06:56:05 uebayasi Exp $

--- bcc/express.c.orig	1992-11-14 16:12:35.000000000 +0100
+++ bcc/express.c
@@ -21,7 +21,7 @@ PRIVATE unsigned insizeof;	/* nest level
 /* on p49 of K & R */
 
 FORWARD struct nodestruct *cast_exp P((void));
-FORWARD struct nodestruct *exp2 P((void));
+FORWARD struct nodestruct *my_exp2 P((void));
 FORWARD struct nodestruct *exp3to12 P((fastin_pt lprecedence));
 FORWARD struct nodestruct *listargs P((void));
 FORWARD struct nodestruct *postfix_exp P((bool_pt seenlp));
@@ -55,7 +55,7 @@ PUBLIC struct nodestruct *assignment_exp
     struct nodestruct *lhs;
     op_pt op;
 
-    lhs = exp2();
+    lhs = my_exp2();
     if (sym >= ASSIGNOP && sym <= SUBABOP)	/* assign-op syms in order! */
     {
 	op = sym;
@@ -78,7 +78,7 @@ PUBLIC struct nodestruct *expression()
     return lhs;
 }
 
-PRIVATE struct nodestruct *exp2()
+PRIVATE struct nodestruct *my_exp2()
 {
     struct nodestruct *lhs;
     struct nodestruct *rhs;
@@ -89,7 +89,7 @@ PRIVATE struct nodestruct *exp2()
 	nextsym();
 	rhs = expression();
 	colon();
-	lhs = node(CONDOP, lhs, node(COLONOP, rhs, exp2()));
+	lhs = node(CONDOP, lhs, node(COLONOP, rhs, my_exp2()));
     }
     return lhs;
 }