platform/upstream/glib.git
24 years agoAdded documentation for G_MAXU(INT|SHORT|LONG).
Sebastian Wilhelmi [Mon, 30 Oct 2000 16:08:23 +0000 (16:08 +0000)]
Added documentation for G_MAXU(INT|SHORT|LONG).

2000-10-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/tmpl/limits.sgml: Added documentation for
G_MAXU(INT|SHORT|LONG).

* glib/tmpl/macros_misc.sgml: Added documentation for
G_G(U)INT(16|32|64)_FORMAT.

* glib/tmpl/types.sgml: Mention G_MAXU(INT|SHORT|LONG) in
documentation for gu(int|short|long).

24 years agosecond try.
Sebastian Wilhelmi [Mon, 30 Oct 2000 14:50:32 +0000 (14:50 +0000)]
second try.

second try.

24 years agoMove GCompareFunc to GList and introduce and document GEqualFunc in
Sebastian Wilhelmi [Mon, 30 Oct 2000 14:49:50 +0000 (14:49 +0000)]
Move GCompareFunc to GList and introduce and document GEqualFunc in

2000-10-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/glib-sections.txt, glib/tmpl/linked_lists_double.sgml,
glib/tmpl/caches.sgml: Move GCompareFunc to GList and introduce
and document GEqualFunc in GHashTable.

* glib/tmpl/caches.sgml, glib/tmpl/hash_tables.sgml,
glib/tmpl/relations.sgml : Changed to reflect the changed API
(GCompareFunc -> GEqualFunc).

* glib/tmpl/linked_lists_single.sgml, glib/tmpl/threads.sgml: Typo
fixes.

24 years agomade both functions return gboolean just for the little extra standard
Sebastian Wilhelmi [Mon, 30 Oct 2000 14:39:23 +0000 (14:39 +0000)]
made both functions return gboolean just for the little extra standard

2000-10-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gvalue.c (exchange_entries_equal), gparam.c (param_spec_equals):
made both functions return gboolean just for the little extra
standard conformance now that GEqualFunc is introduced.

24 years agoIntroduced new function type GEqualFunc to return TRUE for equal params.
Sebastian Wilhelmi [Mon, 30 Oct 2000 14:34:52 +0000 (14:34 +0000)]
Introduced new function type GEqualFunc to return TRUE for equal params.

2000-10-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gcache.h, gcache.c, ghash.h, ghash.c, grel.c, grel.h, gtypes.h:
Introduced new function type GEqualFunc to return TRUE for equal
params. This is now used instead of GCompareFunc (which should
work akin to strcmp) here. This kind of fixes Bug #14412. Note
that technically GCompareFunc and GEqualFunc are still the same
types, as gint == gboolean.

* ghash.h, gutils.c: g_int_equal and g_direct_equal now return
gboolean to be really become GEqualFunc.

* gscanner.c, testglib.c, tests/hash-test.c: Some tiny changes to
follow the above change.

24 years agostart at general description.
Tim Janik [Mon, 30 Oct 2000 10:14:47 +0000 (10:14 +0000)]
start at general description.

Mon Oct 30 11:13:12 2000  Tim Janik  <timj@gtk.org>

        * gobject/tmpl/signals.sgml: start at general description.

        * gobject/gobject-docs.sgml: added introduction.

24 years agoopened up a new section on signals.
Tim Janik [Mon, 30 Oct 2000 05:03:19 +0000 (05:03 +0000)]
opened up a new section on signals.

Mon Oct 30 06:01:43 2000  Tim Janik  <timj@gtk.org>

        * gobject/gobject-sections.txt: opened up a new section on signals.

Mon Oct 30 05:52:45 2000  Tim Janik  <timj@gtk.org>

        * gsignal.c (g_signal_list_ids): get rid of inline documentation owen
        added, the doc system would ignore it anyways (for some reason not
        aparent to me).

24 years agorenamed owen's g_type_signals(), added required mutex locks.
Tim Janik [Mon, 30 Oct 2000 03:36:22 +0000 (03:36 +0000)]
renamed owen's g_type_signals(), added required mutex locks.

Mon Oct 30 03:00:07 2000  Tim Janik  <timj@gtk.org>

        * gsignal.[hc] (g_signal_list_ids): renamed owen's g_type_signals(),
        added required mutex locks.

24 years agoFix problem where signals with "_" in them appeared twice in the result
Owen Taylor [Sun, 29 Oct 2000 07:37:07 +0000 (07:37 +0000)]
Fix problem where signals with "_" in them appeared twice in the result

Sun Oct 29 02:31:03 2000  Owen Taylor  <otaylor@redhat.com>

* gsignal.c (g_type_signals): Fix problem where signals
with "_" in them appeared twice in the result array.

24 years agoAdd g_type_signals() - a function to list all signals for a given type.
Owen Taylor [Sun, 29 Oct 2000 07:02:48 +0000 (07:02 +0000)]
Add g_type_signals() - a function to list all signals for a given type.

Sun Oct 29 01:58:44 2000  Owen Taylor  <otaylor@redhat.com>

* gsignal.h: Add g_type_signals() - a function to list
all signals for a given type.

24 years agofixed notifier position for post_marshal guard which was off at 0.
Tim Janik [Fri, 27 Oct 2000 22:28:01 +0000 (22:28 +0000)]
fixed notifier position for post_marshal guard which was off at 0.

Sat Oct 28 00:28:09 2000  Tim Janik  <timj@gtk.org>

        * gclosure.c (g_closure_add_marshal_guards): fixed notifier position
        for post_marshal guard which was off at 0.

Fri Oct 27 21:49:31 2000  Tim Janik  <timj@gtk.org>

        * gobject.[hc]: doh, fix argument order in for
        g_cclosure_new_object_swap and g_cclosure_new_object.

24 years agoMake glib-genmarshal.exe.
Tor Lillqvist [Fri, 27 Oct 2000 21:35:45 +0000 (21:35 +0000)]
Make glib-genmarshal.exe.

2000-10-28  Tor Lillqvist  <tml@iki.fi>

* makefile.{mingw,msc}.in: Make glib-genmarshal.exe.

* glib-genmarshal.c: Conditionalise include of unistd.h.
Include <io.h> on Win32.

* gobject.def: Add some missing entry points.

24 years agoAdd gmarkup.
Tor Lillqvist [Fri, 27 Oct 2000 20:43:42 +0000 (20:43 +0000)]
Add gmarkup.

2000-10-27  Tor Lillqvist  <tml@iki.fi>

* makefile.{mingw,msc}.in (glib_OBJECTS): Add gmarkup.

* glib.def: Add missing functions.

