From 69a137ff889f552b3ce58b861f3f0601c1818d6b Mon Sep 17 00:00:00 2001 From: grischka Date: Fri, 14 Jul 2017 19:26:01 +0200 Subject: #pragma comment(option,"-..."), bitfields test, etc... tccpp.c: * #pragma comment(option,"-some-option") to set commandline option from C code. May work only for some options. libtcc.c: * option "-d1..9": sets a 'g_debug' global variable. (for development) tests2/Makefile: * new make targets: tests2.37 / tests2.37+ run single test from tests2, optionally update .expect * new variable GEN-ALWAYS to always generate certain .expects * bitfields test tccgen.c: * bitfields: fix a bug and improve slightly more * _Generic: ignore "type match twice" --- libtcc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index 1adcca6..72f53c0 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1801,6 +1801,8 @@ reparse: s->dflag = 3; else if (*optarg == 'M') s->dflag = 7; + else if (isnum(*optarg)) + g_debug = atoi(optarg); else goto unsupported_option; break; -- cgit v1.3.1