~sircmpwn/annotatec

e0bd1935eb9ec89a2a7755d7d049f6d675478dc6 — Drew DeVault 7 months ago 74eaf24
main: add -d flag to enable yydebug
1 files changed, 6 insertions(+), 1 deletions(-)

M main.c
M main.c => main.c +6 -1
@@ 54,15 54,20 @@ static void postprocess(const char *file) {
	printf("\n");
}

extern int yydebug;

int main(int argc, char **argv) {
	char *cppcmd = "cpp -std=c11";

	int c;
	while ((c = getopt(argc, argv, "C:")) != -1) {
	while ((c = getopt(argc, argv, "dC:")) != -1) {
		switch (c) {
		case 'C':
			cppcmd = optarg;
			break;
		case 'd':
			yydebug = 1;
			break;
		}
	}