* tests/makefile.{mingw,msc}.in (TESTS): Add markup-test.

24 years agopublically define GSignalInvocationHint structure that gets passed in to
Tim Janik [Fri, 27 Oct 2000 16:48:11 +0000 (16:48 +0000)]
publically define GSignalInvocationHint structure that gets passed in to

Fri Oct 27 16:33:41 2000  Tim Janik  <timj@gtk.org>

        * gsignal.[hc]: publically define GSignalInvocationHint structure
        that gets passed in to closure invocations. added signal details.
        renamed GSignalType to GSignalFlags to comply with conventions.
        quite some cleanups and minor fixes. avoid uneccessary handler list
        walks upon invokation of after handlers. relookup handler list for
        restarted emissions. preliminary abort normal handler invokation if
        after handler is encountered.

        * glib-genmarshal.c:
        * gclosure.[hc]: moved invocation_hint to the end of the
        g_closure_invoke() arguments as sugegsted by kenelson.
        also made it a gpointer to be more generic. the invocation_hint
        is a caller specific thing that can be used to pass additional
        data in to closure invocations as documented with the caller
        invoking the closure.

24 years agoRemoved the win32 limitation.
Sebastian Wilhelmi [Fri, 27 Oct 2000 12:53:05 +0000 (12:53 +0000)]
Removed the win32 limitation.

2000-10-27  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/tmpl/misc_utils.sgml: Removed the win32 limitation.

24 years ago.cvsignore updates
Sebastian Wilhelmi [Fri, 27 Oct 2000 12:36:18 +0000 (12:36 +0000)]
.cvsignore updates

.cvsignore updates

24 years agoDocument the recently deprecated functions as such.
Sebastian Wilhelmi [Fri, 27 Oct 2000 12:34:49 +0000 (12:34 +0000)]
Document the recently deprecated functions as such.

2000-10-27  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/glib-sections.txt, glib/tmpl/hash_tables.sgml,
glib/tmpl/macros_misc.sgml, glib/tmpl/misc_utils.sgml,
glib/tmpl/scanner.sgml: Document the recently deprecated functions
as such.

24 years agoconst fix
Tim Janik [Fri, 27 Oct 2000 05:32:48 +0000 (05:32 +0000)]
const fix

24 years agori Oct 27 05:35:14 2000 Tim Janik <timj@gtk.org>
Tim Janik [Fri, 27 Oct 2000 04:19:34 +0000 (04:19 +0000)]
ri Oct 27 05:35:14 2000  Tim Janik  <timj@gtk.org>

        * gobject.c (g_object_watch_closure): fixed realloc bug, reported
                by havoc.

24 years agofixed deadlock scenarion where g_signal_lookup() would be called with the
Tim Janik [Fri, 27 Oct 2000 03:33:31 +0000 (03:33 +0000)]
fixed deadlock scenarion where g_signal_lookup() would be called with the

Fri Oct 27 05:35:14 2000  Tim Janik  <timj@gtk.org>

        * gsignal.c (g_signal_newv): fixed deadlock scenarion where
        g_signal_lookup() would be called with the signal lock being
        held. reported by james henstridge.

        * gclosure.c (g_closure_set_meta_marshal): fixed memcpy/overwrite bug
        reported by owen.

24 years agoNew module to parse a simple markup language
Havoc Pennington [Fri, 27 Oct 2000 02:46:04 +0000 (02:46 +0000)]
New module to parse a simple markup language

2000-10-24  Havoc Pennington  <hp@pobox.com>

        * gmarkup.h, gmarkup.c: New module to parse a simple
markup language

* Makefile.am: add gmarkup.h, gmarkup.c

* tests/Makefile.am: add markup-test

* gstring.h (g_string_new_len): new function to create a string
with a length
(g_string_new): avoid a gratuitous realloc

24 years agoCosmetics.
Tor Lillqvist [Thu, 26 Oct 2000 17:53:58 +0000 (17:53 +0000)]
Cosmetics.

2000-10-26  Tor Lillqvist  <tml@iki.fi>

* makefile.{mingw,msc}.in: Cosmetics.

