summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2014-12-17 10:20:41 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2014-12-17 10:20:41 +0000
commit5bc9fcba4285db197e2ce36bf302d9e7a81223c2 (patch)
treed008cd631e6ea865823e3c24654f6626ba68aff5 /Build
parentcf08549187fffa624f0714e4791924f9828165b7 (diff)
LuaTeX: Fix a comment (from Luigi)
git-svn-id: svn://tug.org/texlive/trunk@35851 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/texnodes.w17
1 files changed, 9 insertions, 8 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/texnodes.w b/Build/source/texk/web2c/luatexdir/tex/texnodes.w
index 4a11d3510b0..f868c9d251f 100644
--- a/Build/source/texk/web2c/luatexdir/tex/texnodes.w
+++ b/Build/source/texk/web2c/luatexdir/tex/texnodes.w
@@ -19,7 +19,7 @@
@ @c
static const char _svn_version[] =
- "$Id: texnodes.w 5106 2014-12-17 01:54:37Z luigi $"
+ "$Id: texnodes.w 5107 2014-12-17 09:09:38Z luigi $"
"$URL: https://foundry.supelec.fr/svn/luatex/trunk/source/texk/web2c/luatexdir/tex/texnodes.w $";
#include "ptexlib.h"
@@ -2290,7 +2290,7 @@ void set_attribute(halfword n, int i, int val)
vlink(node_attr(n)) = p;
return;
}
- /* we check if we have this attribute already and quit if the value stays the same */
+ /* we check if we have this attribute already and quite if the value stays the same */
assert(vlink(p) != null);
while (vlink(p) != null) {
int t = attribute_id(vlink(p));
@@ -2312,12 +2312,9 @@ void set_attribute(halfword n, int i, int val)
} else if (attr_list_ref(p) == 1) {
/* this can really happen HH-LS */
if (p == attr_list_cache) {
- /* FIXME: C code and normal text inside the same comment (PB)
- attr_list_cache = cache_disabled;
-
- or (saved a list creation):
-
- */
+ /* we can invalidate the cache setting */
+ /* attr_list_cache = cache_disabled */
+ /* or save the list, as done below */
p = copy_attribute_list(p);
node_attr(n) = p;
/* the copied list gets ref count 1 */
@@ -2333,6 +2330,7 @@ void set_attribute(halfword n, int i, int val)
attr_list_ref(p) = 1;
}
+
/* we go to position j in the list */
while (j-- > 0)
p = vlink(p);
@@ -2348,6 +2346,9 @@ void set_attribute(halfword n, int i, int val)
}
+
+
+
@ @c
int unset_attribute(halfword n, int i, int val)
{