delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/02/12/07:26:50

Date: Thu, 12 Feb 1998 13:25:12 +0100 (MET)
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
To: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
cc: DJ Delorie <dj AT delorie DOT com>, djgpp-workers AT delorie DOT com
Subject: Re: char != unsigned char... sometimes, sigh
In-Reply-To: <34E2D842.343B@rug.ac.be>
Message-ID: <Pine.LNX.3.93.980212132146.2017A-100000@acp3bf>
MIME-Version: 1.0

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 <inlines/isalpha.ha>
#include <inlines/isalnum.ha>
/* ... */


src/libc/ansi/ctype/isalpha.c:
#define EXTERN_INLINE /* nothing */
#include <inlines/isalpha.ha>


Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019