summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/tex/textoken.w
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-11-15 03:48:57 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-11-15 03:48:57 +0000
commitc89886bd0aa4448961266c5fdd6ef6b78035a7e0 (patch)
treee40ba38c883e2acdbe37cd5508f5909d3c9b4bf9 /Build/source/texk/web2c/luatexdir/tex/textoken.w
parent690d94784c133d0cee9298485f4a574a67e5e1b3 (diff)
web2c/luatexdir: Sync with the upstream trunk.
git-svn-id: svn://tug.org/texlive/trunk@38854 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex/textoken.w')
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/textoken.w7
1 files changed, 4 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/textoken.w b/Build/source/texk/web2c/luatexdir/tex/textoken.w
index b22f3cdd62e..dc010805116 100644
--- a/Build/source/texk/web2c/luatexdir/tex/textoken.w
+++ b/Build/source/texk/web2c/luatexdir/tex/textoken.w
@@ -1500,16 +1500,17 @@ void get_token_lua(void)
@ changes the string |s| to a token list
@c
-halfword string_to_toks(char *ss)
+halfword string_to_toks(const char *ss)
{
halfword p; /* tail of the token list */
halfword q; /* new node being added to the token list via |store_new_token| */
halfword t; /* token being appended */
- char *s = ss, *se = ss + strlen(s);
+ const char *s = ss;
+ const char *se = ss + strlen(s);
p = temp_token_head;
set_token_link(p, null);
while (s < se) {
- t = (halfword) str2uni((unsigned char *) s);
+ t = (halfword) str2uni((const unsigned char *) s);
s += utf8_size(t);
if (t == ' ')
t = space_token;