Incorporated variable length identifiers.

Courtesy Johan Stevenson
This commit is contained in:
sater
1984-05-18 13:04:34 +00:00
parent 7ac5028864
commit d34532e79d
3 changed files with 16 additions and 7 deletions

View File

@@ -187,9 +187,12 @@ offset *newrom() {
return((offset *) newcore(MAXROM*sizeof(offset)));
}
sym_p newsym() {
return((sym_p) newcore(sizeof(sym_t)));
sym_p newsym(len) int len; {
/*
* sym_t includes a 2 character s_name at the end
* extend this structure with len-2 characters
*/
return((sym_p) newcore(sizeof(sym_t) - 2 + len));
}
argb_p newargb() {