aboutsummaryrefslogtreecommitdiff
path: root/jimregexp.h
diff options
context:
space:
mode:
Diffstat (limited to 'jimregexp.h')
-rw-r--r--jimregexp.h26
1 files changed, 9 insertions, 17 deletions
diff --git a/jimregexp.h b/jimregexp.h
index 79a87e5..b7598d4 100644
--- a/jimregexp.h
+++ b/jimregexp.h
@@ -1,27 +1,17 @@
#ifndef JIMREGEXP_H
#define JIMREGEXP_H
-#ifndef _JIMAUTOCONF_H
-#error Need jimautoconf.h
-#endif
-
-#if defined(HAVE_REGCOMP) && !defined(JIM_REGEXP)
-/* Use POSIX regex */
-#include <regex.h>
+/** regexp(3)-compatible regular expression implementation for Jim.
+ *
+ * See jimregexp.c for details
+ */
-#else
+#ifdef __cplusplus
+extern "C" {
+#endif
#include <stdlib.h>
-/*
- * Definitions etc. for regexp(3) routines.
- *
- * Caveat: this is V8 regexp(3) [actually, a reimplementation thereof],
- * not the System V one.
- *
- * 11/04/02 (seiwald) - const-ing for string literals
- */
-
typedef struct {
int rm_so;
int rm_eo;
@@ -112,6 +102,8 @@ int regexec(regex_t *preg, const char *string, size_t nmatch, regmatch_t pmat
size_t regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size);
void regfree(regex_t *preg);
+#ifdef __cplusplus
+}
#endif
#endif