1. 28 Jul, 2008 1 commit
  2. 10 Jul, 2008 1 commit
    • Allison Karlitskaya's avatar
      add functions g_markup_parse_context_{push,pop} in order to provide some · 178698c8
      Allison Karlitskaya authored
      2008-07-10  Ryan Lortie  <desrt@desrt.ca>
      
              * docs/reference/glib/glib-sections.txt:
              * glib/glib.symbols:
              * glib/gmarkup.c:
              * glib/gmarkup.h: add functions g_markup_parse_context_{push,pop} in
              order to provide some small hooks on which to build easy-to-use
              subparsers.
       
              * glib/tests/Makefile: add new test
              * glib/tests/markup-subparser.c: new test for subparsers
       
              Fixes bug #337518.
      
      
      svn path=/trunk/; revision=7174
      178698c8
  3. 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
  4. 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
  5. 29 Nov, 2007 1 commit
  6. 27 Nov, 2007 1 commit
    • Allison Karlitskaya's avatar
      Add new function g_markup_collect_attributes (bug #496847). · 052bd9da
      Allison Karlitskaya authored
      2007-11-26  Ryan Lortie  <desrt@desrt.ca>
       
              Add new function g_markup_collect_attributes (bug #496847).
       
              * glib/glib.symbols: add g_markup_collect_attributes
       
              * docs/reference/glib/glib-sections.txt:
              * glib/gmarkup.h:
              * glib/gmarkup.c: add g_markup_collect_attributes and new enumerated
              type GMarkupCollectType.  Add new error code
              G_MARKUP_ERROR_MISSING_ATTRIBUTE that is thrown by the attribute
              collector.
      
      
      svn path=/trunk/; revision=5947
      052bd9da
  7. 16 Nov, 2007 1 commit
    • Allison Karlitskaya's avatar
      new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the parser to prepend · 1e2c77ec
      Allison Karlitskaya authored
      006-11-15  Ryan Lortie  <desrt@desrt.ca>
      
              * docs/reference/glib/tmpl/markup.sgml:
              * glib/gmarkup.h:
              * glib/gmarkup.c: new flag G_MARKUP_PREFIX_ERROR_POSITION to cause the
              parser to prepend location information (ie: "Error on line %d, char
              %d:") to errors generated by the GMarkupParser callbacks.
      
              Closes #496046.
      
      svn path=/trunk/; revision=5860
      1e2c77ec
  8. 08 Nov, 2007 2 commits
  9. 29 May, 2006 1 commit
  10. 12 Sep, 2003 1 commit
    • Owen Taylor's avatar
      Add g_markup_printf_escaped(), g_markup_vprintf_escaped(). · 2f4c3d8a
      Owen Taylor authored
      Thu Sep 11 20:11:05 2003  Owen Taylor  <otaylor@redhat.com>
      
              * glib/gmarkup.c: Add g_markup_printf_escaped(),
              g_markup_vprintf_escaped().
      
              * tests/markup-escape-test.c (main): Test for
              g_markup_escape_text(), g_markup_printf_escaped().
      2f4c3d8a
  11. 15 Jul, 2002 1 commit
  12. 11 Feb, 2002 1 commit
  13. 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
  14. 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
  15. 09 Mar, 2001 1 commit
    • Tor Lillqvist's avatar
      Cygwin support contributed by Stefan Ondrejicka <ondrej@idata.sk>. · 31c5b189
      Tor Lillqvist authored
      2001-02-21  Tor Lillqvist  <tml@iki.fi>
      
      	Cygwin support contributed by Stefan Ondrejicka
      	<ondrej@idata.sk>. Hopefully I got it all in while simultaneously
      	adding support for auto*/libtool for mingw.
      
      	* Makefile.am: Changes for auto* support on Cygwin and Win32. Do
      	still distribute the hand-written makefiles and *.win32.in files,
      	though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
      	Use -no-undefined. Pass -export-symbols glib.def to libtool.
      
      	* configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
      	and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
      	calls for Cygwin and mingw support.  Check for %I64u guint64
      	format (in MS C library). Set G_MODULE_IMPL on mingw and
      	Cygwin. Use ac_object and ac_exeext.  Set GIO, GSPAWN, PLATFORMDEP
      	and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
      	automake conditional on Win32.
      
      	* glib.h: Include gwin32.h also on Cygwin.
      
      	* gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
      	Unix) for Cygwin's sake.
      
      	* gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
      
      	* gconvert.c
      	* gthread.c
      	* gutf8.c
      	* gutils.c: For code needed both on Cygwin and native Win32,
      	test for G_PLATFORM_WIN32.
      
      	* gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS.
      
      	* gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
      	in case compiling a static library on Win32 or Cygwin.
      
      	* gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
      	dirent emulation on Cygwin.
      	(get_package_directory_from_module) Convert return value from
      	GetModuleFileName() to POSIX path on Cygwin.
      
      	* tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
      	and libgmodule as appropriate. Use -no-undefined.
      
      	* gbacktrace.c: Move #ifdefs around a bit on Win32.
      
      	* gshell.c (unquote_string_inplace): Make static.
      31c5b189
  16. 05 Nov, 2000 2 commits
    • Havoc Pennington's avatar
      rename G_MARKUP_FOO to G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG · 14c4da8c
      Havoc Pennington authored
      2000-11-05  Havoc Pennington  <hp@pobox.com>
      
      * gmarkup.h: rename G_MARKUP_FOO to
      G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG
      
      * gmarkup.c: don't start doc comments with "Returns"
      
      2000-11-05  Havoc Pennington  <hp@pobox.com>
      
      * glib/tmpl/markup.sgml: Write docs
      14c4da8c
    • Havoc Pennington's avatar
      Added · 110c6cba
      Havoc Pennington authored
      2000-11-05  Havoc Pennington  <hp@pobox.com>
      
              * glib/tmpl/spawn.sgml, glib/tmpl/markup.sgml,
      	glib/tmpl/fileutils.sgml: Added
      
      	* glib/Makefile.am: Add new files
      
      	* glib/glib-sections.txt: Add stuff from -unused
      
      2000-11-05  Havoc Pennington  <hp@pobox.com>
      
      * gutils.c (g_find_program_in_path): cleanup docs, sync param
      names to those in the header
      
      * gfileutils.c (g_mkstemp): clean up docs
      
      * gshell.h: sync param names with param names in .c file
      
      * gfileutils.h (enum GFileTest): remove trailing comma from last
      member, confuses gtk-doc
      
      * gmarkup.h: s/GMarkupErrorType/GMarkupError/g; to follow
      convention
      110c6cba
  17. 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