in addition to "-DSYMBOL=VALUE", now "-D SYMBOL=VALUE" is also accepted

git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@376 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
marcobaye 2024-07-15 18:11:38 +00:00
parent b643115017
commit 3818f97723
2 changed files with 6 additions and 3 deletions

View File

@ -682,7 +682,10 @@ static char short_option(const char *argument)
while (*argument) {
switch (*argument) {
case 'D': // "-D" define constants
if (argument[1])
define_symbol(argument + 1);
else
define_symbol(cliargs_safe_get_next("symbol definition"));
goto done;
case 'f': // "-f" selects output format
set_output_format(cliargs_get_next()); // NULL is ok (handled like unknown)

View File

@ -9,7 +9,7 @@
#define RELEASE "0.97" // update before release FIXME
#define CODENAME "Zem" // update before release
#define CHANGE_DATE "18 Jun" // update before release FIXME
#define CHANGE_DATE "15 Jul" // update before release FIXME
#define CHANGE_YEAR "2024" // update before release
//#define HOME_PAGE "http://home.pages.de/~mac_bacon/smorbrod/acme/"
#define HOME_PAGE "http://sourceforge.net/p/acme-crossass/" // FIXME