Revert "Implement INCLUDE_ONCE directive (#1481)"

This reverts commit 5f07095f6d.
This commit is contained in:
Rangi42
2024-09-08 11:30:31 -04:00
parent 5f07095f6d
commit 8cd0e66297
8 changed files with 8 additions and 62 deletions

View File

@@ -236,7 +236,6 @@
%token POP_IF "IF"
%token POP_INCBIN "INCBIN"
%token POP_INCLUDE "INCLUDE"
%token POP_INCLUDE_ONCE "INCLUDE_ONCE"
%token POP_LOAD "LOAD"
%token POP_MACRO "MACRO"
%token POP_NEWCHARMAP "NEWCHARMAP"
@@ -465,7 +464,6 @@ line_directive:
| for
| break
| include
| include_once
| if
// It's important that all of these require being at line start for `skipIfBlock`
| elif
@@ -1142,15 +1140,7 @@ export_def:
include:
label POP_INCLUDE string endofline {
fstk_RunInclude($3, INCLUDE_NORMAL);
if (failedOnMissingInclude)
YYACCEPT;
}
;
include_once:
label POP_INCLUDE_ONCE string endofline {
fstk_RunInclude($3, INCLUDE_ONCE);
fstk_RunInclude($3, false);
if (failedOnMissingInclude)
YYACCEPT;
}