home *** CD-ROM | disk | FTP | other *** search
- /* getplace() -- get a pointer to place of value for vlist entry on top of stack
- * For arrays, getplace() expects the indexes to be on the stack as well.
- * The parser should properly arrange for this to happen.
- */
- union value *getplace(dp)
- struct dictnode *dp;
- {
- int qual;
- union value ind,*place;
-
- qual = dp->type_of_value&T_QMASK;
- if(qual == Q_ARY) {
- ind = pop();
- mpop();
- place = & dp->val.arval[ind.ival+2];
- }
- else
- place = & dp->val;
- return(place);
- }
-