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
date and time created 88/10/21 13:47:49 by bostic
[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
d1ee1b2
..
5d55fff
100644
(file)
--- a/
usr/src/old/as.vax/asscan1.c
+++ b/
usr/src/old/as.vax/asscan1.c
@@
-1,8
+1,11
@@
/*
/*
- * Copyright (c) 1982 Regents of the University of California
+ * Copyright (c) 1982 Regents of the University of California.
+ * All rights reserved. The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
*/
*/
+
#ifndef lint
#ifndef lint
-static char sccsid[] = "@(#)asscan1.c
4.5
%G%";
+static char sccsid[] = "@(#)asscan1.c
5.1 (Berkeley)
%G%";
#endif not lint
#include "asscanl.h"
#endif not lint
#include "asscanl.h"
@@
-161,11
+164,17
@@
inttoktype yylex()
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;
- case STRING: printf("length %d ", ((u_short *)yylval)[-1]);
+ case STRING:
+ printf("length %d, seekoffset %d, place 0%o ",
+ ((struct strdesc *)yylval)->sd_strlen,
+ ((struct strdesc *)yylval)->sd_stroff,
+ ((struct strdesc *)yylval)->sd_place
+ );
+ if (((struct strdesc *)yylval)->sd_place & STR_CORE)
printf("value\"%*s\"",
printf("value\"%*s\"",
- ((
u_short *)yylval)[-1]
,
- (
char *)yylval
);
-
break;
+ ((
struct strdesc *)yylval)->sd_strlen
,
+ (
(struct strdesc *)yylval)->sd_string
);
+ break;
} /*end of the debug switch*/
printf("\n");
}
} /*end of the debug switch*/
printf("\n");
}