diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-12-05 23:11:09 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-12-05 23:11:09 +0100 |
commit | 265ba2a85e0945a37972e22f23bcaac16d6c08a1 (patch) | |
tree | 356963c1df5c5ed8a6189eeb3346970081a29af4 /source/luametatex/source/tex/texscanning.c | |
parent | 08fa92c1c94d9faddee48590a1a20506e89c191c (diff) | |
download | context-265ba2a85e0945a37972e22f23bcaac16d6c08a1.tar.gz |
2022-12-05 18:51:00
Diffstat (limited to 'source/luametatex/source/tex/texscanning.c')
-rw-r--r-- | source/luametatex/source/tex/texscanning.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/source/luametatex/source/tex/texscanning.c b/source/luametatex/source/tex/texscanning.c index 3c9859de9..15e887a71 100644 --- a/source/luametatex/source/tex/texscanning.c +++ b/source/luametatex/source/tex/texscanning.c @@ -3380,25 +3380,6 @@ halfword tex_scan_general_text(halfword *tail) /*tex - The |get_x_or_protected| procedure is like |get_x_token| except that protected macros are not - expanded. It sets |cur_cmd|, |cur_chr|, |cur_tok|, and expands non-protected macros. - -*/ - -void tex_get_x_or_protected(void) -{ - while (1) { - tex_get_token(); - if (cur_cmd <= max_command_cmd || is_protected_cmd(cur_cmd)) { - return; - } else { - tex_expand_current_token(); - } - } -} - -/*tex - |scan_toks|. This function returns a pointer to the tail of a new token list, and it also makes |def_ref| point to the reference count at the head of that list. @@ -3759,7 +3740,7 @@ halfword tex_scan_macro_normal(void) return result; } -# define optimize_grouping 0 +# define optimize_grouping 1 halfword tex_scan_macro_expand(void) { |