[fix] moving constant
This commit is contained in:
@@ -13,6 +13,8 @@ extern "C" {
|
||||
#include "utf8proc/utf8proc.h"
|
||||
#include "vector.h"
|
||||
|
||||
#define MAX_UTF8_CHAR_SIZE 4
|
||||
|
||||
// NOTE: this particular implementation works only for ASCII strings
|
||||
int string_compare_case_insensitive(const char *str1, const char *str2);
|
||||
int string_compare_n_case_insensitive(const char *str1, const char *str2, size_t len);
|
||||
|
||||
@@ -17,8 +17,6 @@ Only used once at setup/make time, not overly concerned with optimization
|
||||
|
||||
#include "utf8proc/utf8proc.h"
|
||||
|
||||
#define MAX_UTF8_CHAR_SIZE 4
|
||||
|
||||
string_tree_t *regex_string_tree(char *regex, size_t len) {
|
||||
uint8_t *char_ptr = (uint8_t *)regex;
|
||||
char last_ch = '\0';
|
||||
@@ -536,7 +534,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
log_debug("rule_key=%s\n", char_array_get_string(rule_key));
|
||||
|
||||
|
||||
size_t context_key_len;
|
||||
|
||||
if (num_context_strings == 0) {
|
||||
|
||||
Reference in New Issue
Block a user