1. 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
  2. 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
  3. 08 Nov, 2007 1 commit
  4. 30 May, 2007 1 commit
  5. 19 Apr, 2007 1 commit
  6. 19 Apr, 2006 1 commit
  7. 28 Nov, 2004 1 commit
    • Matthias Clasen's avatar
      Mark functions with G_GNUC_MALLOC when appropriate. · 379e8746
      Matthias Clasen authored
      2004-11-28  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gconvert.h:
      	* glib/gkeyfile.h:
      	* glib/gmem.h:
      	* glib/gstrfuncs.h:
      	* glib/gunicode.h:
      	* glib/gutils.h: Mark functions with G_GNUC_MALLOC when appropriate.
      
      	* glib/glib.symbols: Add G_GNUC_MALLOC annotations.
      
      	* glib/gmacros.h (G_GNUC_MALLOC): Add a macro for
      	__attribute__((__malloc__)).  (#61780)
      379e8746
  8. 26 Oct, 2004 2 commits
    • Matthias Clasen's avatar
      Documentation fixes. · 5a6df6dd
      Matthias Clasen authored
      5a6df6dd
    • Ray Strode's avatar
      Add Matthias to "Written by" lines (GKeyFileGroup): add field to hold · d59b22a9
      Ray Strode authored
      2004-10-26  Ray Strode  <rstrode@redhat.com>
      
      	* glib/gkeyfile.c: Add Matthias to "Written by" lines
      	 (GKeyFileGroup): add field to hold comments about groups
      	 (g_key_file_load_from_fd): return TRUE on success and
      	 FALSE on failure.  Don't close fd's opened by other
      	 parent function.
      	 (g_key_file_load_from_file): run FILE_IS_REGULAR test
      	 before trying to open file, to save an fd from being
      	 leaked (would probably be better to use fstat()). Close
      	 fd when done with it. Return TRUE on success and FALSE
      	 on failure.
      	 (g_key_file_load_from_data): Return TRUE on success and
      	 FALSE on failure.
      	 (g_key_file_load_from_data_dirs): remove superfluous
      	 const modifier.  Return TRUE on success and FALSE on
      	 failure.  Stop trying to load files when one succeeds.
      	 (g_key_file_parse_key_value_pair): don't validate input
      	 for UTF-8 until users uses a getter that does
      	 validation.  Don't leak copy of start_group_name.
      	 (g_key_file_to_data): serialize new comment field for
      	 groups.
      	 (g_key_file_get_keys): Remove convenience code to let
      	 NULL group mean start group.  Get rid of unneeded NULL
      	 check before g_strdup.
      	 (g_key_file_get_groups): Reverse groups list before
      	 sending to user because it is maintained in backward
      	 order internally.
      	 (g_key_file_get_value),
      	 (g_key_file_set_value): add g_return checks at top of
      	 public functions.
      	 (g_key_file_get_string),
      	 (g_key_file_get_string_list): validate key value is UTF-8.
      	 (g_key_file_[sg]et_*comment): new functions for
      	 setting/getting comments
      	 (g_key_file_remove_comment): new function to remove
      	 comment block
      	 (g_key_file_remove_key_value_pair_node): new function to
      	 pull a key-value pair out of the list and free it.
      	 (g_key_file_remove_group_node): call
      	 g_key_file_remove_key_value_pair_node instead of
      	 freeing the list immediately to get better statistics
      	 for approximate_size.
      	 (g_key_file_remove_group): use lookup_group_node instead
      	 of lookup_group to prevent a g_list_find call.
      	 (g_key_file_add_key): report group also when unable to
      	 find key.
      	 (g_key_file_lookup_group_node): new function to make
      	 getting the group node from a group name easier.
      	 (g_key_file_lookup_group): use lookup_group_node under
      	 the hood.
      	 (g_key_file_lookup_key_value_pair_node): new function to
      	 make getting the key-value pair from a group and key
      	 name eaiser.
      	 (g_key_file_parse_comment_as_value): new function to add '#' to the
      	 beginning of every line.
      	 (g_key_file_parse_value_as_comment): new function that
      	 attempts to be the inverse of comment as value.
      d59b22a9
  9. 23 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Add a parser for desktop entries and similar files with a .ini-like · bfa8a37a
      Matthias Clasen authored
      2004-10-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* glib/gkeyfile.h:
      	* glib/gkeyfile.c: Add a parser for desktop entries and
      	similar files with a .ini-like syntax.  (#139974, Ray Strode)
      
      	* glib/glib.h: Include gkeyfile.h
      
      	* glib/Makefile.am (libglib_2_0_la_SOURCES): Add gkeyfile.c
      	(glibsubinclude_HEADERS): Add gkeyfile.h
      
      	* glib/gutils.c (_g_compute_locale_variants): Make this
      	non-static and use it in gkeyfile.c
      bfa8a37a