more porting to pdp 11
This commit is contained in:
parent
e67b672727
commit
43c55159d6
|
@ -348,7 +348,7 @@ const_def { register char *name; struct expr *e; }:
|
|||
'=' expression(&e)
|
||||
{ if (!constant(e) && !arr_constant(e))
|
||||
nonconst("expression in constant definition");
|
||||
info.const=e;
|
||||
info.t_const=e;
|
||||
insert(name, T_CONST|T_USED, 0, &info);
|
||||
}
|
||||
;
|
||||
|
@ -457,7 +457,7 @@ item(register struct expr **e;)
|
|||
var=searchall(token.t_sval);
|
||||
|
||||
if (var_constant(var))
|
||||
*e=copy_const(var->s_info.const);
|
||||
*e=copy_const(var->s_info.t_const);
|
||||
else {
|
||||
if (var_proc(var))
|
||||
pars=var->s_info.proc.pars;
|
||||
|
|
|
@ -121,7 +121,7 @@ static void sym_destroy(ps) register struct symbol *ps;
|
|||
}
|
||||
} else
|
||||
if ((ps->s_type&T_TYPE)==T_CONST)
|
||||
destroy(ps->s_info.const);
|
||||
destroy(ps->s_info.t_const);
|
||||
free(ps->s_name);
|
||||
free(ps);
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ union type_info {
|
|||
int offset; /* from its local level or builtin name */
|
||||
} vc; /* Variable or channel */
|
||||
|
||||
struct expr *const;
|
||||
struct expr *t_const;
|
||||
|
||||
struct {
|
||||
union storage st;
|
||||
|
|
Loading…
Reference in a new issue