~oriansj/M3-Preprocess

9cf01dba842acbcbe5148f47f3a13f35dc9ebbe1 — Jeremiah Orians 2 years ago 74630d0
Display missing file names
2 files changed, 6 insertions(+), 4 deletions(-)

M cc_macro.c
M include_expansion.c
M cc_macro.c => cc_macro.c +2 -1
@@ 827,7 827,8 @@ void macro_directive()
				return;
			}

			eat_current_token();
//			eat_current_token();
			macro_token = macro_token->next;
		}
	}
	else

M include_expansion.c => include_expansion.c +4 -3
@@ 90,9 90,10 @@ void expand_includes(struct token_list* token, int depth)
	hold = stage1_preprocess(hold, depth);

	/* Now wire that shit up */
	reset = i->next;
	i->next = hold;
	hold->prev = i->next;
	require(NULL != i->next->next, "#include missing line feed at end of statement\n");
	reset = i->next->next;
	i->next->next = hold;
	hold->prev = i->next->next;
	while(NULL != hold->next) hold = hold->next;
	hold->next = reset;
	reset->prev = hold;