Display a "plugin not found" error message when a invalid command looks like a plugin call.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6541 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2014-08-21 13:15:07 +00:00
parent 5ae69eb9cc
commit d42a4f16a6
5 changed files with 34 additions and 15 deletions

View file

@ -177,7 +177,7 @@ class CEXEBuild {
bool is_ppbranch_token(TCHAR *s);
bool is_pp_token(int tkid);
bool is_unsafe_pp_token(int tkid);
int get_commandtoken(TCHAR *s, int *np, int *op, int *pos);
int get_commandtoken(const TCHAR *s, int *np, int *op, int *pos);
const TCHAR* get_commandtoken_name(int tok);
/**
@ -186,7 +186,7 @@ class CEXEBuild {
* @return TP_FUNC, TP_SEC, TP_PAGEEX, TP_GLOBAL.
*/
int GetCurrentTokenPlace();
int IsTokenPlacedRight(int pos, TCHAR *tok);
int IsTokenPlacedRight(int pos, const TCHAR *tok);
// script.cpp
#ifdef NSIS_SUPPORT_STANDARD_PREDEFINES