From 1e3fb8a2c0cca385d65c52679411b118b5fb4641 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 24 Nov 2024 16:18:21 -0500 Subject: Rename "NULL" to "NONE" --- stdlib/patterns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stdlib/patterns.c') diff --git a/stdlib/patterns.c b/stdlib/patterns.c index 97cade4a..3bf2ebfd 100644 --- a/stdlib/patterns.c +++ b/stdlib/patterns.c @@ -802,13 +802,13 @@ public OptionalMatch_t Text$find(Text_t text, Pattern_t pattern, Int_t from_inde if (first == 0) fail("Invalid index: 0"); if (first < 0) first = text.length + first + 1; if (first > text.length || first < 1) - return NULL_MATCH; + return NONE_MATCH; capture_t captures[MAX_BACKREFS] = {}; int64_t len = 0; int64_t found = _find(text, pattern, first-1, text.length-1, &len, captures); if (found == -1) - return NULL_MATCH; + return NONE_MATCH; Array_t capture_array = {}; for (int i = 0; captures[i].occupied; i++) { @@ -845,7 +845,7 @@ public OptionalArray_t Text$matches(Text_t text, Pattern_t pattern) capture_t captures[MAX_BACKREFS] = {}; int64_t match_len = match(text, 0, pattern, 0, captures, 0); if (match_len != text.length) - return NULL_ARRAY; + return NONE_ARRAY; Array_t capture_array = {}; for (int i = 0; captures[i].occupied; i++) { -- cgit v1.2.3