GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

  1. 20 Jul, 2001 3 commits
    • Hans Breuer's avatar
      make it compile again · 847d8e92
      Hans Breuer authored
      2001-07-20  Hans Breuer  <hans@breuer.org>
      
      	* glib/glib/giowin32.c : make it compile again
      
      	* glib/glib.def : updated exports
      
      	* glib/makefile.msc.in :
      	* glib/makefile.mingw.in :
      	* tests/makefile.msc.in : reflect glib move
      
      	* tests/mainloop-test.c : #include <io.h> for _pipe()
      
      	* tests/gio-test.c : casts for strict compiler settings
      
      	* makefile.msc.in : new master makefile reflecting the glib
      	move. The '.in' isn't really needed anymore, because there
      	is no version number in it
      847d8e92
    • Hans Breuer's avatar
      reflect glib move · 606033cf
      Hans Breuer authored
      2001-07-20  Hans Breuer  <hans@breuer.org>
      
      	* makefile.msc.in : reflect glib move
      606033cf
    • Hans Breuer's avatar
      updated externals · 87c75925
      Hans Breuer authored
      2001-07-20  Hans Breuer  <hans@breuer.org>
      
      	* gobject.def : updated externals
      
      	* makefile.msc.in : reflect glib move
      87c75925
  2. 19 Jul, 2001 4 commits
    • Owen Taylor's avatar
      Fix memory leak and dubious list manipulation. (Found by Ron Koerner, · 83c4b098
      Owen Taylor authored
      Thu Jul 19 16:05:21 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gcompletion.c (g_completion_complete): Fix memory
      	leak and dubious list manipulation. (Found by
      	Ron Koerner, #53408)
      
      	* glib/gfileutils.c (get_contents_stdio): Call fclose()
      	on FILE * on error. (#57057)
      83c4b098
    • Darin Adler's avatar
      Add missing const. (g_strsplit): Add g_return_val_if_fail for case of · 3fa620d4
      Darin Adler authored
      	* glib/gstrfuncs.c: (g_ascii_strdown), (g_ascii_strup): Add
      	missing const.
      	(g_strsplit): Add g_return_val_if_fail for case of empty
      	delimiter, which can result in an infinite loop otherwise.
      	* glib/gstrfuncs.h: Add missing const.
      	* tests/.cvsignore: Ignore a generated file.
      
      	* tests/array-test.c:
      	* tests/dirname-test.c:
      	* tests/hash-test.c:
      	* tests/list-test.c:
      	* tests/node-test.c:
      	* tests/relation-test.c:
      	* tests/shell-test.c:
      	* tests/slist-test.c:
      	* tests/spawn-test.c:
      	* tests/strfunc-test.c:
      	* tests/string-test.c:
      	* tests/testglib.c:
      	* tests/tree-test.c:
      	* tests/type-test.c:
      	Add an #undef G_DISABLE_ASSERT so all tests will assert even if
      	asserts are disabled inside glib itself.
      3fa620d4
    • Matthias Clasen's avatar
      fix some typos. · f9a6307e
      Matthias Clasen authored
      2001-06-03  Matthias Clasen  <matthiasc@poet.de>
      
              * glib/tmpl/caches.sgml, glib/tmpl/main.sgml,
              gobject/gobject-docs.sgml, gobject/tmpl/generic_values.sgml,
              gobject/tmpl/gtypemodule.sgml, gobject/tmpl/signals.sgml,
              gobject/tmpl/types.sgml: fix some typos.
      f9a6307e
    • Owen Taylor's avatar
      Add functions to insert a unichar as UTF-8, since this is reasonably · f37c13db
      Owen Taylor authored
      Fri Jul 13 19:20:06 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gstring.c (g_string_insert/append/prepend_unichar):
      	Add functions to insert a unichar as UTF-8, since this
      	is reasonably common.
      
      	* glib/gutf8.c glib/gunicode.h (g_utf8_get_char_validated):
      	New function exposing iterating through possibly invalid/incomplete
      	UTF-8 to unicode to the outside world.
      
      	* glib/gutf8.c (g_utf8_get_char_extended): Fix max_len argument
      	to be gssize, not gsize.
      f37c13db
  3. 17 Jul, 2001 3 commits
  4. 12 Jul, 2001 1 commit
  5. 11 Jul, 2001 2 commits
    • Darin Adler's avatar
      Add some generated files. · 624a3c96
      Darin Adler authored
              * .cvsignore: Add some generated files.
      
              * glib/gmain.c: (g_main_context_iterate): Comment out cruft
              after #endif to avoid gcc warning.
              * gmodule/gmodule.c: (g_module_set_error_unduped): Remove
              const from type to avoid gcc warning.
              * gobject/gsignal.c: (g_signal_emitv): ifdef variable used
              only if G_ENABLE_DEBUG to avoid gcc warning.
              * gobject/gtype.c: (type_iface_vtable_init_Wm),
              (type_iface_vtable_finalize_Wm): ifdef call needed only
              if !G_DISABLE_ASSERT to avoid gcc warning.
              * tests/testglib.c: (main): ifdef call needed only if
              !G_DISABLE_ASSERT to avoid gcc warning. Maybe later we
              should make the test to #undef G_DISABLE_ASSERT.
              * tests/unicode-collate.c: Add include of <string.h> to
              avoid gcc warning.
      624a3c96
    • Owen Taylor's avatar
      Add gunicomp.h (Reported by Sven Neumann). · be44b990
      Owen Taylor authored
      Wed Jul 11 11:13:50 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/Makefile.am (libglib_1_3_la_SOURCES): Add gunicomp.h
      	(Reported by Sven Neumann).
      
      	* glib/guniprop.c (g_utf8_str/updown) glib/gunicollate.c
      	(g_utf8_collate_key): Fix shadowing problems reported by
      	many (D. Adler, S. Neumann, M. Murmane, L. Peter)
      be44b990
  6. 10 Jul, 2001 1 commit
    • Tim Janik's avatar
      fix negative exponent handling (numbers<0). · 11b0d06e
      Tim Janik authored
      Fri Jul  6 00:02:41 2001  Tim Janik  <timj@gtk.org>
      
              * glib/gmessages.c (printf_string_upper_bound): fix negative exponent
              handling (numbers<0).
      
              * glib/gutils.h (g_bit_storage): take a gulong as argument.
              same for g_bit_nth_lsf() and g_bit_nth_msf() as mask.
      
      Tue Jul 10 18:50:16 2001  Tim Janik  <timj@gtk.org>
      
              * gsignal.h (struct _GSignalQuery): fix misplaced comment.
      11b0d06e
  7. 08 Jul, 2001 1 commit
  8. 07 Jul, 2001 1 commit
  9. 06 Jul, 2001 2 commits
  10. 05 Jul, 2001 1 commit
  11. 02 Jul, 2001 5 commits
    • Andy Lanoix's avatar
      *giowin32.c: g_source_remove()ing an socket iochannel closes · 527a4224
      Andy Lanoix authored
      the socket when it should not. Patch by Peter Zelezny
      <zed@linux.com>
      *giowin32.c: Fix a few typos
      527a4224
    • Owen Taylor's avatar
      Fix. · 7d676fb2
      Owen Taylor authored
      Mon Jul  2 16:03:21 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/giochannel.c (g_io_channel_get_buffer_condition): Fix.
      
      	* glib/giunix.c: Fix prepare/check/dispatch for watches.
      
      	* tests/unicode-normalize.c: #include <string.h>
      7d676fb2
    • Tim Janik's avatar
      congrats tim, introducing of-by-one errors like on my very first day of C · 6bad2c92
      Tim Janik authored
      Mon Jul  2 07:17:47 2001  Tim Janik  <timj@gtk.org>
      
              * gobject.c (g_object_weak_ref):
              (g_object_watch_closure): congrats tim, introducing of-by-one
              errors like on my very first day of C programming.
      6bad2c92
    • Tim Janik's avatar
      added g_list_insert_before(). · 69f32ba7
      Tim Janik authored
      Sat Jun 30 23:14:32 2001  Tim Janik  <timj@gtk.org>
      
              * glib/glist.[hc]: added g_list_insert_before().
      
              * glib/gslist.c (g_slist_insert_before): provide an implementation,
              prototype was already present...
      
      Sat Jun 30 11:07:00 2001  Tim Janik  <timj@gtk.org>
      
              * gobject.[hc]: provide weak_ref/weak_unref functions,
              invoked from ->dispose. renamed ->shutdown() to ->dispose(),
              provide "public" API entry here: g_object_run_dispose(), this
              fucntion should _only_ be called from object system implementations
              (e.g. gtkobject.c) if at all.
      
              * gtypemodule.c (g_type_module_dispose): s/shutdown/dispose/
      
              * gsignal.h: removed compat aliases.
      
              * gobject.c (g_object_connect): support data objects.
      69f32ba7
    • Owen Taylor's avatar
      Use G_N_ELEMENTS rather than a custom macro. · 4f96a13c
      Owen Taylor authored
      Sun Jul  1 20:16:25 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/guniprop.c (g_unichar_totitle): Use G_N_ELEMENTS
      	rather than a custom macro.
      
      	* glib/gen-unicode-tables.pl: Adapt to changes in table
      	formats for Unicode 3.1
      
      	* glib/gunicode.h glib/guniprop.c glib/gunichartables.h
      	  glib/gen-unicode-tables.pl: Add case conversion functions
              g_utf8_casefold, g_utf8_strup, g_utf8_strdown.
      
      	* tests/unicode-caseconv.c tests/gen-casefold-txt.pl
      	  tests/gen-casemap-txt.pl tests/casefold.txt
      	  tests/casemap.txt: Test cases for case conversion.
      
      	* glib/gunicode.h glib/gunidecomp.[ch] glib/gunicomp.h
      	  glib/gen-unicode-tables.pl: Add function to do Unicode
              normalization g_utf8_normalize().
      
      	* tests/unicode-normalize.c: Test program for case conversion.
      
      	* glib/gunicode.h glib/gunicollate.c: Add collation functions
      	g_utf8_collate, g_utf8_collate_key.
      
      	* test/unicode-collate.c: Test program for collation.
      
      	* glib/gdate.c (g_date_fill_parse_tokens): Fix uninitialized
      	variable.
      
      	* glib/gdate.c (g_date_strftime) docs/Changes-2.0.txt:
      	Make work with UTF-8 even if the locale isn't UTF-8 based.
      	Still somewhat of broken, if the format string contains
      	characters not representable in the current locale, will warn
      	and not work.
      
      	* glib/gdate.c: Use UTF-8 normalization and casefolding.
      4f96a13c
  12. 30 Jun, 2001 6 commits
    • Owen Taylor's avatar
      Rename GSourceFuncs::destroy to GSourceFuncs::finalize. (#56858) · b37e7bbb
      Owen Taylor authored
      Sat Jun 30 16:03:16 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/giowin32.c glib/giounix.c glib/gmain.[ch]:
      	Rename GSourceFuncs::destroy to GSourceFuncs::finalize.
      	(#56858)
      b37e7bbb
    • Owen Taylor's avatar
      Make some changes to the way that GMainContext works: · 8951f96c
      Owen Taylor authored
      Sat Jun 30 15:49:10 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gmain.[ch]: (Mostly patch from Sebastian Wilhemi)
      	Make some changes to the way that GMainContext works:
      
      	 - a GMainContext is no longer associated with a single
      	   thread, but any thread can acquire ownership
      	   of thread and iterate.
      
      	 - There is a facility g_main_context_wait() for
      	   non-owner-threads to wait either for ownership
      	   or for a condition to be broadcast.
      
      	 - For efficiency, GMainLoop just piggybacks of
      	   of the loops mutex / condition instead of
      	   having a separate mutex/condition for each
      	   GMainLoop.
      
      	* glib/gthread.[ch]: Remove hacks to store the thread's
      	GMainContext in the GThread structures, since we
      	no longer have the GMainContext <=> GThread correspondence.
      
              * glib/gmain.[ch]: Make g_main_context_wakeup() public
      	so someone could completely duplicate GMainLoop
      	with the public API.
      
      	* tests/mainloop-test: Fix up to the new API. Decidedly
      	doesn't work at the moment, but that may be the IO
      	channel changes, or preexisting locking problems.
      8951f96c
    • Owen Taylor's avatar
      Try compiling before committing, why don't you? Simple fixes for my stupid · c88e2529
      Owen Taylor authored
      Sat Jun 30 13:18:28 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gstrfuncs.c glib/gstring.h: Try compiling
      	before committing, why don't you? Simple fixes
      	for my stupid typos.
      c88e2529
    • Owen Taylor's avatar
      g_signal_newc() => g_signal_new(). · 1d1c8ef0
      Owen Taylor authored
      Sat Jun 30 13:17:12 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* testgruntime.c (test_object_class_init)
                gobject.c (g_object_do_class_init):
                g_signal_newc() => g_signal_new().
      1d1c8ef0
    • Owen Taylor's avatar
      Patch from Darin Adler (#54166) · 55688d6c
      Owen Taylor authored
      Sat Jun 30 12:49:26 2001  Owen Taylor  <otaylor@redhat.com>
      
              Patch from Darin Adler (#54166)
      
      	* glib/gstrfuncs.[ch]: Add ascii-only, locale-insensitive
      	g_ascii_to[lower/upper], g_ascii_str[down/up],
      	g_ascii_is[upper/lower] and deprecate the locale-affected
      	versions which break for UTF-8, etc. Make
      	g_ascii_strup/strdown duplicating,
      	not in-place for consistency with UTF-8 functions.
      
      	* glib/gstring.[ch]: Add ascii-only, locale-insensitive
      	g_string_ascii_[down/up], and deprecate the locale-affected
      	versions which break for UTF-8, etc.
      
      	* glib/gutils.c glib/gwin32.c test/testglib.c: Use
      	the g_ascii_* functions where appropriate.
      55688d6c
    • Owen Taylor's avatar
      Jun 29 13:36:39 2001 Owen Taylor <otaylor@redhat.com> · 42a23950
      Owen Taylor authored
              * glib/gstring.[ch] (g_string_set_size): Add function to
              allow setting the length of a string greater than the
              current length (for buffering usage)
      
              * glib/gstring.[ch]: Expose string->allocated_len, since
              that is useful when using GString simply as a buffer.
              (Renamed from string->alloc)
      
              * glib/giochannel.[ch] glib/giounix.c glib/giowin32.c:
              Major patch from Hidetoshi Tajima and Ron Steinke
              reworking GIOChannel to have:
      
               - Buffering
               - Sane and useful error reporting
               - Streaming encoding conversion with iconv
               - Convenience functions to read by lines or
                 an entire file.
      
              Also fix remaining 64 bit cleanliness issues.
      
              * tests/iochannel-test.c tests/Makefile.am: Test case
              for IO channel streaming conversion. Still needs
              some fixing up.
      42a23950
  13. 29 Jun, 2001 1 commit
  14. 28 Jun, 2001 2 commits
    • Owen Taylor's avatar
      Buffers Files Tools Edit Search Mule Help ... · 4be0cfdd
      Owen Taylor authored
      Buffers Files Tools Edit Search Mule Help                                       Thu Jun 28 17:43:29 2001  Owen Taylor  <otaylor@redhat.com>
      
              * glib/tmpl/memory.sgml glib/tmpl/macros_misc.sgml: Add
      	notes about inclusion of string.h to docs on g_memmove,
              G_VA_COPY. (#54411)
      4be0cfdd
    • Tim Janik's avatar
      up version number to 1.3.7, interface age 0, binary age 0. · fd860cb9
      Tim Janik authored
      Thu Jun 28 16:57:44 2001  Tim Janik  <timj@gtk.org>
      
              * configure.in (GLIB_MICRO_VERSION): up version number to 1.3.7,
              interface age 0, binary age 0.
      
      Thu Jun 28 16:42:49 2001  Tim Janik  <timj@gtk.org>
      
              * gsignal.c (g_signal_lookup):
              (g_signal_list_ids): give elaborate warnings about invalid types,
              non-instantiatable types and unloaded types that we can't operate on.
      
              * gparam.[hc]: g_param_spec_pool_belongings() ->
              g_param_spec_pool_list_owned().
      
              * gsignal.[hc]: renamed:
              g_signal_newc -> g_signal_new
              g_signal_disconnect_by_func -> g_signal_handlers_disconnect_by_func
              g_signal_block_by_func -> g_signal_handlers_block_by_func
              g_signal_unblock_by_func -> g_signal_handlers_unblock_by_func
              added GConnectType to simplify (..gboolean swapped, gboolean after)
              args.
      
              * gobject.[hc]: changed prototypes accordingly.
      fd860cb9
  15. 27 Jun, 2001 3 commits
  16. 26 Jun, 2001 3 commits
    • Owen Taylor's avatar
      Fix problem with glibconfig.h · 5552cd67
      Owen Taylor authored
      Tue Jun 26 12:28:20 2001  Owen Taylor  <otaylor@redhat.com>
      
              * glib/Makefile.am: Fix problem with glibconfig.h
      5552cd67
    • Owen Taylor's avatar
      Move glib library into a subdirectory, make all GLib include files include · 2fd6b001
      Owen Taylor authored
      Tue Jun 26 11:43:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in Makefile.am *.[ch] glib/*.[ch] glib/Makefile.am:
      	Move glib library into a subdirectory, make all GLib include
      	files include as <glib/glist.h>
      
      	* tests/testglib.c tests/testgdate.c tests/testgdateparser.c
      	  tests/timeloop.c tests/timeloop-basic.c: Move all tests into
      	the tests/ subdirectory.
      2fd6b001
    • Sebastian Wilhelmi's avatar
      Corrected. · 2c9c0fab
      Sebastian Wilhelmi authored
      
      2001-06-26  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib/tmpl/threads.sgml (example): Corrected.
      2c9c0fab
  17. 23 Jun, 2001 1 commit