summaryrefslogtreecommitdiff
path: root/source4/lib/ejs/ejs.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-06-03 07:56:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:26 -0500
commit65d685c722ecf51bf84bb24af66c1f30c33b3b96 (patch)
treec8879021519c2a2d28be761e8cea4393e5b33d04 /source4/lib/ejs/ejs.c
parent0253adcab3157ec73cc96ad74b19faa2c87e067a (diff)
downloadsamba-65d685c722ecf51bf84bb24af66c1f30c33b3b96.tar.gz
samba-65d685c722ecf51bf84bb24af66c1f30c33b3b96.tar.bz2
samba-65d685c722ecf51bf84bb24af66c1f30c33b3b96.zip
r7214: Undo my interpreter patch. Tridge thought of a much better way to do it
that doesn't involve any changes to ejs at all. (This used to be commit 7b49711ecb87e8618be5ae934ffed5995408b748)
Diffstat (limited to 'source4/lib/ejs/ejs.c')
-rw-r--r--source4/lib/ejs/ejs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/lib/ejs/ejs.c b/source4/lib/ejs/ejs.c
index d0eaf6e389..41af795370 100644
--- a/source4/lib/ejs/ejs.c
+++ b/source4/lib/ejs/ejs.c
@@ -418,10 +418,8 @@ int ejsEvalScript(EjsId eid, char *script, MprVar *vp, char **emsg)
endlessLoopTest = NULL;
ep->exitStatus = 0;
- ejsParse(ep, EJS_STATE_BEGIN, EJS_FLAGS_EXE); /* Skip over #! */
-
do {
- state = ejsParse(ep, EJS_STATE_STMT, EJS_FLAGS_EXE);
+ state = ejsParse(ep, EJS_STATE_BEGIN, EJS_FLAGS_EXE);
if (state == EJS_STATE_RET) {
state = EJS_STATE_EOF;