summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texprinting.h
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2022-12-01 13:43:10 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2022-12-01 13:43:10 +0100
commit08fa92c1c94d9faddee48590a1a20506e89c191c (patch)
tree12bbf6fa56b69c47340d4c15f8f601be2d9487b5 /source/luametatex/source/tex/texprinting.h
parent2593c827482f6c5a315d504cd5316879d6172656 (diff)
downloadcontext-08fa92c1c94d9faddee48590a1a20506e89c191c.tar.gz
2022-12-01 12:41:00
Diffstat (limited to 'source/luametatex/source/tex/texprinting.h')
-rw-r--r--source/luametatex/source/tex/texprinting.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/luametatex/source/tex/texprinting.h b/source/luametatex/source/tex/texprinting.h
index b323b1ae5..5e311a0bb 100644
--- a/source/luametatex/source/tex/texprinting.h
+++ b/source/luametatex/source/tex/texprinting.h
@@ -105,12 +105,11 @@ inline static int tex_single_letter(strnumber s)
inline static int tex_is_active_cs(strnumber s)
{
if (s && str_length(s) > 3) {
- const unsigned char *ss = str_string(s);
- return (ss[0] == 0xEF) && (ss[1] == 0xBF) && (ss[2] == 0xBF);
+ const unsigned char *ss = str_string(s); // or signed and active_character ...
+ return (ss[0] == active_first) && (ss[1] == active_second) && (ss[2] == active_third);
} else {
return 0;
}
}
-# define active_cs_value(A) aux_str2uni((str_string((A))+3))
# endif