summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-05-24 13:08:51 +1000
committerNoralf Trønnes <noralf@tronnes.org>2019-02-14 15:42:22 +0100
commitb9dc23c070bde772a941f803d8fac9cafc0e163c (patch)
tree94ad33340fa4f4819a63b63716acec78de993332 /py
parentcbeac094ef88b1f6a12cad7a3135f0530302ad20 (diff)
extmod/modure: Add ure.sub() function and method, and tests.
This feature is controlled at compile time by MICROPY_PY_URE_SUB, disabled by default. Thanks to @dmazzella for the original patch for this feature; see #3770.
Diffstat (limited to 'py')
-rwxr-xr-xpy/mpconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index cf757cf42..bb7952a8b 100755
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -1172,6 +1172,10 @@ typedef double mp_float_t;
#define MICROPY_PY_URE_MATCH_SPAN_START_END (0)
#endif
+#ifndef MICROPY_PY_URE_SUB
+#define MICROPY_PY_URE_SUB (0)
+#endif
+
#ifndef MICROPY_PY_UHEAPQ
#define MICROPY_PY_UHEAPQ (0)
#endif