From f6759074ad52582045f22e83819b823540123e74 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Wed, 23 Jul 2008 19:19:10 +0000 Subject: [PATCH] support for "var = val" statements git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2201 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/command.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/src/command.cpp b/source/src/command.cpp index c6bca904..1e4aa175 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -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) {