|
@@ -79,6 +79,7 @@ enum CommandOptions {
|
|
|
CO_promiscuous,
|
|
CO_promiscuous,
|
|
|
CO_spam,
|
|
CO_spam,
|
|
|
CO_noangles,
|
|
CO_noangles,
|
|
|
|
|
+ CO_nomangle,
|
|
|
CO_help,
|
|
CO_help,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -106,6 +107,7 @@ static struct option long_options[] = {
|
|
|
{ "promiscuous", no_argument, NULL, CO_promiscuous },
|
|
{ "promiscuous", no_argument, NULL, CO_promiscuous },
|
|
|
{ "spam", no_argument, NULL, CO_spam },
|
|
{ "spam", no_argument, NULL, CO_spam },
|
|
|
{ "noangles", no_argument, NULL, CO_noangles },
|
|
{ "noangles", no_argument, NULL, CO_noangles },
|
|
|
|
|
+ { "nomangle", no_argument, NULL, CO_nomangle },
|
|
|
{ "help", no_argument, NULL, CO_help },
|
|
{ "help", no_argument, NULL, CO_help },
|
|
|
{ NULL }
|
|
{ NULL }
|
|
|
};
|
|
};
|
|
@@ -284,7 +286,10 @@ void show_help() {
|
|
|
|
|
|
|
|
<< " -noangles\n"
|
|
<< " -noangles\n"
|
|
|
<< " Treat #include <file> the same as #include \"file\". This means -I\n"
|
|
<< " Treat #include <file> the same as #include \"file\". This means -I\n"
|
|
|
- << " and -S are equivalent.\n\n";
|
|
|
|
|
|
|
+ << " and -S are equivalent.\n\n"
|
|
|
|
|
+
|
|
|
|
|
+ << " -nomangle\n"
|
|
|
|
|
+ << " Do not generate camelCase equivalents of functions.\n\n";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// handle commandline -D options
|
|
// handle commandline -D options
|
|
@@ -446,6 +451,10 @@ main(int argc, char **argv) {
|
|
|
parser._noangles = true;
|
|
parser._noangles = true;
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
|
|
+ case CO_nomangle:
|
|
|
|
|
+ mangle_names = false;
|
|
|
|
|
+ break;
|
|
|
|
|
+
|
|
|
case 'h':
|
|
case 'h':
|
|
|
case CO_help:
|
|
case CO_help:
|
|
|
show_help();
|
|
show_help();
|