this patch is the follow up of #1639869
(http://sourceforge.net/tracker/index.php?func=detail&aid=1639869&group_id=22049&atid=373087).
instead of additions to the !if command, it now adds some new compiler predefines:
${__UNINSTALL__} is defined in any section, pageex or function that belongs to the uninstaller and has no value.
${__SECTION__} is defined in any section(group) and has its name as value. (without un. prefix)
${__FUNCTION__} is defined in any function and has its name as value. (without un. prefix)
${__PAGEEX__} is defined in any pageex block and has no value.
${__GLOBAL__} is defined outside any pageex/function/section block and has no value.
hope you enjoy it :)
patch notes:
* refactors tokens.cpp a bit
* moves TP_* defines from tokens.h to build.h
* diff'ed against NSIS cvs from january 25, 2007
* affects build.cpp, build.h, tokens.cpp, tokens.h
* no documentation or test files included.
patch for build.cpp, build.h, tokens.cpp, tokens.h
Logged In: YES
user_id=584402
Originator: NO
Thanks, applied.
followup patch for build.cpp, preprocessor.nsi
Logged In: YES
user_id=970495
Originator: YES
follow up patch added:
PageEx now defines __PAGEEX__ with name of current page as used for PageEx' argument
(custom, directory, instfiles, ...)
patch includes source and test files, no documentation (plz update for yourself ;))
notes:
* diff'ed against NSIS cvs from march 12, 2007
* affects build.cpp, preprocessor.nsi
* no documentation files included
File Added: compiler_code_type_predefines_followup.patch
Logged In: YES
user_id=584402
Originator: NO
Thanks, applied.