1. 30 Oct, 2000 9 commits
    • Tor Lillqvist's avatar
      Check for mkstemp. · 6acee58b
      Tor Lillqvist authored
      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.
      6acee58b
    • Sebastian Wilhelmi's avatar
      Added documentation for G_MAXU(INT|SHORT|LONG). · 3de6638d
      Sebastian Wilhelmi authored
      
      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).
      3de6638d
    • Sebastian Wilhelmi's avatar
      second try. · f8314fd1
      Sebastian Wilhelmi authored
      
      second try.
      f8314fd1
    • Sebastian Wilhelmi's avatar
      Move GCompareFunc to GList and introduce and document GEqualFunc in · 6ca80ce8
      Sebastian Wilhelmi authored
      
      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.
      6ca80ce8
    • Sebastian Wilhelmi's avatar
      made both functions return gboolean just for the little extra standard · 3a9edd37
      Sebastian Wilhelmi authored
      
      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.
      3a9edd37
    • Sebastian Wilhelmi's avatar
      Introduced new function type GEqualFunc to return TRUE for equal params. · 267b6813
      Sebastian Wilhelmi authored
      
      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.
      267b6813
    • Tim Janik's avatar
      start at general description. · d42361a6
      Tim Janik authored
      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.
      d42361a6
    • Tim Janik's avatar
      opened up a new section on signals. · 81711027
      Tim Janik authored
      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).
      81711027
    • Tim Janik's avatar
      renamed owen's g_type_signals(), added required mutex locks. · 65c423b4
      Tim Janik authored
      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.
      65c423b4
  2. 29 Oct, 2000 2 commits
  3. 27 Oct, 2000 11 commits
    • Tim Janik's avatar
      fixed notifier position for post_marshal guard which was off at 0. · c5695bf7
      Tim Janik authored
      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.
      c5695bf7
    • Tor Lillqvist's avatar
      Make glib-genmarshal.exe. · 62081208
      Tor Lillqvist authored
      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.
      62081208
    • Tor Lillqvist's avatar
      Add gmarkup. · 09683edc
      Tor Lillqvist authored
      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.
      09683edc
    • Tim Janik's avatar
      publically define GSignalInvocationHint structure that gets passed in to · 830d808c
      Tim Janik authored
      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.
      830d808c
    • Sebastian Wilhelmi's avatar
      Removed the win32 limitation. · e6dfecac
      Sebastian Wilhelmi authored
      
      2000-10-27  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib/tmpl/misc_utils.sgml: Removed the win32 limitation.
      e6dfecac
    • Sebastian Wilhelmi's avatar
      .cvsignore updates · bf590bce
      Sebastian Wilhelmi authored
      
      .cvsignore updates
      bf590bce
    • Sebastian Wilhelmi's avatar
      Document the recently deprecated functions as such. · b6b00bab
      Sebastian Wilhelmi authored
      
      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.
      b6b00bab
    • Tim Janik's avatar
      const fix · 1e46cf80
      Tim Janik authored
      1e46cf80
    • Tim Janik's avatar
      ri Oct 27 05:35:14 2000 Tim Janik <timj@gtk.org> · 1e23d8a9
      Tim Janik authored
              * gobject.c (g_object_watch_closure): fixed realloc bug, reported
                      by havoc.
      1e23d8a9
    • Tim Janik's avatar
      fixed deadlock scenarion where g_signal_lookup() would be called with the · 8a572c0d
      Tim Janik authored
      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.
      8a572c0d
    • Havoc Pennington's avatar
      New module to parse a simple markup language · 32ef70d4
      Havoc Pennington authored
      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
      32ef70d4
  4. 26 Oct, 2000 4 commits
  5. 25 Oct, 2000 4 commits
    • Owen Taylor's avatar
      Don't use implicit casts from void * since this will get included from C++ · b1278dc6
      Owen Taylor authored
      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.
      b1278dc6
    • Tim Janik's avatar
      added g_value_set_static_string(). · 900d0ed0
      Tim Janik authored
      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().
      900d0ed0
    • Tim Janik's avatar
      added newly added gobject/ headers. · ee23c09e
      Tim Janik authored
      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.
      ee23c09e
    • Sebastian Wilhelmi's avatar
      Add @GLIB_DEBUG_FLAGS@ to INCLUDES for accessing -DG_ENABLE_DEBUG as · b13320f7
      Sebastian Wilhelmi authored
      
      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).
      b13320f7
  6. 23 Oct, 2000 2 commits
  7. 19 Oct, 2000 2 commits
    • Tor Lillqvist's avatar
      Pass -DGSPAWN_HELPER when building it. Link with user32.lib. · 4905022b
      Tor Lillqvist authored
      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.
      4905022b
    • Owen Taylor's avatar
      Change ERROR_OTHER to ERROR_FAILED, add some dummy marking with _(). · 1bfc515a
      Owen Taylor authored
      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.
      1bfc515a
  8. 16 Oct, 2000 4 commits
    • Tor Lillqvist's avatar
      Remove alloca stuff from here. galloca.h takes care of it, correctly. · e9360931
      Tor Lillqvist authored
      2000-10-16  Tor Lillqvist  <tml@iki.fi>
      
      	* glibconfig.h.win32.in: Remove alloca stuff from here. galloca.h
      	takes care of it, correctly.
      e9360931
    • Tor Lillqvist's avatar
      Add gspawn-win32.c to EXTRA_DIST. · 03f51276
      Tor Lillqvist authored
      03f51276
    • Tor Lillqvist's avatar
      Some more debugging output. (g_io_channel_win32_poll): Remove unused vars. · fb4de1c5
      Tor Lillqvist authored
      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).
      fb4de1c5
    • Raja R Harinath's avatar
      gmodule: New variable. (dist-hook): Handle $(BUILT_EXTRA_DIST). · a626a650
      Raja R Harinath authored
      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).
      a626a650
  9. 13 Oct, 2000 2 commits
    • Sebastian Wilhelmi's avatar
      Added inline documentation. · eb27cad0
      Sebastian Wilhelmi authored
      
      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.
      eb27cad0
    • Sebastian Wilhelmi's avatar
      Readded GFreeFunc, g_node_insert_after and g_find_program_in_path resp., · 24b4bfbe
      Sebastian Wilhelmi authored
      
      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.
      24b4bfbe