From f374abcd23a63f628a9ec7b84e2d797d3fc28342 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Thu, 19 Aug 2021 11:47:12 -0700 Subject: matcher: rename error-throwing macros. * stdlib/match.tl (must-match): Renamed to just match. It's just when-match without the "when". (must-match-case): Renamed to match-ecase, consistent with the case -> ecase naming scheme. * lisplib.c (match_set_entries): Names updated here. * tests/011/patmatch.tl: Test cases updated. * txr.1: Names updated here. * stdlib/doc-syms.tl: Updated. --- lisplib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisplib.c') diff --git a/lisplib.c b/lisplib.c index 58de568c..f1e41547 100644 --- a/lisplib.c +++ b/lisplib.c @@ -882,8 +882,8 @@ static val match_set_entries(val dlt, val fun) nil }; val name[] = { - lit("when-match"), lit("match-case"), lit("if-match"), lit("must-match"), - lit("must-match-case"), + lit("when-match"), lit("match-case"), lit("if-match"), + lit("match"), lit("match-ecase"), lit("while-match"), lit("while-match-case"), lit("while-true-match-case"), lit("lambda-match"), lit("defun-match"), lit("defmatch"), lit("each-match"), lit("append-matches"), -- cgit v1.2.3