diff options
author | Guido van Rossum <guido@python.org> | 1992-03-27 17:24:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-03-27 17:24:37 (GMT) |
commit | 9abc539846c5633331c01d8c3a08e5dbe1aa849d (patch) | |
tree | 7ebbc73d19feb7e8968a02d572846d8d1a4e13aa /Modules/regexpr.c | |
parent | 559e55f73c0af9d0c62f3227b1ce0dd3f4ee8ff4 (diff) | |
download | cpython-9abc539846c5633331c01d8c3a08e5dbe1aa849d.zip cpython-9abc539846c5633331c01d8c3a08e5dbe1aa849d.tar.gz cpython-9abc539846c5633331c01d8c3a08e5dbe1aa849d.tar.bz2 |
Lint fluff
Diffstat (limited to 'Modules/regexpr.c')
-rw-r--r-- | Modules/regexpr.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Modules/regexpr.c b/Modules/regexpr.c index ccf515a..d5c0c85 100644 --- a/Modules/regexpr.c +++ b/Modules/regexpr.c @@ -37,10 +37,16 @@ $Header$ #include <stdlib.h> #include <string.h> #else +#ifdef __STDC__ +/* Don't mess around, use the standard headers */ +#include <stdlib.h> +#include <string.h> +#else char *malloc(); void free(); char *realloc(); -#endif +#endif /* __STDC__ */ +#endif /* THINK_C */ #define MACRO_BEGIN do { #define MACRO_END } while (0) @@ -508,6 +514,7 @@ regexp_t bufp; goto normal_char; opcode = Ceol; goto store_opcode; + /* NOTREACHED */ break; case Roptional: if (beginning_context) @@ -1504,6 +1511,8 @@ regexp_registers_t regs; startpos, range, regs, size); } +#ifdef UNUSED + static struct re_pattern_buffer re_comp_buf; char *re_comp(s) @@ -1532,6 +1541,8 @@ char *s; return re_search(&re_comp_buf, s, len, 0, len, (regexp_registers_t)NULL) >= 0; } +#endif + #ifdef TEST_REGEXP int main() |