Lassi Kortela
d065a0039d
Define float_t and double_t for Watcom C
2019-08-18 13:40:25 +03:00
Lassi Kortela
baea23ab29
Switch to portable noreturn attributes
2019-08-18 00:07:46 +03:00
Lassi Kortela
edf7c991f4
Remove unneeded DLLEXPORT and STDCALL macros
2019-08-17 22:55:25 +03:00
Lassi Kortela
93813a9eb1
Remove unneeded numerical constants
...
To the extent we need these, we can get them from the stdlib.
2019-08-10 02:12:54 +03:00
Lassi Kortela
e9d6ca265c
Unify preprocessor checks for win32
...
<https://sourceforge.net/p/predef/wiki/OperatingSystems/ > says that _WIN32 is
always defined for both 32-bit and 64-bit versions of Windows.
2019-08-10 00:12:33 +03:00
Lassi Kortela
41f6dbc1a2
Assume 64-bit pointers for now
...
To get rid of ifdef complexity. Put 32-bit support back in later.
2019-08-09 23:35:50 +03:00
Lassi Kortela
c84c71adcc
Get rid of INLINE and STATIC_INLINE
...
Nowadays compilers have good optimizers that know when to inline static
functions depending on the user's chosen optimization level (and speed vs size
optimization). We don't need to annotate functions manually.
2019-08-09 21:35:20 +03:00
Lassi Kortela
12fb30462b
Simplify endian (byte order) detection
...
The following:
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
are apparently semi-standard nowadays.
2019-08-09 21:30:30 +03:00
Lassi Kortela
5817003816
Replace index_t with uintptr_t
2019-08-09 21:13:48 +03:00
Lassi Kortela
c0ef0c2549
Remove more useless typedefs
2019-08-09 21:11:40 +03:00
Lassi Kortela
36fd757689
Replace ptrint_t with standard intptr_t
2019-08-09 21:07:16 +03:00
Lassi Kortela
b35ab48437
Replace "preferred int type" with intptr_t
2019-08-09 21:04:19 +03:00
Lassi Kortela
d6a4029dde
Replace idiosyncratic C types with standard ones
...
For number types, we rely on classic C types (char, short, int, long) to be
the correct sizes. For precise bit widths, use standard intN_t and uintN_t.
For size_t, just use system size_t.
2019-08-09 21:00:03 +03:00
Lassi Kortela
d5d7406276
Remove unused Boehm GC hooks
2019-08-09 20:37:42 +03:00
Lassi Kortela
45a7ec7bc4
Remove include protections
...
Since we no longer have recursive includes, we don't need them. Removing the
protections uncovered a couple of accidental double-includes: good.
2019-08-09 19:47:22 +03:00
Lassi Kortela
d6f54bc13c
Consolidate all C files into a "c" subdirectory
2019-08-09 15:02:58 +03:00