From 0318bd6ae6f14ba04345b768e76fca3c6c1a67ab Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 14 Aug 1997 14:35:12 +0000 Subject: [PATCH] Use _Py_re_match/search instead of re_match/search; these may become different in a future version. --- Modules/regexmodule.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Modules/regexmodule.c b/Modules/regexmodule.c index 32360f24960..8a6b695367e 100644 --- a/Modules/regexmodule.c +++ b/Modules/regexmodule.c @@ -130,7 +130,8 @@ regobj_match(re, args) } Py_XDECREF(re->re_lastok); re->re_lastok = NULL; - result = re_match(&re->re_patbuf, buffer, size, offset, &re->re_regs); + result = _Py_re_match(&re->re_patbuf, buffer, size, offset, + &re->re_regs); if (result < -1) { /* Serious failure of some sort; if re_match didn't set an exception, raise a generic error */ @@ -173,7 +174,7 @@ regobj_search(re, args) range = size - offset; Py_XDECREF(re->re_lastok); re->re_lastok = NULL; - result = re_search(&re->re_patbuf, buffer, size, offset, range, + result = _Py_re_search(&re->re_patbuf, buffer, size, offset, range, &re->re_regs); if (result < -1) { /* Serious failure of some sort; if re_match didn't