40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
$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;
|
|
}
|