diff options
Diffstat (limited to 'src/analysis/scan/exprs/item.c')
-rw-r--r-- | src/analysis/scan/exprs/item.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/analysis/scan/exprs/item.c b/src/analysis/scan/exprs/item.c index a6b22f0..b7cd970 100644 --- a/src/analysis/scan/exprs/item.c +++ b/src/analysis/scan/exprs/item.c @@ -53,7 +53,7 @@ static void g_scan_set_item_finalize(GScanSetItem *); /* Réduit une expression à une forme plus simple. */ -static ScanReductionState g_scan_set_item_reduce(GScanSetItem *, GScanContext *, GScanScope *, GScanExpression **); +static ScanReductionState g_scan_set_item_reduce(const GScanSetItem *, GScanContext *, GScanScope *, GScanExpression **); @@ -201,7 +201,8 @@ bool g_scan_set_item_create(GScanSetItem *item, GScanExpression *set, GScanExpre { bool result; /* Bilan à retourner */ - result = true; + result = g_scan_expression_create(G_SCAN_EXPRESSION(item), SRS_PENDING); + if (!result) goto exit; item->set = set; g_object_ref(G_OBJECT(set)); @@ -209,6 +210,8 @@ bool g_scan_set_item_create(GScanSetItem *item, GScanExpression *set, GScanExpre item->index = index; g_object_ref(G_OBJECT(index)); + exit: + return result; } @@ -235,7 +238,7 @@ bool g_scan_set_item_create(GScanSetItem *item, GScanExpression *set, GScanExpre * * ******************************************************************************/ -static ScanReductionState g_scan_set_item_reduce(GScanSetItem *expr, GScanContext *ctx, GScanScope *scope, GScanExpression **out) +static ScanReductionState g_scan_set_item_reduce(const GScanSetItem *expr, GScanContext *ctx, GScanScope *scope, GScanExpression **out) { ScanReductionState result; /* Etat synthétisé à retourner */ GScanExpression *new_set; /* Expression réduite (série) */ |