platform/upstream/glib.git
23 years agoUpdated G_RAND_DOUBLE_TRANSFORM to be more accurate. Redid g_rand_double()
Sebastian Wilhelmi [Tue, 19 Dec 2000 15:57:53 +0000 (15:57 +0000)]
Updated G_RAND_DOUBLE_TRANSFORM to be more accurate. Redid g_rand_double()

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

* grand.c: Updated G_RAND_DOUBLE_TRANSFORM to be more
accurate. Redid g_rand_double() such that it returns 52 bits after
the point instead of 32 as before. That OTOH requires calling
g_rand_int() twice. Overhauled g_rand_int_range(), which is easier
now thanks to the new precision of g_rand_double(). Thanks to
Sverre Johansen <sj@ifi.uio.no> for the hint.

* grand.h: Added g_rand_boolean() and g_random_boolean()
macros. While they could be omitted due to extreme simplicity,
they make intention clearer in code and are therefore good to have.

* grand.c, grand.h: Renamed all 'min' and 'max' parameters to'
begin' and 'end' resp. to avoid making people think, that 'max' is
included in the interval. 'end' now isn't, whereas 'begin'
is. That's similar to the use in the STL.

* glib/glib-sections.txt: Added g_rand_boolean and
g_random_boolean macros.

* glib/tmpl/random_numbers.sgml: Updated.

23 years agoOk, I'm a moron. When I originally implemented ENABLE_GC_FRIENDLY, I
Sebastian Wilhelmi [Tue, 19 Dec 2000 15:40:30 +0000 (15:40 +0000)]
Ok, I'm a moron. When I originally implemented ENABLE_GC_FRIENDLY, I

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

* gslist.c, glist.c: Ok, I'm a moron. When I originally
implemented ENABLE_GC_FRIENDLY, I forgot to include config.h into
the affected files. Now that Alex did that for those two,
inevitable typos surfaced, which are now fixed.

* garray.c, ghash.c, gqueue.c, gtree.c: Include config.h as well,
as ENABLE_GC_FRIENDLY should be known.

23 years agoAdded --disable-mem-pools option.
Alexander Larsson [Tue, 19 Dec 2000 09:35:44 +0000 (09:35 +0000)]
Added --disable-mem-pools option.

2000-12-19  Alexander Larsson  <alexl@redhat.com>

* configure.in:
Added --disable-mem-pools option.

* glist.c:
* gslist.c:
* gnode.c:
* gmem.c:
Disable free list and memory chunks if DISABLE_MEM_POOLS is defined.

23 years agoUse GetACP to get the current ANSI codepage.
Tor Lillqvist [Sun, 17 Dec 2000 18:43:57 +0000 (18:43 +0000)]
Use GetACP to get the current ANSI codepage.

2000-12-17  Tor Lillqvist  <tml@iki.fi>

* gutf8.c (g_utf8_get_charset_internal): (Win32) Use GetACP to get
the current ANSI codepage.

* gunicode.h: Add comment that the static string g_get_charset
sets the parameter to point to should be copied in case the
charset might be changed later in the program.

23 years agoUpdate.
Tor Lillqvist [Sat, 16 Dec 2000 20:06:59 +0000 (20:06 +0000)]
Update.

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

* gobject.def: Update.

23 years agoUpdate.
Tor Lillqvist [Fri, 15 Dec 2000 19:49:35 +0000 (19:49 +0000)]
Update.

2000-12-15  Tor Lillqvist  <tml@iki.fi>

* gobject.def: Update.

23 years agouse g_signal_newc
Havoc Pennington [Fri, 15 Dec 2000 07:05:10 +0000 (07:05 +0000)]
use g_signal_newc

2000-12-15  Havoc Pennington  <hp@pobox.com>

* gobject.c (g_object_do_class_init): use g_signal_newc

* gsignal.c (g_signal_newc): convenience function for signals
created from C
(g_signal_new_valist): added
(g_signal_new): removed

23 years agoadd an instance member value_type so the default value of the pspec class
Tim Janik [Fri, 15 Dec 2000 05:51:08 +0000 (05:51 +0000)]
add an instance member value_type so the default value of the pspec class

Fri Dec 15 04:40:23 2000  Tim Janik  <timj@gtk.org>

        * gparam.[hc]: add an instance member value_type so the default
        value of the pspec class can be overridden.

23 years agoUpdate once again.
Tor Lillqvist [Thu, 14 Dec 2000 22:28:15 +0000 (22:28 +0000)]
Update once again.

2000-12-14  Tor Lillqvist  <tml@iki.fi>

* gobject.def: Update once again.

23 years agoUpdate more.
Tor Lillqvist [Thu, 14 Dec 2000 21:34:07 +0000 (21:34 +0000)]
Update more.

2000-12-14  Tor Lillqvist  <tml@iki.fi>

* gobject.def: Update more.

23 years agoNo need to -DGSPAWN_HELPER when compiling gspawn-win32-helper any longer.
Tor Lillqvist [Thu, 14 Dec 2000 21:08:00 +0000 (21:08 +0000)]
No need to -DGSPAWN_HELPER when compiling gspawn-win32-helper any longer.

2000-12-14  Tor Lillqvist  <tml@iki.fi>

* makefile.{mingw,msc}.in: No need to -DGSPAWN_HELPER when
compiling gspawn-win32-helper any longer.

23 years agoWarn if no callback. Call callback correctly. (g_io_win32_create_watch):
Tor Lillqvist [Thu, 14 Dec 2000 21:02:20 +0000 (21:02 +0000)]
Warn if no callback. Call callback correctly. (g_io_win32_create_watch):

2000-12-14  Tor Lillqvist  <tml@iki.fi>

* giowin32.c (g_io_win32_dispatch): Warn if no callback. Call
callback correctly.
(g_io_win32_create_watch): Fix typo.
(g_io_win32_fd_create_watch): Ditto.
(g_io_channel_unix_new): If it is a file descriptor (i.e., a Unix
fd lookalike provided by the C library), call
g_io_channel_win32_new_fd(). If it is a socket (from WinSock),
call g_io_cahnnel_win32_new_stream_socket(). Hopefully sockets and
fds don't overlap. TODO: Implement also datagram sockets.
(g_io_channel_win32_poll): Call g_main_context_get_poll_func().

* gcompletion.h: Include <unistd.h> only on Unix. Is this
inclusion really needed here? OTOH, do include <stddef.h>, for
size_t.

