octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isascii/toascii with MSVC


From: Michael Goffioul
Subject: Re: isascii/toascii with MSVC
Date: Mon, 25 Feb 2008 22:14:00 +0100

On 2/25/08, John W. Eaton <address@hidden> wrote:
> | >  #include <cctype>
> | >
> | >  inline int xisascii (int c) { return isascii (c); }
> | >  inline int xtoascii (int c) { return toascii (c); }
> | >
> | >  #undef isascii
> | >  #undef toascii
> |
> | This should be fine: put this into some lo-cctype.h header and
> | include it in ov-base.h should be enough to make MSVC happy
> | (I'll merge my repo with yours and try to recompile once you
> | commit the change).
>
> OK, after looking at this some more I noticed that there could be some
> trouble if we use the method I outlined above.  So I made the
> following change instead.  I didn't really want to have to rename the
> octave_value mapper methods (to xisascii, etc.) but I really don't see
> any other solution that will work reliably if some vendor converts
> other functions declared in ctype.h to be macros.

Just for the record, what did not work with the solution above?
(I thought it would work OK).

> Does this change work for you?

I'll tell you tomorrow (don't have time to recompile this evening).

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]