Preprocessor code in dead blocks need to be ignored even if it is invalid

Test case:
!macro dummy p1
!macroend
!if 0 ; The next line does not properly quote its string but it is not !else nor !endif so it has to be ignored
!insertmacro dummy "bar'
!endif



git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6632 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2015-11-05 04:46:14 +00:00
parent 2a341bc918
commit ce249976f7
4 changed files with 26 additions and 13 deletions

View file

@ -176,7 +176,7 @@ class CEXEBuild {
void update_exehead(const unsigned char *new_exehead, size_t new_size);
// tokens.cpp
bool is_ppbranch_token(TCHAR *s);
bool is_ppbranch_token(const TCHAR *s);
bool is_pp_token(int tkid);
bool is_unsafe_pp_token(int tkid);
int get_commandtoken(const TCHAR *s, int *np, int *op, int *pos);