projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bell 32V development
[unix-history]
/
usr
/
src
/
cmd
/
lex
/
parser.y
diff --git
a/usr/src/cmd/lex/parser.y
b/usr/src/cmd/lex/parser.y
index
2f152b4
..
81df2d0
100644
(file)
--- a/
usr/src/cmd/lex/parser.y
+++ b/
usr/src/cmd/lex/parser.y
@@
-44,12
+44,12
@@
end: delim | ;
defns: defns STR STR
={ scopy($2,dp);
def[dptr] = dp;
defns: defns STR STR
={ scopy($2,dp);
def[dptr] = dp;
- dp
=+
slength($2) + 1;
+ dp
+=
slength($2) + 1;
scopy($3,dp);
subs[dptr++] = dp;
if(dptr >= DEFSIZE)
error("Too many definitions");
scopy($3,dp);
subs[dptr++] = dp;
if(dptr >= DEFSIZE)
error("Too many definitions");
- dp
=+
slength($3) + 1;
+ dp
+=
slength($3) + 1;
if(dp >= dchar+DEFCHAR)
error("Definitions too long");
subs[dptr]=def[dptr]=0; /* for lookup - require ending null */
if(dp >= dchar+DEFCHAR)
error("Definitions too long");
subs[dptr]=def[dptr]=0; /* for lookup - require ending null */
@@
-374,7
+374,7
@@
yylex(){
sname[sptr] = 0; /* required by lookup */
if(sptr >= STARTSIZE)
error("Too many start conditions");
sname[sptr] = 0; /* required by lookup */
if(sptr >= STARTSIZE)
error("Too many start conditions");
- sp
=+
slength(sp) + 1;
+ sp
+=
slength(sp) + 1;
if(sp >= schar+STARTCHAR)
error("Start conditions too long");
}
if(sp >= schar+STARTCHAR)
error("Start conditions too long");
}
@@
-632,7
+632,7
@@
yylex(){
else {
yylval = ccptr;
scopy(token,ccptr);
else {
yylval = ccptr;
scopy(token,ccptr);
- ccptr
=+
slength(token) + 1;
+ ccptr
+=
slength(token) + 1;
if(ccptr >= ccl+CCLSIZE)
error("Too many large character classes");
}
if(ccptr >= ccl+CCLSIZE)
error("Too many large character classes");
}