From cb67a24c99c9490074cd62a1fa8cd9e0ac45c948 Mon Sep 17 00:00:00 2001 From: krasimir Date: Tue, 23 May 2017 21:06:17 +0000 Subject: an optimized expression extraction in the lookup --- src/runtime/c/pgf/linearizer.c | 40 +--------------------------------------- 1 file changed, 1 insertion(+), 39 deletions(-) (limited to 'src/runtime/c/pgf/linearizer.c') diff --git a/src/runtime/c/pgf/linearizer.c b/src/runtime/c/pgf/linearizer.c index 30dab086d..68a2e1415 100644 --- a/src/runtime/c/pgf/linearizer.c +++ b/src/runtime/c/pgf/linearizer.c @@ -70,44 +70,6 @@ typedef struct { } PgfCnc; -// -// PgfCncTree -// - -typedef enum { - PGF_CNC_TREE_APP, - PGF_CNC_TREE_CHUNKS, - PGF_CNC_TREE_LIT, -} PgfCncTreeTag; - -typedef struct { - PgfCCat* ccat; - PgfCncFun* fun; - int fid; - - size_t n_vars; - PgfPrintContext* context; - - size_t n_args; - PgfCncTree args[]; -} PgfCncTreeApp; - -typedef struct { - size_t n_vars; - PgfPrintContext* context; - - size_t n_args; - PgfCncTree args[]; -} PgfCncTreeChunks; - -typedef struct { - size_t n_vars; - PgfPrintContext* context; - - int fid; - PgfLiteral lit; -} PgfCncTreeLit; - #ifdef PGF_LINEARIZER_DEBUG static void pgf_print_cnc_tree_vars(size_t n_vars, PgfPrintContext* context, @@ -128,7 +90,7 @@ pgf_print_cnc_tree_vars(size_t n_vars, PgfPrintContext* context, } } -static void +PGF_INTERNAL void pgf_print_cnc_tree(PgfCncTree ctree, GuOut* out, GuExn* err) { GuVariantInfo ti = gu_variant_open(ctree); -- cgit v1.2.3