X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fregex%2Ftre.h;h=9aae851f617af2a577499ed554e3d43ed83764e4;hb=8cf87b3027009c0acac591d9ae80262dc25daccf;hp=d6e1c2a7c2d78e14cbc586240ac5c43e996a8f00;hpb=58bf74850f5f7286dc290aa22ad982f50620a1c8;p=musl diff --git a/src/regex/tre.h b/src/regex/tre.h index d6e1c2a7..9aae851f 100644 --- a/src/regex/tre.h +++ b/src/regex/tre.h @@ -50,7 +50,7 @@ typedef wchar_t tre_char_t; /* Wide characters. */ typedef wint_t tre_cint_t; -#define TRE_CHAR_MAX WCHAR_MAX +#define TRE_CHAR_MAX 0x10ffff #define tre_isalnum iswalnum #define tre_isalpha iswalpha @@ -167,7 +167,6 @@ struct tnfa { int cflags; int have_backrefs; int have_approx; - int params_depth; }; /* from tre-mem.h: */ @@ -192,9 +191,9 @@ typedef struct tre_mem_struct { #define tre_mem_alloc_impl __tre_mem_alloc_impl #define tre_mem_destroy __tre_mem_destroy -tre_mem_t tre_mem_new_impl(int provided, void *provided_block); -void *tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block, - int zero, size_t size); +hidden tre_mem_t tre_mem_new_impl(int provided, void *provided_block); +hidden void *tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block, + int zero, size_t size); /* Returns a new memory allocator or NULL if out of memory. */ #define tre_mem_new() tre_mem_new_impl(0, NULL) @@ -223,7 +222,7 @@ void *tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block, /* Frees the memory allocator and all memory allocated with it. */ -void tre_mem_destroy(tre_mem_t mem); +hidden void tre_mem_destroy(tre_mem_t mem); #define xmalloc malloc #define xcalloc calloc