Browse Source

Cleanup after switching from 'parent' constant to '$parent' variable.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
d0840d7eea
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
3 changed files with 2 additions and 4 deletions
  1. +2
    -2
      engine/compiler.c
  2. +0
    -1
      engine/lexer.c
  3. +0
    -1
      include/ph7int.h

+ 2
- 2
engine/compiler.c View File

@ -4878,8 +4878,8 @@ static ProcLangConstruct PH7_GenStateGetStatementHandler(
*/
static int PH7_IsLangConstruct(sxu32 nKeywordID) {
if(nKeywordID == PH7_KEYWORD_IMPORT || nKeywordID == PH7_KEYWORD_INCLUDE || nKeywordID == PH7_KEYWORD_REQUIRE
|| nKeywordID == PH7_KEYWORD_EVAL || nKeywordID == PH7_KEYWORD_PARENT
|| nKeywordID == PH7_KEYWORD_STATIC || nKeywordID == PH7_KEYWORD_NEW || nKeywordID == PH7_KEYWORD_CLONE) {
|| nKeywordID == PH7_KEYWORD_EVAL || nKeywordID == PH7_KEYWORD_STATIC
|| nKeywordID == PH7_KEYWORD_NEW || nKeywordID == PH7_KEYWORD_CLONE) {
return TRUE;
}
/* Not a language construct */

+ 0
- 1
engine/lexer.c View File

@ -532,7 +532,6 @@ static sxu32 KeywordCode(const char *z, int n) {
{"interface", PH7_KEYWORD_INTERFACE},
{"namespace", PH7_KEYWORD_NAMESPACE},
{"new", PH7_KEYWORD_NEW},
{"parent", PH7_KEYWORD_PARENT},
{"throw", PH7_KEYWORD_THROW},
{"try", PH7_KEYWORD_TRY},
{"using", PH7_KEYWORD_USING},

+ 0
- 1
include/ph7int.h View File

@ -1589,7 +1589,6 @@ enum ph7_expr_id {
#define PH7_KEYWORD_IMPLEMENTS 39 /* implements */
#define PH7_KEYWORD_INCLUDE 41 /* include */
#define PH7_KEYWORD_INSTANCEOF 0x400 /* instanceof: MUST BE A POWER OF TWO */
#define PH7_KEYWORD_PARENT 44 /* parent */
#define PH7_KEYWORD_PRIVATE 45 /* private */
#define PH7_KEYWORD_FOR 48 /* for */
#define PH7_KEYWORD_FOREACH 49 /* foreach */

Loading…
Cancel
Save