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

Peter Breitenlohner peb at mppmu.mpg.de
Wed Jun 3 16:39:43 CEST 2009


On Wed, 3 Jun 2009, Vladimir Volovich wrote:

> 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 */
> =================

Hi Vladimir,

done (r13606).

Regards
Peter


More information about the tlbuild mailing list