3 Commits

Author SHA1 Message Date
Pietro Monteiro
aed385dfe1 libga68: Make it possible to debug the GC
If GC_DEBUG is defined then all-upper-case macros will expand to calls
to the debug variant of collector functions.

So add the configury bit to define GC_DEBUG if the user wants and
switch all `GC_` calls to the corresponding macros.

libga68/ChangeLog:

	* configure: Regenerate.
	* configure.ac: Add --enable-algol68-gc-debug option and
	define GC_DEBUG accordingly.
	* ga68-alloc.c (_libga68_realloc): Use the C macro version of
	the GC function.
	(_libga68_realloc_unchecked): Likewise.
	(_libga68_malloc): Likewise.

Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
2026-01-11 21:49:03 -05:00
Pietro Monteiro
f129bfb6a8 libga68: Include ga68.h before system headers
Make sure all declarations added by autoconf are seen by system
headers.

libga68/ChangeLog:

	* ga68-alloc.c: Include ga68.h before all includes.
	* ga68-error.c: Likewise.
	* ga68-standenv.c: Likewise.
	* ga68-unistr.c:  Likewise.

Signed-off-by: Pietro Monteiro <pietro@sociotechnical.xyz>
2025-12-27 14:45:07 -05:00
Jose E. Marchesi
b67e045af7 a68: libga68: sources, spec and misc files
Signed-off-by: Jose E. Marchesi <jemarch@gnu.org>

ChangeLog

	* libga68/README: New file.
	* libga68/ga68-alloc.c: Likewise.
	* libga68/ga68-error.c: Likewise.
	* libga68/ga68-posix.c: Likewise.
	* libga68/ga68-standenv.c: Likewise.
	* libga68/ga68-unistr.c: Likewise.
	* libga68/ga68.h: Likewise.
	* libga68/libga68.c: Likewise.
	* libga68/libga68.spec.in: Likewise.
2025-11-30 01:52:19 +01:00