1. 11 Feb, 2002 1 commit
  2. 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.
  3. 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
      	* 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,
      	* 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*
      	* 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 **.
  4. 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.
  5. 05 Nov, 2000 2 commits
    • Havoc Pennington's avatar
      Havoc Pennington authored
      2000-11-05  Havoc Pennington  <hp@pobox.com>
      * gmarkup.h: rename G_MARKUP_FOO to
      * gmarkup.c: don't start doc comments with "Returns"
      2000-11-05  Havoc Pennington  <hp@pobox.com>
      * glib/tmpl/markup.sgml: Write docs
    • 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
  6. 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