* gmessages.c: (Win32) Don't define a function called "write" that
might clash with the prototype from <io.h>, use a #define.

* glib.def: Update.

* gmain.c (g_source_add_poll): Don't return a value from void
function.
(g_main_context_get_poll_func): Compile also for non-Win32, as
presumably was intended. The result var is a GPollFunc, not a
GPollFunc*. Return the result!

gobject:

 2000-12-14  Tor Lillqvist  <tml@iki.fi>

* makefile.mingw.in: Update, include parts from Makefile.am to
build gmarshal.[ch]. Some day, we won't need these separate
makefiles for Win32 compilation. I hope.

* makefile.msc.in: Update. No use trying to build gmarshal.[ch]
here, it would require Unixish tools. MSVC users building from CVS
sources are out of luck.

* gobject.def: Update.

23 years agomake static
Havoc Pennington [Wed, 13 Dec 2000 23:54:51 +0000 (23:54 +0000)]
make static

2000-12-13  Havoc Pennington  <hp@redhat.com>

* gconvert.c (open_converter): make static

* gutf8.c (g_utf8_validate): Simplify logic a bit, maybe
speeding it up - now we just return FALSE if we had to bail out
for any reason before getting to the end of the string, as defined
by a nul byte if len was -1, defined by the len otherwise. This
also fixes a bug where nul bytes were not treated as invalid
when the length was specified.

23 years agourg managed to forget this last time ;(
Tim Janik [Wed, 13 Dec 2000 08:36:17 +0000 (08:36 +0000)]
urg managed to forget this last time ;(

Wed Dec 13 09:31:26 2000  Tim Janik  <timj@gtk.org>

        * gparamspecs.[hc]: add G_TYPE_PARAM_BOXED implementation.

        * gobject.[hc]: minor fixes.

23 years agodon't try to use thread stuff unless G_THREADS_ENABLED
Havoc Pennington [Wed, 13 Dec 2000 04:23:45 +0000 (04:23 +0000)]
don't try to use thread stuff unless G_THREADS_ENABLED

2000-12-12  Havoc Pennington  <hp@pobox.com>

* gmain.c (g_main_context_destroy): don't try to use thread stuff
unless G_THREADS_ENABLED
(g_main_context_query): ditto
(g_main_context_check): ditto
(g_main_loop_quit): ditto

23 years agoreturn whether a value got removed.
Tim Janik [Wed, 13 Dec 2000 00:44:18 +0000 (00:44 +0000)]
return whether a value got removed.

Tue Dec 12 18:58:22 2000  Tim Janik  <timj@gtk.org>

        * ghash.c (g_hash_table_remove): return whether a value
        got removed.

Tue Dec 12 23:38:02 2000  Tim Janik  <timj@gtk.org>

        * Makefile.am: _never_ touch oldest-source-stamp.

        * gobject.[hc]: construct property handling fixes/improvements.
        fixed trailer handling in get/set property.

        * gparam.[hc]: implement param spec pool, got rid of param spec
        hashtable. the most prominent change is that e deal with type
        prefixes here.

23 years agoclean up after elliot, wonder what his mother has to do on a daily basis.
Tim Janik [Tue, 12 Dec 2000 22:40:00 +0000 (22:40 +0000)]
clean up after elliot, wonder what his mother has to do on a daily basis.

23 years agoRevert unauthorized changes.
Owen Taylor [Tue, 12 Dec 2000 20:23:37 +0000 (20:23 +0000)]
Revert unauthorized changes.

Tue Dec 12 15:18:10 2000  Owen Taylor  <otaylor@redhat.com>

* gmain.[ch]: Revert unauthorized changes.

23 years agoGMainContext useful in implementing some additional styles of main loop
Elliot Lee [Tue, 12 Dec 2000 19:34:41 +0000 (19:34 +0000)]
GMainContext useful in implementing some additional styles of main loop

* gmain.c, gmain.h (g_main_context_new, g_main_context_destroy): GMainContext useful
in implementing some additional styles of main loop usage.  To do this, however, Joe
Hacker needs to be able to create/destroy GMainContext's at will. This is just an
export of existing functionality, rather than new functionality.

They are listed in the "Low level functions for implementing custom main loops"
section of the header file, to avoid confusing people.

* gobject/Makefile.am:
  . You have to 'touch oldest-source-stamp' if you want to avoid having
  the Makefile constantly rebuild itself.
  . Fix marshaller generation rules to work with srcdir != builddir
    (there were issues with trying to run "./glib-genmarshal", etc.)

23 years agoshut up on new marshaller generated stuff
Tim Janik [Tue, 12 Dec 2000 07:53:04 +0000 (07:53 +0000)]
shut up on new marshaller generated stuff

23 years agoi guess some people may need this ;)
Tim Janik [Tue, 12 Dec 2000 07:51:44 +0000 (07:51 +0000)]
i guess some people may need this ;)

23 years agofixed dealing with collection/lcopy of NULL values.
Tim Janik [Tue, 12 Dec 2000 07:32:00 +0000 (07:32 +0000)]
fixed dealing with collection/lcopy of NULL values.

Mon Dec 11 04:44:11 2000  Tim Janik  <timj@gtk.org>

* gboxed.c: fixed dealing with collection/lcopy of NULL values.

* gclosure.h: removed insane ramblings, added G_CALLBACK() a casting
convenience macro.

* Makefile.am: cleanups, marshaller generation rules.

* gmarshal.[hc]: new files with GRuntime standard marshallers.

* glib-genmarshal.c: fix log domain, support gruntime standard
marshallers, suport G_TYPE_PARAM, come with extern "C" and
#include gmarshal.h.

* glib-genmarshal.1: reflect glib-genmarshal.c updates.

* gobject.[hc]: implement object constructor. rework parameter
changed notification queueing, we support queue freezes now and
don't dispatch from an idle handler anymore.
parameter->property rename hassle.
implemented ::properties_changed and ::notify::* signals for
property change notification (the later supports property names
as details). added signal connection and named data properties.
(g_signal_connect_object): new function to setup while_alive
connections.
(g_object_class_install_property): sink properties now, since they
are initially floating.
(g_object_steal_data):
(g_object_set_data_full):
(g_object_set_data):
(g_object_get_data): set/get data by using g_datalist_*() functions
directly.
(g_object_queue_param_changed): nuked.
(g_object_freeze_notify): start queueing of property changes (freeze/
thaw calls stack).
(g_object_notify): announce changes of a certain property directly.
(g_object_thaw_notify): process queue of property changes, therefore
emitting GObject::notify::detail with detail being the changed
properties names.
(G_OBJECT_WARN_INVALID_PROPERTY_ID): saner macro variant of former
G_WARN_INVALID_PARAM_ID().

