more clean-up:

* removed ResetInputScript()
 * don't edit g_sdata.script for CreateProcess
 * use SetScript in LoadMRUFile
 * proper and clear allocation of g_sdata.compile_command in CompileNSISScript()


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5047 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-04-10 21:07:21 +00:00
parent 3a657559b0
commit 845566790d
3 changed files with 35 additions and 30 deletions

View file

@ -151,6 +151,7 @@ BOOL CALLBACK AboutProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
BOOL CALLBACK SettingsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
BOOL CALLBACK SymbolSetProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
BOOL CALLBACK CompressorProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam);
void SetScript(const char *script, bool clearArgs = true);
void CompileNSISScript();
char* BuildSymbols();
void SetCompressor(NCOMPRESSOR);
@ -165,6 +166,7 @@ void SaveMRUList();
typedef struct NSISScriptData {
char *script;
char *script_cmd_args;
char *compile_command;
char *output_exe;
char *input_script;
char *branding;
@ -174,7 +176,6 @@ typedef struct NSISScriptData {
BOOL userSelectCompressor;
DWORD logLength;
DWORD warnings;
BOOL appended;
HINSTANCE hInstance;
HWND hwnd;
HMENU menu;