aboutsummaryrefslogtreecommitdiff
path: root/lib/unicode
diff options
context:
space:
mode:
Diffstat (limited to 'lib/unicode')
-rw-r--r--lib/unicode/prop/uprop_get_lc.c1
-rw-r--r--lib/unicode/prop/uprop_get_nfkc_cf.c1
-rw-r--r--lib/unicode/prop/uprop_get_nfkc_scf.c1
-rw-r--r--lib/unicode/prop/uprop_get_tc.c1
-rw-r--r--lib/unicode/prop/uprop_get_uc.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/lib/unicode/prop/uprop_get_lc.c b/lib/unicode/prop/uprop_get_lc.c
index 752ed71..faf26c3 100644
--- a/lib/unicode/prop/uprop_get_lc.c
+++ b/lib/unicode/prop/uprop_get_lc.c
@@ -47,6 +47,7 @@ uprop_get_lc(rune ch, struct lcctx ctx)
return M(U'ı');
}
+ /* TODO: This returns a pointer to a stack-allocated array; fix this! */
ch = uprop_get_slc(ch);
return M(ch);
}
diff --git a/lib/unicode/prop/uprop_get_nfkc_cf.c b/lib/unicode/prop/uprop_get_nfkc_cf.c
index 9b19df3..1fe282e 100644
--- a/lib/unicode/prop/uprop_get_nfkc_cf.c
+++ b/lib/unicode/prop/uprop_get_nfkc_cf.c
@@ -17699,5 +17699,6 @@ struct rview
uprop_get_nfkc_cf(rune ch)
{
struct rview rv = stage2[stage1[ch / 256]][ch % 256];
+ /* TODO: This returns a pointer to a stack-allocated array; fix this! */
return rv.len == 1 && rv.p[0] == SENTINAL ? M(ch) : rv;
}
diff --git a/lib/unicode/prop/uprop_get_nfkc_scf.c b/lib/unicode/prop/uprop_get_nfkc_scf.c
index abafff6..1738874 100644
--- a/lib/unicode/prop/uprop_get_nfkc_scf.c
+++ b/lib/unicode/prop/uprop_get_nfkc_scf.c
@@ -17699,5 +17699,6 @@ struct rview
uprop_get_nfkc_scf(rune ch)
{
struct rview rv = stage2[stage1[ch / 256]][ch % 256];
+ /* TODO: This returns a pointer to a stack-allocated array; fix this! */
return rv.len == 1 && rv.p[0] == SENTINAL ? M(ch) : rv;
}
diff --git a/lib/unicode/prop/uprop_get_tc.c b/lib/unicode/prop/uprop_get_tc.c
index e2d8212..cececd8 100644
--- a/lib/unicode/prop/uprop_get_tc.c
+++ b/lib/unicode/prop/uprop_get_tc.c
@@ -1466,6 +1466,7 @@ uprop_get_tc(rune ch, struct tcctx ctx)
struct rview rv = stage2[stage1[ch / 64]][ch % 64];
if (rv.p != nullptr)
return rv;
+ /* TODO: This returns a pointer to a stack-allocated array; fix this! */
ch = uprop_get_stc(ch);
return M(ch);
}
diff --git a/lib/unicode/prop/uprop_get_uc.c b/lib/unicode/prop/uprop_get_uc.c
index 7e39181..698c61c 100644
--- a/lib/unicode/prop/uprop_get_uc.c
+++ b/lib/unicode/prop/uprop_get_uc.c
@@ -1147,6 +1147,7 @@ uprop_get_uc(rune ch, struct ucctx ctx)
struct rview rv = stage2[stage1[ch / 128]][ch % 128];
if (rv.p != nullptr)
return rv;
+ /* TODO: This returns a pointer to a stack-allocated array; fix this! */
ch = uprop_get_suc(ch);
return M(ch);
}