Lines Matching refs:source

60 static	void		parse_makefile(register Name true_makefile_name, register Source source);
61 static Source push_macro_value(register Source bp, register wchar_t *buffer, int size, register Source source);
103 register Source source = ALLOC(Source);
126 source->inp_buf =
127 source->inp_buf_ptr =
128 source->inp_buf_end = NULL;
129 source->error_converting = false;
201 source->string.free_after_use = false;
202 source->previous = NULL;
203 source->already_expanded = false;
267 retmem_mb((char *)source);
276 source->bytes_left_in_file =
290 source->fd = open_vroot(makefile_name->string_mb,
295 if (source->fd < 0) {
310 (void) fcntl(source->fd, F_SETFD, 1);
313 source->string.text.p =
314 source->string.buffer.start =
319 source->string.text.end = source->string.text.p;
320 source->string.buffer.end =
321 source->string.text.p + makefile_name->stat.size;
324 source->fd = -1;
325 source->string.text.p =
326 source->string.buffer.start =
328 source->string.text.end =
329 source->string.buffer.end =
330 source->string.text.p + makefile->body.makefile.size;
331 source->bytes_left_in_file =
390 source->string.free_after_use = false;
391 source->previous = NULL;
392 source->bytes_left_in_file = 0;
393 source->fd = -1;
394 source->already_expanded = false;
395 source->string.buffer.start =
396 source->string.text.p = ALLOC_WC(num_mb_chars + 1);
397 source->string.buffer.end =
398 source->string.text.p + num_mb_chars;
399 num_wc_chars = mbstowcs(source->string.text.p,
403 source->string.text.end =
404 source->string.text.p + num_wc_chars;
413 parse_makefile(makefile_name, source);
435 retmem_mb((char *)source);
440 * parse_makefile(true_makefile_name, source)
449 * source The source block to read from
458 parse_makefile(register Name true_makefile_name, register Source source)
531 GET_NEXT_BLOCK(source);
533 if (source == NULL) {
540 if (source->fd >= 0) {
545 GET_NEXT_BLOCK(source);
546 if (source == NULL) {
576 GET_NEXT_BLOCK_NOCHK(source);
577 if (source == NULL) {
580 if (source->error_converting) {
582 source->inp_buf_ptr++;
589 GET_NEXT_BLOCK_NOCHK(source);
590 if (source == NULL) {
593 if (source->error_converting) {
595 source->inp_buf_ptr++;
601 if (source->fd >= 0) {
617 if (source->already_expanded) {
632 source = push_macro_value(t,
635 source);
652 GET_NEXT_BLOCK(source);
653 if (source == NULL) {
670 if (source->fd > 0) {
679 GET_NEXT_BLOCK(source);
715 extrap->previous = source;
716 source = extrap;
727 if (source == NULL) {
732 !source->already_expanded) {
753 GET_NEXT_BLOCK(source);
754 if (source == NULL) {
780 GET_NEXT_BLOCK(source);
782 if (source == NULL) {
793 source->string.text.p = source_p;
891 tmp_bytes_left_in_string = source->string.text.end - source_p;
900 GET_NEXT_BLOCK(source);
936 GET_NEXT_BLOCK(source);
938 if (source == NULL) {
946 if (source->fd >= 0) {
953 GET_NEXT_BLOCK(source);
954 if (source == NULL) {
959 if (source->fd >= 0) {
975 GET_NEXT_BLOCK_NOCHK(source);
976 if (source == NULL) {
979 if (source->error_converting) {
981 source->inp_buf_ptr++;
987 GET_NEXT_BLOCK_NOCHK(source);
988 if (source == NULL) {
991 if (source->error_converting) {
993 source->inp_buf_ptr++;
999 if (source->fd >= 0) {
1006 if (source->fd >= 0) {
1014 if (source->already_expanded) {
1021 source = push_macro_value(t,
1024 source);
1055 GET_NEXT_BLOCK(source);
1058 if (source == NULL) {
1084 if (source->fd >= 0) {
1099 GET_NEXT_BLOCK(source);
1100 if (source == NULL) {
1105 if (source->fd >= 0) {
1122 if (source->already_expanded) {
1142 source = push_macro_value(t,
1145 source);
1232 GET_NEXT_BLOCK(source);
1234 if (source == NULL) {
1316 GET_NEXT_BLOCK(source);
1319 if (source == NULL) {
1336 GET_NEXT_BLOCK(source);
1338 if (source == NULL) {
1379 GET_NEXT_BLOCK(source);
1382 if (source == NULL) {
1526 GET_NEXT_BLOCK(source);
1528 if (source == NULL) {
1534 GET_NEXT_BLOCK(source);
1535 if (source == NULL) {
1554 if (source->fd >= 0) {
1587 GET_NEXT_BLOCK(source);
1590 if (source == NULL) {
1614 GET_NEXT_BLOCK(source);
1616 if (source == NULL) {
1690 GET_NEXT_BLOCK(source);
1691 if (source == NULL) {
1704 if (source->fd > 0) {
1713 GET_NEXT_BLOCK(source);
1744 extrap->previous = source;
1745 source = extrap;
1751 if (source->already_expanded) {
1758 source = push_macro_value(t,
1761 source);
1773 GET_NEXT_BLOCK_NOCHK(source);
1774 if (source == NULL) {
1777 if (source->error_converting) {
1779 source->inp_buf_ptr++;
1785 GET_NEXT_BLOCK_NOCHK(source);
1786 if (source == NULL) {
1789 if (source->error_converting) {
1791 source->inp_buf_ptr++;
1797 if (source->fd >= 0) {
1804 if (source->fd >= 0) {
1842 GET_NEXT_BLOCK(source);
1843 if (source == NULL) {
1851 if (source->fd >= 0) {
1855 GET_NEXT_BLOCK(source);
1856 if (source == NULL) {
1866 GET_NEXT_BLOCK(source);
1867 if (source == NULL) {
1927 if ((source != NULL) && (source->fd >= 0)) {
1930 if ((source != NULL) &&
1932 GET_NEXT_BLOCK(source);
1933 if (source == NULL) {
1949 GET_NEXT_BLOCK(source);
1952 if (source == NULL) {
2009 * push_macro_value(bp, buffer, size, source)
2015 * The source block to read the macro from
2018 * bp The new source block to fill in
2021 * source The old source block
2026 push_macro_value(register Source bp, register wchar_t *buffer, int size, register Source source)
2036 expand_macro(source, &bp->string, (wchar_t *) NULL, false);
2048 bp->previous = source;