summaryrefslogtreecommitdiffstats
path: root/include/regex.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-26 04:25:23 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-26 04:25:23 +0000
commit822415c917c41d4724e1feb5aa9330a91c5e70d9 (patch)
tree7524b4a32f4a07f66410d8fbaeaf43ed7da6c41a /include/regex.h
parent54e0a54d94c67a2d6b74e0a491920b56e1d23223 (diff)
downloaduClibc-alpine-822415c917c41d4724e1feb5aa9330a91c5e70d9.tar.bz2
uClibc-alpine-822415c917c41d4724e1feb5aa9330a91c5e70d9.tar.xz
regex: drop __<funcname> 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
Diffstat (limited to 'include/regex.h')
-rw-r--r--include/regex.h14
1 files changed, 7 insertions, 7 deletions
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 <features.h>
+
#include <sys/types.h>
-/* Allow the use in C++ code. */
-#ifdef __cplusplus
-extern "C" {
-#endif
+__BEGIN_DECLS
/* POSIX says that <sys/types.h> must be included (by the caller) before
<regex.h>. */
@@ -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 */