X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=expr.c;h=23f6a14afcbb0c46561c101b6d0e43e382acbb56;hp=1747c8441666c4d79815b9b11dd20609d027dbf8;hb=295836a17362d5f57e171018fb6658f845f419e8;hpb=26bc03271bede4256ab52496d52de67018e33a01 diff --git a/expr.c b/expr.c index 1747c84..23f6a14 100644 --- a/expr.c +++ b/expr.c @@ -328,12 +328,17 @@ int expr2(void) // int expr(TOKEN * otk, VALUE * a_value, WORD * a_attr, SYM ** a_esym) { + // Passed in values (once derefenced, that is) can all be zero. They are + // there so that the expression analyzer can fill them in as needed. The + // expression analyzer gets its input from "tok", and not from anything + // passed in by the user. SYM * sy; char * p; int j; - tk = otk; // Set token pointer to 'exprbuf' (direct.c) -// symbolNum = 0; // Set symbol number in symbolPtr[] to 0 + tk = otk; // Set token pointer to 'exprbuf' (direct.c) + // Also set in various other places too (risca.c, e.g.) +// symbolNum = 0; // Set symbol number in symbolPtr[] to 0 // Optimize for single constant or single symbol. if ((tok[1] == EOL)