bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 5/5] bison: pacify Sun C 5.12


From: Akim Demaille
Subject: Re: [PATCH 5/5] bison: pacify Sun C 5.12
Date: Tue, 22 Oct 2013 16:46:25 +0200

Le 22 oct. 2013 à 00:28, Paul Eggert <address@hidden> a écrit :

> @@ -342,8 +342,19 @@ show_sub_message (warnings warning,
>     {
>       static struct obstack msg_buf;
>       const char *tail = explicit_bracketing ? "" : cp + strlen (var->id);
> -      const char *id = var->hidden_by ? var->hidden_by->id : var->id;
> -      location id_loc = var->hidden_by ? var->hidden_by->loc : var->loc;
> +      const char *id;
> +      location id_loc;
> +
> +      if (var->hidden_by)
> +    {
> +      id = var->hidden_by->id;
> +      id_loc = var->hidden_by->loc;
> +    }
> +      else
> +    {
> +      id = var->id;
> +      id_loc = var->loc;
> +    }

FWIW, I try to keep tabs out of Bison's sources.  I don't know
if there is some .dir-locals.el magic that could easily
address this.

I untabified these.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]