* gparam.[hc]: param specs are now initially floating and need to be
sunken with g_param_spec_sink(), support G_TYPE_PARAM values.
added G_PARAM_CONSTRUCT and G_PARAM_CONSTRUCT_ONLY parameter flags,
required by GObjectClass.constructor().

* gparamspecs.[hc]: added GParamSpecParam, GParamSpecPointer and
GParamSpecCCallback, param specs for G_TYPE_PARAM, G_TYPE_POINTER
and G_TYPE_CCALLBACK respectively.

* gsignal.[hc]: cleanups.
(signal_id_lookup): after walking the anchestry, try interfaces as well.
(g_signal_new): new function to create signals from varargs type list.
(g_signal_connect_closure): closure connection variant that works from
signal name+detail.
(g_signal_connect_data): c handler connection variant that works from
signal name+detail.
(g_signal_emit_valist): emit signal for an instance with paraneters
collected from a va_list.
(g_signal_emit): emit signal, taking parameters from varargs list.
(g_signal_emit_by_name): same as g_signal_emit, working from
signal name+detail.
(signal_emit_R): return whether return_value needs to be altered.

* gtype.[hc]: set log-domain to GRuntime, i'm slowly getting to all
the points that need to reflect the upcoming rename.
melt g_type_conforms_to() functionality into g_type_is_a(), as that
is what we really want (liskov substitution principle).
assorted changes to other files due to conforms_to->is_a.

* gvalue.[hc]: implemented g_value_set_instance() that sets a value
from an instantiatable type via the value_table's collect_value()
function (based on an idea from James Henstridge <james@daa.com.au>).
cleanups/fixes.

* gvaluetypes.[hc]: implement G_TYPE_CCALLBACK and G_TYPE_PARAM.

23 years agoRemove pollfds from the context here, not when actually freeing the
Owen Taylor [Sun, 10 Dec 2000 16:02:48 +0000 (16:02 +0000)]
Remove pollfds from the context here, not when actually freeing the

Sun Dec 10 10:47:11 2000  Owen Taylor  <otaylor@redhat.com>

* gmain.c (g_source_destroy_internal): Remove pollfds
from the context here, not when actually freeing the
source.

* gmain.c (g_source_unref_internal): Free source list
and source, call source->source_funcs->destroy().

* giochannel.c: Unreference io_channel properly.

23 years agoRename from GLIB_DIVERT_BEFORE_HELP. Update to track autoconf 2.49b.
Raja R Harinath [Fri, 8 Dec 2000 22:48:45 +0000 (22:48 +0000)]
Rename from GLIB_DIVERT_BEFORE_HELP. Update to track autoconf 2.49b.

* acglib.m4 (GLIB_AC_DIVERT_BEFORE_HELP):
Rename from GLIB_DIVERT_BEFORE_HELP.
Update to track autoconf 2.49b.
* configure.in: Reflect above change.
(AC_EGREP_HEADER): Rename from really obselete AC_HEADER_EGREP.
(debug_default): Replace "if test `expr ...`" with "case".

23 years agoFix typo, and fix some formatting.
Raja R Harinath [Fri, 8 Dec 2000 21:23:30 +0000 (21:23 +0000)]
Fix typo, and fix some formatting.

23 years agoRearrange into other veriables, and include run-markup-tests.sh.
Raja R Harinath [Fri, 8 Dec 2000 21:04:52 +0000 (21:04 +0000)]
Rearrange into other veriables, and include run-markup-tests.sh.

* tests/Makefile.am (TESTS): Rearrange into other veriables, and
include run-markup-tests.sh.
(TESTS_ENVIRONMENT): New.  Pass $srcdir to tests.
(noinst_PROGRAMS): Rename to ...
(check_PROGRAMS): ... this.  'automake' ensures that these are
built before running the tests.
* tests/run-markup-tests.sh: Support $srcdir != $builddir.

23 years agomove markup-test to noinst_PROGRAMS; it isn't a proper test, the proper
Havoc Pennington [Fri, 8 Dec 2000 15:03:12 +0000 (15:03 +0000)]
move markup-test to noinst_PROGRAMS; it isn't a proper test, the proper

2000-12-08  Havoc Pennington  <hp@pobox.com>

* tests/Makefile.am (TESTS): move markup-test to noinst_PROGRAMS;
it isn't a proper test, the proper test would be
run-markup-tests.sh, but that can't go in tests, so we need
a manual make check rule. Didn't do that yet.

23 years agoDon't put anything after an #endif. Likewise.
Raja R Harinath [Fri, 8 Dec 2000 03:39:47 +0000 (03:39 +0000)]
Don't put anything after an #endif. Likewise.

* gmain.h: Don't put anything after an #endif.
* gmain.c: Likewise.

23 years agoAdd a bunch of unrefs.
Owen Taylor [Thu, 7 Dec 2000 20:29:58 +0000 (20:29 +0000)]
Add a bunch of unrefs.

Thu Dec  7 15:22:30 2000  Owen Taylor  <otaylor@redhat.com>

* tests/mainloop-test.c (recurser_start): Add a bunch
of unrefs.

* gmain.c (g_source_attach): Reference the source
when adding (pointed out by Elliot)

23 years agoadd g_strdupv test
Havoc Pennington [Thu, 7 Dec 2000 04:48:37 +0000 (04:48 +0000)]
add g_strdupv test

2000-12-06  Havoc Pennington  <hp@pobox.com>

* tests/strfunc-test.c (main): add g_strdupv test

* gstrfuncs.c (g_strdupv): Add a function to copy
an array of strings

23 years agoMajor change in API for creating sources to handle multiple main loops
Owen Taylor [Tue, 5 Dec 2000 20:45:33 +0000 (20:45 +0000)]
Major change in API for creating sources to handle multiple main loops

Tue Dec  5 12:23:04 2000  Owen Taylor  <otaylor@redhat.com>

        * gmain.[hc]: Major change in API for creating sources
to handle multiple main loops (GMainContext *).

GSources are now exposed as GSource * and implemented
with structure derivation.

