support for "var = val" statements

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2201 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-07-23 19:19:10 +00:00
parent 20cf52b15f
commit f6759074ad
+7
View File
@@ -265,6 +265,13 @@ char *executeret(const char *p) // all evaluation hap
DELETEA(retval);
if(w[1][0]=='=' && !w[1][1])
{
swap(w[1], w[0]);
DELETEA(w[0]);
c = (char *)"alias";
}
ident *id = idents->access(c);
if(!id)
{