Added FlushINI

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2319 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-03-17 13:23:01 +00:00
parent 2bae57a3ac
commit 1c6dc531e6
5 changed files with 16 additions and 0 deletions

View file

@ -3265,6 +3265,11 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
line.gettoken_str(2),vname,space,line.gettoken_str(1));
}
return add_entry(&ent);
case TOK_FLUSHINI:
ent.which=EW_WRITEINI;
ent.offsets[3]=add_string(line.gettoken_str(1));
SCRIPT_MSG("FlushINI: %s\n",line.gettoken_str(1));
return add_entry(&ent);
case TOK_WRITEINISTR:
ent.which=EW_WRITEINI;
ent.offsets[0]=add_string(line.gettoken_str(2));
@ -3287,6 +3292,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line, FILE *fp, const char
#else//!NSIS_SUPPORT_INIFILES
case TOK_DELETEINISEC:
case TOK_DELETEINISTR:
case TOK_FLUSHINI:
case TOK_WRITEINISTR:
case TOK_READINISTR:
ERROR_MSG("Error: %s specified, NSIS_SUPPORT_INIFILES not defined.\n", line.gettoken_str(0));