From 3581eec6eeaa3f415be6aaafa1522bb922b24755 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 28 Mar 2006 18:22:34 +0000 Subject: [PATCH] make !define /date prints act like !define /math git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4623 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index b89d2f87..873f9d45 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -2691,7 +2691,6 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) char *value; char datebuf[256]; char mathbuf[256]; - bool date=false; if (!stricmp(define,"/date") || !stricmp(define,"/utcdate")) { if (line.getnumtokens()!=4) PRINTHELP() @@ -2717,8 +2716,6 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) value=datebuf; - date=true; - } else if (!stricmp(define,"/math")) { int value1; @@ -2764,7 +2761,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) ERROR_MSG("!define: \"%s\" already defined!\n",define); return PS_ERROR; } - SCRIPT_MSG("!define: %s\"%s\"=\"%s\"\n",date?"/date ":"",define,date?line.gettoken_str(3):value); + SCRIPT_MSG("!define: \"%s\"=\"%s\"\n",define,value); } return PS_OK; case TOK_P_UNDEF: