[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: sed porting trouble
From: |
Paolo Bonzini |
Subject: |
Re: Fwd: sed porting trouble |
Date: |
Sat, 2 Oct 2010 10:44:51 +0200 |
On Sat, Oct 2, 2010 at 02:53, Paul Eggert <address@hidden> wrote:
> So, how about something like the following patch? It will fix the
> immediate problem anyway. (And my goodness, what a terrible misfeature
> "#pragma COLUMN" is! would you all mind if I give it as an example of a
> terrible design in my programming languages class?)
It's not per se horrible, the problems I see with it are that:
1) it does not warn, it silently eats code in all cases; it should
warn or error if the pragma was inherited via #include.
2) it, or the #include inheriting at least, cannot be disabled from
the command line (even -Wcolumns=32767 wouldn't be a fix).
But yes, if I were still teaching a programming languages class I'd
definitely sneak it in a lecture. :)
Can we add a syntax-check for *.h, just to be on the safe side, maybe?
Paolo
- Re: Fwd: sed porting trouble, (continued)
- Re: Fwd: sed porting trouble, Simon Josefsson, 2010/10/05
- Re: Fwd: sed porting trouble, Bruno Haible, 2010/10/05
- Re: Fwd: sed porting trouble, Paul Eggert, 2010/10/04
- Re: Fwd: sed porting trouble, Jim Meyering, 2010/10/05
- Re: Fwd: sed porting trouble, Paul Eggert, 2010/10/01
- Re: Fwd: sed porting trouble, Jim Meyering, 2010/10/02
- RE: Fwd: sed porting trouble, Schmitz, Joachim, 2010/10/02
- Re: Fwd: sed porting trouble,
Paolo Bonzini <=
- Re: Fwd: sed porting trouble, Bruno Haible, 2010/10/02
- RE: Fwd: sed porting trouble, Schmitz, Joachim, 2010/10/02
- Re: Fwd: sed porting trouble, Bruno Haible, 2010/10/02
- RE: Fwd: sed porting trouble, Schmitz, Joachim, 2010/10/02
- Re: Fwd: sed porting trouble, Paul Eggert, 2010/10/03
- Re: Fwd: sed porting trouble, Bruno Haible, 2010/10/03
- Re: Fwd: sed porting trouble, Bruno Haible, 2010/10/02
- RE: Fwd: sed porting trouble, Schmitz, Joachim, 2010/10/02
- Re: Fwd: sed porting trouble, Bruno Haible, 2010/10/02
- RE: Fwd: sed porting trouble, Schmitz, Joachim, 2010/10/02