[tlbuild] xdvik portability fix - avoid variable declaration after statement

Vladimir Volovich vvv at vsu.ru
Wed Jun 3 16:22:15 CEST 2009


Hi!

please apply this small patch to make the build succeed on systems which
don't support variable declaration after statement (a c99 feature):

=================
--- texk/xdvik/events.c	(revision 13576)
+++ texk/xdvik/events.c	(working copy)
@@ -2362,9 +2362,9 @@
 
     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 */
=================

Best,
v.


More information about the tlbuild mailing list