diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-11 17:16:40 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-11 17:17:04 +0000 |
| commit | d2461482caf9e93d6e2bc7ff17567102f635211a (patch) | |
| tree | c302d1a2e7cb829b6ed006c905db0b8bbf45f57a /plugins/regex.c | |
| parent | f9b1992795142a073cd5dc1794350fc64e9aa695 (diff) | |
Fixed some things. Next thing will be tests.
Diffstat (limited to 'plugins/regex.c')
| -rw-r--r-- | plugins/regex.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/regex.c b/plugins/regex.c index d7a8a97..b56515c 100644 --- a/plugins/regex.c +++ b/plugins/regex.c @@ -1,9 +1,9 @@ #include "zprep_plugin.h" +#include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <ctype.h> static void emit_match_logic(const char *pattern, FILE *out, int *label_counter); @@ -111,7 +111,8 @@ static void emit_match_logic(const char *pattern, FILE *out, int * /*label_count } else { - fprintf(out, " if (*c == 0) return 0;\n"); // End of input for single char + fprintf(out, + " if (*c == 0) return 0;\n"); // End of input for single char } fprintf(out, " int match = 0;\n"); |
