Menu

#117 new compiler predefines

closed-accepted
NSIS (71)
5
2007-01-27
2007-01-25
No

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.

Discussion

  • Anonymous

    Anonymous - 2007-01-25

    patch for build.cpp, build.h, tokens.cpp, tokens.h

     
  • Amir Szekely

    Amir Szekely - 2007-01-27
    • status: open --> closed-accepted
     
  • Amir Szekely

    Amir Szekely - 2007-01-27

    Logged In: YES
    user_id=584402
    Originator: NO

    Thanks, applied.

     
  • Anonymous

    Anonymous - 2007-03-12

    followup patch for build.cpp, preprocessor.nsi

     
  • Anonymous

    Anonymous - 2007-03-12

    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

     
  • Amir Szekely

    Amir Szekely - 2007-03-18

    Logged In: YES
    user_id=584402
    Originator: NO

    Thanks, applied.

     

Log in to post a comment.