bug-gnulib
[Top][All Lists]
Advanced

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

Re: coreutils 6.6 HP-UX build error


From: Ben Pfaff
Subject: Re: coreutils 6.6 HP-UX build error
Date: Wed, 22 Nov 2006 17:06:54 -0800
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Paul Eggert <address@hidden> writes:

> Come to think of it, since we want the code to stay portable to C89,
> then we can't use switch (V) ... when V is of type off_t.  This is
> because off_t is typically 'long long int', and C89 (which lacks 'long
> long int') does not require support for a switch whose expression is
> of type 'long long int'.

I don't understand this rationale.  C89 requires that the switch
expression be of integral type.  For C89 compilers with the long
long int extension, a long long int is an integral type, so it
should be supported.

Are there actual implementations that support long long int but
not its use as a switch expression?
-- 
Ben Pfaff 
email: address@hidden
web: http://benpfaff.org





reply via email to

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