1. 28 Sep, 2000 2 commits
  2. 26 Sep, 2000 1 commit
  3. 25 Sep, 2000 1 commit
  4. 21 Sep, 2000 2 commits
  5. 19 Sep, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Test for the existence of getcwd, and use it only when found. · e2600b04
      Sebastian Wilhelmi authored
      
      2000-09-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* acconfig.h, configure.in, gutils.c: Test for the existence of
      	getcwd, and use it only when found.
      
      	* glib.h: Only use the gcc-variable-macro-argument-extension for
      	gcc >= 2.4. Both patches from Jonas Oberg <jonas@gnu.org>.
      e2600b04
  6. 18 Sep, 2000 1 commit
  7. 17 Sep, 2000 1 commit
  8. 11 Sep, 2000 2 commits
    • Owen Taylor's avatar
      Havoc Pennington's implementation of convenient character set conversion · a212f93d
      Owen Taylor authored
      Sun Sep 10 12:37:40 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* glib.h gconvert.c (g_convert): Havoc Pennington's implementation
      	of convenient character set conversion using iconv, with
      	the addition of GError. We probably need a fallback that
      	just does conversions between, say UTF-8,16,32 and ISO-8859-1
      	for targets without iconv at all.
      
      	Also add g_convert_with_fallback() to take care of conversions
      	where we accept some loss going to the target encoding.
      a212f93d
    • Havoc Pennington's avatar
      Add this function. · 49c937fc
      Havoc Pennington authored
      2000-09-10  Havoc Pennington  <hp@redhat.com>
      
      	* gutf8.c (g_utf8_validate): Add this function.
      49c937fc
  9. 10 Sep, 2000 1 commit
  10. 07 Sep, 2000 1 commit
    • Tim Janik's avatar
      for non-i386 and non-alpha, or non gcc, implement BREAKPOINT() as raise (5 · 94322654
      Tim Janik authored
      Mon Aug 21 03:57:46 2000  Tim Janik  <timj@gtk.org>
      
              * glib.h (G_BREAKPOINT): for non-i386 and non-alpha, or non gcc,
              implement BREAKPOINT() as raise (5 /* SIGTRAP */);
      
              * glib.h: provide user-definable switch G_IMPLEMENT_INLINES,
              to turn on compilation of inline function implementations provided
              in header files with extern linkage.
              wrap inline function implementations into ifdef __G_UTILS_C__, so we
              really only compile them for gutils.c and not also into arbitrary user
              code that wants to make use of G_IMPLEMENT_INLINES.
              adjusted comment apropriately.
      
              * gutils.c: to turn on compilation of inline functions, provide
              #define G_IMPLEMENT_INLINES 1 and #define __G_UTILS_C__.
      94322654
  11. 06 Sep, 2000 5 commits
  12. 05 Sep, 2000 1 commit
  13. 01 Sep, 2000 3 commits
  14. 31 Aug, 2000 3 commits
  15. 27 Aug, 2000 2 commits
  16. 25 Aug, 2000 1 commit
    • Elliot Lee's avatar
      Mark the following functions G_GNUC_CONST (to allow betteroptimization) · a435aaff
      Elliot Lee authored
      
      
      2000-08-25 Elliot Lee <sopwith@redhat.com>
      	* glib.h, gunicode.h, gmodule/gmodule.h:
      	Mark the following functions G_GNUC_CONST (to allow
      	betteroptimization) because their results are a function of only their parameters:
      	g_int_hash, g_int_equal, g_direct_hash, g_direct_equal, g_quark_to_string,
      	g_date_is_leap_year, g_date_days_in_month, g_date_monday_weeks_in_year,
      	g_date_sunday_weeks_in_year, g_spaced_primes_closest, g_unichar_is*,
      	g_unichar_to*, g_unichar_*digit_value, g_unichar_type
      a435aaff
  17. 21 Aug, 2000 2 commits
    • Elliot Lee's avatar
      Fix inclusion of config.h · 8f2c74a5
      Elliot Lee authored
      
      
      Fix inclusion of config.h
      8f2c74a5
    • Owen Taylor's avatar
      Fix a couple of trivial bugs that were causing warnings. · 33df6451
      Owen Taylor authored
      Mon Aug 21 14:46:23 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* tests/gio-test.c: Fix a couple of trivial bugs that
      	were causing warnings.
      
      Mon Aug 21 14:39:36 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* glib.h: Use C99 varargs macros where possible
      	(check __STDC_VERSION__), otherwise, on gcc, use an alternate
      	form of gcc varargs which is more likely
      	to be supported going forward. (Based on some code
      	from Raja Harinath)
      33df6451
  18. 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
  19. 11 Aug, 2000 3 commits
    • Tor Lillqvist's avatar
      Some indentation and spacing fixes. Add some more logging. · f17ed7ee
      Tor Lillqvist authored
      2000-08-12  Tor Lillqvist  <tml@iki.fi>
      
      	* giowin32.c: Some indentation and spacing fixes. Add some more
      	logging.
      	(g_io_win32_add_watch): New function, with common code from
      	g_io_win32_fd_add_watch and g_io_win32_sock_add_watch. Don't start
      	more than one reader thread for a GIOChannel. We should obviously
      	have just one reader thread reading a file descriptor or socket.
      f17ed7ee
    • Havoc Pennington's avatar
      don't duplicate glib Cflags · 4261dcfa
      Havoc Pennington authored
      2000-08-10  Havoc Pennington  <hp@redhat.com>
      
      * gthread-2.0.pc.in (Cflags): don't duplicate glib Cflags
      
      * gmodule-2.0.pc.in (Cflags): don't duplicate glib Cflags
      
      * gobject-2.0.pc.in (Cflags): don't duplicate Cflags from glib
      itself
      4261dcfa
    • Havoc Pennington's avatar
      Look in glib-2.0/include for glibconfig.h · c055bfe1
      Havoc Pennington authored
      2000-08-10  Havoc Pennington  <hp@redhat.com>
      
      * glib-2.0.pc.in (Cflags): Look in glib-2.0/include for
      glibconfig.h
      c055bfe1
  20. 06 Aug, 2000 2 commits
    • Tor Lillqvist's avatar
      New function, that calls g_source_remove(). Check return value of · 3d6f441f
      Tor Lillqvist authored
      2000-08-07  Tor Lillqvist  <tml@iki.fi>
      
      	* tests/gio-test.c (shutdown_source): New function, that calls
      	g_source_remove(). Check return value of g_source_remove(), and
      	decrement running subprocess counter only if g_source_remove()
      	actually did remove the source.
      
      	(recv_message): Call shutdown_source() on EOF condition. Return
      	FALSE on G_IO_HUP and G_IO_ERR condition. Fix printf format typo.
      3d6f441f
    • Tim Janik's avatar
      keep *last updated while running through the domain list, so we don't · 042179da
      Tim Janik authored
      Sun Aug  6 20:06:02 2000  Tim Janik  <timj@gtk.org>
      
              * gmessages.c (g_log_domain_check_free): keep *last updated while
              running through the domain list, so we don't screw up the removal,
              patch provided by Gady Kozma <gadykozma@hotmail.com>.
      
      Sun Aug  6 20:03:41 2000  Tim Janik  <timj@gtk.org>
      
              * gmessages.c (g_log_remove_handler): keep *last updated while running
              through the handler list, so we don't screw up the removal.
      042179da
  21. 31 Jul, 2000 4 commits
    • Owen Taylor's avatar
      Fix stray character · 37e71188
      Owen Taylor authored
      Sun Jul 30 16:54:13 2000  Owen Taylor  <otaylor@redhat.com>
      
              * gunicode.h: Fix stray character
      
      	* gutf8.c (g_unichar_to_utf8): Allow outbuf to be NULL, in
      	which case we just compute the length.
      37e71188
    • Havoc Pennington's avatar
      forgot to add .pc.in to EXTRA_DIST · 8bca378a
      Havoc Pennington authored
      2000-07-31  Havoc Pennington  <hp@redhat.com>
      
      * Makefile.am (EXTRA_DIST): forgot to add .pc.in to EXTRA_DIST
      8bca378a
    • Havoc Pennington's avatar
      pkg-config data files · 0ae27495
      Havoc Pennington authored
      2000-07-31  Havoc Pennington  <hp@redhat.com>
      
              * glib-2.0.pc.in, gobject-2.0.pc.in, gmodule-2.0.pc.in,
      	gobject-2.0.pc.in: pkg-config data files
      
      	* Makefile.am: Install/dist the .pc files
      
      	* configure.in: Output the .pc files
      0ae27495
    • Tor Lillqvist's avatar
      The code didn't compile (must have been sleepy when committing). "return" · beed3997
      Tor Lillqvist authored
      2000-07-31  Tor Lillqvist  <tml@iki.fi>
      
      	* giowin32.c (buffer_read): The code didn't compile (must
      	have been sleepy when committing). "return" instead of "break"
      
      	(g_io_win32_fd_add_watch): Cannot check if the file descriptor is
      	readable by calling ReadFile to read zero bytes. ReadFile blocks
      	on NT even if trying to read nothing at all. So, don't check if
      	file descriptor is readable; assume this function isn't called
      	otherwise.
      beed3997