commit ec2f526437c82501d5d5b4ce8498e47cf00074c4
parent 2e6422c76308d22e293d2f3a3de0733d7447805e
Author: Robert Russell <robertrussell.72001@gmail.com>
Date: Wed, 17 Jul 2024 17:10:44 -0700
Rename unicode_category to r_unicode_category
We should do a better job of using "r_"/"R_"/"R" prefixes. We
can't use them everywhere (e.g., r_u8 would be obnoxious), but
we should use them more than we currently are. For instance, the
stuff in debug.h should probably have prefixes...
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/inc/unicode.h b/inc/unicode.h
@@ -2,4 +2,4 @@
#include "def.h"
-char *unicode_category(rune r);
+char *r_unicode_category(rune r);
diff --git a/src/unicode.c b/src/unicode.c
@@ -1,4 +1,5 @@
#include "rcx.h"
+#include "unicode.h"
#include "../gen/ucattab.inc"
static char ucats[] =
@@ -14,7 +15,7 @@ static char ucats[] =
* function inside the header file. */
char *
-unicode_category(rune r) {
+r_unicode_category(rune r) {
if (r <= 0xff) /* Latin 1 */
return &ucats[3 * ucatl1tab[r]];