Browse Source

No need to duplicate exit()

pull/44/head
Rafal Kupiec 3 years ago
parent
commit
159cd76020
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
  1. 1
      engine/compiler.c
  2. 1
      engine/lexer.c
  3. 1
      engine/vm.c
  4. 1
      include/ph7int.h

1
engine/compiler.c

@ -5511,7 +5511,6 @@ static const LangConstruct aLangConstruct[] = {
{ PH7_TKWRD_DO, PH7_CompileDoWhile }, /* do{ }while(); statement */
{ PH7_TKWRD_GLOBAL, PH7_CompileGlobal }, /* global 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_TRY, PH7_CompileTry }, /* try statement */
{ PH7_TKWRD_THROW, PH7_CompileThrow }, /* throw statement */

1
engine/lexer.c

@ -610,7 +610,6 @@ static sxu32 KeywordCode(const char *z, int n) {
{"float", PH7_TKWRD_FLOAT},
{"var", PH7_TKWRD_VAR},
{"array", PH7_TKWRD_ARRAY},
{"die", PH7_TKWRD_DIE},
{"abstract", PH7_TKWRD_ABSTRACT},
{"class", PH7_TKWRD_CLASS},
{"as", PH7_TKWRD_AS},

1
engine/vm.c

@ -11623,7 +11623,6 @@ static const ph7_builtin_func aVmFunc[] = {
{ "echo", vm_builtin_echo },
{ "print", vm_builtin_print },
{ "exit", vm_builtin_exit },
{ "die", vm_builtin_exit },
{ "eval", vm_builtin_eval },
/* Variable handling functions */
{ "get_defined_vars", vm_builtin_get_defined_vars},

1
include/ph7int.h

@ -1512,7 +1512,6 @@ enum ph7_expr_id {
#define PH7_TKWRD_AS 33 /* as */
#define PH7_TKWRD_CONTINUE 34 /* continue */
#define PH7_TKWRD_EXIT 35 /* exit */
#define PH7_TKWRD_DIE 36 /* die */
#define PH7_TKWRD_ECHO 37 /* echo */
#define PH7_TKWRD_GLOBAL 38 /* global */
#define PH7_TKWRD_IMPLEMENTS 39 /* implements */

Loading…
Cancel
Save