[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: propagate the indentation of the actions
From: |
Akim Demaille |
Subject: |
Re: RFC: propagate the indentation of the actions |
Date: |
Mon, 1 Jul 2019 07:31:58 +0200 |
> Le 30 juin 2019 à 20:15, Akim Demaille <address@hidden> a écrit :
>
> Apparently some compilers break on using #line in macro calls.
> https://stackoverflow.com/questions/28343501/is-it-legal-to-use-the-line-directive-in-a-macro-argument
Well, we could generate each action twice: once for the good guys,
and another for the others. Something like
> case 3:
> #if defined __GNUC__
> #line 60 "input.y"
> { USE ((yyvsp[-4]
> #line 60 "input.y"
> , yyvsp[-3]
> #line 60 "input.y"
> , yyvsp[0]
> #line 60 "input.y"
> )); }
> #else
> #line 60 "input.y"
> { USE ((yyvsp[-4], yyvsp[-3], yyvsp[0])); }
> #end
> #line 1241 "input.c"
> break;
- Re: RFC: propagate the indentation of the actions,
Akim Demaille <=