summaryrefslogtreecommitdiff
path: root/source4/lib/ejs/ejsInternal.h
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-06-03 07:47:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:26 -0500
commit0253adcab3157ec73cc96ad74b19faa2c87e067a (patch)
treeeee6899cbb8af08bfd16c68b0b740dbb4346bd06 /source4/lib/ejs/ejsInternal.h
parentb82d8c9928f7a39dbc552f99e1128e736d050622 (diff)
downloadsamba-0253adcab3157ec73cc96ad74b19faa2c87e067a.tar.gz
samba-0253adcab3157ec73cc96ad74b19faa2c87e067a.tar.bz2
samba-0253adcab3157ec73cc96ad74b19faa2c87e067a.zip
r7213: Add a small bit to the ejs parser to ignore a #!/path/to/interpreter
as the first line of the script. This allows smbscript to be used as an interpreter. (This used to be commit 875c8164096e7334de25cc57ac4b8bdc39b9c46b)
Diffstat (limited to 'source4/lib/ejs/ejsInternal.h')
-rw-r--r--source4/lib/ejs/ejsInternal.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/lib/ejs/ejsInternal.h b/source4/lib/ejs/ejsInternal.h
index 4d54c4e8c6..2f776b8b79 100644
--- a/source4/lib/ejs/ejsInternal.h
+++ b/source4/lib/ejs/ejsInternal.h
@@ -100,7 +100,7 @@ extern "C" {
#define EJS_TOK_IN 26 /* in */
#define EJS_TOK_FUNCTION 27 /* function */
#define EJS_TOK_NUMBER 28 /* Number */
-
+#define EJS_TOK_HASHBANG 29 /* #!/path/to/interpreter */
/*
* Expression operators
*/
@@ -150,8 +150,7 @@ extern "C" {
#define EJS_STATE_DEC 18 /* Declaration statement */
#define EJS_STATE_DEC_DONE 19
#define EJS_STATE_RET 20 /* Return statement */
-
-#define EJS_STATE_BEGIN EJS_STATE_STMT
+#define EJS_STATE_BEGIN 21 /* Start of script */
/*
* General parsing flags.