* giochannel.[ch]: Changed vtable for GIOChannel to correspond
to the new mainloop API, add g_io_channel_create_watch().

* gtypes.h: Move GTimeVal here.

* gthread.h: Remove gmain.h include to avoid circularity.

        * giounix.c: Update for new GMain API.

* giowin32.c: Update for new GMain API. (No check for
proper compilation or working.)

* timeloop.c timeloop-basic.c: A benchmarking program for
the main loop comparing the main loop against a
hand-written (timeloop-basic.c) variant.

* tests/mainloop-test.c: New torture test of mainloop.

* docs/Changes-2.0.txt: Started. Added text about
changes to GMain.

* gmain.c (g_main_add_poll_unlocked): Initial fd->revents
to zero. (#8482, Benjamin Kahn)

23 years agoadd images
Owen Taylor [Tue, 5 Dec 2000 20:43:58 +0000 (20:43 +0000)]
add images

Tue Dec  5 15:41:23 2000  Owen Taylor  <otaylor@redhat.com>

        * glib/Makefile.am glib/mainloop-states*: add images

* glib/glib-sections.txt: Updated

* glib/tmpl/main.sgml: More documentation, move function
docs to .c file.

23 years agoInclude make.msc from GLib's build subdir.
Tor Lillqvist [Fri, 1 Dec 2000 15:11:54 +0000 (15:11 +0000)]
Include make.msc from GLib's build subdir.

2000-12-01  Tor Lillqvist  <tml@iki.fi>

* {.,*}/makefile.msc.in: Include make.msc from GLib's build subdir.

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

* glib.def: Update correspondingly.

23 years agoProvide G_CONST_RETURN which is 'const' by default, and nothing when
Havoc Pennington [Fri, 1 Dec 2000 05:42:51 +0000 (05:42 +0000)]
Provide G_CONST_RETURN which is 'const' by default, and nothing when

2000-11-21  Havoc Pennington  <hp@pobox.com>

* gmacros.h: Provide G_CONST_RETURN which is 'const' by default,
and nothing when G_DISABLE_CONST_RETURNS is defined.

23 years agoForgot gunibreak.c, mistake in ChangeLog
Havoc Pennington [Wed, 29 Nov 2000 23:49:44 +0000 (23:49 +0000)]
Forgot gunibreak.c, mistake in ChangeLog

23 years agos/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
Havoc Pennington [Wed, 29 Nov 2000 23:38:24 +0000 (23:38 +0000)]
s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/

2000-11-29  Havoc Pennington  <hp@redhat.com>

* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/

* gunichartables.h: Update for data in Unicode 3.0.1,
and include tables for line break properties

* gunidecomp.h: Ditto

* gunicode.h (GUnicodeBreakType): Enum for line break properties
(g_unichar_break_type): Get the break property for a char

* gunibreak.h: Autogenerated line break property tables

* gunibreak.c (g_unichar_break_type): added

* Makefile.am (EXTRA_DIST): dist gen-unicode-tables.pl

* Makefile.am (libglib_1_3_la_SOURCES): Add gunibreak.h, gunibreak.c

* gen-unicode-tables.pl: Include the script to update the unicode
char tables

23 years agotouchups.
Elliot Lee [Wed, 29 Nov 2000 16:25:36 +0000 (16:25 +0000)]
touchups.

touchups.

23 years agofix elliots "logic fix" that dereferences NULL nodes if C handlers are
Tim Janik [Wed, 29 Nov 2000 12:34:14 +0000 (12:34 +0000)]
fix elliots "logic fix" that dereferences NULL nodes if C handlers are

Wed Nov 29 13:30:05 2000  Tim Janik  <timj@gtk.org>

        * gsignal.c (handlers_find): fix elliots "logic fix" that dereferences
        NULL nodes if C handlers are searched for specific signals.

23 years agoFix warnings.
Elliot Lee [Tue, 28 Nov 2000 23:44:21 +0000 (23:44 +0000)]
Fix warnings.

* gmarkup.c: Fix warnings.

* guniprop.c, gunidecomp.c: Make warnings go away by using
GPOINTER_TO_INT() instead of (int).

* gcompletion.[ch]: Add g_completion_set_compare(),
to allow (for example) using case-insensitive completion.

* gobject/gsignal.c: Fix warnings about possible use of uninitialized
variables, and fix logic that would leave 'node' unset in cases
that it might be used in.

* gobject/glib-genmarshal.c: Fix warning about printf format.

23 years agoPatches by Hans Breuer:
Tor Lillqvist [Tue, 28 Nov 2000 20:04:08 +0000 (20:04 +0000)]
Patches by Hans Breuer:

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

Patches by Hans Breuer:

* gspawn-win32.c: Move the code for gspawn-win32-helper to its own
file.

* makefile.{mingw,msc}.in: Change accordingly.

* gspawn-win32-helper.c: New file.

* Makefile.am (EXTRA_DIST): Add it.

* gmarkup.c (find_current_text_end): Fix assertion not to check an
uninitialised variable.

* gboxed.c: Include <string.h> for memset ().

23 years agoRevamped errorcheck mutexes and added errorcheck cond_wait() and
Sebastian Wilhelmi [Tue, 28 Nov 2000 12:56:57 +0000 (12:56 +0000)]
Revamped errorcheck mutexes and added errorcheck cond_wait() and

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

* gthread-impl.c: Revamped errorcheck mutexes and added errorcheck
cond_wait() and cond_timed_wait() funtions. This makes he whole
thing work. Now we only show the location of the locking/unlocking
for -DG_ERRORCHECK_MUTEXES and not the name of the mutex.

* gthread.c: Set the thread data before locking the mutex, because
the locking call might use g_thread_self ().

* gthread.h: Do only show the location of the locking/unlocking
for -DG_ERRORCHECK_MUTEXES and not the name of the mutex. Add the
errorcheck capability for g_cond_wait and g_cond_timed_wait as
well.

23 years agoAdd void in empty function arg list
Havoc Pennington [Tue, 28 Nov 2000 01:03:45 +0000 (01:03 +0000)]
Add void in empty function arg list

2000-11-27  Havoc Pennington  <hp@redhat.com>

        * gthread.h: Add void in empty function arg list

23 years agoAdd gqsort.
Tor Lillqvist [Sun, 26 Nov 2000 16:28:01 +0000 (16:28 +0000)]
Add gqsort.

2000-11-22  Tor Lillqvist  <tml@iki.fi>

* makefile.{mingw,msc}.in: Add gqsort.

* glib.def: Update.

* gobject.def: Update.

23 years agoAdd a surrogate for thread priorities using PID niceness for systems with
Sebastian Wilhelmi [Tue, 21 Nov 2000 15:27:44 +0000 (15:27 +0000)]
Add a surrogate for thread priorities using PID niceness for systems with

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

* configure.in: Add a surrogate for thread priorities using PID
niceness for systems with no thread priorities and different PIDs
for threads of the same process (most notably: Linux). Define
G_THREAD_USE_PID_SURROGATE in that case, as used by
gthread-posix.c. Also make the system thread bigger by
sizeof (long) to contain the thread's PID.

* gfileutils.c: Include stdlib.h for mkstemp prototype.

* gthread.c: Add priority range checks to the affected functions.

* gthreadpool.c: Remove unused variable.

* gthread-impl.c, gthread-posix.c, gthread-solaris.c: Removed
g_thread_map_priority function in favour of the
g_thread_priority_map array.  Initialize the array with
PRIORITY_{...}_VALUE, if available and interpolate beetween the
bounds if .._NORMAL_.. and .._HIGH_.. are not available.

* gthread-posix.c: If we should use the PID niceness as a
surrogate for thread priorities (G_THREAD_USE_PID_SURROGATE is
defined), then disable normal priority handling and use PIDs and
setpriority() instead. Depends on the thread to write its PID into
the place after the thread id right after thread creation.

23 years agoindentation fixes
Tim Janik [Tue, 21 Nov 2000 05:57:14 +0000 (05:57 +0000)]
indentation fixes

23 years agoPatch from David Benson <daveb@idealab.com> to add user_data support to
Jonathan Blandford [Mon, 20 Nov 2000 23:59:32 +0000 (23:59 +0000)]
Patch from David Benson <daveb@idealab.com> to add user_data support to

Mon Nov 20 18:55:17 2000  Jonathan Blandford  <jrb@redhat.com>

* gtree.[hc]: Patch from David Benson <daveb@idealab.com> to add
user_data support to gtree functions.

Mon Nov 13 18:35:52 2000  Jonathan Blandford  <jrb@redhat.com>

* gtypes.h (GCompareFuncData): new func type to let you use user
data when comparing nodes.

* gslist.c (g_list_sort_with_data): new function to sort with
user_data.

* glist.c (g_list_sort_with_data): new function to sort with
user_data.

* garray.[ch]: Added convenience functions to sort arrays.

23 years agoMore convenient data-setting functions
Havoc Pennington [Mon, 20 Nov 2000 22:24:12 +0000 (22:24 +0000)]
More convenient data-setting functions

2000-11-20  Havoc Pennington  <hp@redhat.com>

* gobject.c (g_object_get_data)
(g_object_set_data)
(g_object_set_data_full)
(g_object_steal_data): More convenient data-setting functions

23 years agoUse a switch here, maybe helps the compiler optimize things. Also, ' ' is
Havoc Pennington [Mon, 20 Nov 2000 15:14:14 +0000 (15:14 +0000)]
Use a switch here, maybe helps the compiler optimize things. Also, ' ' is

2000-11-16  Havoc Pennington  <hp@redhat.com>

* guniprop.c (g_unichar_isspace): Use a switch here, maybe helps
the compiler optimize things. Also, ' ' is a SPACE_SEPARATOR,
so don't special case it.

23 years agoAdd g_trash_stack entry points.
Tor Lillqvist [Sun, 19 Nov 2000 19:08:46 +0000 (19:08 +0000)]
Add g_trash_stack entry points.

2000-11-17  Tor Lillqvist  <tml@iki.fi>

* glib.def: Add g_trash_stack entry points.

23 years agoReleased 1.3.2 GLIB_1_3_2
Owen Taylor [Fri, 17 Nov 2000 20:44:24 +0000 (20:44 +0000)]
Released 1.3.2

Fri Nov 17 15:43:00 2000  Owen Taylor  <otaylor@redhat.com>

        * Released 1.3.2

* NEWS: Update.

* tests/Makefile.am (dist-hook): Add code to distribute
markup test files.

23 years agoremoved stray files
Owen Taylor [Fri, 17 Nov 2000 19:52:42 +0000 (19:52 +0000)]
removed stray files

23 years agoIf loading the module fails, don't increment the use count.
Owen Taylor [Thu, 16 Nov 2000 16:09:47 +0000 (16:09 +0000)]
If loading the module fails, don't increment the use count.

Wed Nov 15 20:58:05 2000  Owen Taylor  <otaylor@redhat.com>

* gtypemodule.c (g_type_module_use): If loading the
module fails, don't increment the use count.

23 years agoCheck for the sched.h header and include it on gthread/gthread-posix.c if
Sebastian Wilhelmi [Wed, 15 Nov 2000 17:48:43 +0000 (17:48 +0000)]
Check for the sched.h header and include it on gthread/gthread-posix.c if

2000-11-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Check for the sched.h header and include it on
gthread/gthread-posix.c if available.

* gthread-posix.c: Include <sched.h> if available.

* configure.in: Add -D_POSIX4_DRAFT_SOURCE to
GTHREAD_COMPILE_IMPL_DEFINES. Also add -D_POSIX4A_DRAFT10_SOURCE
to G_THREAD_CFLAGS. Really deploy GTHREAD_COMPILE_IMPL_DEFINES,
when searching for thread libs. Look for sched_* functions in
-lrte as well. All of that is necessary on DG/UX.

* configure.in: Use AC_TRY_COMPILE instead of AC_EGREP_HEADERS in
various places to make it work more reliable, to make it accept
macros instead of functions etc.

* configure.in: Replace some NULL's for checks with 0 to make it
work without stdio.h everywhere.

* configure.in, gutils.c: changed the test for getpwuid_r to first
test for a posix version and then for a non-posix version. No code
change in gutils.c. Again this change deals better with getpwuid_r
being a macro and not a function. Most of the above with kind help
from Tethys <tet@isengard.europe.dg.com>. This fixes Bug #13403.

23 years agodoh, s/BSE_OBJECT_TYPE_NAME/G_OBJECT_TYPE_NAME/; reported by Maas-Maarten
Tim Janik [Wed, 15 Nov 2000 05:05:53 +0000 (05:05 +0000)]
doh, s/BSE_OBJECT_TYPE_NAME/G_OBJECT_TYPE_NAME/; reported by Maas-Maarten

Thu Nov  9 01:49:43 2000  Tim Janik  <timj@gtk.org>

        * gobject.h (G_WARN_INVALID_PARAM_ID): doh,
        s/BSE_OBJECT_TYPE_NAME/G_OBJECT_TYPE_NAME/; reported by Maas-Maarten
        Zeeman <maas@wanadoo.nl>.

23 years agoMake #endif comment match #ifdef.
Tor Lillqvist [Tue, 14 Nov 2000 21:40:28 +0000 (21:40 +0000)]
Make #endif comment match #ifdef.

2000-11-14  Tor Lillqvist  <tml@iki.fi>

* gwin32.h: Make #endif comment match #ifdef.

23 years agoUp version to 1.3.2
Owen Taylor [Mon, 13 Nov 2000 19:01:28 +0000 (19:01 +0000)]
Up version to 1.3.2

Mon Nov 13 14:00:20 2000  Owen Taylor  <otaylor@redhat.com>

* configure.in: Up version to 1.3.2

* gconvert.h (enum GConvertError): Remove trailing ,

* gfileutils.c (g_file_open_tmp): Fix comment to
properly describe return value.

23 years agoMove conversion functions into GConv section.
Owen Taylor [Mon, 13 Nov 2000 18:59:45 +0000 (18:59 +0000)]
Move conversion functions into GConv section.

Mon Nov 13 00:18:55 2000  Owen Taylor  <otaylor@redhat.com>

        * glib/glib-sections.sgml: Move conversion functions
into GConv section.

* gobject/gobject-docs.sgml: Fix some malformed sgml.

23 years agoAdd USE_LIBICONV.
Tor Lillqvist [Mon, 13 Nov 2000 18:03:57 +0000 (18:03 +0000)]
Add USE_LIBICONV.

2000-11-13  Tor Lillqvist  <tml@iki.fi>

* config.h.win32.in: Add USE_LIBICONV.

* gconvert.c: Check G_OS_WIN32 only after including glib.h.

* glib.def: Update.

23 years agoMade recursive mutexes also work when the thread system is not (yet)
Sebastian Wilhelmi [Mon, 13 Nov 2000 12:50:16 +0000 (12:50 +0000)]
Made recursive mutexes also work when the thread system is not (yet)

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

* gthread.c (g_static_rec_mutex_*): Made recursive mutexes also
work when the thread system is not (yet) initialized.

23 years agoCreate wrapper functions for iconv() so that we can transparently use the
Owen Taylor [Sun, 12 Nov 2000 23:44:28 +0000 (23:44 +0000)]
Create wrapper functions for iconv() so that we can transparently use the

Sun Nov 12 18:34:32 2000  Owen Taylor  <otaylor@redhat.com>

* gconvert.[ch]: Create wrapper functions for iconv()
so that we can transparently use the native iconv,
libiconv, or (in the future) a mini-iconv included
with glib.

* glib-config-2.0.in glib-2.0.pc.in: Include @ICONV_LIBS@

* INSTALL: Added note about libiconv.

* configure.in: Add checks for libiconv from pango. If
EILSEQ is not defined in errno.h add define for it into
glibconfig.h so g_iconv can use it. (Note, recompiling
from a system without EILSEQ to a system with EILSEQ
will break binary compatibility)

23 years agoRemove g_filename_{to,from}_utf8
Robert Brady [Sun, 12 Nov 2000 21:23:55 +0000 (21:23 +0000)]
Remove g_filename_{to,from}_utf8

2000-11-12  Robert Brady  <robert@suse.co.uk>

* gstrfuncs.c, gstrfuncs.h: Remove g_filename_{to,from}_utf8

* gconvert.c, gconvert.h: Add g_filename_{to,from}_utf8 and
g_locale_{to.from}_utf8.  The locale_ variant honours
nl_langinfo(CODESET), the filename_ variant uses UTF-8 unless
asked otherwise.

(g_convert): Add G_CONVERT_ERROR_PARTIAL_INPUT error, if bytesread
!= length and no bytesread pointer passed.

23 years agotemplate is a reserved word in C++ s/template/tmpl/.
Owen Taylor [Sun, 12 Nov 2000 20:38:19 +0000 (20:38 +0000)]
template is a reserved word in C++ s/template/tmpl/.

Sun Nov 12 15:29:53 2000  Owen Taylor  <otaylor@redhat.com>

* gfileutils.[ch]: template is a reserved word in
C++ s/template/tmpl/.

23 years agoHandle a long stream of bytes containing no UTF-8 character starts
Havoc Pennington [Sat, 11 Nov 2000 17:09:15 +0000 (17:09 +0000)]
Handle a long stream of bytes containing no UTF-8 character starts

2000-11-11  Havoc Pennington  <hp@pobox.com>

* gmarkup.c (g_markup_parse_context_parse): Handle a long stream
of bytes containing no UTF-8 character starts

23 years agoAdd missing entry points.
Tor Lillqvist [Sat, 11 Nov 2000 15:03:10 +0000 (15:03 +0000)]
Add missing entry points.

2000-11-11  Tor Lillqvist  <tml@iki.fi>

* glib.def: Add missing entry points.

* gobject.def: Add missing functions.

23 years agoImprove chance to generate unique names with less effort a bit.
Tor Lillqvist [Sat, 11 Nov 2000 13:46:15 +0000 (13:46 +0000)]
Improve chance to generate unique names with less effort a bit.

2000-11-11  Tor Lillqvist  <tml@iki.fi>

* gfileutils.c (g_mkstemp): Improve chance to generate unique
names with less effort a bit.

* gfileutils.h: Add g_file_open_tmp() declaration.

* testglib.c: Include <io.h> on Win32.

* makefile.mingw.in: Correct the way to invoke sub-makes.

2000-11-11  Tor Lillqvist  <tml@iki.fi>

* gtypemodule.c: Include stdlib.h for exit().

* makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypemodule.

* gobject.def: Add new functions.

23 years ago*** empty log message ***
Owen Taylor [Sat, 11 Nov 2000 06:46:30 +0000 (06:46 +0000)]
*** empty log message ***

23 years agoAdd gtypemodule.h
Owen Taylor [Sat, 11 Nov 2000 00:04:33 +0000 (00:04 +0000)]
Add gtypemodule.h

Sun Nov  5 13:20:54 2000  Owen Taylor  <otaylor@redhat.com>

* glib-object.h: Add gtypemodule.h

23 years agoUpdates added
Owen Taylor [Sat, 11 Nov 2000 00:03:57 +0000 (00:03 +0000)]
Updates added

Sun Nov  5 13:24:50 2000  Owen Taylor  <otaylor@redhat.com>

* gobject/Makefile.am gobject/gobject-sections.sgml: Updates
* gobject/tmpl/g{boxed,type{plugin,module}}.sgml: added

23 years agoNew basic implementation of GTypePlugin interface as a GObject.
Owen Taylor [Sat, 11 Nov 2000 00:03:19 +0000 (00:03 +0000)]
New basic implementation of GTypePlugin interface as a GObject.

Sun Nov  5 13:21:28 2000  Owen Taylor  <otaylor@redhat.com>

* Makefile.am gtypemodule.[ch]: New basic implementation of
GTypePlugin interface as a GObject. Dynamically loaded modules can
register any number of types and interface on the module.

23 years agoAdd comment about template parameter to g_file_open_tmp() not being
Tor Lillqvist [Fri, 10 Nov 2000 23:49:37 +0000 (23:49 +0000)]
Add comment about template parameter to g_file_open_tmp() not being
modified. And correspondingly, remove unnecessary char buffer.

23 years agoNew function, suggested by Havoc earlier this month. (g_mkstemp): Use only
Tor Lillqvist [Fri, 10 Nov 2000 23:43:33 +0000 (23:43 +0000)]
New function, suggested by Havoc earlier this month. (g_mkstemp): Use only

2000-11-11  Tor Lillqvist  <tml@iki.fi>

* gfileutils.c (g_file_open_tmp): New function, suggested by Havoc
earlier this month.
(g_mkstemp): Use only one case for letters in temp file name, as
this will be used on systems with case-insensitive file systems.

* testglib.c (main): Test g_mkstemp() and g_file_open_tmp().

24 years agoDon't take threads with other priorities into account as changing the
Sebastian Wilhelmi [Thu, 9 Nov 2000 12:28:12 +0000 (12:28 +0000)]
Don't take threads with other priorities into account as changing the

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

* gthreadpool.c: Don't take threads with other priorities into
account as changing the priority is highly unportable. (Actually
using it at all already is unportable, but even sometimes where
that works, changing priority is not possible).

24 years agorename G_MARKUP_FOO to G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG
Havoc Pennington [Sun, 5 Nov 2000 18:38:08 +0000 (18:38 +0000)]
rename G_MARKUP_FOO to G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG

2000-11-05  Havoc Pennington  <hp@pobox.com>

* gmarkup.h: rename G_MARKUP_FOO to
G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG

* gmarkup.c: don't start doc comments with "Returns"

2000-11-05  Havoc Pennington  <hp@pobox.com>

* glib/tmpl/markup.sgml: Write docs

24 years agoinline docs (unescape_text): properly check strtoul for failure.
Havoc Pennington [Sun, 5 Nov 2000 18:09:16 +0000 (18:09 +0000)]
inline docs (unescape_text): properly check strtoul for failure.

2000-11-05  Havoc Pennington  <hp@pobox.com>

* gmarkup.c: inline docs
(unescape_text): properly check strtoul for failure.

* gerror.c (g_propagate_error): Free the src error if the dest
location is NULL - I'm pretty sure that's what this function was
supposed to do.

24 years agoremove parens from section name, confuses gtk-doc
Havoc Pennington [Sun, 5 Nov 2000 17:07:19 +0000 (17:07 +0000)]
remove parens from section name, confuses gtk-doc

2000-11-05  Havoc Pennington  <hp@pobox.com>

* glib/glib-sections.txt: remove parens from section name,
confuses gtk-doc

* glib/glib-docs.sgml: Add the new files here, doh.

* glib/tmpl/shell.sgml: add gshell.[hc] docs

24 years agoFree the src error if the dest location is NULL - I'm pretty sure that's
Havoc Pennington [Sun, 5 Nov 2000 17:02:37 +0000 (17:02 +0000)]
Free the src error if the dest location is NULL - I'm pretty sure that's

2000-11-05  Havoc Pennington  <hp@pobox.com>

* gerror.c (g_propagate_error): Free the src error if the dest
location is NULL - I'm pretty sure that's what this function was
supposed to do.

2000-11-05  Havoc Pennington  <hp@pobox.com>

* glib/tmpl/error_reporting.sgml: fixes

24 years agoAdded
Havoc Pennington [Sun, 5 Nov 2000 16:38:16 +0000 (16:38 +0000)]
Added

2000-11-05  Havoc Pennington  <hp@pobox.com>

        * glib/tmpl/spawn.sgml, glib/tmpl/markup.sgml,
glib/tmpl/fileutils.sgml: Added

* glib/Makefile.am: Add new files

* glib/glib-sections.txt: Add stuff from -unused

2000-11-05  Havoc Pennington  <hp@pobox.com>

* gutils.c (g_find_program_in_path): cleanup docs, sync param
names to those in the header

* gfileutils.c (g_mkstemp): clean up docs

* gshell.h: sync param names with param names in .c file

* gfileutils.h (enum GFileTest): remove trailing comma from last
member, confuses gtk-doc

* gmarkup.h: s/GMarkupErrorType/GMarkupError/g; to follow
convention

24 years agorevert accidentally commited change
Owen Taylor [Sun, 5 Nov 2000 15:29:14 +0000 (15:29 +0000)]
revert accidentally commited change

24 years agoWhen appending handlers and not matching on signal_id, use
Owen Taylor [Sun, 5 Nov 2000 15:27:31 +0000 (15:27 +0000)]
When appending handlers and not matching on signal_id, use

Sun Nov  5 10:25:40 2000  Owen Taylor  <otaylor@redhat.com>

* gsignal.c (handlers_find): When appending handlers and
not matching on signal_id, use hlist->signal_id instead of
signal_id. Having the correct signal_id when unreffing
the handlers makes things work a lot better.

24 years agoAdd gtypeplugin.
Tor Lillqvist [Sun, 5 Nov 2000 09:00:54 +0000 (09:00 +0000)]
Add gtypeplugin.

2000-11-05  Tor Lillqvist  <tml@iki.fi>

* makefile.{mingw,msc}.in (gobject_OBJECTS): Add gtypeplugin.

* gobject.def: Update.

24 years agofixed a bag full of subtle bugs of immensive screw-up potential in
Tim Janik [Sun, 5 Nov 2000 05:07:26 +0000 (05:07 +0000)]
fixed a bag full of subtle bugs of immensive screw-up potential in

Sun Nov  5 05:22:55 2000  Tim Janik  <timj@gtk.org>

        * gsignal.c:
        fixed a bag full of subtle bugs of immensive screw-up potential in
        handlers_find(), luckily no one found out about them yet ;)
        fixed signal_handlers_foreach_matched_R() so it operates on an
        initial handler list snapshot provided by handlers_find() to work
        around general reentrancy problems and to avoid multiple callback()
        invocations on the same handlers.
        this code is now officially 80% bug free (10% remaining for interface
        types, and 10% remaining for destroyed signals ;)

