8 Commits

Author SHA1 Message Date
EST 1999 Jeff Garzik
0d0f178c09 Add checks for alloca, defining G_NATIVE_ALLOCA if present.
Fri Jan 22 13:41:41 EST 1999  Jeff Garzik  <jgarzik@pobox.com>

        * configure.in:
        Add checks for alloca, defining G_NATIVE_ALLOCA if present.

        * galloca.c:
        Import replacement alloca implementation from gettext 0.10.35.
        Begin to convert to using GLib types and functions.

        * glib.h:
        New macros g_alloca, g_alloca_gc, g_alloca_new, to perform
        stack-based memory allocations.

        * tests/Makefile.am, tests/queue-test.c, tests/alloca-test.c:
        New tests for g_alloca_*, GQueue ADT.

        * tests/stack-test.c:
        Fix pointer casts, include config.h, and
        call g_stack_free at end of run.
1999-01-22 19:33:26 +00:00
EST 1999 Jeff Garzik
b5706b2604 Add gqueue.c
Fri Jan 22 11:58:13 EST 1999  Jeff Garzik  <jgarzik@pobox.com>

        * Makefile.am:
        Add gqueue.c

        * glib.h:
        Add GQueue struct and prototypes.
        Remove g_stack_free macro.

        * gqueue.c
        New file.  Implementation of a queue ADT.

        * gstack.c:
        Rename _g_stack_free back to g_stack_free.

        * tests/Makefile.am, tests/stack-test.c:
        New test for GStack objects.
1999-01-22 17:23:13 +00:00
EST 1999 Jeff Garzik
dc22ea7760 Add braces to eliminate an ambiguous else warning.
Thu Jan 21 12:40:11 EST 1999  Jeff Garzik  <jgarzik@pobox.com>

        * gmodule/gmodule-dl.c (_g_module_build_path):
        Add braces to eliminate an ambiguous else warning.

        * tests/{Makefile.am, string-test.c, strfunc-test.c}:
        Separate string and strfunc tests, working towards goal of
        having separate test for each of the GLib modules.
        Add a couple GString length tests.
1999-01-21 18:07:20 +00:00
Jeff Garzik
b4c62873da alloca and vasprintf go away 1999-01-11 20:24:28 +00:00
Jeff Garzik
5eeca0d62d Make all aux functions static.
* testglib.c:
        Make all aux functions static.

        * tests/Makefile.am, tests/dirname-test.c, tests/type-test.c:
        New tests dirname-test and type-test, from testglib.
1999-01-09 20:10:45 +00:00
Jeff Garzik
e5795df8fd Add tree test. 1999-01-03 07:37:47 +00:00
Jeff Garzik
4b72e45233 add array-test.c
* tests/Makefile.am:
        add array-test.c

        * tests/array-test.c:
        New module, tests array family

        * tests/hash-test.c, tests/list-test.c, tests/slist-test.c,
          tests/string-test.c, tests/node-test.c:
        Clean out cruft left over from testglib.
1999-01-03 06:44:45 +00:00
Jeff Garzik
0b74f03e70 Added 'make check' tests, based on testglib code. 1999-01-03 03:42:59 +00:00