From 65d685c722ecf51bf84bb24af66c1f30c33b3b96 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 3 Jun 2005 07:56:41 +0000 Subject: 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) --- source4/lib/ejs/ejsLex.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'source4/lib/ejs/ejsLex.c') diff --git a/source4/lib/ejs/ejsLex.c b/source4/lib/ejs/ejsLex.c index 81f56b092e..b0d6483c2a 100644 --- a/source4/lib/ejs/ejsLex.c +++ b/source4/lib/ejs/ejsLex.c @@ -674,26 +674,6 @@ static int getLexicalToken(Ejs *ep, int state) inputPutback(ep, c); return EJS_TOK_NUMBER; - case '#': - if (ip->lineNumber == 1) { - if ((c = inputGetc(ep)) < 0) { - ejsError(ep, "Syntax Error"); - return EJS_TOK_ERR; - } - if (c != '!') { - ejsError(ep, "Syntax Error"); - return EJS_TOK_ERR; - } - while ((c = inputGetc(ep)) != -1) { - if (c == '\r' || c == '\n') - break; - tokenAddChar(ep, c); - } - return EJS_TOK_HASHBANG; - } - - /* Fall through to default handling */ - default: /* * Identifiers or a function names -- cgit