Sat Nov  4 02:01:33 2000  Tim Janik  <timj@gtk.org>

        * gsignal.c (_g_signals_destroy): valid signal nodes start out at 1.

        * gtypeplugin.[hc]: new files holding a GTypePlugin interface
        implementation that provides the API required by GType to deal with
        dynamically loadable types.

        * gtype.[hc]: displace any GTypePlugin business to gtypeplugin.h.

24 years agoprefix internal functions with '_'. renamed g_signal_connect_closure() to
Tim Janik [Fri, 3 Nov 2000 08:18:09 +0000 (08:18 +0000)]
prefix internal functions with '_'. renamed g_signal_connect_closure() to

Fri Nov  3 07:35:00 2000  Tim Janik  <timj@gtk.org>

        * gsignal.[hc]: prefix internal functions with '_'. renamed
        g_signal_connect_closure() to g_signal_connect_closure_by_id().
        added g_signal_parse_name() to retrive signal_id and detail quark
        from a signal name (internal).

Fri Nov  3 07:33:15 2000  Tim Janik  <timj@gtk.org>

        * gobject/gobject-docs.sgml: added &gobject-closures; section.

        * gobject/Makefile.am (tmpl_sources): add tmpl/clsoures.sgml

        * gobject/gobject-sections.txt: added Closure section.

        * gobject/tmpl/closures.sgml: new file with template description
        for GClosure functions.

