diff options
author | Eugene Sandulenko | 2016-07-30 20:42:56 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-03 23:40:36 +0200 |
commit | ba3cf6181c06ddcd543db277d1fe5a6d4506cad7 (patch) | |
tree | 479a8298d692389d7eeb0caed7ee28f31d73e10a /engines/director/lingo/lingo.cpp | |
parent | 7fd25e98f1a689733b6bad449618ebe8f3c91546 (diff) | |
download | scummvm-rg350-ba3cf6181c06ddcd543db277d1fe5a6d4506cad7.tar.gz scummvm-rg350-ba3cf6181c06ddcd543db277d1fe5a6d4506cad7.tar.bz2 scummvm-rg350-ba3cf6181c06ddcd543db277d1fe5a6d4506cad7.zip |
DIRECTOR: Lingo: Implemented ilk() function
Diffstat (limited to 'engines/director/lingo/lingo.cpp')
-rw-r--r-- | engines/director/lingo/lingo.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp index 441cd27972..0bb43092f3 100644 --- a/engines/director/lingo/lingo.cpp +++ b/engines/director/lingo/lingo.cpp @@ -290,22 +290,24 @@ Common::String *Datum::toString() { return u.s; } -const char *Datum::type2str() { +const char *Datum::type2str(bool isk) { static char res[20]; - switch (type) { + switch (isk ? u.i : type) { case INT: - return "INT"; + return isk ? "#integer" : "INT"; case FLOAT: - return "FLOAT"; + return isk ? "#float" : "FLOAT"; case STRING: - return "STRING"; + return isk ? "#string" : "STRING"; case CASTREF: return "CASTREF"; case VOID: - return "VOID"; + return isk ? "#void" : "VOID"; case POINT: - return "POINT"; + return isk ? "#point" : "POINT"; + case SYMBOL: + return isk ? "#symbol" : "SYMBOL"; default: snprintf(res, 20, "-- (%d) --", type); return res; |