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
The string pool is maintained both in core, and in a second tmp file.
[unix-history]
/
usr
/
src
/
old
/
as.vax
/
asscan1.c
diff --git
a/usr/src/old/as.vax/asscan1.c
b/usr/src/old/as.vax/asscan1.c
index
4036af9
..
d1ee1b2
100644
(file)
--- a/
usr/src/old/as.vax/asscan1.c
+++ b/
usr/src/old/as.vax/asscan1.c
@@
-2,12
+2,12
@@
* Copyright (c) 1982 Regents of the University of California
*/
#ifndef lint
* Copyright (c) 1982 Regents of the University of California
*/
#ifndef lint
-static char sccsid[] = "@(#)asscan1.c 4.
4
%G%";
+static char sccsid[] = "@(#)asscan1.c 4.
5
%G%";
#endif not lint
#include "asscanl.h"
#endif not lint
#include "asscanl.h"
-initt
mp
file()
+initt
ok
file()
{
if (passno == 1){
if (useVM){
{
if (passno == 1){
if (useVM){
@@
-27,7
+27,7
@@
inittmpfile()
tokub = 0;
}
tokub = 0;
}
-closet
mp
file()
+closet
ok
file()
{
if (passno == 1){
if (useVM){
{
if (passno == 1){
if (useVM){
@@
-38,7
+38,7
@@
closetmpfile()
* written out yet
*/
if (tokbuf[bufno ^ 1].tok_count >= 0){
* written out yet
*/
if (tokbuf[bufno ^ 1].tok_count >= 0){
- if (writeTEST((char *)&tokbuf[bufno ^ 1], sizeof *emptybuf, 1, t
mpfil
)){
+ if (writeTEST((char *)&tokbuf[bufno ^ 1], sizeof *emptybuf, 1, t
okfile
)){
badwrite:
yyerror("Unexpected end of file writing the interpass tmp file");
exit(2);
badwrite:
yyerror("Unexpected end of file writing the interpass tmp file");
exit(2);
@@
-50,7
+50,7
@@
closetmpfile()
* in the argument list
*/
tokbuf[bufno].toks[tokbuf[bufno].tok_count++] = PARSEEOF;
* in the argument list
*/
tokbuf[bufno].toks[tokbuf[bufno].tok_count++] = PARSEEOF;
- if (writeTEST((char *)&tokbuf[bufno], sizeof *emptybuf, 1, t
mpfil
))
+ if (writeTEST((char *)&tokbuf[bufno], sizeof *emptybuf, 1, t
okfile
))
goto badwrite;
}
} /*end of being pass 1*/
goto badwrite;
}
} /*end of being pass 1*/
@@
-148,7
+148,7
@@
inttoktype yylex()
case BIGNUM: bignumprint(((struct exp*)yylval)->e_number);
break;
case NAME: printf("\"%.8s\"",
case BIGNUM: bignumprint(((struct exp*)yylval)->e_number);
break;
case NAME: printf("\"%.8s\"",
-
((struct symtab *)yylval)->s_name
);
+
FETCHNAME((struct symtab *)yylval)
);
break;
case REG: printf(" r%d",
yylval);
break;
case REG: printf(" r%d",
yylval);
@@
-156,7
+156,8
@@
inttoktype yylex()
case IJXXX:
case INST0:
case INSTn: if (ITABCHECK(yyopcode))
case IJXXX:
case INST0:
case INSTn: if (ITABCHECK(yyopcode))
- printf("%.8s", ITABFETCH(yyopcode)->s_name);
+ printf("%.8s",
+ FETCHNAME(ITABFETCH(yyopcode)));
else
printf("IJXXX or INST0 or INSTn can't get into the itab\n");
break;
else
printf("IJXXX or INST0 or INSTn can't get into the itab\n");
break;
@@
-208,14
+209,14
@@
inttoktype yylex()
* out at all
*/
if (emptybuf->tok_count >= 0){
* out at all
*/
if (emptybuf->tok_count >= 0){
- if (writeTEST((char *)emptybuf, sizeof *emptybuf, 1, t
mpfil
)){
+ if (writeTEST((char *)emptybuf, sizeof *emptybuf, 1, t
okfile
)){
yyerror("Unexpected end of file writing the interpass tmp file");
exit(2);
}
}
scan_dot_s(emptybuf);
} else { /*pass 2*/
yyerror("Unexpected end of file writing the interpass tmp file");
exit(2);
}
}
scan_dot_s(emptybuf);
} else { /*pass 2*/
- if (readTEST((char *)emptybuf, sizeof *emptybuf, 1, t
mpfil
)){
+ if (readTEST((char *)emptybuf, sizeof *emptybuf, 1, t
okfile
)){
badread:
yyerror("Unexpected end of file while reading the interpass tmp file");
exit(1);
badread:
yyerror("Unexpected end of file while reading the interpass tmp file");
exit(1);