24 years agoRemove superfluous GSearchFunc.
Sebastian Wilhelmi [Thu, 2 Nov 2000 15:22:57 +0000 (15:22 +0000)]
Remove superfluous GSearchFunc.

2000-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/tmpl/glib-unused.sgml: Remove superfluous GSearchFunc.

24 years agoAdded documentation for asynchronous queues.
Sebastian Wilhelmi [Thu, 2 Nov 2000 14:54:52 +0000 (14:54 +0000)]
Added documentation for asynchronous queues.

2000-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib/tmpl/async_queues.sgml, glib/glib-sections.txt: Added
documentation for asynchronous queues.

* gasyncqueue.c: Added inline documentation for asyncronous
queues.

24 years agoAdd G_MUTEX_SIZE as needed for gthread-impl.c
Sebastian Wilhelmi [Thu, 2 Nov 2000 13:04:16 +0000 (13:04 +0000)]
Add G_MUTEX_SIZE as needed for gthread-impl.c

2000-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gthread-none.c: Add G_MUTEX_SIZE as needed for gthread-impl.c

24 years agoChanged unportable __FUNCTION__ to the verbatim function name.
Sebastian Wilhelmi [Thu, 2 Nov 2000 12:31:10 +0000 (12:31 +0000)]
Changed unportable __FUNCTION__ to the verbatim function name.

