From 0ef4c6b76fcaca59014c4d00828d4079314c1700 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 26 Dec 2008 04:25:09 +0000 Subject: regex: drop __ aliases. remove much of unused code. shrink offset tables. disable "likely/unlikely" BE() macro. text data bss dec hex filename - 515032 2731 15424 533187 822c3 lib/libuClibc-0.9.30-svn.so + 515014 2731 15424 533169 822b1 lib/libuClibc-0.9.30-svn.so --- include/regex.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/regex.h b/include/regex.h index 5bd3088e5..1a2c7953d 100644 --- a/include/regex.h +++ b/include/regex.h @@ -22,12 +22,11 @@ #ifndef _REGEX_H #define _REGEX_H 1 +#include + #include -/* Allow the use in C++ code. */ -#ifdef __cplusplus -extern "C" { -#endif +__BEGIN_DECLS /* POSIX says that must be included (by the caller) before . */ @@ -464,6 +463,7 @@ extern const char *re_compile_pattern (const char *__pattern, size_t __length, accelerate searches. Return 0 if successful and -2 if was an internal error. */ extern int re_compile_fastmap (struct re_pattern_buffer *__buffer); +libc_hidden_proto(re_compile_fastmap) /* Search in the string STRING (with length LENGTH) for the pattern @@ -551,15 +551,15 @@ extern int regexec (const regex_t *__restrict __preg, const char *__restrict __string, size_t __nmatch, regmatch_t __pmatch[__restrict_arr], int __eflags); +libc_hidden_proto(regexec) extern size_t regerror (int __errcode, const regex_t *__restrict __preg, char *__restrict __errbuf, size_t __errbuf_size); extern void regfree (regex_t *__preg); +libc_hidden_proto(regfree) -#ifdef __cplusplus -} -#endif /* C++ */ +__END_DECLS #endif /* regex.h */ -- cgit v1.2.3