Home | History | Annotate | Download | only in make

Lines Matching defs: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 */
98 Buf_Init(&f->body);
112 Buf_Done(&f->body);
286 Buf_AddStr(&accumFor->body, line);
287 Buf_AddByte(&accumFor->body, '\n');
292 * When the body of a '.for i' loop is prepared for an iteration, each
293 * occurrence of $i in the body is replaced with ${:U...}, inserting the
330 * While expanding the body of a .for loop, write the item as a ${:U...}
335 AddEscaped(Buffer *body, Substring item, char endc)
349 Buf_AddBytes(body, p, 1 + len);
353 Buf_AddByte(body, '\\');
355 Buf_AddByte(body, '\\');
360 Buf_AddByte(body, ch);
366 * While expanding the body of a .for loop, replace the variable name of an
370 ForLoop_SubstVarLong(ForLoop *f, unsigned firstItem, Buffer *body,
388 * instead add ':U<value>' to the current body.
390 Buf_AddRange(body, *inout_mark, start);
391 Buf_AddStr(body, ":U");
392 AddEscaped(body, f->items.words[firstItem + i], endc);
401 * While expanding the body of a .for loop, replace single-character
405 ForLoop_SubstVarShort(ForLoop *f, unsigned firstItem, Buffer *body,
425 Buf_AddRange(body, *inout_mark, p);
429 Buf_AddStr(body, "{:U");
430 AddEscaped(body, f->items.words[firstItem + i], '}');
431 Buf_AddByte(body, '}');
435 * Compute the body for the current iteration by copying the unexpanded body,
449 ForLoop_SubstBody(ForLoop *f, unsigned firstItem, Buffer *body)
454 Buf_Clear(body);
456 mark = f->body.data;
457 end = f->body.data + f->body.len;
462 ForLoop_SubstVarLong(f, firstItem, body,
465 ForLoop_SubstVarShort(f, firstItem, body,
471 Buf_AddRange(body, mark, end);
475 * Compute the body for the current iteration by copying the unexpanded body,
479 For_NextIteration(ForLoop *f, Buffer *body)
485 ForLoop_SubstBody(f, f->nextItem - (unsigned)f->vars.len, body);
488 debug_printf("For: loop body with %s:\n%s",
489 details, body->data);