diff options
author | Tim Potter <tpot@samba.org> | 2005-06-03 07:56:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:26 -0500 |
commit | 65d685c722ecf51bf84bb24af66c1f30c33b3b96 (patch) | |
tree | c8879021519c2a2d28be761e8cea4393e5b33d04 /source4/lib/ejs/ejsParser.c | |
parent | 0253adcab3157ec73cc96ad74b19faa2c87e067a (diff) | |
download | samba-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/ejsParser.c')
-rw-r--r-- | source4/lib/ejs/ejsParser.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/source4/lib/ejs/ejsParser.c b/source4/lib/ejs/ejsParser.c index 942b08272e..17fe0ce98a 100644 --- a/source4/lib/ejs/ejsParser.c +++ b/source4/lib/ejs/ejsParser.c @@ -67,7 +67,6 @@ static int parseId(Ejs *ep, int state, int flags, char **id, static int parseInc(Ejs *ep, int state, int flags); static int parseIf(Ejs *ep, int state, int flags, int *done); static int parseStmt(Ejs *ep, int state, int flags); -static int parseHashBang(Ejs *ep, int state, int flags); static void removeNewlines(Ejs *ep, int state); static void updateResult(Ejs *ep, int state, int flags, MprVar *vp); @@ -82,12 +81,6 @@ int ejsParse(Ejs *ep, int state, int flags) switch (state) { /* - * The very start of a script. - */ - case EJS_STATE_BEGIN: - state = parseHashBang(ep, state, flags); - break; - /* * Any statement, function arguments or conditional expressions */ case EJS_STATE_STMT: @@ -149,26 +142,6 @@ int ejsParse(Ejs *ep, int state, int flags) /******************************************************************************/ /* - * Parse a #!/path/to/interpreter line which we just throw away. - */ - -static int parseHashBang(Ejs *ep, int state, int flags) -{ - int tid; - - /* Look for #! */ - - tid = ejsLexGetToken(ep, state); - - if (tid != EJS_TOK_HASHBANG) { - ejsLexPutbackToken(ep, tid, ep->token); - } - - return EJS_STATE_STMT; -} - -/******************************************************************************/ -/* * Parse any statement including functions and simple relational operations */ |