[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.
- isascii/toascii with MSVC, Michael Goffioul, 2008/02/24
- Re: isascii/toascii with MSVC, Michael Goffioul, 2008/02/25
- Re: isascii/toascii with MSVC, John W. Eaton, 2008/02/25
- Re: isascii/toascii with MSVC, Michael Goffioul, 2008/02/25
- Re: isascii/toascii with MSVC, John W. Eaton, 2008/02/25
- Re: isascii/toascii with MSVC, Michael Goffioul, 2008/02/25
- Re: isascii/toascii with MSVC, John W. Eaton, 2008/02/25
- Re: isascii/toascii with MSVC, Michael Goffioul, 2008/02/25
- Re: isascii/toascii with MSVC, John W. Eaton, 2008/02/25
- Re: isascii/toascii with MSVC,
Michael Goffioul <=
- Re: isascii/toascii with MSVC, John W. Eaton, 2008/02/25
- Re: isascii/toascii with MSVC, Michael Goffioul, 2008/02/26
- Re: isascii/toascii with MSVC, Daniel J Sebald, 2008/02/25