summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-03 14:34:22 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2009-06-03 14:34:22 +0000
commitab061d8675616d60fe5d48ff9ddf65e6465ff777 (patch)
tree526b01c8c98f03dbcdd8e160747fc22f633a4ea8
parentef61494cc4942251d50fe337767d278a281be644 (diff)
portability fix from vvv
git-svn-id: svn://tug.org/texlive/trunk@13606 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/xdvik/ChangeLog.TL6
-rw-r--r--Build/source/texk/xdvik/events.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/Build/source/texk/xdvik/ChangeLog.TL b/Build/source/texk/xdvik/ChangeLog.TL
index 724670dcd4e..d2e267af8b0 100644
--- a/Build/source/texk/xdvik/ChangeLog.TL
+++ b/Build/source/texk/xdvik/ChangeLog.TL
@@ -1,6 +1,12 @@
ChangeLog.TL: Changes for xdvik (TeX Live)
==================================================
+2009-06-03 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * events.c: avoid declaration after statement.
+
+ from Vladimir Volovich <vvv@vsu.ru>.
+
2009-05-21 Peter Breitenlohner <peb@mppmu.mpg.de>
* CHANGES: fixed version/relase-date such that mksedscript can
diff --git a/Build/source/texk/xdvik/events.c b/Build/source/texk/xdvik/events.c
index ee7ae16779b..b940f60e6ee 100644
--- a/Build/source/texk/xdvik/events.c
+++ b/Build/source/texk/xdvik/events.c
@@ -2362,9 +2362,9 @@ Act_mouse_modes(Widget w, XEvent *event,
my_action = compile_action(params[mode_idx]);
for (i = 0, ap = my_action; ap; ap = ap->next, i++) {
+ String args[1];
TRACE_EVENTS((stderr, "Action %d for mode %lu: '%s', %d args |%s| maps to proc |%p|",
i, (unsigned long)mode_idx, ap->command, ap->num_params, ap->param, ap->proc));
- String args[1];
args[0] = ap->param;
/* now call the action proc directly */