On Monday 06 July 2009 07:52:13, Johnny Willemsen wrote:
> > int fileno (FILE*);
> > void *_fileno (FILE*);
> 
> I think this will not work. 

Why?  I'm curious; are you using fileno instead of _fileno?

> If it is easier for other projects, feel free to 
> convert the method return value type back to int, I will add a workaround to
> ACE.
> 

My argument was this:

If you're porting some code to CE that is using the posixy
open/read/write etc. and getting at the file descriptor with
fileno functions, then having fileno be consistent with the rest
of the world means close to 0 porting and changes in generic code.
Only in specific win32/CE bits of your code would you need to get
the handle behind the file descriptor --- and in those isolated
bits of code, you'd do a (void*) cast, away from "generic" code.

OTOH, if you force fileno to return void* always, then, a porter
is forced to change the app's "generic" code, which is likely to be
more hair for not much buck; and it's likely that there are more
of those "generic" bits, than there are "CE specific bits".

This is my view anyway.

-- 
Pedro Alves

------------------------------------------------------------------------------
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to