summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/utils
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2009-06-04 06:55:59 +0000
committerTaco Hoekwater <taco@elvenkind.com>2009-06-04 06:55:59 +0000
commit25e7ea0b0a91e26fcee46d54cc67f82b5253f504 (patch)
tree9cf7bcb0e7dae279ec16dc456664b191a2a9c86d /Build/source/texk/web2c/luatexdir/utils
parent68ecfa2478c6a1418f0b37565693eb67d0317387 (diff)
"avoid variable declaration after statement" patch from Vladimir Volovich
git-svn-id: svn://tug.org/texlive/trunk@13625 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/utils')
-rw-r--r--Build/source/texk/web2c/luatexdir/utils/avlstuff.c2
-rw-r--r--Build/source/texk/web2c/luatexdir/utils/synctex.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/utils/avlstuff.c b/Build/source/texk/web2c/luatexdir/utils/avlstuff.c
index 7fe15227745..363eb15088f 100644
--- a/Build/source/texk/web2c/luatexdir/utils/avlstuff.c
+++ b/Build/source/texk/web2c/luatexdir/utils/avlstuff.c
@@ -163,8 +163,8 @@ integer avl_find_obj(integer t, integer i, integer byname)
static void destroy_oentry(void *pa, void *pb)
{
- (void) pb;
oentry *p = (oentry *) pa;
+ (void) pb;
xfree(p);
}
diff --git a/Build/source/texk/web2c/luatexdir/utils/synctex.c b/Build/source/texk/web2c/luatexdir/utils/synctex.c
index d4471b4bed7..45a1c060946 100644
--- a/Build/source/texk/web2c/luatexdir/utils/synctex.c
+++ b/Build/source/texk/web2c/luatexdir/utils/synctex.c
@@ -1023,8 +1023,9 @@ void synctex_current(void)
if (SYNCTEX_IGNORE(nothing)) {
return;
} else {
+ size_t len;
pos = synch_p_with_c(cur);
- size_t len = SYNCTEX_fprintf(SYNCTEX_FILE,"x%i,%i:%i,%i\n",
+ len = SYNCTEX_fprintf(SYNCTEX_FILE,"x%i,%i:%i,%i\n",
synctex_ctxt.tag,synctex_ctxt.line,
pos.h UNIT,pos.v UNIT);
if(len>0) {