summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/regex.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/regex.c b/plugins/regex.c
index b56515c..fb63986 100644
--- a/plugins/regex.c
+++ b/plugins/regex.c
@@ -5,7 +5,7 @@
#include <stdlib.h>
#include <string.h>
-static void emit_match_logic(const char *pattern, FILE *out, int *label_counter);
+static void emit_match_logic(const char *pattern, FILE *out);
void regex_transpile(const char *input_body, const ZApi *api)
{
@@ -36,8 +36,7 @@ void regex_transpile(const char *input_body, const ZApi *api)
fprintf(target, " if (!text) return 0;\n");
fprintf(target, " const char *c = text;\n");
- int label_id = 0;
- emit_match_logic(pattern, target, &label_id);
+ emit_match_logic(pattern, target);
fprintf(target, " return 1;\n");
fprintf(target, "}\n");
@@ -47,7 +46,7 @@ void regex_transpile(const char *input_body, const ZApi *api)
free(pattern);
}
-static void emit_match_logic(const char *pattern, FILE *out, int * /*label_counter*/)
+static void emit_match_logic(const char *pattern, FILE *out)
{
const char *c = pattern;