[fix] moving constant

This commit is contained in:
Al
2015-05-18 14:25:21 -04:00
parent eecee39904
commit 9d309ca9d3
2 changed files with 2 additions and 3 deletions

View File

@@ -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);

View File

@@ -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) {