Lines Matching full:body

38  *	# the body
41 * When a .for line is parsed, the following lines are copied to the body of
43 * phase, the body is not yet evaluated. This also applies to any nested
48 * body is scanned for expressions, and those that match the
50 * that, the body is treated like a file from an .include directive.
67 Buffer body; /* Unexpanded body of the loop */ member
98 Buf_Init(&f->body); in ForLoop_New()
112 Buf_Done(&f->body); in ForLoop_Free()
291 Buf_AddStr(&accumFor->body, line); in For_Accum()
292 Buf_AddByte(&accumFor->body, '\n'); in For_Accum()
297 * When the body of a '.for i' loop is prepared for an iteration, each
298 * occurrence of $i in the body is replaced with ${:U...}, inserting the
335 * While expanding the body of a .for loop, write the item as a ${:U...}
371 * While expanding the body of a .for loop, replace the variable name of an
375 ForLoop_SubstVarLong(ForLoop *f, unsigned int firstItem, Buffer *body, in ForLoop_SubstVarLong() argument
393 * instead add ':U<value>' to the current body. in ForLoop_SubstVarLong()
395 Buf_AddRange(body, *inout_mark, start); in ForLoop_SubstVarLong()
396 Buf_AddStr(body, ":U"); in ForLoop_SubstVarLong()
397 AddEscaped(body, f->items.words[firstItem + i], endc); in ForLoop_SubstVarLong()
406 * While expanding the body of a .for loop, replace single-character
410 ForLoop_SubstVarShort(ForLoop *f, unsigned int firstItem, Buffer *body, in ForLoop_SubstVarShort() argument
430 Buf_AddRange(body, *inout_mark, p); in ForLoop_SubstVarShort()
434 Buf_AddStr(body, "{:U"); in ForLoop_SubstVarShort()
435 AddEscaped(body, f->items.words[firstItem + i], '}'); in ForLoop_SubstVarShort()
436 Buf_AddByte(body, '}'); in ForLoop_SubstVarShort()
440 * Compute the body for the current iteration by copying the unexpanded body,
454 ForLoop_SubstBody(ForLoop *f, unsigned int firstItem, Buffer *body) in ForLoop_SubstBody() argument
459 Buf_Clear(body); in ForLoop_SubstBody()
461 mark = f->body.data; in ForLoop_SubstBody()
462 end = f->body.data + f->body.len; in ForLoop_SubstBody()
467 ForLoop_SubstVarLong(f, firstItem, body, in ForLoop_SubstBody()
470 ForLoop_SubstVarShort(f, firstItem, body, in ForLoop_SubstBody()
476 Buf_AddRange(body, mark, end); in ForLoop_SubstBody()
480 * Compute the body for the current iteration by copying the unexpanded body,
484 For_NextIteration(ForLoop *f, Buffer *body) in For_NextIteration() argument
490 ForLoop_SubstBody(f, f->nextItem - (unsigned int)f->vars.len, body); in For_NextIteration()
493 debug_printf("For: loop body with %s:\n%s", in For_NextIteration()
494 details, body->data); in For_NextIteration()