Commit Graph

164 Commits

Author SHA1 Message Date
George Lebl
d2063fdc73 typo fixed for alphas for gint64
Mon Jul 20 23:05:34 1998  George Lebl  <jirka@5z.com>

        * glib.h: typo fixed for alphas for gint64
1998-07-21 06:06:12 +00:00
Elliot Lee
4e2aaa2372 Add gint64/guint64 if possible (HAVE_GINT64 is defined if we have it,
Add gint64/guint64 if possible (HAVE_GINT64 is defined if we have it,
since I don't think "long long" works on 32-bit platforms that don't have
gcc...
1998-07-20 15:53:36 +00:00
Tim Janik
acc1c38efe new fuction g_dirname() which returns a newlly allocated string.
Tue Jul 14 09:05:18 1998  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gutils.c: new fuction g_dirname() which returns a newlly
        allocated string.
1998-07-14 07:39:07 +00:00
Manish Singh
da0f2dde98 While we're off changing glib.h, correct some cosmetic nits. No changed
functionality.

-Yosh
1998-07-10 06:53:27 +00:00
Tim Janik
49ae057a97 added a bunch of utility/wrapper functions: g_basename(), g_getcwd(),
Fri Jul 10 06:33:43 1998  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gutils.h: added a bunch of utility/wrapper functions:
        g_basename(), g_getcwd(), g_get_user_name(), g_get_real_name(),
        g_get_home_dir(), g_get_tmp_dir(), g_get_prgname() and g_set_prgname().

        * gutils.c: removed all g_str* functions.
        * gstrfuncs.c: moved the bunch g_str* functions from gutils.c in this
        place. this file shall never include <stdlib.h> to avoid clashes for
        some of the g_str* functions on some OSes.
1998-07-10 05:51:17 +00:00
Lauri Alanko
5b52f01535 Renamed g_hash_table_lookup_full to g_hash_table_lookup_extended to
conform with naming conventions.
1998-07-09 21:35:59 +00:00
Lauri Alanko
7519c2338a Generic hash cleanup, added a function (g_hash_table_lookup_full). 1998-07-07 08:27:58 +00:00
Manish Singh
61bccc36a9 Added g_array_length
-Yosh
1998-07-04 20:39:29 +00:00
Tim Janik
afdf8b93a3 removed g_dataset_try_key, g_dataset_force_id and g_dataset_retrive_key in
Fri Jun 19 03:11:02 1998  Tim Janik  <timj@gtk.org>

        * gdataset.c: removed g_dataset_try_key, g_dataset_force_id and
        g_dataset_retrive_key in favour of GQuarks.
        a GQuark is an numeric id wich is associated with a certain string.
        (g_quark_try_string): try to get the quark associated with this string,
        if the lookup failed return 0.
        (g_quark_from_string): get the associated quark for a string, if there
        isn't currently a GQuark associated with this string, then allocate a
        new quark and return that.
        (g_quark_from_static_string): like the above function, but the string
        isn't strdup()ed to save memory.
        (g_quark_to_string): get the string that is associated with a certain
        GQuark.

        * gdataset.c (g_dataset_id_set_data_full): invoke the destroy function
        _after_ the new data has been setup.
1998-06-19 02:00:23 +00:00
Owen Taylor
12edfe9084 Changed messages for g_return_[val]_if_fail to be somewhat more clear:
Thu Jun 18 02:35:21 1998  Owen Taylor  <otaylor@gtk.org>

	* glib.h: Changed messages for g_return_[val]_if_fail to
	be somewhat more clear: assertion "blah" failed.
1998-06-19 01:24:25 +00:00
Tim Janik
860af205b6 cleanups of the structure fields (binary incompatible).
Fri Jun 12 15:39:06 1998  Tim Janik  <timj@gtk.org>

        * glib.h (GScanner): cleanups of the structure fields (binary
        incompatible).
1998-06-12 14:39:38 +00:00
Josh MacDonald
df9a49ec3c [Changes from josh to sync with his glib stuff -Yosh]
Fri Jun 12 00:39:28 1998  Josh MacDonald  <jmacd@icw.EECS.Berkeley.EDU>

        * glib.h: add new hash and equal functions g_int_*.  complement
        g_direct_hash with g_direct_equal.

        * grel.c: new file, GRelations implement tuples of N-N mappings.
        A comment in glib.h briefly describes the interface.

        * ghash.c: new function, g_hash_table_size

        * glib.h: new typedefs, gsize, gssize, gtime.

        * garray.c: new functions implementing a simplified GArray.  This
        GPtrArray is an array of gpointers and has functions to add and
        remove elements, much like java.lang.Vector.

        * garray.c: new functions for the single-byte special case of
        GArray.  The functions g_byte_array* operate on arrays of bytes.
        Internally, a GArray is used.

        * testglib.c: tests for g_ptr_array, g_byte_array, and g_relation...
1998-06-12 09:38:32 +00:00
Tim Janik
b49ead6fe5 new function g_dataset_retrive_key. adjusted prealloc sizes, to take up
Thu Jun 11 04:15:31 1998  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gdataset.c: new function g_dataset_retrive_key. adjusted prealloc
        sizes, to take up less space on initial allocation.
1998-06-11 03:38:33 +00:00
Owen Taylor
375b23836d Added glib.h which was mistakenly in .cvsignore 1998-06-10 23:28:29 +00:00