I am changing the configuration mechanism:

(1) eliminate config time checks for integer types.
Your compile MUST define the core integer types required
by Felix in stddef.h and stdint.h.. ssize is defined as ssize_t
and should be in sys/types.h on Unix platforms. I do not
know if Windows supports this. Do not use this type.
I may remove it (it's there for consistency/completeness).

(2) Eliminate config time check for filename separator.
Its \ on windows and / on Unix. That's it.

(3) I will replace the arithmax function generated by config
with a few functions, enough to select the right function
from these tags:

        OSX32
        OSX64
        WIN32
        WIN64
        UNIX32
        UNIX64

I think OSX32/64 and UNIX32/64 are the same. Windows differs
because int = long = int32 and long long = int64 on Windows,
whereas on Unix long = long long = int64.

Note that despite complaints by Unix geeks, Windows is consistent,
Unix is not. That is, the sizes of all core types on Windows are the same
for both Win32 and Win64. Of course aliases like uintptr, size, etc
are different on both platforms.

Because I have changed these weirdos to be fundamental types
in Felix, and not aliases, I have to fix integral promotion and
arithmax to work with these types as well. So step (3) will probably
*not* be done in the next commit.

<ASIDE>. I plan to get rid of uint32 uint64 etc as core types and replace them
with aliases to uint[N]. This should work "by magic" with compact linear
types provided I fix them to use a suitable base type, instead of int.
This is a lot of hard work, but it gives uintp[N] for all N upto 64, and
even better, integer[A,B] supporting an arbitrary subrange (of 64 bit integers).

With some additional work we can extend that to 256 bits.
YMMV. But this is all down the track (it's not trivial).
</ASIDE>

There's more stuff I would like to get rid of .. all of lpsrc/flx_maker.pak
would be good :-)


--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to