Commit Graph

7 Commits

Author SHA1 Message Date
3fa03e87ea Fix typename of args (for all funcs). (e_strv_set_ref): Assert the index
2000-11-30  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c (e_strv_new): Fix typename of args (for all funcs).
        (e_strv_set_ref): Assert the index is in range.
        (e_strv_set_ref_free): "
        (e_strv_set): "
        (e_strv_get): "

svn path=/trunk/; revision=6733
2000-11-30 11:50:11 +00:00
fe151f1599 Plug a memleak, need to free results from term_eval(). (term_eval_gt):
2000-11-29  Not Zed  <NotZed@HelixCode.com>

        * e-sexp.c (term_eval_lt): Plug a memleak, need to free results
        from term_eval().
        (term_eval_gt):
        (term_eval_eq):

2000-11-27  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c (e_mempool_new): Added some locking to global data.
        This should make the interfaces mt-safe, although each object is
        only per-thread safe.

svn path=/trunk/; revision=6710
2000-11-29 10:29:56 +00:00
17c69cb3be New function, set a reference to a string that is then owned/free'd by the
2000-11-22  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c
        (e_strv_set_ref_free): New function, set a reference to a string
        that is then owned/free'd by the strv.
        (e_strv_destroy): If there are any strings to destroy, free them
        here.

svn path=/trunk/; revision=6645
2000-11-22 00:45:40 +00:00
477df7090a If we dont get a big enough chunk in the first node, give up. Otherwise we
2000-11-22  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c (e_mempool_alloc): If we dont get a big enough chunk
        in the first node, give up.  Otherwise we spend too much time
        searching.
        (e_mempool_strdup): Doh, and allocate enough for the terminating
        NUL at that.

svn path=/trunk/; revision=6631
2000-11-21 14:59:13 +00:00
bb09c40e2f New function to strdup into a mempool.
2000-11-21  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c
        (e_mempool_strdup): New function to strdup into a mempool.

svn path=/trunk/; revision=6630
2000-11-21 14:31:41 +00:00
4639aa999e New function to allocate a zero'd out chunk.
2000-11-21  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c (e_memchunk_alloc0): New function to allocate a
        zero'd out chunk.

svn path=/trunk/; revision=6624
2000-11-21 04:01:10 +00:00
79f6be42c0 New routines for fast memory management and compact string array storage.
2000-11-20  Not Zed  <NotZed@HelixCode.com>

        * e-memory.[ch]: New routines for fast memory management and
        compact string array storage.

        * Makefile.am (libeutil_la_SOURCES): Added e-memory.[ch].

svn path=/trunk/; revision=6619
2000-11-20 23:57:32 +00:00