summaryrefslogtreecommitdiff
path: root/src/skin
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-29 22:27:31 -0500
committermidipix <writeonce@midipix.org>2016-01-01 22:50:24 -0500
commitfd0662520d453add386b48b4e0cc6cd6b566590c (patch)
tree7bad6c7a8e0920c83016176ee4ab2000df325148 /src/skin
parent379519e6def59e4eea6d3a59fc539b34a1c76e60 (diff)
downloadapimagic-fd0662520d453add386b48b4e0cc6cd6b566590c.tar.bz2
apimagic-fd0662520d453add386b48b4e0cc6cd6b566590c.tar.xz
driver: added --std support.
Diffstat (limited to 'src/skin')
-rw-r--r--src/skin/amgc_skin_default.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/skin/amgc_skin_default.c b/src/skin/amgc_skin_default.c
index 2151b30..865231e 100644
--- a/src/skin/amgc_skin_default.c
+++ b/src/skin/amgc_skin_default.c
@@ -1,6 +1,15 @@
#include "apimagic_driver_impl.h"
#include "argv/argv.h"
+#define AMGC_LANG_STD_PARADIGM "c++|c++98|c11|c1x|c89|c90|c99|c9x|" \
+ "gnu++98|gnu11|gnu1x|" \
+ "gnu89|gnu99|gnu9x|" \
+ "iso9899:1990|" \
+ "iso9899:199409|" \
+ "iso9899:1999|" \
+ "iso9899:199x|" \
+ "iso9899:2011"
+
const struct argv_option amgc_default_options[] = {
{"version", 'v',TAG_VERSION,ARGV_OPTARG_NONE,0,0,
"show version information"},
@@ -8,5 +17,8 @@ const struct argv_option amgc_default_options[] = {
{"help", 'h',TAG_HELP,ARGV_OPTARG_OPTIONAL,"short|long",0,
"show usage information [listing %s options only]"},
+ {"std", 'g',TAG_LANG_STD,ARGV_OPTARG_REQUIRED,AMGC_LANG_STD_PARADIGM,0,
+ "set language standard"},
+
{0}
};