1. 15 Jul, 2000 1 commit
  2. 14 Jul, 2000 1 commit
    • Owen Taylor's avatar
      Move glib-config to glib-config-2.0 move glib.m4 to glib-2.0.m4 · eb023508
      Owen Taylor authored
      Fri Jul 14 12:22:49 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* configure.in Makefile.am glib-config.m4 glib.m4: Move
      	glib-config to glib-config-2.0 move glib.m4 to
      	glib-2.0.m4
      
      	* Makefile.am gobject/Makefile.am gmodule/Makefile.am
      	gthread/Makefile.am tests/Makefile.am: Change
      	library names to libglib-1.3.la, etc, so that we
      	can distinguish glib-1.2 and glib-2.0 on the linkline.
      
      	* Makefile.am gobject/Makefile.am gmodule/Makefile.am:
      	Move include files into /usr/include/glib-2.0.
      
      Thu Jul  6 18:54:49 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* docs/Makefile.am (EXTRA_DIST): Remove info files
      	from the build.
      eb023508
  3. 06 Jul, 2000 1 commit
    • Owen Taylor's avatar
      Release 1.3.1 · cf2f5111
      Owen Taylor authored
      Thu Jul  6 15:35:28 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* Release 1.3.1
      
      	* Makefile.am (EXTRA_DIST): Dist fixes.
      
      	* configure.in: Moderate the warnings just a little bit.
      cf2f5111
  4. 29 May, 2000 1 commit
  5. 12 May, 2000 1 commit
    • Tim Janik's avatar
      added gobject · 1df2ec98
      Tim Janik authored
      Fri Apr 28 23:54:35 2000  Tim Janik  <timj@gtk.org>
      
              * setup things for a new sub-library libgobject:
      
              * Makefile.am (SUBDIRS): added gobject
      
              * glib-config.in: feature -lgobject.
      
              * configure.in (AC_OUTPUT): generate gobject/Makefile.
      
              * glib.m4 (AM_PATH_GLIB): feature gobject module.
      
              * glib.spec.in: added %{prefix}/lib/libgobject-1.3.so.*
      
      Fri Apr 28 21:41:49 2000  Tim Janik  <timj@gtk.org>
      
              * glib.h: added G_STRLOC macro.
              G_STRUCT_OFFSET(): signedness corrections.
              (G_CSET_DIGITS): list 0-9.
              * gscanner.c (g_scanner_config_template): use G_CSET_DIGITS.
      
              * glib.h:
              * gstrfuncs.c:
              (g_strdown):
              (g_strup):
              (g_strreverse): return the modified string instead of void, so
              calls to these functions can be nested.
              (g_strcanon): new function, canonicalizes string according to
              a given character set.
      
      Fri Apr 28 19:45:16 2000  Tim Janik  <timj@gtk.org>
      
              * gasyncqueue.c (g_async_queue_unref): get rid of an unused variable.
      1df2ec98
  6. 26 Apr, 2000 1 commit
  7. 17 Apr, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Add configure test for garbage collector friendliness for GLib. If · 8c90d776
      Sebastian Wilhelmi authored
      
      2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in, acconfig.h: Add configure test for garbage
      	collector friendliness for GLib. If enabled, ENABLE_GC_FRIENDLY
      	will be defined.
      
      	* garray.c, ghash.c, glist.c, gmain.c, gmem.c, gnode.c, gqueue.c,
      	gslist.c, gtree.c: If ENABLE_GC_FRIENDLY is defined, NULLify all
      	memory released by the user, but cached by GLib. This lets a
      	garbage collector have a more correct view of the actually used
      	memory.
      8c90d776
  8. 23 Mar, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      After finding the right thread library (containing e.g. pthread_create) we · ac4abbba
      Sebastian Wilhelmi authored
      
      2000-03-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: After finding the right thread library (containing
      	e.g. pthread_create) we now search for the right realtime library
      	(containing e.g. sched_get_priority_max). Makes the output of the
      	thread related libraries correct.
      
      	* gtimer.c (g_usleep): The current implementation of g_usleep
      	(simply calling select) doesn't work reliable for multi-threaded
      	programs on some platforms (bad omen for the main loop....), so I
      	changed the implementation for thread-using programs to wait for a
      	GCond for the specified amount of time (NB: sleep and usleep are
      	not MT-safe in general, because they often use signals).
      ac4abbba
  9. 22 Mar, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Test for sched_yield as the native yield function first. Corrected typo · 762a2bef
      Sebastian Wilhelmi authored
      
      2000-03-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Test for sched_yield as the native yield function
      	first. Corrected typo g_thread_sleep -> g_usleep. Corrected
      	message for the pthread_create test. Negative Priorities are
      	allowed (and used on Solaris), so consider
      	sched_get_priority_min failed only if it returns -1, not <0. Check
      	for sched_get_priority_min also in -lrt, if not found in -lpthread
      	alone and add -lrt to G_THREAD_LIBS then. Remove special case
      	handling of priorities for older solaris versions and posix
      	threads. Thanks to Wan-Teh Chang <wtc@netscape.com> for suggesting
      	some of those changes.
      
      	* config.guess, config.sub, ltconfig, ltmain.sh:
      	Upgrade to libtool 1.3.4.
      762a2bef
  10. 21 Mar, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      always define G_GNUC_EXTENSION, even when not needed by GLib. That's · 66034865
      Sebastian Wilhelmi authored
      
      2000-03-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib.h, configure.in, gutils.h: always define G_GNUC_EXTENSION,
      	even when not needed by GLib. That's actually also the way, the
      	GLib reference manual describes that macro. Therefore I had to
      	remove the lonesome #include <glibconfig.h> in gutils.c, which
      	doesn't seem to be needed there however. This change should make
      	Ben Gertzfield <che@debian.org> happy.
      
      	* gutils.c: Furthermore two warnings in gutils.c were voided,
      	which crept in due to my last change.
      66034865
  11. 17 Mar, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      Added the missing POSIX_NO_YIELD and POSIX_NO_PRIORITIES warning messages. · 5e713437
      Sebastian Wilhelmi authored
      2000-03-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Added the missing POSIX_NO_YIELD and
      	POSIX_NO_PRIORITIES warning messages.
      
      	* configure.in: Use AC_TRY_RUN instead of AC_TRY_LINK, to test for
      	real thread support. On solaris pthread_create can be linked to
      	even in -lc, but it doesn't work then.
      
      	* configure.in: Don't use priorities for threads, when the
      	minimal/maximal priorities couldn't be determined at configure
      	time.
      
      	* configure.in, gthread.c: Always define GSystemThread in
      	glibconfig.h to represent a system thread.
      
      	* configure.in: Do not use native recursive threads, when
      	possibe. We use some features, that they do not expose (namely the
      	depth counter).
      
      	* glib.h, gthread.c: Redefined GStaticRecMutex. The functions are
      	now implemented in a different way, which should be way
      	faster. Alsothere are now functions g_static_rec_mutex_unlock_full
      	and g_static_rec_mutex_lock_full to leave/enter a recursive mutex
      	completly.
      
      	* gthread.c (g_thread_self): Do not test the system_thread to be
      	non-zero to speed things up.
      
      	* gthread.c (g_mutex_init): Therefore set the system_thread of the
      	main thread here.
      
      	* tests/thread-test.c: Rerun all tests once again, but this time
      	we fool the system into thinking, that the available thread system
      	is not native, but userprovided.
      
      	* gthread/gthread-posix.c: Don't use priorities for threads,
      	when the minimal/maximal priorities couldn't be determined at
      	configure time.
      
      	* gthread/gthread-posix.c: Don't check for errors, when
      	setting the scope of a tread to system, as some posix
      	implementations can't do that and we don't want the thing to
      	fail because of that.
      5e713437
  12. 06 Mar, 2000 1 commit
  13. 03 Mar, 2000 1 commit
  14. 18 Feb, 2000 1 commit
  15. 13 Feb, 2000 1 commit
  16. 04 Feb, 2000 1 commit
    • Tor Lillqvist's avatar
      New files, for putting version info in the DLLs on Win32. · 2701653c
      Tor Lillqvist authored
      2000-02-05  Tor Lillqvist  <tml@iki.fi>
      
      * glib.rc.in gmodule.rc.in gthread.rc.in: New files, for putting
      version info in the DLLs on Win32.
      
      * Makefile.am: Generate corresponding *.rc files and distribute
      them.
      
      * makefile.cygwin.in: Add rules to automatically bump a "build
      number" in the version info in the rc files each time the DLL is
      built. But do this only for the person who releases binaries. If
      others build the DLLs, the build number is set to zero.
      2701653c
  17. 16 Nov, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      Renamed GLIB_SIZEOF_PTHREAD_T to GLIB_SIZEOF_SYSTEM_THREAD to reflect · 760a7cee
      Sebastian Wilhelmi authored
      1999-11-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
              * acconfig.h, config.h.win32.in, configure.in: Renamed
              GLIB_SIZEOF_PTHREAD_T to GLIB_SIZEOF_SYSTEM_THREAD to reflect
              changed meaning.
      
              * configure.in: Cope with systems, that have a pthread_t type,
              that is not a pointer. Hint from Karl Nelson
              <kenelson@ece.ucdavis.edu>. Define GLIB_SIZEOF_SYSTEM_THREAD to 4
              for Solaris. Cope with systems, that have no default mutex
              initialize, like obviously most DCE systems.
      
              * glib.h, gthread.c: Changed the prototype of thread_create and
              thread_self to return the system thread into provided memory
              instead of a return value. This is necessary, as HPUX has a
              pthread_t, that is bigger than the biggest integral type there.
      
              * gthread.c: system_thread is no longer a pointer, but an memory
              area of size GLIB_SIZEOF_SYSTEM_THREAD. Changed the
              zeroinitialization and the tests for zeroness accordingly.
      760a7cee
  18. 09 Nov, 1999 1 commit
  19. 08 Nov, 1999 1 commit
  20. 12 Oct, 1999 1 commit
    • Tim Janik's avatar
      completly new implementation for printf string upper bounds calculation. · 30a1e1ad
      Tim Janik authored
      Tue Oct 12 12:16:12 1999  Tim Janik  <timj@gtk.org>
      
              * gmessages.c (g_printf_string_upper_bound): completly new implementation
              for printf string upper bounds calculation.
              we handle all glibc 2.1 format specifiers now, except for positional
              parameters (%nn$...) and wide char strings, plus some obscure upper
              case variants of the standard conversions. this fixes a lot of
              bugs in the old code, i.e.
              - NULL format strings
              - floats with exponents >+24
              - %G
              - precision specifications in general
              - negative field widths
              - %p for SIZEOF_VOID_P > 4 platforms
              we now issue warnigns in places where the old code would have
              caused buffer overruns anyways. warnings are suppressed when invoked
              from glogv(), to avoid infinite recursions if someone passes a log
              message that comes with really obscure format specifications.
      
      Tue Oct 12 11:49:00 1999  Tim Janik  <timj@gtk.org>
      
              * gstrfuncs.c: nuked old g_printf_string_upper_bound() version.
      
      Tue Oct 12 03:34:40 1999  Tim Janik  <timj@gtk.org>
      
              * glib.h: added GFloatIEEE754 and GDoubleIEEE754 unions to access sign,
              mantissa and exponent of IEEE floats and doubles (required by the new
              version of g_printf_string_upper_bound). the unions are endian specific,
              we handle G_LITTLE_ENDIAN and G_BIG_ENDIAN as of currently. ieee floats
              and doubles are supported (used for storage) by at least intel, ppc and
              sparc, reference:
              http://twister.ou.edu/workshop.docs/common-tools/numerical_comp_guide/ncg_math.doc.html
      
      Mon Oct 11 18:01:49 1999  Tim Janik  <timj@gtk.org>
      
              * configure.in: added additional checks to figure sizes of size_t,
              ptrdiff_t and intmax_t (required by g_printf_string_upper_bound).
      30a1e1ad
  21. 06 Oct, 1999 1 commit
  22. 04 Oct, 1999 2 commits
  23. 15 Aug, 1999 1 commit
    • Tim Janik's avatar
      eliminate memset() call, since string.h has not neccessarily been included · 9c53053a
      Tim Janik authored
      Sun Aug 15 02:47:14 1999  Tim Janik  <timj@gtk.org>
      
              * glib.h (g_trash_stack_pop): eliminate memset() call, since string.h
              has not neccessarily been included prior to glib.h.
      
      Mon Aug  2 21:03:10 1999  Tim Janik  <timj@gtk.org>
      
              * configure.in: added --enable-msg-prefix option.
      
              * gmessages.c (g_log_default_handler): feature "prg_name (pid:%u): "
              if --enable-msg-prefix was selected (use "(process:%u): " if
              g_get_prgname () returns NULL, along the lines of g_on_error_query).
      9c53053a
  24. 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
  25. 07 Jul, 1999 1 commit
  26. 01 Jul, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      Added a g_memmove replacement for platforms without memmove, where bcopy · d610460c
      Sebastian Wilhelmi authored
      
      1999-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in, acconfig.h, gutils.c: Added a g_memmove
      	replacement for platforms without memmove, where bcopy can't
      	handle overlapping copies and the corresponding checks, which is
      	taken form the PERL Configure routine.
      
      	* glib.h: Updated the commentary about g_memmove to be right and
      	more GLib-like.
      
      	* configure.in: Removed test for rand_r, as it isn't used anymore.
      d610460c
  27. 18 Jun, 1999 1 commit
  28. 17 Jun, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      Completed the thread support in GLib. Thread creation, prioritizing · 90f6cc9b
      Sebastian Wilhelmi authored
      
      1999-06-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in, acglib.m4, acconfig.h, glib.h, gthread.c:
      	Completed the thread support in GLib. Thread creation,
      	prioritizing threads, yielding, joining threads as well as
      	reader/writer locks and recursive mutexes are now in place. Please
      	test heavily on your platform. It is so far tested on
      	Linux/i386/pthreads, Solaris/Sparc/pthreads and
      	Solaris/Sparc/solaristhreads.
      
      	* gtimer.c, glib.h: Implement g_usleep (gulong microseconds) for
      	thread safe sleeping. (sleep() is not MT-safe at all!)
      
      	* gutils.c: Avoid compiler warning.
      
      	* tests/Makefile.am, tests/thread-test.c: New program to test some
      	aspects of the thread implementation.
      
      	* gthread.c, Makefile.am: Renamed from gmutex.c to reflect the
      	change of content.
      
      	* configure.in: Purged all appearances of nspr.
      
      	* gthread/gthread-posix.c, gthread-solaris.c: Added the native
      	implementations for the GLib's extended thread support.
      
      	* gthread/gthread-nspr.c: Removed for good. NSPR is nothing we
      	would want to build upon.
      
      	* gthread/gthread.c: Renamed to gthread-impl.c to avoid
      	confusion with ../gthread.c (Formerly known as the file called
      	gmutex.c)
      
      	* gthread/testgthread.c: Removed. The new and much extended
              tests are in ../tests/thread-test.c.
      
      	* gthread/Makefile.am: Changed to reflect the changes above.
      90f6cc9b
  29. 08 May, 1999 2 commits
  30. 06 May, 1999 1 commit
    • Tor Lillqvist's avatar
      New files, used to generate corresponding non-.in files when making a · 2b688f54
      Tor Lillqvist authored
      	* makefile.msc.in makefile.cygwin.in glibconfig.h.win32.in
       	config.h.win32.in tests/makefile.msc.in tests/makefile.cygwin.in:
       	New files, used to generate corresponding non-.in files when
       	making a dist. This is just so the version numbers will be kept in
       	synch automatically.
      
      	* configure.in: Also substitute @GLIB_MAJOR_VERSION@,
       	@GLIB_MINOR_VERSION@, and @GLIB_INTERFACE_AGE@.
      
      	* Makefile.am tests/Makefile.am: Also distribute makefile.cygwin.
      
      	* gerror.c (g_on_error_query): On Win32, put up a MessageBox and
       	then exit.
      
      	* glib.def: Add a couple of functions.
      2b688f54
  31. 09 Apr, 1999 1 commit
  32. 30 Mar, 1999 1 commit
  33. 18 Mar, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES) to hold various defines · 3e956742
      Sebastian Wilhelmi authored
      
      1999-03-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: added new AC_SUBST(GTHREAD_COMPILE_IMPL_DEFINES)
      	to hold various defines to get the right thread implementation on
      	different platforms. Also look in -ldce for pthread_create. Should
      	make it work on HP-UX 10.x.
      
      	* gthread/Makefile.am (INCLUDES): Added @GTHREAD_COMPILE_IMPL_DEFINES@.
      3e956742
  34. 17 Mar, 1999 2 commits
    • Sebastian Wilhelmi's avatar
      Added missing values for G_MAXU(SHORT|INT|LONG) on platforms with only · 771d7120
      Sebastian Wilhelmi authored
      
      1999-03-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Added missing values for G_MAXU(SHORT|INT|LONG) on
      	platforms with only /usr/include/values.h.
      
      	* acconfig.h: Removed unnecessary macros.
      
              * glibconfig.h.win32, config.h.win32: Moved G_THREADS_IMPL_POSIX
      	from config.h.win32 to glibconfig.h.win32. Taken from glib 1.2
      	branch.
      
      	* configure.in: Also accept _Pctime_r instead of ctime_r, while
      	seraching for the right `_REENTRANT' flag. This is for Digital
      	UNIX 4.0d. Taken from glib 1.2 branch.
      771d7120
    • Sebastian Wilhelmi's avatar
      Sun Mar 14 17:50:35 1999 Tim Janik <timj@gtk.org> · 5f17e39e
      Sebastian Wilhelmi authored
      Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
      
              * merges from glib-1-2:
      
      Sun Mar 14 17:50:35 1999  Tim Janik  <timj@gtk.org>
      
              * gmem.c (g_mem_chunk_*): changed a bunch of g_assert() statements
              to g_return_if_fail().
              (g_mem_profile):
              (g_mem_chunk_print):
              (g_mem_chunk_info): removed some extraneous "\n"s at the end of the log
              messages.
      
              * gtimer.c (g_timer_*): changed a bunch of g_assert() statements
              to g_return_if_fail().
              * grel.c (g_*): changed a bunch of g_assert() statements to
              g_return_if_fail() and added some extra ones to check relation != NULL.
      
      Tue Mar  9 23:25:50 1999  Tim Janik  <timj@gtk.org>
      
              * configure.in: check for working realloc (NULL,).
              * gmem.c (g_realloc): use malloc() for initial allocation on systems
              where realloc(NULL,) will not work (this is the case on SunOS, reported
              by Tom Geiger).
      
      Mon Mar  8 07:42:08 1999  Tim Janik  <timj@gtk.org>
      
              * ghook.c (g_hook_unref): when !hook_list->is_setup, wrap the
              flag around the call to g_hook_free() to avoid spurious
              warnings (happens during destruction phase).
      
      1999-03-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
              * gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to
              Friedrich Dominicus <Friedrich.Dominicus@inka.de>
      5f17e39e
  35. 16 Mar, 1999 2 commits
    • Timur Bakeyev's avatar
      pthread_create in libc · 5d1e3dc1
      Timur Bakeyev authored
      1999-03-16  Timur Bakeyev  <mc@bat.ru>
      
      	* configure.in: Fix problem with pthread_create in libc, as running
      	"gcc test.c -l " is not legal.
      5d1e3dc1
    • Sebastian Wilhelmi's avatar
      Removed G_(U)?INT8_FORMAT again, as it can't be used for scanf. · 9c2c6ee1
      Sebastian Wilhelmi authored
      
      1999-03-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
              * configure.in: Removed G_(U)?INT8_FORMAT again, as it can't be
              used for scanf.
      
              * configure.in: Added the macros G_MAXU(SHORT|INT|LONG). I do not
              know how to handle these on platforms with /usr/include/values.h,
              but without /usr/include/limits.h. Please someone add this.
      9c2c6ee1
  36. 15 Mar, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      Added the macros G_(U)?INT_(8|16|32|64)_FORMAT to use for printf and (much · d9f13571
      Sebastian Wilhelmi authored
      
      1999-03-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Added the macros G_(U)?INT_(8|16|32|64)_FORMAT to
      	use for printf and (much more important) scanf format strings for
      	the corresponding GLib types.
      
      	* glib.h Added G_(U)?(SHORT|INT|LONG)_FORMAT for consistency. It
      	however makes no sense to also provide G_(FLOAT|DOUBLE)_FORMAT, as
      	they are different for printf (f for both) and scanf (f for float,
      	lf for double). Defining G_INT_FORMAT makes sense however, as we
      	might want to define gint to something different than int someday
      	in the future. Idea from Sascha Brawer <sb@adasys.ch>.
      d9f13571