2000-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gspawn.c: Changed unportable __FUNCTION__ to the verbatim
function name.

24 years agoInclude sys/select.h (some platforms need it for select).
Sebastian Wilhelmi [Thu, 2 Nov 2000 11:38:10 +0000 (11:38 +0000)]
Include sys/select.h (some platforms need it for select).

2000-11-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gspawn.c: Include sys/select.h (some platforms need it for
select).

24 years agodestroy all signals that the finalized obejct type introduced.
Tim Janik [Wed, 1 Nov 2000 03:03:04 +0000 (03:03 +0000)]
destroy all signals that the finalized obejct type introduced.

Wed Nov  1 03:36:54 2000  Tim Janik  <timj@gtk.org>

        * gobject.c (g_object_base_class_finalize): destroy all signals that
        the finalized obejct type introduced.

        * gsignal.c (g_signals_destroy): don't require itype to have
        signals.

        * gobject.c (g_object_do_finalize): make sure all signal handlers
        are destroyed.

        * gsignal.[hc]:
        (g_signal_handler_find): only match on non-0 masks.
        (g_signal_handlers_block_matched):
        (g_signal_handlers_unblock_matched):
        (g_signal_handlers_disconnect_matched): new functions to block/unblock
        or disconnect handlers in groups.

24 years agoThis time the right fix.
Sebastian Wilhelmi [Tue, 31 Oct 2000 14:55:23 +0000 (14:55 +0000)]
This time the right fix.

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

