From: Jérémie Astor Date: Wed, 21 Jul 2021 16:53:57 +0000 (+0200) Subject: :art: Put memoize pragma inside function X-Git-Tag: nightly~529 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=33c0e670c03c8a03869933c44c20574f3a20243b;p=gwion.git :art: Put memoize pragma inside function --- diff --git a/src/emit/emit.c b/src/emit/emit.c index c10167d6..f1ee3c5e 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -2461,9 +2461,7 @@ ANN static m_bool emit_stmt_match(const Emitter emit, ANN static m_bool emit_stmt_pp(const Emitter emit, const struct Stmt_PP_ *stmt) { if (stmt->pp_type == ae_pp_pragma) { - if (!strncmp(stmt->data, "memoize", strlen("memoize"))) - emit->info->memoize = strtol(stmt->data + 7, NULL, 10); - else if (!strncmp(stmt->data, "unroll", strlen("unroll"))) + if (!strncmp(stmt->data, "unroll", strlen("unroll"))) emit->info->unroll = strtol(stmt->data + 6, NULL, 10); } else if (stmt->pp_type == ae_pp_include) emit->env->name = stmt->data;