1. 17 Dec, 2006 1 commit
  2. 16 Dec, 2006 2 commits
  3. 15 Dec, 2006 1 commit
  4. 05 Dec, 2005 1 commit
  5. 01 Nov, 2005 1 commit
    • Tim Janik's avatar
      prepared deprecation of GMemChunk and GAllocator. added g_slice_*() API to · 0cba1b53
      Tim Janik authored
      Tue Nov  1 16:24:20 2005  Tim Janik  <timj@imendio.com>
      
              * glib/gmem.[hc]: prepared deprecation of GMemChunk and GAllocator.
              added g_slice_*() API to allocate and cache small bits of memory.
              an actuall allocator implementation for g_slice_*() is still pending.
      
              * glib/gthread.[hc]: changes from a patch by Matthias Clasen.
              changed GRealThread list to use in-structure *next; fields instead
              of GSList, in order for thread iteration to not depenend on g_slice_*()
              indirectly.
              _g_thread_mem_private_get():
              _g_thread_mem_private_set(): added accessors for private memory,
              needed because the ordinary GPrivate implementation relies on GArray
              and GSList and therefore indirectly on working g_slice_*() allocations.
      
              * glib/gthread.[hc]:
              g_thread_foreach(): new public API function to loop over all existing threads.
      
              * glib/gdataset.c:
              * glib/gstring.c:
              * glib/gcache.c:
              * glib/garray.c:
              * glib/gqueue.c:
              * glib/gslist.c:
              * glib/glist.c:
              * glib/ghash.c:
              * glib/gtree.c:
              * glib/ghook.c:
              * glib/gmain.c:
              * glib/gnode.c:
              removed GAllocator and free list usages and accompanying locks.
              use g_slice_*() API to allocate and cache small bits of memory.
      
              * glib/ghook.h: removed GMemChunk field from public API.
      
              * glib/gslist.h:
              * glib/glist.h: deprecate allocator API, provide _free1() for consistency.
      
              * glib/gnode.h: deprecate allocator API.
      
              * glib/gmain.c: reordered GPollRec fields so g_slice_free_chain() can
              be used for poll rec lists.
      
              * glib/grel.c: removed mem chunk usage, and allocated tuples via g_slice_*().
              g_relation_destroy(): free all tuples from the all_tuples hash table,
              this effectively maintains the life time track keeping of tuples.
              g_relation_delete_tuple(): free tuples which are removed from the
              all_tuples hash table. this fixes a temporary leak that was present
              in the memchunk code until the destruction of the relation.
      0cba1b53
  6. 18 Aug, 2005 1 commit
  7. 19 Jul, 2005 1 commit
  8. 30 Jun, 2005 1 commit
  9. 02 May, 2005 1 commit
  10. 14 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · 608a31b9
      Matthias Clasen authored
      2005-03-13  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in galias.h:
      
      	* glib/glib.symbols: Group symbols by header and source file.
      	* glib/makegalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegalias.pl -def
      	* glib/Makefile.am (galiasdef.c): Add a rule to generate this
      	file.
      	* glib/*.c: Include galias.h after the other GLib headers,
      	include galiasdef.c at the bottom.
      608a31b9
  11. 16 Sep, 2004 1 commit
  12. 19 Feb, 2004 1 commit
  13. 16 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      Forgot to fix this one. · d95fb321
      Matthias Clasen authored
      Fri Jan 16 21:45:56 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/gstring.c (g_string_ascii_up): Forgot to fix this one.
      d95fb321
  14. 15 Jan, 2004 1 commit
  15. 05 Nov, 2003 1 commit
  16. 05 Jun, 2003 1 commit
    • Matthias Clasen's avatar
      Use g_vasprintf() and g_string_append_len(), thus enabling embedded nuls · cc777da9
      Matthias Clasen authored
      2003-06-06  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/gstring.c (g_string_append_printf_internal): Use
      	g_vasprintf() and g_string_append_len(), thus enabling embedded
      	nuls in the result of g_string_printf().  (#92492, Owen Taylor)
      
      	* tests/string-test.c: Add a test for embedded nuls in the
      	result of g_string_printf().
      cc777da9
  17. 31 Mar, 2003 1 commit
  18. 30 Mar, 2003 1 commit
    • Matthias Clasen's avatar
      Optimize the common cases (init == NULL or init == "") a bit. replace uses · 6710fd6e
      Matthias Clasen authored
      2003-03-30  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/gstring.c (g_string_new): Optimize the common cases
      	(init == NULL or init == "") a bit.
      	* glib/gmarkup.c, glib/gmessages.c, glib/gscanner.c,
      	glib/gshell.c, glib/gspawn-win32-helper.c, glib/gspawn-win32.c,
      	glib/gspawn.c, gobject/gvaluetransform.c: replace uses of
      	g_string_new ("") by g_string_new (NULL).  (#106973, Morten Welinder)
      6710fd6e
  19. 04 Dec, 2002 1 commit
  20. 28 Nov, 2002 1 commit
    • Matthias Clasen's avatar
      Move some docs inline, and add deprecation information. To see the list of · 803bae66
      Matthias Clasen authored
      	* glib/gutils.c:
      	* glib/gtree.c:
      	* glib/gstring.c:
      	* glib/gstrfuncs.c:
      	* glib/giochannel.c: Move some docs inline, and add deprecation
      	information. To see the list of affected functions, grep for
      	"Deprecated:".
      
      	* glib/tmpl/strings.sgml:
      	* glib/tmpl/string_utils.sgml:
      	* glib/tmpl/misc_utils.sgml: Move some docs inline.
      803bae66
  21. 26 May, 2002 1 commit
    • Matthias Clasen's avatar
      Remove references to nonexisting functions · 5e45a337
      Matthias Clasen authored
      	* glib/gmain.c: Remove references to nonexisting functions
      	g_source_set_callback_closure(), g_source_poll(), g_source_add()
      	from docs.
      
      	* glib/gdir.c (g_dir_open): Typo fix in docs.
      
      	* glib/gasyncqueue.c (g_async_queue_lock):
      	(g_async_queue_unref_and_unlock): Fix markup to avoid erroneous
      	<link>s in docs.
      
      	* glib/gwin32.c: Escape #'s leading to erroneous <link>s in docs.
      
      	* glib/gtree.c: Replace some occurances of Gtree by GTree in docs.
      
      	* glib/gstring.c (g_string_insert_unichar): Typo fix in docs.
      
      	* glib/tmpl/conversions.sgml: Add GIConv.
      
      	* glib/tmpl/main.sgml: Fix references to nonexisting functions
      	g_main_loop_destroy(), g_source_add(), g_source_connect().
      
      	* glib/glib-sections.txt: Add GIConv, g_str_has_prefix, g_str_has_suffix.
      
      	* glib/tmpl/linked_lists_single.sgml:
      	* glib/tmpl/linked_lists_double.sgml: GListAllocator doesn't exist.
      
      	* glib/glib-docs.sgml: Declare hash entity.
      
      	* glib/tmpl/macros.sgml: Escape # in #ifdef to suppress erroneous links.
      
      	* gobject/Makefile.am, gobject/gobject-docs.sgml, gobject/tmpl/*:
      	* glib/Makefile.am, glib/glib-docs.sgml, glib/tmpl/*: Produce XML,
      	not SGML.
      5e45a337
  22. 20 Feb, 2002 1 commit
  23. 01 Oct, 2001 1 commit
  24. 28 Sep, 2001 1 commit
  25. 19 Sep, 2001 1 commit
  26. 10 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Doc fixes. · 16fc3b22
      Owen Taylor authored
      Mon Sep 10 11:42:58 2001  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gutf8.c glib/gstring.c glib/gfileutils.c glib/gmain.c:
              Doc fixes.
      16fc3b22
  27. 19 Jul, 2001 1 commit
    • 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
  28. 30 Jun, 2001 2 commits
    • 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
  29. 23 Jun, 2001 1 commit
    • Owen Taylor's avatar
      Changes for 64-bit cleanliness, loosely based on patch from Mark Murnane. · f5c28ce4
      Owen Taylor authored
      Wed Jun 20 12:00:54 2001  Owen Taylor  <otaylor@redhat.com>
      
              Changes for 64-bit cleanliness, loosely based on patch
      	from Mark Murnane.
      
      	* gconvert.c (g_convert/g_convert_with_fallback): Remove
      	workarounds for since-fixed GNU libc bugs. Minor
      	doc fix.
      
      	* gconvert.[ch]: Change gint to gsize/gssize as
      	appropriate.
      
      	* gconvert.c (g_locale/filename_to/from_utf8): Fix incorrect
      	computation of bytes_read / bytes_written.
      
      	* gfileutils.[ch] (g_file_get_contents): Make length
      	out parameter 'gsize *len'.
      
      	* ghook.c (g_hook_compare_ids): Don't compare a
      	and b as 'a - b'.
      
      	* gmacros.h (GSIZE_TO_POINTER): Add GPOINTER_TO_SIZE,
      	GSIZE_TO_POINTER.
      
      	* gmain.c (g_timeout_prepare): Rewrite to avoid
      	overflows. (Fixes bug when system clock skews
      	backwards more than 24 days.)
      
      	* gmarkup.[ch]: Make lengths passed to callbacks
      	gsize, length for g_markup_parse-context_parse(),
      	g_markup_escape_text() gssize.
      
      	* gmessages.[ch] (g_printf_string_upper_bound): Change
      	return value to gsize.
      
      	* gmessages.c (printf_string_upper_bound): Remove
      	a ridiculous use of 'inline' on a 300 line function.
      
      	* gstring.[ch]: Represent size of string as a gsize,
      	not gint. Make parameters to functions take gsize,
      	or gssize where -1 is allowed.
      
      	* gstring.c (g_string_erase): Make
      	g_string_erase (string, pos, -1) a synonym for
      	g_string_truncate for consistency with other G*
      	APIs.
      
      	* gstrfuncs.[ch]: Make all functions taking a string
      	length, take a gsize, or gssize if -1 is allowed.
      	(g_strstr_len, g_strrstr_len). Also fix some boundary
      	conditions in g_str[r]str[_len].
      
      	* gutf8.c tests/unicode-encoding.c: Make parameters that
      	are byte lengths gsize, gssize as appropriate. Make
      	character offsets, other counts, glong.
      
      	* gasyncqueue.c gcompletion.c
                timeloop.c timeloop-basic.c gutils.c gspawn.c.
      	Small 64 bit cleanliness fixups.
      
      	* glist.c (g_list_sort2, g_list_sort_real): Fix functions
      	that should have been static.
      
      	* gdate.c (g_date_fill_parse_tokens): Fix extra
      	declaration that was shadowing another.
      
      	* tests/module-test.c: Include string.h
      
      Mon Jun 18 15:43:29 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gutf8.c (g_get_charset): Make argument
      	G_CONST_RETURN char **.
      f5c28ce4
  30. 07 Mar, 2001 1 commit
    • Tim Janik's avatar
      changed prototype of g_boxed_type_register_static() to contain an optional · 37e4b8c8
      Tim Janik authored
      Wed Mar  7 09:36:33 2001  Tim Janik  <timj@gtk.org>
      
      	* gboxed.[hc]: changed prototype of g_boxed_type_register_static()
      	to contain an optional init function and a hint at whether the
      	boxed structure uses ref counting internally.
      	added g_value_set_boxed_take_ownership().
      	made G_TYPE_BOXED an abstract value type.
      
      	* genums.[hc]: made G_TYPE_ENUM and G_TYPE_FLAGS abstract value
      	types.
      
      	* glib-genmarshal.c: argument type changes, preparation for third-party
      	arg specification.
      
      	* gobject.[hc]: cleaned up get/set property code.
      	added g_strdup_value_contents() to improve warnings.
      
      	* gparam.[hc]: added g_param_value_convert(), taking over responsibility
      	of the old g_value_convert(). added G_PARAM_LAX_VALIDATION flag so
      	validation alterations may be valid a part of the property setting
      	process.
      
      	* gparamspecs.[hc]: made value comparisons stable (for sort applications).
      	added GParamSpecValueArray, a param spec for value arrays and
      	GParamSpecClosure. nuked the value exchange functions and
      	GParamSpecCCallback.
      
      	* gtype.[hc]: catch unintialized usages of the type system with
      	g_return_val_if_uninitialized(). introduced G_TYPE_FLAG_VALUE_ABSTRACT
      	to flag types that introduce a value table, but can't be used for
      	g_value_init(). cleaned up reserved type ids.
      
      	* gvalue.[hc]: code cleanups and saner checking.
      	nuked the value exchange API. implemented value transformations, we
      	can't really "convert" values, rather transforms are an anylogy to
      	C casts, real conversions need a param spec for validation, which is
      	why g_param_value_convert() does real conversions now.
      
      	* gvaluearray.[hc]: new files that implement a GValueArray, a struct
      	that can hold inhomogeneous arrays of value (to that extend that it
      	also allowes undefined values, i.e. G_VALUE_TYPE(value)==0).
      	this is exposed to the type system as a boxed type.
      
      	* gvaluetransform.c: new file implementing most of the former value
      	exchange functions as single-sided transformations.
      
      	* gvaluetypes.[hc]: nuked G_TYPE_CCALLBACK, added
      	g_value_set_string_take_ownership().
      
      	* *.h: s/G_IS_VALUE_/G_VALUE_HOLDS_/.
      
      	* *.[hc]: many fixes and cleanups.
      
      	* many warning improvements.
      
      Tue Feb 27 18:35:15 2001  Tim Janik  <timj@gtk.org>
      
      	* gobject.c (g_object_get_valist): urg, pass G_VALUE_NOCOPY_CONTENTS
      	into G_VALUE_LCOPY(), this needs proper documenting.
      
      	* gparam.c: fixed G_PARAM_USER_MASK.
      
      	* gtype.c (type_data_make_W):
      	(type_data_last_unref_Wm): fixed invalid memory freeing.
      
      	* gobject.c (g_object_last_unref): destroy signal handlers associated
      	with object, right before finalization.
      
      	* gsignal.c (g_signal_parse_name): catch destroyed nodes or signals
      	that don't actually support details.
      
      	* gobject.[hc]: got rid of property trailers. nuked GObject
      	properties "data" and the "signal" variants.
      	(g_object_connect): new convenience function to do multiple
      	signal connections at once.
      	(g_object_disconnect): likewise, for disconnections.
      
      	* gparam.[hc] (g_param_spec_pool_lookup): took out trailer support.
      
      	* gvalue.[hc]: marked g_value_fits_pointer() and g_value_peek_pointer()
      	as private (the latter got renamed from g_value_get_as_pointer()).
      
      Wed Mar  7 09:32:06 2001  Tim Janik  <timj@gtk.org>
      
              * glib-object.h: add gvaluearray.h.
      
              * gstring.[hc]: fixup naming of g_string_sprint*.
      
              * gtypes.h: fixed GCompareDataFunc naming.
      
      Wed Mar  7 09:33:27 2001  Tim Janik  <timj@gtk.org>
      
              * gobject/Makefile.am: shuffled rules to avoid excessive
              rebuilds.
      
              * gobject/gobject-sections.txt: updates.
      
              * gobject/tmpl/*: bunch of updates, added another patch
              from Eric Lemings <eric.b.lemings@lmco.com>.
      37e4b8c8
  31. 27 Oct, 2000 1 commit
    • 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
  32. 29 Sep, 2000 1 commit
    • Martin Baulig's avatar
      Several minor ANSI C fixes. · a3fc275d
      Martin Baulig authored
      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.
      a3fc275d
  33. 01 Sep, 2000 1 commit
  34. 17 Aug, 2000 1 commit
    • Darin Adler's avatar
      Return the data left behind. Return the data left behind. · 4010a5ac
      Darin Adler authored
          * glib.h:
          * garray.c: (g_array_free), (g_ptr_array_free),
          (g_byte_array_free): Return the data left behind.
          * gstring.c: (g_string_free): Return the data left behind.
      
          Changed the free calls that leave data behind so they
          return a pointer to the left-behind data, NULL if told not
          to leave anything behind. This makes these calls easier
          to use correctly, without any incompatible API change for
          callers that don't know about the return value. Of course,
          it would be even clearer if the free calls weren't dual-purpose
          in the first place.
      4010a5ac
  35. 26 Jul, 2000 1 commit
  36. 29 Jun, 2000 1 commit
    • Owen Taylor's avatar
      updated · 6e47268c
      Owen Taylor authored
      Thu Jun 29 15:57:28 2000  Owen Taylor  <otaylor@redhat.com>
      
              * NEWS: updated
      
      	* Makefile.am: added snapcheck target to go along with snapshot
      
      	* gstring.c glib.h (g_string_hash): Add g_string_hash to
      	go along with g_string_equal.
      
      Tue Jun 27 12:40:23 EDT 2000  David A. Wheeler <dwheeler@dwheeler.com>
      
      	* glib.h: Added g_string_equal for comparing GStrings;
      	changed g_str_equal so it returns gboolean (instead of gint).
      
      	* gstring.c: Modified GString implementation to support embedded
      	ASCII NUL ('\0') characters, and implemented g_string_equal.
      
      	* testglib.c tests/string-test.c: Added tests for g_string_equal
      	and tests for proper handling of embedded ASCII NUL characters.
      6e47268c
  37. 19 May, 2000 1 commit
    • Tim Janik's avatar
      added argument assertments. · 1fe02b28
      Tim Janik authored
      Fri May 19 11:39:29 2000  Tim Janik  <timj@gtk.org>
      
      
              * gutils.c (g_snprintf):
              (g_vsnprintf): added argument assertments.
      
              * gstring.c (g_string_assign): added argument assertments.
              (g_string_truncate): make len a guint.
      1fe02b28
  38. 17 Feb, 2000 1 commit
    • Havoc Pennington's avatar
      changed g_str_hash() to a 31 bit version based on a submission by Karl · cf24ff71
      Havoc Pennington authored
      Thu Feb 17 12:53:44 2000  Tim Janik  <timj@gtk.org>
      
              * gstring.c: changed g_str_hash() to a 31 bit version based on
              a submission by Karl Nelson and hand optimized ad absurdum by
              various people ;)
      
              * gstring.c: applied patch from havoc for new gstring functions,
              added some more sanity checks, coding style fixups.
      
      2000-02-13  Havoc Pennington  <hp@pobox.com>
      
              * tests/string-test.c (main): Add tests for the new GString
              features
      
              * testglib.c (main): Add tests for the new GString features
      
              * gstring.c (g_string_insert_len): New function; insert
              a given length of string at a given position.
              (g_string_append): reimplement in terms of g_string_insert_len
              (g_string_append_len): new function
              (g_string_insert_c): accept -1 for "pos" arg to mean "append"
              (g_string_append_c): reimplement in terms of g_string_insert_c
              (g_string_prepend): reimplement in terms of g_string_insert_len
              (g_string_prepend_len): new function
              (g_string_prepend_c): reimplement in terms of g_string_insert_c
              (g_string_insert): reimplement in terms of g_string_insert_len
      
              * glib.h: Declare g_string_insert_len, g_string_append_len,
              g_string_prepend_len
      cf24ff71