* glib/tmpl/linked_lists_single.sgml: This time the right fix.

* glib/tmpl/scanner.sgml, glib/tmpl/strings.sgml: Changed
parameter names.

* glib/tmpl/string_utils.sgml: Corrected the documentation of
g_strescape and added those of g_strcompress.

24 years agoAlso move the #define for O_BINARY from gutils.c to gfileutils.c.
Tor Lillqvist [Tue, 31 Oct 2000 05:51:24 +0000 (05:51 +0000)]
Also move the #define for O_BINARY from gutils.c to gfileutils.c.

24 years agogutils.c gutils.h gfileutils.c Actually, g_mkstemp() is better suited in
Tor Lillqvist [Mon, 30 Oct 2000 22:06:22 +0000 (22:06 +0000)]
gutils.c gutils.h gfileutils.c Actually, g_mkstemp() is better suited in

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

* gutils.c
* gutils.h
* gfileutils.c
* gfileutils.h: Actually, g_mkstemp() is better suited in gfileutils.

24 years agoCheck for mkstemp.
Tor Lillqvist [Mon, 30 Oct 2000 21:55:21 +0000 (21:55 +0000)]
Check for mkstemp.

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

* configure.in: Check for mkstemp.

* gutils.c (g_mkstemp): New function. If HAVE_MKSTEMP, just call
it, otherwise use code lifted from glibc.

* gutils.h: Declare it.

* glib.def: Here, too.

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.