From: Peter Johnson Date: Sun, 29 Jul 2007 06:11:47 +0000 (-0000) Subject: Add command line option aliases for -d (to -D) and -u (to -U) for X-Git-Tag: v0.6.2~8^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e1f0390e24ca56099cc66889d99541f0431a201;p=yasm Add command line option aliases for -d (to -D) and -u (to -U) for compatibility with NASM command line. Requested by: Mike Frysinger svn path=/trunk/yasm/; revision=1902 --- diff --git a/frontends/yasm/yasm.c b/frontends/yasm/yasm.c index 77571742..acbf6abc 100644 --- a/frontends/yasm/yasm.c +++ b/frontends/yasm/yasm.c @@ -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,