[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] localcharset and K&R C
From: |
Bruno Haible |
Subject: |
Re: [Bug-gnulib] localcharset and K&R C |
Date: |
Mon, 15 Sep 2003 17:38:20 +0200 |
User-agent: |
KMail/1.5 |
Paul Eggert wrote:
> but is this really being used? localcharset.c uses constructs
> like #elif, memcpy, and NULL that are not portable to old K&R
> compilers.
The GCC people said that K&R C support is important for mostly two
platforms: SunOS 4 with cc and HP-UX with cc. But both of these platforms
have the constructs that you mention:
- #elif is supported since SunOS 4 cc (although it had some bugs with nested
#elifs and/or huge #include files).
- memcpy is also supported since SunOS 4. (Only memmove was missing there.)
- NULL is defined in <stddef.h> but not in <stdlib.h> on SunOS 4.
So you cannot conclude that localcharset.c is unused there.
Bruno