bug-gnulib
[Top][All Lists]
Advanced

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

RE: Fwd: sed porting trouble


From: Schmitz, Joachim
Subject: RE: Fwd: sed porting trouble
Date: Fri, 1 Oct 2010 13:10:26 +0000

Hi Paolo

In general the entire documentation for thie platform is here: 
http://www.hp.com/go/nonstop-docs, In this case you'd probably want to look at 
the (currently) latest version of the C/C++ Programmer's Guide 
http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c02128447/c02128447.pdf
 , Chapter 13 Compiler Pragmas.

Hmm, reading is of advantage sometime, I just see that instead of the pragma, I 
can use a compiler switch -Wcolumns=c, so I should be able to get around that 
issue without those 2 patches, by just tweaking my cc wrapper script slightly 
(i.e. adding a -Wcolumns=32767, the maximum, to the switches it uses to call 
the real c89/c99 C/C++ compiler).
(Testing....)
Rats! It doesn't work! Seems the Compiler switch does not precedence over the 
pragma.

Bye, Jojo

-----Original Message-----
From: Paolo Bonzini [mailto:address@hidden On Behalf Of Paolo Bonzini
Sent: Friday, October 01, 2010 2:15 PM
To: Schmitz, Joachim
Cc: 'Bruno Haible'; 'bug-gnulib'
Subject: Re: Fwd: sed porting trouble

On 10/01/2010 01:19 PM, Schmitz, Joachim wrote:
> OK, here we go:
>
> cc -DHAVE_CONFIG_H -I. -I.. -I../lib -I.. -I../lib -I/usr/local/include -g
> -E btowc.c>  i.c  shows (... denote empty lines):
> #line 279 "/usr/local/Floss/sed-4.2.1/lib/../lib/stdint.h"
> ...
> typedef int _verify_intmax_size[2 * (sizeof (gl_intmax_t) == sizeof
> (gl_uintmax_t)) -
> ...
> #line 62 "/usr/local/Floss/sed-4.2.1/lib/../lib/stdlib.h"
> ...
> struct random_data
> {
>
> So apparently something is going wrong in stdint.h, it misses the "1];"
> which is after a line break (i.e. after crah 80 in the terminal window).
> That rings a bell, we have a "#pragma columns N", and /usr/include/stdint.h
> (and other files in /usr/include too) for some stupid reason sets this to
> 80...

Ugh.  Do you have any pointer to "#pragma columns" documentation?  How 
far does its scope extend, i.e. why is it affecting gnulib's stdint.h?

Paolo



reply via email to

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