Skip to content

Commit

Permalink
DIRECTOR: Lingo: Added stub for handling symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Jan 10, 2017
1 parent 82ae4e0 commit 2c69ffc
Show file tree
Hide file tree
Showing 6 changed files with 863 additions and 826 deletions.
11 changes: 11 additions & 0 deletions engines/director/lingo/lingo-code.cpp
Expand Up @@ -60,6 +60,7 @@ static struct FuncDescr {
{ Lingo::c_voidpush, "c_voidpush", "" },
{ Lingo::c_fconstpush, "c_fconstpush", "f" },
{ Lingo::c_stringpush, "c_stringpush", "s" },
{ Lingo::c_symbolpush, "c_symbolpush","s" },
{ Lingo::c_varpush, "c_varpush", "s" },
{ Lingo::c_assign, "c_assign", "" },
{ Lingo::c_eval, "c_eval", "s" },
Expand Down Expand Up @@ -212,6 +213,16 @@ void Lingo::c_stringpush() {
g_lingo->push(Datum(new Common::String(s)));
}

void Lingo::c_symbolpush() {
char *s = (char *)&(*g_lingo->_currentScript)[g_lingo->_pc];
g_lingo->_pc += g_lingo->calcStringAlignment(s);

warning("STUB: c_symbolpush()");

// TODO: FIXME: Must push symbol instead of string
g_lingo->push(Datum(new Common::String(s)));
}

void Lingo::c_varpush() {
char *name = (char *)&(*g_lingo->_currentScript)[g_lingo->_pc];
Datum d;
Expand Down

0 comments on commit 2c69ffc

Please sign in to comment.