1. 12 Oct, 2011 1 commit
  2. 11 Oct, 2011 1 commit
  3. 09 Oct, 2011 1 commit
  4. 02 Oct, 2011 3 commits
  5. 06 Jul, 2011 1 commit
  6. 05 May, 2008 1 commit
    • Michael Natterer's avatar
      #define __GLIB_H_INSIDE__ around including everything. · e0aa9d8a
      Michael Natterer authored
      2008-05-05  Michael Natterer  <mitch@imendio.com>
      
      	* glib/glib.h: #define __GLIB_H_INSIDE__ around including
      	everything.
      
      	* glib/*.h: check for that define instead of __G_LIB_H__ if
      	G_DISABLE_SINGLE_INCLUDES is defined.
      
      	* glib/gdatasetprivate.h: #include <glib.h> instead of
      	<glib/gdataset.h>
      
      
      svn path=/trunk/; revision=6875
      e0aa9d8a
  7. 14 Mar, 2008 1 commit
    • Michael Natterer's avatar
      make it possible to disable single-file includes by defining · f4bb21aa
      Michael Natterer authored
      2008-03-14  Michael Natterer  <mitch@imendio.com>
      
      	* glib/*.h: make it possible to disable single-file includes by
      	defining G_DISABLE_SINGLE_INCLUDES when building against GLib.
      	Approved by Tim Janik.
      
      	* glib/glib.h: include <glib/gslice.h>.
      
      	* glib/gi18n.h
      	* glib/gi18n-lib.h
      	* glib/gprintf.h: include <glib.h> so the above works when these
      	files are included without including <glib.h> first.
      
      
      svn path=/trunk/; revision=6713
      f4bb21aa
  8. 27 Nov, 2007 1 commit
    • Alexander Larsson's avatar
      Moved gurifuncs from gio to glib · e3607fcd
      Alexander Larsson authored
      2007-11-27  Alexander Larsson  <alexl@redhat.com>
      
              * gio/Makefile.am:
              * gio/gurifuncs.[ch]:
              * glib/Makefile.am:
              * glib/gstring.[ch]:
              * glib/gurifuncs.[ch]:
      	Moved gurifuncs from gio to glib
      
      
      svn path=/trunk/; revision=5955
      e3607fcd
  9. 15 Jun, 2007 2 commits
  10. 15 Dec, 2006 1 commit
  11. 02 Dec, 2004 1 commit
  12. 19 Feb, 2004 1 commit
  13. 31 Mar, 2003 1 commit
  14. 20 Feb, 2002 1 commit
  15. 02 Oct, 2001 1 commit
  16. 01 Oct, 2001 1 commit
  17. 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
  18. 30 Jun, 2001 3 commits
    • 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
      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
  19. 26 Jun, 2001 1 commit
    • 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
  20. 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
  21. 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
  22. 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
  23. 12 Oct, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Split glib.h into many header files mostly according to the resp. · b1d15587
      Sebastian Wilhelmi authored
      
      2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
      	gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
      	ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
      	gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
      	grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
      	gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
      	into many header files mostly according to the resp. *.c-files.
      
      	* gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
      	of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
      	__END_DECLS.
      
      	* configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
      	gunicode.h, : Changed guard-macro names to something more
      	consistent.
      
      	* configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
      b1d15587