This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Prevent macro expansion of mblen


Robert Lipe <robertlipe@usa.net> writes:

| > | I still don't know of any target that has a macro but not a function.
| > | The targets I've known about have a macro *and* a function, and I
| > | believe this implementation is in accord with the ISO C Standard;
| > | offering it just as a macro isn't (I think).
| > | 
| > | Unless you know of some implementation that offers it only as a macro,
| > | I don't see a reason to keep debating this issue.
| 
| Since I just heard lots of eyes roll my direction (I have another target
| where mblen is a #define in /usr/include) I'll confirm that I do have a
| global symbol for mblen in libc.a. :-)
| 
| It's some affirmation that I've been #undef-ing it in my local copy and
| have observed no link failures.

Indeed.  Because your implementation provides *both* forms which is
conform to the C standard.  

Alexandre made the case of an possible implementation which would
provide only the macro form -- which is clearly non conforming, but V3
needs to get around host target oddities :-(

-- Gaby
CodeSourcery, LLC                       http://www.codesourcery.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]