Module: wine Branch: master Commit: 8037b130784f8a2a1d6052c38f72c532c2dcbd32 URL: https://source.winehq.org/git/wine.git/?a=commit;h=8037b130784f8a2a1d6052c38...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Tue Sep 17 15:54:31 2019 +0300
vbscript: Add support for the SCRIPTTEXT_ISEXPRESSION flag in ParseScriptText.
To simplify the amount of special cases both in ParseScriptText and ParseProcedureText, add a new pseudo statement and opcode to return the expression and value at the top of the stack, respectively. Script texts that have this flag will be parsed specially as a single expression with such a statement at the end.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/vbscript/compile.c | 22 ++++++++++++++++++++-- dlls/vbscript/interp.c | 26 ++++++++++++++++++++++++-- dlls/vbscript/lex.c | 6 ++++++ dlls/vbscript/parse.h | 10 ++++++++-- dlls/vbscript/parser.y | 31 ++++++++++++++++++++++++++++--- dlls/vbscript/vbscript.c | 14 +++++++------- dlls/vbscript/vbscript.h | 3 ++- 7 files changed, 95 insertions(+), 17 deletions(-)
Diff: https://source.winehq.org/git/wine.git/?a=commitdiff;h=8037b130784f8a2a1d605...