diff options
author | Eugene Sandulenko | 2019-12-20 10:41:32 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-12-20 10:41:32 +0100 |
commit | c5c8f3458bc6428640f4e8eefd12a25c9d44a55d (patch) | |
tree | 07a741243fec0fb54775084111f07d81ce2384dd /engines/director/lingo | |
parent | b21632c835a29a0813bae97a062401f7f96be8e8 (diff) | |
download | scummvm-rg350-c5c8f3458bc6428640f4e8eefd12a25c9d44a55d.tar.gz scummvm-rg350-c5c8f3458bc6428640f4e8eefd12a25c9d44a55d.tar.bz2 scummvm-rg350-c5c8f3458bc6428640f4e8eefd12a25c9d44a55d.zip |
DIRECTOR: LINGO: Improved debug output
Diffstat (limited to 'engines/director/lingo')
-rw-r--r-- | engines/director/lingo/lingo-lex.cpp | 12 | ||||
-rw-r--r-- | engines/director/lingo/lingo-lex.l | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp index 03c329474f..336cfdd40c 100644 --- a/engines/director/lingo/lingo-lex.cpp +++ b/engines/director/lingo/lingo-lex.cpp @@ -1387,11 +1387,11 @@ YY_RULE_SETUP field = Common::String::format("%d%s", g_lingo->_theEntities[ptr]->entity, field.c_str()); if (!g_lingo->_theEntityFields.contains(field)) { - error("Unhandled the field %s", ptr); + error("LEXER: Unhandled the field %s", ptr); } if (g_lingo->_theEntityFields[field]->entity != g_lingo->_theEntities[ptr]->entity) - error("Unsupported field '%s' for entity '%s'", field.c_str(), ptr); + error("LEXER: Unsupported field '%s' for entity '%s'", field.c_str(), ptr); yylval.e[0] = g_lingo->_theEntities[ptr]->entity; yylval.e[1] = g_lingo->_theEntityFields[field]->field; @@ -1402,7 +1402,7 @@ YY_RULE_SETUP return THEENTITY; } - warning("Unhandled the entity %s", ptr); + warning("LEXER: Unhandled the entity %s", ptr); } YY_BREAK case 52: @@ -1425,11 +1425,11 @@ YY_RULE_SETUP field = Common::String::format("%d%s", g_lingo->_theEntities[ptr]->entity, field.c_str()); if (!g_lingo->_theEntityFields.contains(field)) { - error("Unhandled the field %s", ptr); + error("LEXER: Unhandled the field %s", ptr); } if (g_lingo->_theEntityFields[field]->entity != g_lingo->_theEntities[ptr]->entity) - error("Unsupported field '%s' for entity '%s'", field.c_str(), ptr); + error("LEXER: Unsupported field '%s' for entity '%s'", field.c_str(), ptr); yylval.e[0] = g_lingo->_theEntities[ptr]->entity; yylval.e[1] = g_lingo->_theEntityFields[field]->field; @@ -1460,7 +1460,7 @@ YY_RULE_SETUP return THEENTITY; } - warning("Unhandled the entity %s", ptr); + warning("LEXER: Unhandled the entity %s", ptr); } YY_BREAK case 54: diff --git a/engines/director/lingo/lingo-lex.l b/engines/director/lingo/lingo-lex.l index 33829b699b..30b3908b06 100644 --- a/engines/director/lingo/lingo-lex.l +++ b/engines/director/lingo/lingo-lex.l @@ -206,11 +206,11 @@ whitespace [\t ] field = Common::String::format("%d%s", g_lingo->_theEntities[ptr]->entity, field.c_str()); if (!g_lingo->_theEntityFields.contains(field)) { - error("Unhandled the field %s", ptr); + error("LEXER: Unhandled the field %s", ptr); } if (g_lingo->_theEntityFields[field]->entity != g_lingo->_theEntities[ptr]->entity) - error("Unsupported field '%s' for entity '%s'", field.c_str(), ptr); + error("LEXER: Unsupported field '%s' for entity '%s'", field.c_str(), ptr); yylval.e[0] = g_lingo->_theEntities[ptr]->entity; yylval.e[1] = g_lingo->_theEntityFields[field]->field; @@ -221,7 +221,7 @@ whitespace [\t ] return THEENTITY; } - warning("Unhandled the entity %s", ptr); + warning("LEXER: Unhandled the entity %s", ptr); } (?i:the[ \t]+[[:alpha:]]+[ \t+](date|time)) { count(); @@ -240,11 +240,11 @@ whitespace [\t ] field = Common::String::format("%d%s", g_lingo->_theEntities[ptr]->entity, field.c_str()); if (!g_lingo->_theEntityFields.contains(field)) { - error("Unhandled the field %s", ptr); + error("LEXER: Unhandled the field %s", ptr); } if (g_lingo->_theEntityFields[field]->entity != g_lingo->_theEntities[ptr]->entity) - error("Unsupported field '%s' for entity '%s'", field.c_str(), ptr); + error("LEXER: Unsupported field '%s' for entity '%s'", field.c_str(), ptr); yylval.e[0] = g_lingo->_theEntities[ptr]->entity; yylval.e[1] = g_lingo->_theEntityFields[field]->field; @@ -271,7 +271,7 @@ whitespace [\t ] return THEENTITY; } - warning("Unhandled the entity %s", ptr); + warning("LEXER: Unhandled the entity %s", ptr); } (?i:then) { count(); return tTHEN; } (?i:to) { count(); return tTO; } |