Re: Euphoria for FreeBSD!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Rob Craig writes:
> You first have to install Euphoria for Linux,
> then replace exu with the one compiled for FreeBSD.
> The two platforms are so similar, I decided to let
> platform() return 3 for both of them. Otherwise
> a lot of existing Linux code would break needlessly on FreeBSD.

As Eu ports for other platforms may follow, how about
extending platform() like this :

sequence s
s = extended_platform()

s[OSFAMILY] = "Unix","Dos","Windows","MacOS"
s[OSNAME] = "Windows","FreeBSD","Linux","OpenBSD","AIX","MacOS","MacOS X"...
s[OSVERSION] = xx.yy
s[ARCHITECTURE] = "mc68000","i386","IA-64","PowerPC"...
s[BYTE_ORDER] = BIG_ENDIAN,LITTLE_ENDIAN
...

    Martin

Regards,
      Martin Stachon

martin.stachon at worldonline.cz
http://www.webpark.cz/stachon

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu