diff options
author | Eugene Sandulenko | 2016-07-07 19:35:45 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | 6636c9006bf9e274f6d7e85556f3426e4b3594df (patch) | |
tree | 8fb67af9f9bf60939d2d55b805209bd7ab6b6d5e /engines/director/lingo/lingo.cpp | |
parent | 1745917752f5ec85f8a3b2b65dc1b2321aa576ab (diff) | |
download | scummvm-rg350-6636c9006bf9e274f6d7e85556f3426e4b3594df.tar.gz scummvm-rg350-6636c9006bf9e274f6d7e85556f3426e4b3594df.tar.bz2 scummvm-rg350-6636c9006bf9e274f6d7e85556f3426e4b3594df.zip |
DIRECTOR: Lingo: Provide error position in the file
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index b1befd9f02..1ab0e89dd6 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -89,6 +89,8 @@ Lingo::Lingo(DirectorEngine *vm) : _vm(vm) { _returning = false; _indef = false; + _linenumber = _colnumber = 0; + warning("Lingo Inited"); } @@ -108,6 +110,8 @@ void Lingo::addCode(Common::String code, ScriptType type, uint16 id) { _currentScriptType = type; _scripts[type][id] = _currentScript; + _linenumber = _colnumber = 1; + // macros have conflicting grammar. Thus we ease life for the parser. if (code.contains("\nmacro ")) { const char *begin = strstr(code.c_str(), "\nmacro ") + 1; |