24 years agoFix gccisms (pointer arithmetic on void pointer, label without statement
Tor Lillqvist [Thu, 26 Oct 2000 17:53:08 +0000 (17:53 +0000)]
Fix gccisms (pointer arithmetic on void pointer, label without statement

2000-10-26  Tor Lillqvist  <tml@iki.fi>

* gbsearcharray.c (bsearch_array_insert): Fix gccisms (pointer
arithmetic on void pointer, label without statement following.

* gtype.c (type_node_fundamental_info): Don't apply unary minus to
result of sizeof operator, it can be unsigned. Cast first to
gssize.

* gobject.def: Add new functions.

* makefile.{mingw,msc}.in: Add new objects.

24 years agoWhen the string is ended by a delimiter, return an extra empty string just
Sebastian Wilhelmi [Thu, 26 Oct 2000 13:00:18 +0000 (13:00 +0000)]
When the string is ended by a delimiter, return an extra empty string just

2000-10-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gstrfuncs.c (g_strsplit): When the string is ended by a
delimiter, return an extra empty string just like for a delimiter
at the start of the string. This makes the function behave more
consitent and also fixes Bug #15026.

24 years agoRemove empty SUBDIRS line _again_, as that _still_ prevents 'make dist'
Sebastian Wilhelmi [Thu, 26 Oct 2000 12:01:15 +0000 (12:01 +0000)]
Remove empty SUBDIRS line _again_, as that _still_ prevents 'make dist'

2000-10-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* Makefile.am: Remove empty SUBDIRS line _again_, as that _still_
prevents 'make dist' from working.

24 years agoDon't use implicit casts from void * since this will get included from C++
Owen Taylor [Wed, 25 Oct 2000 23:39:32 +0000 (23:39 +0000)]
Don't use implicit casts from void * since this will get included from C++

Wed Oct 25 19:11:03 2000  Owen Taylor  <otaylor@redhat.com>

* gbsearcharray.h (g_bsearch_array_get_nth): Don't use implicit
casts from void * since this will get included from C++ too
at times.

24 years agoadded g_value_set_static_string().
Tim Janik [Wed, 25 Oct 2000 22:33:26 +0000 (22:33 +0000)]
added g_value_set_static_string().

Thu Oct 26 00:30:27 2000  Tim Janik  <timj@gtk.org>

        * gvaluetypes.[hc]: added g_value_set_static_string().

        * gboxed.[hc]: const corrections. added g_value_set_static_boxed().

24 years agoadded newly added gobject/ headers.
Tim Janik [Wed, 25 Oct 2000 20:36:35 +0000 (20:36 +0000)]
added newly added gobject/ headers.

Tue Oct 24 22:09:14 2000  Tim Janik  <timj@gtk.org>

        * glib-object.h: added newly added gobject/ headers.

        * gmesage.c: print g_message() output to stderr instead of stdout.

Wed Oct 25 20:27:02 2000  Tim Janik  <timj@gtk.org>

        * gtype.c (g_type_free_instance): for the moment, freeing object
        structures will fill their memory portion with 0xAA. there's a
        FIXME there, remove this line at a later point.

Tue Oct 24 23:10:26 2000  Tim Janik  <timj@gtk.org>

        * glib-genmarshal.1:
        * glib-genmarshal.c: added publically installed marshaller generator.

        * gtype.h: added G_TYPE_INSTANCE_GET_INTERFACE() to retrive a certain
        interface VTable from instances.

Mon Oct 23 08:28:15 2000  Tim Janik  <timj@gtk.org>

        * gobject.[hc]: new functions for closure maintenance:
        (g_object_watch_closure): maintain validity of the object and
        the closure for objects that are used as data part of a closure.
        (g_cclosure_new_object): convenience function to create C closures
        that have an object as data argument.
        (g_closure_new_object): convenience function to create closures
        that have an object as data argument.

        * gclosure.[hc]: implementation of GClosure mechanism.
        a closure is basically an encapsulation of a callback function
        and its environment. ideally, most places supporting callback
        functions will simply take a GClosure* pointer and thus unify
        callback environments wrg destroy notification etc.
        GClosure provides destroy notifiers for arbitrary data pointers,
        reference counting, invalidation notification (it can be invalidated
        which is merely a deactivate state) and a marshallinbg abstraction.
        GCClosure is also provided in these files, they present a specialized
        GClosure implementation for C language callbacks.

        * genum.c: macro cleanups.

        * gboxed.[hc]: new files, for boxed type abstraction.
        (g_boxed_copy): copy a boxed structure
        (g_boxed_free): free a boxed structure
        (g_value_set_boxed):
        (g_value_get_boxed): standard GValue functions for boxed types
        (g_boxed_type_register_static): convenience function for easy
        introduction of new G_TYPE_BOXED derivatives.

        * gparam.[hc]: introduced g_param_type_register_static(), a short hand
        for creation of new GParamSpec derived types.

        * gtype.[hc]: many fixes, introduced ability to flag individual
        type nodes as ABSTRACT upon registration, added value_peek_pointer()
        to the value table to peek at GValue contents as a pointer for types
        that support this. fixed up GValue checks.

        * gvalue.[hc]: added g_value_fits_pointer() and g_value_get_as_pointer()
        to peek at the value contents as pointer.

        * *.[hc]: adaptions to type macro fixes and changes in the type
        registration API.

        * many const corrections over the place.

Sat Oct 21 02:49:56 2000  Tim Janik  <timj@gtk.org>

        * gtype.c (g_type_conforms_to): this function basically behaves like
        and is_a check, except that it _additionally_ features interfaces
        for instantiatable types. enforce this in the second branch as well
        (`type' conforms_to `type') even if `type' is not an interface type.

Fri Oct 20 15:31:04 2000  Tim Janik  <timj@gtk.org>

        * gvaluetypes.[hc]: added G_TYPE_POINTER implementation from jrb.

        * gtype.[hc]:
        * gobject.c:
        * gvaluetypes.c: added GTypeValueTable.value_peek_pointer and
        suitable implementations of this for G_TYPE_STRING, G_TYPE_OBJECT
        and G_TYPE_POINTER.

Mon Aug 21 04:13:37 2000  Tim Janik  <timj@gtk.org>

        * gbsearcharray.[hc]: long standing needed generic implementation
        of a binary searchable, sorted and dynamically sized array.

24 years agoAdd @GLIB_DEBUG_FLAGS@ to INCLUDES for accessing -DG_ENABLE_DEBUG as
Sebastian Wilhelmi [Wed, 25 Oct 2000 10:58:46 +0000 (10:58 +0000)]
Add @GLIB_DEBUG_FLAGS@ to INCLUDES for accessing -DG_ENABLE_DEBUG as

2000-10-25  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* Makefile.am : Add @GLIB_DEBUG_FLAGS@ to INCLUDES for accessing
-DG_ENABLE_DEBUG as needed in gthread-posix.c.

* gthread-posix.c: Revamped error handling for native thread
function calls. Now EPERM errors are ignored for some commands and
only a warning message is output once (at first occurrence).

24 years agoUpdates.
Tor Lillqvist [Mon, 23 Oct 2000 19:17:41 +0000 (19:17 +0000)]
Updates.

24 years agoUse one = instead of two, which is plainly wrong.
Sebastian Wilhelmi [Mon, 23 Oct 2000 14:15:22 +0000 (14:15 +0000)]
Use one = instead of two, which is plainly wrong.

2000-10-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Use one = instead of two, which is plainly wrong.

24 years agoPass -DGSPAWN_HELPER when building it. Link with user32.lib.
Tor Lillqvist [Thu, 19 Oct 2000 17:52:12 +0000 (17:52 +0000)]
Pass -DGSPAWN_HELPER when building it. Link with user32.lib.

2000-10-19  Tor Lillqvist  <tml@iki.fi>

* makefile.msc.in: Pass -DGSPAWN_HELPER when building it. Link
with user32.lib.

* gspawn-win32.c
* gfileutils.c: Make them compile with picky MSVC.

* gwin32.h: New file. Move Win32-only stuff that isn't related to
GIOChannels here from giochannel.h.

* Makefile.am: Add it here.

* giochannel.h: Move stuff to gwin32.h.

* glib.h: On Win32, include gwin32.h.

24 years agoChange ERROR_OTHER to ERROR_FAILED, add some dummy marking with _().
Owen Taylor [Thu, 19 Oct 2000 15:21:04 +0000 (15:21 +0000)]
Change ERROR_OTHER to ERROR_FAILED, add some dummy marking with _().

Mon Sep 11 10:03:24 2000  Owen Taylor  <otaylor@redhat.com>

* glib.h convert.c (g_convert_with_fallback): Change
ERROR_OTHER to ERROR_FAILED, add some dummy marking with _().

* docs/reference/glib/glib-sections.txt
docs/reference/glib/glib-docs.sgml Update for g_convert,
g_unicode_validate.

24 years agoRemove alloca stuff from here. galloca.h takes care of it, correctly.
Tor Lillqvist [Mon, 16 Oct 2000 19:55:26 +0000 (19:55 +0000)]
Remove alloca stuff from here. galloca.h takes care of it, correctly.

2000-10-16  Tor Lillqvist  <tml@iki.fi>

* glibconfig.h.win32.in: Remove alloca stuff from here. galloca.h
takes care of it, correctly.

24 years agoAdd gspawn-win32.c to EXTRA_DIST.
Tor Lillqvist [Mon, 16 Oct 2000 18:55:38 +0000 (18:55 +0000)]
Add gspawn-win32.c to EXTRA_DIST.

24 years agoSome more debugging output. (g_io_channel_win32_poll): Remove unused vars.
Tor Lillqvist [Mon, 16 Oct 2000 18:54:29 +0000 (18:54 +0000)]
Some more debugging output. (g_io_channel_win32_poll): Remove unused vars.

2000-10-16  Tor Lillqvist  <tml@iki.fi>

* giowin32.c (reader_thread): Some more debugging output.
(g_io_channel_win32_poll): Remove unused vars.

* gfileutils.c: Changes for Win32, with no unistd.h and no
S_ISLNK().

* gspawn-win32.c: Implementation of the g_spwan_* functions for
Win32. Due to the general non-Unixness of Win32, much of the
functionality that is relatively clean to implement on Unix, is
hard to do on Win32. We must use a separate helper program to
change directory, close extra file descriptors, redirect the std
ones, as needed, and only then start the child process. No child
process pid can be returned, unfortunately. Or if we used
CreateProcess directly, it probably could. (Now we use the spawnv*
functions from msvcrt.)

* glib.def: Add new entry points.

* glib.def
* giowin32.c: Remove g_io_channel_win32_wait_for_condition(),
g_io_channel_win32_poll() subsumes it.

* gbacktrace.h: G_BREAKPOINT for MSVC (on the ix86).

* gwin32.c (g_win32_getlocale): Use "sp" for
LANG_CROATIAN+SUBLANG_SERBIAN_LATIN.

* makefile.{mingw,msc}.in (glib_OBJECTS): Add new files.
Add gspawn-win32-helper.exe rule.

* tests/makefile.{mingw,msc}.in (TESTS): Add shell-test and
spawn-test.

* tests/spawn-test.c: (run_tests): On Win32, don't try to run
/bin/sh, but ipconfig (no special significance in choosing that,
just a program that outputs something to stdout).

24 years agogmodule: New variable. (dist-hook): Handle $(BUILT_EXTRA_DIST).
Raja R Harinath [Mon, 16 Oct 2000 01:02:19 +0000 (01:02 +0000)]
gmodule: New variable. (dist-hook): Handle $(BUILT_EXTRA_DIST).

gmodule:
* Makefile.am (BUILT_EXTRA_DIST): New variable.
(dist-hook): Handle $(BUILT_EXTRA_DIST).

gobject:
* Makefile.am (BUILT_EXTRA_DIST): New variable.
(dist-hook): Handle $(BUILT_EXTRA_DIST).
(*): Remove traces of @STRIP_{BEGIN,END}@.

gthread:
* Makefile.am (BUILT_EXTRA_DIST): New variable.
(dist-hook): Handle $(BUILT_EXTRA_DIST).

docs/reference:
'make distcheck' fixes.
* glib/Makefile.am (EXTRA_DIST): Add $(DOC_MODULE)-decl.txt.
(html): Run 'gtkdoc-fixxref' in $(srcdir).
(dist-check-gtkdoc): Add missing quote.
(dist-hook): Copy in dependency order, so that none of the
makerules are fired in a tarball build.

* gobject/Makefile.am: Likewise.

toplevel:
Remove need for acconfig.h, and misc. cleanups.
* acglib.m4 (GLIB_SIZEOF): Add 'autoheader' comment to
AC_DEFINE_UNQUOTED.
(GLIB_BYTE_CONTENTS): Likewise.

* configure.in: Add 'autoheader' comments to all AC_DEFINE(...)
and AC_DEFINE_UNQUOTED(...) lines.
Replace AC_MSG_CHECKING/AC_CACHE_VAL with AC_CACHE_CHECK.
(AM_PROG_LIBTOOL): Move after AC_PROG_CC.

* acconfig.h: Empty out.

* Makefile.am (BUILT_EXTRA_DIST): New variable.  List 'dist'able
files that are created in the builddir.
(dist-hook): Handle those files.
(libglib_1_3_la_SOURCES): Remove @ALLOCA@.  @ALLOCA@ should only
be used in an _LDADD or _LIBADD, since it expands (if necessary)
to 'alloca.o'.

* tests/Makefile.am (BUILT_EXTRA_DIST): New variable.
(dist-hook): Handle $(BUILT_EXTRA_DIST).

24 years agoAdded inline documentation.
Sebastian Wilhelmi [Fri, 13 Oct 2000 13:52:47 +0000 (13:52 +0000)]
Added inline documentation.

2000-10-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* grand.c: Added inline documentation.

* docs/refernce/glib/glib-sections.txt: Added misc items.

* docs/refernce/glib/tmpl/random_numbers.sgml: Documentation for
        the random number generator.

24 years agoReadded GFreeFunc, g_node_insert_after and g_find_program_in_path resp.,
Sebastian Wilhelmi [Fri, 13 Oct 2000 08:16:54 +0000 (08:16 +0000)]
Readded GFreeFunc, g_node_insert_after and g_find_program_in_path resp.,

2000-10-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gtypes.h, gnode.h, gutils.h: Readded GFreeFunc,
g_node_insert_after and g_find_program_in_path resp., which
mysteriously disappeared during the glib.h dissection.

24 years agoRevert unintended commit...
Sebastian Wilhelmi [Thu, 12 Oct 2000 15:41:37 +0000 (15:41 +0000)]
Revert unintended commit...

Revert unintended commit...

24 years ago.cvsignore updates
Sebastian Wilhelmi [Thu, 12 Oct 2000 15:36:29 +0000 (15:36 +0000)]
.cvsignore updates

.cvsignore updates

24 years agoAdapted accordingly to header separation and GLIB_HAVE_ALLOCA_H renaming.
Sebastian Wilhelmi [Thu, 12 Oct 2000 14:55:37 +0000 (14:55 +0000)]
Adapted accordingly to header separation and GLIB_HAVE_ALLOCA_H renaming.

2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glibconfig.h.win32.in: Adapted accordingly to header separation
and GLIB_HAVE_ALLOCA_H renaming.

24 years ago.cvsignore updates
Sebastian Wilhelmi [Thu, 12 Oct 2000 14:28:39 +0000 (14:28 +0000)]
.cvsignore updates

.cvsignore updates

24 years agoAdded the new headers to glibinclude_HEADERS.
Sebastian Wilhelmi [Thu, 12 Oct 2000 12:16:16 +0000 (12:16 +0000)]
Added the new headers to glibinclude_HEADERS.

2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* Makefile.am: Added the new headers to glibinclude_HEADERS.

* glib.h: Forgot to include gerror.h.

24 years agoSplit glib.h into many header files mostly according to the resp.
Sebastian Wilhelmi [Thu, 12 Oct 2000 11:52:07 +0000 (11:52 +0000)]
Split glib.h into many header files mostly according to the resp.

2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
into many header files mostly according to the resp. *.c-files.

* gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
__END_DECLS.

* configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
gunicode.h, : Changed guard-macro names to something more
consistent.

* configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.

24 years agoRemoved cruft from old threading code.
Sebastian Wilhelmi [Thu, 12 Oct 2000 11:39:50 +0000 (11:39 +0000)]
Removed cruft from old threading code.

2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Removed cruft from old threading code.

24 years agodefine GLIB_HAVE_ALLOCA_H instead of including alloca.h in glibconfig.h,
Sebastian Wilhelmi [Thu, 12 Oct 2000 08:06:16 +0000 (08:06 +0000)]
define GLIB_HAVE_ALLOCA_H instead of including alloca.h in glibconfig.h,

2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: define GLIB_HAVE_ALLOCA_H instead of including
alloca.h in glibconfig.h, GLIB_HAVE_ALLOCA_H is used in glib.h.

24 years agoRemove stray '}'
Raja R Harinath [Tue, 10 Oct 2000 05:04:36 +0000 (05:04 +0000)]
Remove stray '}'

24 years agoWork with beta autoconf 2.50.
Raja R Harinath [Mon, 9 Oct 2000 21:06:01 +0000 (21:06 +0000)]
Work with beta autoconf 2.50.
* configure.in (GLIB_MAJOR_VERSION): Use GLIB_DIVERT_BEFORE_HELP
instead of AC_DIVERT_PUSH(),AC_DIVERT_POP.
(AC_CHECK_HEADERS): Remove redundant AC_DEFINE(HAVE_...).
(REALLOC_0_WORKS): Move AC_DEFINE outside AC_CACHE_VAL.
(dlopen): Quote nested AC_CHECK_... calls.

* acglib.m4 (GLIB_TR_SH, GLIB_TR_CPP): Utility macros copied from
beta autoconf 2.50.
(GLIB_DIVERT_BEFORE_HELP): New macro that works both with autoconf
2.13 and beta autoconf 2.50.
(GLIB_SIZEOF, GLIB_BYTECONTENTS): Use GLIB_TR_*.

24 years agoUse this to specify that 'configure' depends on acglib.m4.
Raja R Harinath [Mon, 9 Oct 2000 20:15:55 +0000 (20:15 +0000)]
Use this to specify that 'configure' depends on acglib.m4.

* Makefile.am (CONFIGURE_DEPENDENCIES): Use this to specify
that 'configure' depends on acglib.m4.

24 years agoForgot to commit this.
Raja R Harinath [Mon, 9 Oct 2000 18:02:36 +0000 (18:02 +0000)]
Forgot to commit this.

24 years agoDon't set to $top_srcdir)/gobject.
Raja R Harinath [Mon, 9 Oct 2000 18:00:43 +0000 (18:00 +0000)]
Don't set to $top_srcdir)/gobject.

* gobject/Makefile.am (DOC_SOURCE_DIR): Don't set to
$top_srcdir)/gobject.

24 years agoDon't set to $(top_srcdir).
Raja R Harinath [Mon, 9 Oct 2000 17:58:11 +0000 (17:58 +0000)]
Don't set to $(top_srcdir).

* glib/Makefile.am (DOC_SOURCE_DIR): Don't set to $(top_srcdir).

24 years agoAdd new files.
Havoc Pennington [Mon, 9 Oct 2000 16:24:57 +0000 (16:24 +0000)]
Add new files.

2000-10-09  Havoc Pennington  <hp@redhat.com>

        * Makefile.am, tests/Makefile.am: Add new files.

* tests/spawn-test.c, tests/shell-test.c: new tests for
the shell/spawn stuff

* gutils.c (g_find_program_in_path): convert a relative
program name into an absolute pathname to an existing
executable

* gspawn.h, gspawn.c: New fork/exec API

* gshell.h, gshell.c: Shell-related utilities, at the moment
simply routines to parse argv and quote/unquote strings

* guniprop.c (g_unichar_isspace): Return TRUE for the
ASCII space characters isspace() returns TRUE for.

* gfileutils.c (g_file_get_contents): Convenience function
to slurp entire file into a string and return it. Partially
written by Joel Becker.
(g_file_test): file test function

24 years agoFix the Win32-only code to use current API,
Tor Lillqvist [Fri, 6 Oct 2000 21:43:25 +0000 (21:43 +0000)]
Fix the Win32-only code to use current API,

2000-10-06  Tor Lillqvist  <tml@iki.fi>

* tests/gio-test.c (main): Fix the Win32-only code to use current
API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll().

24 years agoRevamp to be like makefile.mingw.in, make the MSVC build actually work
Tor Lillqvist [Fri, 6 Oct 2000 21:32:59 +0000 (21:32 +0000)]
Revamp to be like makefile.mingw.in, make the MSVC build actually work

2000-10-06  Tor Lillqvist  <tml@iki.fi>

* makefile.msc.in: Revamp to be like makefile.mingw.in, make
the MSVC build actually work again.

* gmodule/makefile.msc.in
* gobject/makefile.msc.in
* gthread/makefile.msc.in: New files, like their mingw counterparts.

* gmodule/Makefile.am
* gobject/Makefile.am
* gthread/Makefile.am: Make and distribute them.

* */makefile.mingw.in: Allow override of GLib version number from
the build/win32/module.defs file.

* glib.def: Add new entry point.

Fixes from Hans Breuer:

* glib.h (struct DIR): Keep the last readdir result cached inside
the DIR struct, to enable several DIRs being open simultaneously.

* gwin32.c (g_win32_readdir): Use the above instead of static.

* giowin32.c (g_io_channel_win32_make_pollfd): Insert cast to keep
MSVC happy.

24 years agoFixed #10086.
Sebastian Wilhelmi [Thu, 5 Oct 2000 15:56:41 +0000 (15:56 +0000)]
Fixed #10086.

2000-10-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib-sections.txt, tmpl/modules.sgml: Fixed #10086.

24 years agoChanged alloca stuff a bit: when we have a working alloca.h, we're not
Sebastian Wilhelmi [Thu, 5 Oct 2000 09:07:53 +0000 (09:07 +0000)]
Changed alloca stuff a bit: when we have a working alloca.h, we're not

2000-10-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * glib.h: Changed alloca stuff a bit: when we have a working
        alloca.h, we're not messing with alloca any further. Should fix a
        bug reported by Bernd Demian <wega@csc-dd.de>.

24 years agoReverted my last commit:
Martin Baulig [Wed, 4 Oct 2000 09:20:55 +0000 (09:20 +0000)]
Reverted my last commit:
2000-09-30  Martin Baulig  <baulig@suse.de>

* configure.in (HAVE_THREADS): New automake conditional.
* Makefile.am (SUBDIRS): Only compile the gthread subdirectory if we
actually have threads.

24 years agoPut the pkg-config scripts back to the correct pkg-config syntax
Martin Baulig [Sat, 30 Sep 2000 02:14:04 +0000 (02:14 +0000)]
Put the pkg-config scripts back to the correct pkg-config syntax
(the pkg-config that comes with the RedHat 7.0 glib-gtkbeta RPM and
 not the one from pkgconfig.sourceforge.net which is old).

24 years agoAdded function to keep symetry with g_node_insert_before. 2000-09-29
Jonathan Blandford [Fri, 29 Sep 2000 23:13:02 +0000 (23:13 +0000)]
Added function to keep symetry with g_node_insert_before. 2000-09-29

2000-09-29  Jonathan Blandford  <jrb@redhat.com>

* gnode.c (g_node_insert_after): Added function to keep symetry
with g_node_insert_before.
2000-09-29  Jonathan Blandford  <jrb@redhat.com>

* glib/tmpl/trees-nary.sgml: Add g_node_insert_after().

24 years agoNew automake conditional. Only compile the gthread subdirectory if we
Martin Baulig [Fri, 29 Sep 2000 22:18:56 +0000 (22:18 +0000)]
New automake conditional. Only compile the gthread subdirectory if we

2000-09-30  Martin Baulig  <baulig@suse.de>

* configure.in (HAVE_THREADS): New automake conditional.
* Makefile.am (SUBDIRS): Only compile the gthread subdirectory if we
actually have threads.

24 years ago.... and now we can remove them again.
Martin Baulig [Fri, 29 Sep 2000 22:07:44 +0000 (22:07 +0000)]
.... and now we can remove them again.

24 years agoAdding empty files .... sorry, sometimes CVS is really stupid :-(
Martin Baulig [Fri, 29 Sep 2000 22:05:39 +0000 (22:05 +0000)]
Adding empty files .... sorry, sometimes CVS is really stupid :-(

24 years agoSmall fixes.
Martin Baulig [Fri, 29 Sep 2000 22:03:57 +0000 (22:03 +0000)]
Small fixes.

24 years agoSet this to `$(libexecdir)/pkgconfig'; this is the directory where
Martin Baulig [Fri, 29 Sep 2000 20:36:52 +0000 (20:36 +0000)]
Set this to `$(libexecdir)/pkgconfig'; this is the directory where

2000-09-29  Martin Baulig  <baulig@suse.de>

* Makefile.am (pkgconfigdir): Set this to `$(libexecdir)/pkgconfig';
this is the directory where pkg-config actually looks.

* *.pc.in: Made the pkg-config scripts actually work.

24 years agoSeveral minor ANSI C fixes.
Martin Baulig [Fri, 29 Sep 2000 13:40:21 +0000 (13:40 +0000)]
Several minor ANSI C fixes.

2000-09-29  Martin Baulig  <baulig@suse.de>

Several minor ANSI C fixes.

Added missing casts:
* gtype.c (type_class_init): `(gpointer) bnode->data->class.class_init_base'
in call to g_slist_prepend() and
'GBaseInitFunc class_init_base = (GBaseInitFunc) slist->data'.

* gobject.c: Put text following #endif into comments.

24 years agoSeveral minor ANSI C fixes.
Martin Baulig [Fri, 29 Sep 2000 13:37:01 +0000 (13:37 +0000)]
Several minor ANSI C fixes.

2000-09-29  Martin Baulig  <baulig@suse.de>

Several minor ANSI C fixes.

Added missing casts:
* gdate.c (g_date_fill_parse_tokens): `s = (guchar *) str'.
* gmain.c (g_idle_dispatch): `func = (GSourceFunc) source_data'.
(g_idle_add_full): `(gpointer) function' in call to g_source_add().
* gstrfuncs.c (g_strdown): `s = (guchar *) string' and
`return (gchar *) string'.
(g_strup): Likewise.
(g_strchug): `start = (guchar*) string' in 1st for() argument;
`strlen ((gchar *) start)' in call to g_memmove().
* gstring.c (g_string_down): `s = (guchar *) string->str'.
(g_string_up): Likewise.
* gthreadpool.c (stop_this_thread_marker):
`(gpointer) &g_thread_pool_new'.
* gunidecomp.h (decomp_table[]): Cast all the strings to
`unsigned char *'.

Put text following #endif into comments:
* gmain.c: here.

24 years agoAdded errorcheck mutexes. These are activated through the preprocessor
Sebastian Wilhelmi [Fri, 29 Sep 2000 13:10:41 +0000 (13:10 +0000)]
Added errorcheck mutexes. These are activated through the preprocessor

2000-09-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in, glib.h: Added errorcheck mutexes. These are
activated through the preprocessor symbol
G_ERRORCHECK_MUTEXES. Need to add an extra word to StaticMutex in
order to achieve this. g_(static_)mutex_* functions instrument the
mutex operations with mutex name and location, when compiled with
-DG_ERRORCHECK_MUTEXES. g_thread_init activates the errorcheck
mutexes, when compiled with -DG_ERRORCHECK_MUTEXES.

* gthread/gthread-impl.c: Added errorcheck mutexes. New
        exported function
        g_thread_init_with_errorcheck_mutexes, which is called instead of
g_thread_init, when compiled with -DG_ERRORCHECK_MUTEXES. New
static functions
g_mutex_(new|lock|trylock|unlock|free)_errorcheck_impl to
implement errorcheck mutexes.

* gthread/gthread-posix.impl.c, gthread/gthread-solaris-impl.c:
        Define the size of a mutex.

24 years agofix indentation (GConvertError): generic error is conventionally called
Havoc Pennington [Fri, 29 Sep 2000 02:56:43 +0000 (02:56 +0000)]
fix indentation (GConvertError): generic error is conventionally called

2000-09-28  Havoc Pennington  <hp@pobox.com>

* glib.h (GThreadPriority): fix indentation
(GConvertError): generic error is conventionally called
_FAILED rather than _OTHER, at least at the moment,
according to GError docs in docs/reference.

* gconvert.c: s/_OTHER/_FAILED/

24 years ago.cvsignore updates
Sebastian Wilhelmi [Thu, 28 Sep 2000 14:06:26 +0000 (14:06 +0000)]
.cvsignore updates

.cvsignore updates

24 years agoAdjusted the test for an unimplemented getpwuid_r. Info from Michael
Sebastian Wilhelmi [Thu, 28 Sep 2000 13:11:23 +0000 (13:11 +0000)]
Adjusted the test for an unimplemented getpwuid_r. Info from Michael

2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Adjusted the test for an unimplemented
 getpwuid_r. Info from Michael Pruett. This is just a forward
 merge from glib-1-2.

24 years agoMoved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for
Sebastian Wilhelmi [Thu, 28 Sep 2000 07:54:40 +0000 (07:54 +0000)]
Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for

2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Moved determination of G_THREAD_FLAGS before
G_THREAD_LIBS. Check for UnixWare systems and set the right cflags
and libs there (it needs -Kthread for the native compiler and
-pthread for gcc). Thanks to Boyd Lynn Gerber <gerberb@zenez.com>
for the info.

* configure.in: Fail immediately, when no thread library is found,
instead of continuing searching for rt libs etc. Changed almost
all occurances of $enable_threads to $have_threads, as that's,
what we want.

* tests/threadpool-test.c: Define vars inside the guard to avoid
warnings.

24 years agoSome platforms support 64 bit 'long long', but you can not printf or scanf
Sebastian Wilhelmi [Thu, 28 Sep 2000 07:45:04 +0000 (07:45 +0000)]
Some platforms support 64 bit 'long long', but you can not printf or scanf

2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in, tests/type-test.c: Some platforms support 64 bit
'long long', but you can not printf or scanf them. In that case,
don't define G_G{UINT|INT}64_FORMAT. Changed the type-test program
to reflect that.

24 years agomax_len can't be initialized statically as it might call a function. So do
Sebastian Wilhelmi [Thu, 28 Sep 2000 07:35:02 +0000 (07:35 +0000)]
max_len can't be initialized statically as it might call a function. So do

2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gutils.c (g_get_current_dir): max_len can't be initialized
statically as it might call a function. So do it at first call.

24 years agoMoved declaration of g_log_domain_gmodule up before the inclusion of
Sebastian Wilhelmi [Thu, 28 Sep 2000 07:32:07 +0000 (07:32 +0000)]
Moved declaration of g_log_domain_gmodule up before the inclusion of

2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gmodule.h: Moved declaration of g_log_domain_gmodule up before
the inclusion of glib.h to make it compile on non-gcc compilers.

24 years agoAdd G_GNUC_PURE macro (but don't use it anywhere). GNOME_PRINT_0_24
Elliot Lee [Tue, 26 Sep 2000 16:56:52 +0000 (16:56 +0000)]
Add G_GNUC_PURE macro (but don't use it anywhere).

Add G_GNUC_PURE macro (but don't use it anywhere).

24 years agoAdd a few missing G_GNUC_CONST's.
Elliot Lee [Mon, 25 Sep 2000 21:28:14 +0000 (21:28 +0000)]
Add a few missing G_GNUC_CONST's.

Add a few missing G_GNUC_CONST's.

24 years agoMissing piece of previous commit - add @ALLOCA@ to sources (normally
Elliot Lee [Mon, 25 Sep 2000 15:46:12 +0000 (15:46 +0000)]
Missing piece of previous commit - add @ALLOCA@ to sources (normally

Missing piece of previous commit - add @ALLOCA@ to sources (normally expands to nothing).

24 years agoRemove empty SUBDIRS line, as that prevents make dist from working.
Sebastian Wilhelmi [Mon, 25 Sep 2000 14:28:56 +0000 (14:28 +0000)]
Remove empty SUBDIRS line, as that prevents make dist from working.

2000-09-25  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* Makefile.am: Remove empty SUBDIRS line, as that prevents make
dist from working.

24 years agoAdd gconvert.o. Use libiconv.
Tor Lillqvist [Thu, 21 Sep 2000 16:17:32 +0000 (16:17 +0000)]
Add gconvert.o. Use libiconv.

2000-09-21  Tor Lillqvist  <tml@iki.fi>

* makefile.mingw.in: Add gconvert.o. Use libiconv.

* config.h.win32.in: Define HAVE_GETCWD.

* glib.def: Add new entry points.

* gthread/makefile.mingw.in: Use pthreads macros from ../build.

24 years agoThe last released automake (1.4) still requires AM_PROG_LIBTOOL instead of
Sebastian Wilhelmi [Thu, 21 Sep 2000 12:49:10 +0000 (12:49 +0000)]
The last released automake (1.4) still requires AM_PROG_LIBTOOL instead of

2000-09-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: The last released automake (1.4) still requires
AM_PROG_LIBTOOL instead of AC_PROG_LIBTOOL, so use that for the
time being.

24 years agoTest for the existence of getcwd, and use it only when found.
Sebastian Wilhelmi [Tue, 19 Sep 2000 14:30:35 +0000 (14:30 +0000)]
Test for the existence of getcwd, and use it only when found.

2000-09-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* acconfig.h, configure.in, gutils.c: Test for the existence of
getcwd, and use it only when found.

* glib.h: Only use the gcc-variable-macro-argument-extension for
gcc >= 2.4. Both patches from Jonas Oberg <jonas@gnu.org>.

24 years agoImplement g_ucs4_to_utf8 which was in
Owen Taylor [Mon, 18 Sep 2000 14:55:24 +0000 (14:55 +0000)]
Implement g_ucs4_to_utf8 which was in

Mon Sep 18 10:58:21 2000  Owen Taylor  <otaylor@redhat.com>

* gutf8.c: Implement g_ucs4_to_utf8 which was in

24 years agoSun Sep 17 2000 Elliot Lee <sopwith@redhat.com> Define g_alloca() as an
Elliot Lee [Sun, 17 Sep 2000 22:18:48 +0000 (22:18 +0000)]
Sun Sep 17 2000 Elliot Lee <sopwith@redhat.com> Define g_alloca() as an

Sun Sep 17 2000 Elliot Lee <sopwith@redhat.com>
* glib.h configure.in: Define g_alloca() as an alloca-that-works-anywhere.
* gconvert.c: Fix warnings which could have caused problems on 64-bit platforms.

24 years agoHavoc Pennington's implementation of convenient character set conversion
Owen Taylor [Mon, 11 Sep 2000 03:03:18 +0000 (03:03 +0000)]
Havoc Pennington's implementation of convenient character set conversion

Sun Sep 10 12:37:40 2000  Owen Taylor  <otaylor@redhat.com>

* glib.h gconvert.c (g_convert): Havoc Pennington's implementation
of convenient character set conversion using iconv, with
the addition of GError. We probably need a fallback that
just does conversions between, say UTF-8,16,32 and ISO-8859-1
for targets without iconv at all.

Also add g_convert_with_fallback() to take care of conversions
where we accept some loss going to the target encoding.

24 years agoAdd this function.
Havoc Pennington [Mon, 11 Sep 2000 00:09:31 +0000 (00:09 +0000)]
Add this function.

2000-09-10  Havoc Pennington  <hp@redhat.com>

* gutf8.c (g_utf8_validate): Add this function.

24 years agoAdd a missing g_return_if_fail().
Owen Taylor [Sun, 10 Sep 2000 16:04:33 +0000 (16:04 +0000)]
Add a missing g_return_if_fail().

Sat Sep  9 18:50:42 2000  Owen Taylor  <otaylor@redhat.com>

* gstrfuncs.c (g_strescape): Add a missing g_return_if_fail().

24 years agoMove call to g_type_free_instance() here from g_object_do_finalize, since
Owen Taylor [Sun, 10 Sep 2000 16:01:15 +0000 (16:01 +0000)]
Move call to g_type_free_instance() here from g_object_do_finalize, since

Sat Sep  9 20:04:13 2000  Owen Taylor  <otaylor@redhat.com>

* gobject.c (g_object_last_unref): Move call to
g_type_free_instance() here from g_object_do_finalize,
since g_type_free_instance() can unload the object's
implementation.

24 years agofor non-i386 and non-alpha, or non gcc, implement BREAKPOINT() as raise (5
Tim Janik [Thu, 7 Sep 2000 23:08:25 +0000 (23:08 +0000)]
for non-i386 and non-alpha, or non gcc, implement BREAKPOINT() as raise (5

Mon Aug 21 03:57:46 2000  Tim Janik  <timj@gtk.org>

        * glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
        implement BREAKPOINT() as raise (5 /* SIGTRAP */);

        * glib.h: provide user-definable switch G_IMPLEMENT_INLINES,
        to turn on compilation of inline function implementations provided
        in header files with extern linkage.
        wrap inline function implementations into ifdef __G_UTILS_C__, so we
        really only compile them for gutils.c and not also into arbitrary user
        code that wants to make use of G_IMPLEMENT_INLINES.
        adjusted comment apropriately.

        * gutils.c: to turn on compilation of inline functions, provide
        #define G_IMPLEMENT_INLINES 1 and #define __G_UTILS_C__.

24 years agoSome further makefile improvement.
Owen Taylor [Thu, 7 Sep 2000 16:36:56 +0000 (16:36 +0000)]
Some further makefile improvement.

Thu Sep  7 12:35:35 2000  Owen Taylor  <otaylor@redhat.com>

        * Some further makefile improvement.

* Restore all the docs that mysteriously vanished earlier.

24 years agodocs
Havoc Pennington [Wed, 6 Sep 2000 23:30:21 +0000 (23:30 +0000)]
docs

2000-09-06  Havoc Pennington  <hp@redhat.com>

* gerror.c: docs

* docs/reference/glib/tmpl/error_reporting.sgml: docs

24 years agoImprove separation of generic non-generic parts and dependencies.
Owen Taylor [Wed, 6 Sep 2000 15:01:07 +0000 (15:01 +0000)]
Improve separation of generic non-generic parts and dependencies.

Wed Sep  6 10:59:45 2000  Owen Taylor  <otaylor@redhat.com>

* gobject/Makefile.am glib/Makefile.am: Improve
separation of generic non-generic parts and dependencies.

24 years agoSome inline docs fixes.
Owen Taylor [Wed, 6 Sep 2000 14:42:13 +0000 (14:42 +0000)]
Some inline docs fixes.

Wed Sep  6 10:28:34 2000  Owen Taylor  <otaylor@redhat.com>

* guniprop.c gunicode.h gutf8.c: Some inline docs fixes.

24 years agos/G_MICROSEC/G_USEC_PER_SEC/
Sebastian Wilhelmi [Wed, 6 Sep 2000 13:56:17 +0000 (13:56 +0000)]
s/G_MICROSEC/G_USEC_PER_SEC/

2000-09-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib.h, gtimer.c, tests/thread-test.c:
s/G_MICROSEC/G_USEC_PER_SEC/

* gthread/gthread-posix.c, gthread/gthread-solaris.c:
s/G_MICROSEC/G_USEC_PER_SEC/ and s/G_NANOSEC/G_NSEC_PER_SEC/

24 years agoRemoved G_G{U}{SHORT|INT|LONG}_FORMAT from glib.h, as they are really
Sebastian Wilhelmi [Wed, 6 Sep 2000 08:02:56 +0000 (08:02 +0000)]
Removed G_G{U}{SHORT|INT|LONG}_FORMAT from glib.h, as they are really

2000-09-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib.h: Removed G_G{U}{SHORT|INT|LONG}_FORMAT from glib.h, as
they are really superfluous.

24 years agoSplit GObject docs away from the remainder of the docs.
Owen Taylor [Wed, 6 Sep 2000 04:32:45 +0000 (04:32 +0000)]
Split GObject docs away from the remainder of the docs.

Wed Sep  6 00:30:09 2000  Owen Taylor  <otaylor@redhat.com>

* glib/* gobject/*: Split GObject docs away from
the remainder of the docs.

* glib/Makefile.am gobject/Makefile.am: Rework
to have reasonable dependencies. (No dependencies
on the files actually in the source directories,
so to get it going, you have to do 'make scan',
but after that, things should work OK.)

24 years agoAdd gtk-doc checks for newly added docs/reference/ subdir.
Owen Taylor [Wed, 6 Sep 2000 00:17:41 +0000 (00:17 +0000)]
Add gtk-doc checks for newly added docs/reference/ subdir.

Tue Sep  5 20:16:27 2000  Owen Taylor  <otaylor@redhat.com>

* configure.in docs/Makefile.am: Add gtk-doc checks
for newly added docs/reference/ subdir.

24 years agohead -n 4 ChangeLog
Owen Taylor [Wed, 6 Sep 2000 00:04:49 +0000 (00:04 +0000)]
head -n 4 ChangeLog

24 years agoDon't use a G_LOCK, as it isn't necessary.
Sebastian Wilhelmi [Tue, 5 Sep 2000 08:58:20 +0000 (08:58 +0000)]
Don't use a G_LOCK, as it isn't necessary.

2000-09-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gthread.c (g_thread_error_quark): Don't use a G_LOCK, as it
isn't necessary.