summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/synctexdir/synctex-rec.ch0
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-02-11 14:27:39 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-02-11 14:27:39 +0000
commitb99bfa8c4694d5cf7526c7100cccc44530c1b079 (patch)
tree8e4d5d1048d6371b078ca8baf6a387f819614247 /Build/source/texk/web2c/synctexdir/synctex-rec.ch0
parenta08b7d56d4eacb16af34f3ca36ac14cab371125c (diff)
Simplify SyncTeX change files
git-svn-id: svn://tug.org/texlive/trunk@29080 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/synctexdir/synctex-rec.ch0')
-rw-r--r--Build/source/texk/web2c/synctexdir/synctex-rec.ch014
1 files changed, 9 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/synctexdir/synctex-rec.ch0 b/Build/source/texk/web2c/synctexdir/synctex-rec.ch0
index 1ab4f1afa80..c2730fab349 100644
--- a/Build/source/texk/web2c/synctexdir/synctex-rec.ch0
+++ b/Build/source/texk/web2c/synctexdir/synctex-rec.ch0
@@ -229,7 +229,7 @@ if w<>0 then
@y
if w<>0 then
begin link(t):=new_kern(w); t:=link(t); w:=0;
- MISSING IMPLEMENTATION: 0 synctag for medium sized node at mem[t]
+ sync_tag(t+medium_node_size):=0; {{\sl Sync\TeX}: do nothing, it is too late}
@z
@x tex.web l.19335
@@ -324,7 +324,8 @@ And finally, initializing the node at only one place is less error prone.
@ @<Initialize bigger nodes with {\sl Sync\TeX} information@>=
if s>=medium_node_size then
begin
- MISSING IMPLEMENTATION: update the synctex information for node at mem[r] with size s
+ sync_tag(r+s):=synctex_tag;
+ sync_line(r+s):=line;
end;
@ Instead of storing the input file name, it is better to store just an identifier.
@@ -402,13 +403,16 @@ but not for a |math_node| nor a |kern_node|. These last two nodes always keep
the {\sl Sync\TeX} information they received at creation time.
@ @<Copy the box {\sl Sync\TeX} information@>=
-MISSING IMPLEMENTATION: copy the synctex information for box node at mem[r] from node at mem[p]
+sync_tag(r+box_node_size):=sync_tag(p+box_node_size);
+sync_line(r+box_node_size):=sync_line(p+box_node_size);
@ @<Copy the rule {\sl Sync\TeX} information@>=
-MISSING IMPLEMENTATION: copy the synctex information for rule node at mem[r] from node at mem[p]
+{sync_tag(r+rule_node_size):=sync_tag(p+rule_node_size);
+sync_line(r+rule_node_size):=sync_line(p+rule_node_size);}
@ @<Copy the medium sized node {\sl Sync\TeX} information@>=
-MISSING IMPLEMENTATION: copy the synctex information for medium sized node at mem[r] from node at mem[p]
+sync_tag(r+medium_node_size):=sync_tag(p+medium_node_size);
+sync_line(r+medium_node_size):=sync_line(p+medium_node_size);
@ {\sl Nota Bene:}
The {\sl Sync\TeX} code is very close to the memory model.