aboutsummaryrefslogtreecommitdiff
path: root/regex.h
diff options
context:
space:
mode:
authorRobin Haberkorn <rhaberkorn@fmsbw.de>2026-06-27 20:35:36 +0200
committerRobin Haberkorn <rhaberkorn@fmsbw.de>2026-06-27 21:08:53 +0200
commitfa3d463a4cd563f3c5f29331f48a0161bf586863 (patch)
tree349a2508d2f7bbb6624076abbe268e34f19d11db /regex.h
parent5337d33cc6e46a6eb281f2abb325b29c882a82b2 (diff)
downloadterex-fa3d463a4cd563f3c5f29331f48a0161bf586863.tar.gz
re_free() and re_error() have also been renamed to tere_free() and tere_error() for consistency
The headers still define regfree() and regerror() functions, but they shouldn't collide with libc unless you include the POSIX regex.h. Also tere_free() can now be called on nullified regex_t objects, which eases error handling a bit.
Diffstat (limited to 'regex.h')
-rw-r--r--regex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/regex.h b/regex.h
index 167b414..8b3f1bf 100644
--- a/regex.h
+++ b/regex.h
@@ -117,8 +117,8 @@ extern "C" {
#ifdef REGEX_STANDALONE
# undef regfree
# undef regerror
-# define regfree re_free
-# define regerror re_error
+# define regfree tere_free
+# define regerror tere_error
# undef __REG_WIDE_T
# define __REG_WIDE_T unsigned char
# undef __REG_NOCHAR