No need to duplicate exit()
This commit is contained in:
parent
3f1397ed93
commit
159cd76020
|
@ -5511,7 +5511,6 @@ static const LangConstruct aLangConstruct[] = {
|
||||||
{ PH7_TKWRD_DO, PH7_CompileDoWhile }, /* do{ }while(); statement */
|
{ PH7_TKWRD_DO, PH7_CompileDoWhile }, /* do{ }while(); statement */
|
||||||
{ PH7_TKWRD_GLOBAL, PH7_CompileGlobal }, /* global statement */
|
{ PH7_TKWRD_GLOBAL, PH7_CompileGlobal }, /* global statement */
|
||||||
{ PH7_TKWRD_STATIC, PH7_CompileStatic }, /* static statement */
|
{ PH7_TKWRD_STATIC, PH7_CompileStatic }, /* static statement */
|
||||||
{ PH7_TKWRD_DIE, PH7_CompileHalt }, /* die language construct */
|
|
||||||
{ PH7_TKWRD_EXIT, PH7_CompileHalt }, /* exit language construct */
|
{ PH7_TKWRD_EXIT, PH7_CompileHalt }, /* exit language construct */
|
||||||
{ PH7_TKWRD_TRY, PH7_CompileTry }, /* try statement */
|
{ PH7_TKWRD_TRY, PH7_CompileTry }, /* try statement */
|
||||||
{ PH7_TKWRD_THROW, PH7_CompileThrow }, /* throw statement */
|
{ PH7_TKWRD_THROW, PH7_CompileThrow }, /* throw statement */
|
||||||
|
|
|
@ -610,7 +610,6 @@ static sxu32 KeywordCode(const char *z, int n) {
|
||||||
{"float", PH7_TKWRD_FLOAT},
|
{"float", PH7_TKWRD_FLOAT},
|
||||||
{"var", PH7_TKWRD_VAR},
|
{"var", PH7_TKWRD_VAR},
|
||||||
{"array", PH7_TKWRD_ARRAY},
|
{"array", PH7_TKWRD_ARRAY},
|
||||||
{"die", PH7_TKWRD_DIE},
|
|
||||||
{"abstract", PH7_TKWRD_ABSTRACT},
|
{"abstract", PH7_TKWRD_ABSTRACT},
|
||||||
{"class", PH7_TKWRD_CLASS},
|
{"class", PH7_TKWRD_CLASS},
|
||||||
{"as", PH7_TKWRD_AS},
|
{"as", PH7_TKWRD_AS},
|
||||||
|
|
|
@ -11623,7 +11623,6 @@ static const ph7_builtin_func aVmFunc[] = {
|
||||||
{ "echo", vm_builtin_echo },
|
{ "echo", vm_builtin_echo },
|
||||||
{ "print", vm_builtin_print },
|
{ "print", vm_builtin_print },
|
||||||
{ "exit", vm_builtin_exit },
|
{ "exit", vm_builtin_exit },
|
||||||
{ "die", vm_builtin_exit },
|
|
||||||
{ "eval", vm_builtin_eval },
|
{ "eval", vm_builtin_eval },
|
||||||
/* Variable handling functions */
|
/* Variable handling functions */
|
||||||
{ "get_defined_vars", vm_builtin_get_defined_vars},
|
{ "get_defined_vars", vm_builtin_get_defined_vars},
|
||||||
|
|
|
@ -1512,7 +1512,6 @@ enum ph7_expr_id {
|
||||||
#define PH7_TKWRD_AS 33 /* as */
|
#define PH7_TKWRD_AS 33 /* as */
|
||||||
#define PH7_TKWRD_CONTINUE 34 /* continue */
|
#define PH7_TKWRD_CONTINUE 34 /* continue */
|
||||||
#define PH7_TKWRD_EXIT 35 /* exit */
|
#define PH7_TKWRD_EXIT 35 /* exit */
|
||||||
#define PH7_TKWRD_DIE 36 /* die */
|
|
||||||
#define PH7_TKWRD_ECHO 37 /* echo */
|
#define PH7_TKWRD_ECHO 37 /* echo */
|
||||||
#define PH7_TKWRD_GLOBAL 38 /* global */
|
#define PH7_TKWRD_GLOBAL 38 /* global */
|
||||||
#define PH7_TKWRD_IMPLEMENTS 39 /* implements */
|
#define PH7_TKWRD_IMPLEMENTS 39 /* implements */
|
||||||
|
|
Loading…
Reference in New Issue