summaryrefslogtreecommitdiff
path: root/include/regex.h
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-12-26 04:25:09 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-12-26 04:25:09 +0000
commit0ef4c6b76fcaca59014c4d00828d4079314c1700 (patch)
tree91ccf816a2b3cbe5d95b4501f1d859316d9b4a7b /include/regex.h
parent6eb4415eaaaa2a01209262555f0a115a46deeb36 (diff)
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 */