Date: Thu, 12 Feb 1998 13:25:12 +0100 (MET) From: Hans-Bernhard Broeker To: Vik Heyndrickx cc: DJ Delorie , djgpp-workers AT delorie DOT com Subject: Re: char != unsigned char... sometimes, sigh In-Reply-To: <34E2D842.343B@rug.ac.be> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 12 Feb 1998, Vik Heyndrickx wrote: [...] > There is something nasty about inline externs. You have to put also a > version without 'inline extern' in the libc library. So far, no problem, > but as you have two instances of the same code, your risk that you > forget updating one of them when they need to be modified (not to > mention the little extra work that is involved). > If you have macro version, you can simple include that code in the > function version, and you don't have the hassles for double-modifying > it. That's a problem which can be solved almost as easily as with the macro solutions: ctype.h: #define EXTERN_INLINE extern inline #include #include /* ... */ src/libc/ansi/ctype/isalpha.c: #define EXTERN_INLINE /* nothing */ #include Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.