Mail Archives: djgpp-workers/1998/06/16/08:55:18
Date: | Tue, 16 Jun 1998 08:52:20 -0400 (EDT)
|
Message-Id: | <199806161252.IAA23884@delorie.com>
|
From: | DJ Delorie <dj AT delorie DOT com>
|
To: | djgpp-workers AT delorie DOT com
|
In-reply-to: | <Pine.SUN.3.91.980616131844.13693C-100000@is> (message from Eli
|
| Zaretskii on Tue, 16 Jun 1998 13:22:09 +0300 (IDT))
|
Subject: | Re: inb/outb
|
OK, there are two separate problems that need two separate solutions.
1. We want to #define a function to a different function. Solution:
Put the #define after the prototypes, so that a valid prototype is
always available, whether the symbol is #undef'd or not. We provide
both symbols in the library as well, just in case, but one calls the
other.
2. Functions that are normally *not* defined by us, and applications
provide their own prototypes (like xmalloc). We can't provide a
prototype because it will, on average, conflict with 50% of the
applications out there (they don't agree on what the prototype should
be). We provide a function in libc just in case, but don't prototype
it in the headers to avoid prototype conflicts.
- Raw text -