summaryrefslogtreecommitdiffstats
path: root/Modules/regexpr.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-17 22:41:38 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-17 22:41:38 (GMT)
commit74fb3039972db03a97852eb5ded0c618e7c60d79 (patch)
tree9effea54e2b051d9f3cfbfd7d4686d31c3718155 /Modules/regexpr.h
parent9e18ec7dc9e8452035085ea34d8f4dda43c8baed (diff)
downloadcpython-74fb3039972db03a97852eb5ded0c618e7c60d79.zip
cpython-74fb3039972db03a97852eb5ded0c618e7c60d79.tar.gz
cpython-74fb3039972db03a97852eb5ded0c618e7c60d79.tar.bz2
Jeffrey's latests
Diffstat (limited to 'Modules/regexpr.h')
-rw-r--r--Modules/regexpr.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/regexpr.h b/Modules/regexpr.h
index 1221802..91f00b9 100644
--- a/Modules/regexpr.h
+++ b/Modules/regexpr.h
@@ -67,10 +67,16 @@ typedef struct re_registers
#define RE_SYNTAX_GREP (RE_BK_PLUS_QM|RE_NEWLINE_OR)
#define RE_SYNTAX_EMACS 0
+#define Sword 1
+#define Swhitespace 2
+#define Sdigit 4
+
/* Rename all exported symbols to avoid conflicts with similarly named
symbols in some systems' standard C libraries... */
#define re_syntax _Py_re_syntax
+#define re_syntax_table _Py_re_syntax_table
+#define re_compile_initialize _Py_re_compile_initialize
#define re_set_syntax _Py_re_set_syntax
#define re_compile_pattern _Py_re_compile_pattern
#define re_match _Py_re_match
@@ -85,6 +91,10 @@ extern int re_syntax;
/* This is the actual syntax mask. It was added so that Python could do
* syntax-dependent munging of patterns before compilation. */
+extern char re_syntax_table[256];
+
+void re_compile_initialize(void);
+
int re_set_syntax(int syntax);
/* This sets the syntax to use and returns the previous syntax. The
* syntax is specified by a bit mask of the above defined bits. */
@@ -133,6 +143,8 @@ int re_exec(char *s);
#else /* HAVE_PROTOTYPES */
extern int re_syntax;
+extern char re_syntax_table[256];
+void re_compile_initialize();
int re_set_syntax();
char *re_compile_pattern();
int re_match();