Interface of tmplocal() changed: second parameter is a long now
This commit is contained in:
parent
5cad6f6aa7
commit
d32d4e6ba0
3 changed files with 4 additions and 4 deletions
|
@ -49,11 +49,11 @@ offset aoff(ap,n)
|
||||||
|
|
||||||
offset tmplocal(p,size)
|
offset tmplocal(p,size)
|
||||||
proc_p p;
|
proc_p p;
|
||||||
int size;
|
offset size;
|
||||||
{
|
{
|
||||||
/* Allocate a new local variable in the stack frame of p */
|
/* Allocate a new local variable in the stack frame of p */
|
||||||
|
|
||||||
p->p_localbytes += (offset) size;
|
p->p_localbytes += size;
|
||||||
return -(p->p_localbytes);
|
return -(p->p_localbytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ extern offset aoff(); /* (arg_p list; int n)
|
||||||
* n'th argument in the list (this argument
|
* n'th argument in the list (this argument
|
||||||
* must have type ARGOFF). Start counting at 0.
|
* must have type ARGOFF). Start counting at 0.
|
||||||
*/
|
*/
|
||||||
extern offset tmplocal(); /* (proc_p p, int size)
|
extern offset tmplocal(); /* (proc_p p, offset size)
|
||||||
* Allocate a new local variable in the
|
* Allocate a new local variable in the
|
||||||
* stack frame of p.
|
* stack frame of p.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -431,7 +431,7 @@ STATIC reduce(code,vars)
|
||||||
} else {
|
} else {
|
||||||
make_header(code->co_loop);
|
make_header(code->co_loop);
|
||||||
/* make sure there's a header block */
|
/* make sure there's a header block */
|
||||||
tmp = tmplocal(curproc,code->co_tmpsize);
|
tmp = tmplocal(curproc,(offset) code->co_tmpsize);
|
||||||
code->co_temp = tmp;
|
code->co_temp = tmp;
|
||||||
/* create a new local variable in the stack frame
|
/* create a new local variable in the stack frame
|
||||||
* of current proc.
|
* of current proc.
|
||||||
|
|
Loading…
Reference in a new issue