mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
replace #if with #ifdef when checking for the optional bottom up filtering in the C runtime
This commit is contained in:
@@ -940,7 +940,7 @@ pgf_parsing_complete(PgfParseState* before, PgfParseState* after,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if PGF_LEFTCORNER_FILTER
|
#ifdef PGF_LEFTCORNER_FILTER
|
||||||
typedef struct {
|
typedef struct {
|
||||||
GuMapItor fn;
|
GuMapItor fn;
|
||||||
PgfConcr* concr;
|
PgfConcr* concr;
|
||||||
@@ -970,7 +970,7 @@ static bool
|
|||||||
pgf_parsing_bu_filter(PgfParseState* before, PgfParseState* after,
|
pgf_parsing_bu_filter(PgfParseState* before, PgfParseState* after,
|
||||||
PgfCCat* ccat, size_t lin_idx)
|
PgfCCat* ccat, size_t lin_idx)
|
||||||
{
|
{
|
||||||
#if PGF_LEFTCORNER_FILTER
|
#ifdef PGF_LEFTCORNER_FILTER
|
||||||
while (ccat->conts != NULL) // back to the original PgfCCat
|
while (ccat->conts != NULL) // back to the original PgfCCat
|
||||||
ccat = ccat->conts->ccat;
|
ccat = ccat->conts->ccat;
|
||||||
PgfCFCat cfc = {ccat, lin_idx};
|
PgfCFCat cfc = {ccat, lin_idx};
|
||||||
|
|||||||
Reference in New Issue
Block a user