Mail Archives: djgpp-workers/1998/02/12/07:26:50
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 -