summaryrefslogtreecommitdiff
path: root/src/nsgenbind.c
diff options
context:
space:
mode:
authorVincent Sanders <vincent.sanders@collabora.co.uk>2013-06-03 15:15:05 +0100
committerVincent Sanders <vincent.sanders@collabora.co.uk>2013-06-03 15:15:05 +0100
commitaab61ebdb4494309e688ea8afbd97c5a2f89e935 (patch)
tree716a29b96f3408ba2c7cf71534b97430c10b8ef4 /src/nsgenbind.c
parent85287e9287e29fd715470253b1075e726a2ec594 (diff)
downloadnsgenbind-aab61ebdb4494309e688ea8afbd97c5a2f89e935.tar.gz
nsgenbind-aab61ebdb4494309e688ea8afbd97c5a2f89e935.tar.bz2
add switch and implementation to enable debug trace logging in generated code
Diffstat (limited to 'src/nsgenbind.c')
-rw-r--r--src/nsgenbind.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nsgenbind.c b/src/nsgenbind.c
index 1c5100e..d993646 100644
--- a/src/nsgenbind.c
+++ b/src/nsgenbind.c
@@ -30,7 +30,7 @@ static struct options* process_cmdline(int argc, char **argv)
return NULL;
}
- while ((opt = getopt(argc, argv, "vDW::d:I:o:h:")) != -1) {
+ while ((opt = getopt(argc, argv, "vgDW::d:I:o:h:")) != -1) {
switch (opt) {
case 'I':
options->idlpath = strdup(optarg);
@@ -56,13 +56,17 @@ static struct options* process_cmdline(int argc, char **argv)
options->debug = true;
break;
+ case 'g':
+ options->dbglog = true;
+ break;
+
case 'W':
options->warnings = 1; /* warning flags */
break;
default: /* '?' */
fprintf(stderr,
- "Usage: %s [-v] [-D] [-W] [-d depfilename] [-I idlpath] [-o filename] [-h headerfile] inputfile\n",
+ "Usage: %s [-v] [-g] [-D] [-W] [-d depfilename] [-I idlpath] [-o filename] [-h headerfile] inputfile\n",
argv[0]);
free(options);
return NULL;