Repository navigation
oo2c 2.2.3
The first release with a tarball for 32-bit systems, oo2c_32, next
to oo2c_64. Tested by the CI on x86-64, aarch64 and i386 Linux and
on FreeBSD, OpenBSD and NetBSD. The compiler and the library build
and pass make test with no gcc warnings.
- POINTER [CSTRING] TO ARRAY OF CHAR implies NO_LENGTH_INFO for the
array. Such a pointer can refer to a string constant or any
character array, which has no length information, so LEN(p^) read
memory before the string. LEN(p^) and passing p^ to an open-array
parameter are now compile-time errors; walk the string to its 0X
instead. - make test-valgrind and make test-asan run the tests/ssa and
tests/lib test programs under valgrind memcheck, or compiled with
AddressSanitizer and UndefinedBehaviorSanitizer. Fixed the
undefined behaviour they found in ASH, SYSTEM.ROT, empty open-array
value parameters and the HashCode hash functions. - "make dist32" makes the oo2c_32 tarball (for systems with 4-byte
pointers) on a 64-bit system, and releases now include it. The
old "make dist64" target did not work with current autoconf. - Open-array parameters are declared in the generated C as pointers
(T *a) instead of arrays (T a[]). This is the same type in C, but
for T a[] gcc assumed at least one element and gave false
-Wstringop-overread/-overflow warnings, e.g. for an empty array. - The oocdoc HTML pages no longer list Object twice under "Import
List" when a module imports it under another name.