#include <sys/types.h>
#include <regex.h>
-#pragma GCC visibility push(hidden)
-
/* xutil.c */
void *
xcalloc (size_t nmemb, size_t size);
char *
xstrndup (const char *s, size_t n);
-void
+/* Returns 0 for successful compilation, 1 otherwise */
+int
xregcomp (regex_t *preg, const char *regex, int cflags);
int
xregexec (const regex_t *preg, const char *string,
size_t nmatch, regmatch_t pmatch[], int eflags);
-#pragma GCC visibility pop
-
#endif