]> granicus.if.org Git - yasm/commitdiff
Add command line option aliases for -d (to -D) and -u (to -U) for
authorPeter Johnson <peter@tortall.net>
Sun, 29 Jul 2007 06:11:47 +0000 (06:11 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 29 Jul 2007 06:11:47 +0000 (06:11 -0000)
compatibility with NASM command line.

Requested by: Mike Frysinger <vapier@gentoo.org>

svn path=/trunk/yasm/; revision=1902

frontends/yasm/yasm.c

index 775717428de21776659c7a23cee33e2c69966a4e..acbf6abc267b5b9db1c5a671ede6b05daa6c9be2 100644 (file)
@@ -175,8 +175,12 @@ static opt_option options[] =
       N_("add include path"), N_("path") },
     { 'P', NULL, 1, opt_preproc_option, 0,
       N_("pre-include file"), N_("filename") },
+    { 'd', NULL, 1, opt_preproc_option, 1,
+      N_("pre-define a macro, optionally to value"), N_("macro[=value]") },
     { 'D', NULL, 1, opt_preproc_option, 1,
       N_("pre-define a macro, optionally to value"), N_("macro[=value]") },
+    { 'u', NULL, 1, opt_preproc_option, 2,
+      N_("undefine a macro"), N_("macro") },
     { 'U', NULL, 1, opt_preproc_option, 2,
       N_("undefine a macro"), N_("macro") },
     { 'X', NULL, 1, opt_ewmsg_handler, 0,