Sorry guys, hope this mail is better and this is content of my original=20
post:



=20
Hello,=20

While studying win32-unicode-test branch, I wonder why there is no=20
platform independent interface? Code such as=20

#ifdef =5FWIN32=20
    if (=5Fwchdir((WCHAR *)RSTRING=5FPTR(path)) < 0)=20
#else=20
    if (chdir(RSTRING=5FPTR(path)) < 0)=20
#endif=20

should actually look as=20

if (pi=5Fchdir(RSTRING=5FPTR(path)) < 0)=20

where "pi" stands for "platform independent" and later on, there should be =

in platform specific files macro redefining this call to platform specific =

call, e.g.=20

in win32.h, there would be #define pi=5Fchdir(p)              =20
 rb=5Fw32=5Fchdir((WCHAR *)p)=20
in macosx, there would be #define pi=5Fchdir(p)              =20
 rb=5Fapple=5Fchdir(p)=20
in posix, there would be #define pi=5Fchdir(p)                chdir(p)=20

The code is now so much cluttered by platform specific that it is almost=20
unreadable and hard to maintain.=20


Vit=20






Od:
Nobuyoshi Nakada <nobu / ruby-lang.org>
Komu:
ruby-core / ruby-lang.org
Datum:
02.09.2009 14:22
P=F8edm=ECt:
[ruby-core:25280] Re: Odpov=EC=EF:  Re: Ruby platform interface
Odeslal:
Nobuyoshi Nakada <nobu.nakada / gmail.com>



Hi,

At Wed, 2 Sep 2009 21:12:34 +0900,
Eero Saynatkari wrote in [ruby-core:25279]:
> Excerpts from message of Wed Sep 02 13:03:22 +0300 2009:
> > <html />
>=20
> Please send mail in plaintext rather than HTML if at
> all possible.

At least, unak doesn't read HTML mails.

--=20
Nobu Nakada