1. 29 Sep, 2000 1 commit
    • Martin Baulig's avatar
      Several minor ANSI C fixes. · a3fc275d
      Martin Baulig authored
      2000-09-29  Martin Baulig  <baulig@suse.de>
      
      	Several minor ANSI C fixes.
      
      	Added missing casts:
      	* gdate.c (g_date_fill_parse_tokens): `s = (guchar *) str'.
      	* gmain.c (g_idle_dispatch): `func = (GSourceFunc) source_data'.
      	(g_idle_add_full): `(gpointer) function' in call to g_source_add().
      	* gstrfuncs.c (g_strdown): `s = (guchar *) string' and
      	`return (gchar *) string'.
      	(g_strup): Likewise.
      	(g_strchug): `start = (guchar*) string' in 1st for() argument;
      	`strlen ((gchar *) start)' in call to g_memmove().
      	* gstring.c (g_string_down): `s = (guchar *) string->str'.
      	(g_string_up): Likewise.
      	* gthreadpool.c (stop_this_thread_marker):
      	`(gpointer) &g_thread_pool_new'.
      	* gunidecomp.h (decomp_table[]): Cast all the strings to
      	`unsigned char *'.
      
      	Put text following #endif into comments:
      	* gmain.c: here.
      a3fc275d
  2. 26 Jul, 2000 1 commit
  3. 24 Jul, 1999 1 commit
    • Tim Janik's avatar
      18:36. incorporated proposed cleanups from gtk-devel-list. · 87c7aeb9
      Tim Janik authored
      Sat Jul 24 20:11:35 1999  Tim Janik  <timj@gtk.org>
      
              * merged GLib 1.3.0 with glib-1.2.3 from Fri Jul 16 22:18:36.
              * incorporated proposed cleanups from gtk-devel-list.
      
              * bumped version number to GLib-1.3.1
      
              * glib.h:
              * gqueue.c:
              * gstring.c:
              * glist.c:
              removed string tokenisation (we got g_strsplit() and g_strjoin()
              already) and readline functions.
              s/g_list_delete/g_list_delete_link.
              implemented g_slist_delete_link.
              removed notion of g_ATEXIT() macro in glib.h, this is an *internal*
              macro, g_atexit() is provided for public consumption.
              added GTrashStack inline utility functions.
              reimplement double eneded queues.
              removed GStack implementation, people can use a queue or a (singly)
              linked list for this task.
              deprecated g_strescape(), we need the SunOS variants here.
      
              * gdate.c: added DEBUG_MSG() macro to wrap old messages.
      
              * *.*: CVS merges.
      
              * upgrade to libtool 1.3.3.
      87c7aeb9
  4. 14 Mar, 1999 1 commit
    • Jeff Garzik's avatar
      Commented out debugging output. · 21d0ac27
      Jeff Garzik authored
      1999-03-14  Jeff Garzik  <jgarzik@pobox.com>
      
              * gdate.c:
              Commented out debugging output.
      
              * tests/Makefile.am, tests/date-test.c:
              Added test of the GDate module, based closely on testgdate.c.
      
              * tests/Makefile.am:
              Bugfix - compile tests with @GLIB_DEBUG_FLAGS@.
      21d0ac27
  5. 24 Feb, 1999 1 commit
  6. 10 Feb, 1999 1 commit
  7. 26 Jan, 1999 1 commit
  8. 12 Jan, 1999 2 commits
  9. 11 Jan, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      Test for localtime_r only after including the right MT enabling CFLAGS · e5e86f8c
      Sebastian Wilhelmi authored
      1999-01-11  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Test for localtime_r only after including the
      	right MT enabling CFLAGS (i.e. -D_REENTRANT on most systems).
      
      	* gdate.c (g_date_set_time): Emit warning, if no localtime_r
      	function is available on thread enabled systems. Define ptm only,
      	if really needed, and assert on it.
      e5e86f8c
  10. 09 Jan, 1999 1 commit
    • Jeff Garzik's avatar
      Add checks for vasprintf, localtime_r. · 2a6789be
      Jeff Garzik authored
              * configure.in:
              Add checks for vasprintf, localtime_r.
      
              * gdate.c (g_date_set_time):
              Use localtime if localtime_r is not available.
      
              * gstrfuncs.c (g_strdup_vprintf):
              Use glibc vasprintf if possible; it's a bit faster than using
              GLib routines, and makes output code a bit smaller.
      
              * acconfig.h:
              Remove HAVE_VSNPRINTF and HAVE_VPRINTF.  autoheader picks these
              up automatically and puts them in config.h.in.
      2a6789be
  11. 07 Jan, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      Here we must replace getpwuid by getpwuid_r, but as I do not know how for · 81f8d0bb
      Sebastian Wilhelmi authored
      1999-01-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gutils.c (g_get_any_init): Here we must replace getpwuid by
      	getpwuid_r, but as I do not know how for now, I just made a FIXME
      	note ;-)
      
      	* gdate.c (g_date_set_time): localtime --> localtime_r to make it
      	thread safe.
      
      	* configure.in: We do not need to check for broken solaris mutex
      	intitializer any longer. Provide a macro to show the used thread
      	implementation. Not nice, but this is needed until thread support
      	is completed here inside glib.
      
      	* gthread/testgthread.c: conditionally compile according to the
      	G_THREADS_IMPL_??? macros.
      	(test_private_func): use rand_r instead of rand to make it
      	thread safe.
      81f8d0bb
  12. 16 Dec, 1998 1 commit
    • Tim Janik's avatar
      version bump to 1.1.8, binary age 0, interface age 0. · b2e318ff
      Tim Janik authored
      Wed Dec 16 03:16:58 1998  Tim Janik  <timj@gtk.org>
      
              * configure.in: version bump to 1.1.8, binary age 0, interface age 0.
      
              * glib.h: changed g_lock() to G_LOCK(), g_unlock() to G_UNLOCK() and
              g_trylock() to G_TRYLOCK(), since these are macros that expand to
              nothing with --disable-threads.
              changed G_LOCK_DEFINE() to G_LOCK_DECLARE() and introduced
              G_LOCK_DECLARE_STATIC() to achive the results of static G_LOCK_DECLARE().
              changed semantics of g_thread_supported to g_thread_supported() so it
              can be used as a function like g_module_supported(). the actuall
              definition is still a macro that expands into a variable for
              performance reasons though.
              various indentation and coding style cleanups.
      
              * configure.in: added --enable-threads that defaults to yes.
      
              * gmutex.c: changed tests g_thread_supported to g_thread_supported (),
              changed variable settings of g_thread_supported
              to g_threads_got_initialized.
      
              garray.c:
              gcache.c:
              gdataset.c:
              gdate.c:
              ghash.c:
              glist.c:
              gmain.c:
              gnode.c:
              gslist.c:
              gstring.c:
              gtree.c:
              gutils.c:
              changed s/g_lock/G_LOCK/, s/g_unlock/G_UNLOCK/,
              s/static G_LOCK_DEFINE/G_LOCK_DECLARE_STATIC/.
      b2e318ff
  13. 15 Dec, 1998 2 commits
  14. 02 Dec, 1998 4 commits
    • Havoc Pennington's avatar
      If Julian is valid, we have to update the dmy representation before · b94d7a72
      Havoc Pennington authored
      1998-12-02  Havoc Pennington  <hp@pobox.com>
      
      * gdate.c (g_date_set_month): If Julian is valid, we have to
      update the dmy representation before setting the components
      of it.
      (g_date_set_day): Same.
      (g_date_set_year): Same.
      b94d7a72
    • Havoc Pennington's avatar
      Rely on GDate::dmy and GDate::Julian flags, rather than re-checking the · dca6fcb5
      Havoc Pennington authored
      1998-12-02  Havoc Pennington  <hp@pobox.com>
      
      * gdate.c (g_date_valid): Rely on GDate::dmy and GDate::Julian
      flags, rather than re-checking the validity of the actual
      values. This should be the correct behavior, the old way was
      leftover cruft.
      
      * glib.h, gdate.c: Changed MDY to DMY throughout.
      dca6fcb5
    • Sebastian Wilhelmi's avatar
      changed `gpointer struct_tm_p' parameter of g_date_to_struct_tm back to · c8477277
      Sebastian Wilhelmi authored
      1998-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib.h:
      	* gdate.c: changed `gpointer struct_tm_p' parameter of
      	g_date_to_struct_tm back to `struct tm *tm' and forward declared
      	`struct tm' in glib.h; yes, this is nice, we still need not
      	include time.h.
      c8477277
    • Tim Janik's avatar
      s/time_t/GTime/ and s/g_print/g_message/ include time.h. · 2886be29
      Tim Janik authored
      Wed Dec  2 02:10:59 1998  Tim Janik  <timj@gtk.org>
      
              * gdate.c: s/time_t/GTime/ and s/g_print/g_message/
              include time.h.
      
              * glib.h: removed #include <time.h>, changed time_t paramter of
              g_date_set_time() to time_t, changed struct tm parameter of
              g_date_to_struct_tm to `gpointer struct_tm_p'. yes, this is not
              nice, but including time.h actually breaks a bunch of code.
      2886be29
  15. 01 Dec, 1998 1 commit