Home | History | Annotate | Download | only in nawk-20071023

Lines Matching defs:Frame

208 struct Frame {	/* stack frame for awk function calls */
217 struct Frame *frame = NULL; /* base of stack frames; dynamically allocated */
219 struct Frame *fp = NULL; /* frame pointer. bottom level unused */
235 if (frame == NULL) {
236 fp = frame = (struct Frame *) calloc(nframe += 100, sizeof(struct Frame));
237 if (frame == NULL)
243 dprintf( ("calling %s, %d args (%d in defn), fp=%d\n", s, ncall, ndef, (int) (fp-frame)) );
250 dprintf( ("evaluate args[%d], fp=%d:\n", i, (int) (fp-frame)) );
267 fp++; /* now ok to up frame */
268 if (fp >= frame + nframe) {
269 int dfp = fp - frame; /* old index */
270 frame = (struct Frame *)
271 realloc((char *) frame, (nframe += 100) * sizeof(struct Frame));
272 if (frame == NULL)
274 fp = frame + dfp;
281 dprintf( ("start exec of %s, fp=%d\n", s, (int) (fp-frame)) );
283 dprintf( ("finished exec of %s, fp=%d\n", s, (int) (fp-frame)) );