On Thu, 2007-02-15 at 11:25 +0000, Nuno Lucas wrote:
> On 2/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> [...]
> > 4) Map errno to [Get|Set]LastError() with preprocessor macros.
> >         #define errno GetLastError()
> >         #define __set_errno(X) SetLastError((DWORD)X)
> >         #define ENOMEM ERROR_OUTOFMEMORY
> >         (...)
> [...]
> > Conclusion:
> >
> > I like 4 the best, and I am going to give it a try.
> >
> > Any opinions/comments/requests-for-clarification/war_stories
> > would be much appreciated.
> 
> You forgot one solution:
> 
> 5) Win32 for WindowsCE doesn't have errno, just like it doesn't have
> any getcwd() and co. If the user is porting code with mingw32ce which
> uses this, either use it's own replacements or use cegcc.
> 
> I'm with 5. For me, mingw32ce is the thin wrapper around the WinCE
> Win32 API, so don't try to add functionality that doesn't exist
> already on the standard SDK.

Pedro was probably saying the same thing, except he didn't specify
explicitly where the
        #define errno GetLastError()
and so should be written. Theoretically they could be in some mingw32ce
include file, or in the application sources.

Nuno makes a clear case for the latter; I agree.

        Danny
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to