summaryrefslogtreecommitdiffstats
path: root/Modules/regexpr.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-27 16:48:48 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-27 16:48:48 (GMT)
commit9db23a8c5f13c0808bf12bb740ea83e3a0813fa0 (patch)
tree1c8e649eb8f3a9bff0ffe2bba86e4e765aa5255e /Modules/regexpr.h
parentcb4eeddeea7c4f83ed416b886a67e9c84032edeb (diff)
downloadcpython-9db23a8c5f13c0808bf12bb740ea83e3a0813fa0.zip
cpython-9db23a8c5f13c0808bf12bb740ea83e3a0813fa0.tar.gz
cpython-9db23a8c5f13c0808bf12bb740ea83e3a0813fa0.tar.bz2
Change prototypes decision.
Diffstat (limited to 'Modules/regexpr.h')
-rw-r--r--Modules/regexpr.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/Modules/regexpr.h b/Modules/regexpr.h
index 8c5a2ac..c0276ae 100644
--- a/Modules/regexpr.h
+++ b/Modules/regexpr.h
@@ -19,6 +19,11 @@ Last modified: Mon Nov 4 15:49:46 1991 ylo
#ifndef REGEXPR_H
#define REGEXPR_H
+#if defined(__STDC__) || defined(THINK_C)
+#undef HAVE_PROTOTYPES
+#define HAVE_PROTOTYPES
+#endif
+
#define RE_NREGS 10 /* number of registers available */
typedef struct re_pattern_buffer
@@ -56,7 +61,7 @@ typedef struct re_registers
#define RE_SYNTAX_GREP (RE_BK_PLUS_QM|RE_NEWLINE_OR)
#define RE_SYNTAX_EMACS 0
-#ifdef __STDC__
+#ifdef HAVE_PROTOTYPES
int re_set_syntax(int syntax);
/* This sets the syntax to use and returns the previous syntax. The
@@ -116,7 +121,7 @@ int re_exec(char *s);
matches the regular expression (that is, a matching part is found
anywhere in the string). */
-#else /* __STDC__ */
+#else /* HAVE_PROTOTYPES */
int re_set_syntax();
char *re_compile_pattern();
@@ -128,7 +133,7 @@ void re_compile_fastmap();
char *re_comp();
int re_exec();
-#endif /* __STDC__ */
+#endif /* HAVE_PROTOTYPES */
#endif /* REGEXPR_H */