From b1364be7e271c5a080e29efcda209a190a82d6d9 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Thu, 4 May 2023 16:10:37 -0400 Subject: ansii c --- src/util/regex.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/util/regex.c') diff --git a/src/util/regex.c b/src/util/regex.c index 58b1f54..0e0dc52 100644 --- a/src/util/regex.c +++ b/src/util/regex.c @@ -39,7 +39,7 @@ #define MAX_CHAR_CLASS_LEN 40 /* Max length of character-class buffer in. */ -enum { UNUSED, DOT, BEGIN, END, QUESTIONMARK, STAR, PLUS, CHAR, CHAR_CLASS, INV_CHAR_CLASS, DIGIT, NOT_DIGIT, ALPHA, NOT_ALPHA, WHITESPACE, NOT_WHITESPACE, /* BRANCH */ }; +enum { UNUSED, DOT, BEGIN, END, QUESTIONMARK, STAR, PLUS, CHAR, CHAR_CLASS, INV_CHAR_CLASS, DIGIT, NOT_DIGIT, ALPHA, NOT_ALPHA, WHITESPACE, NOT_WHITESPACE}; typedef struct regex_t { @@ -199,7 +199,7 @@ re_t re_compile(const char* pattern) { if (ccl_bufidx >= MAX_CHAR_CLASS_LEN - 1) { - //fputs("exceeded internal buffer!\n", stderr); + /* fputs("exceeded internal buffer!\n", stderr); */ return 0; } if (pattern[i+1] == 0) /* incomplete pattern, missing non-zero char after '\\' */ @@ -210,7 +210,7 @@ re_t re_compile(const char* pattern) } else if (ccl_bufidx >= MAX_CHAR_CLASS_LEN) { - //fputs("exceeded internal buffer!\n", stderr); + /* fputs("exceeded internal buffer!\n", stderr); */ return 0; } ccl_buf[ccl_bufidx++] = pattern[i]; @@ -218,7 +218,7 @@ re_t re_compile(const char* pattern) if (ccl_bufidx >= MAX_CHAR_CLASS_LEN) { /* Catches cases such as [00000000000000000000000000000000000000][ */ - //fputs("exceeded internal buffer!\n", stderr); + /* fputs("exceeded internal buffer!\n", stderr); */ return 0; } /* Null-terminate string end */ -- cgit v1.2.3-freya