* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
static char sccsid
[] = "@(#)assign.c 5.1 (Berkeley) 6/6/85";
* assign the value of an expression to a variable (or term)
if (!compatible(var
->nodetype
, exp
->nodetype
)) {
error("incompatible types");
varsize
= size(var
->nodetype
);
if (varsize
< sizeof(long)) {
dwrite(&cvalue
, addr
, varsize
);
dwrite(&svalue
, addr
, varsize
);
panic("bad size %d", varsize
);
dwrite(sp
, addr
, varsize
);