1. 23 Oct, 2000 1 commit
  2. 16 Oct, 2000 1 commit
    • Raja R Harinath's avatar
      gmodule: New variable. (dist-hook): Handle $(BUILT_EXTRA_DIST). · a626a650
      Raja R Harinath authored
      gmodule:
      * Makefile.am (BUILT_EXTRA_DIST): New variable.
      (dist-hook): Handle $(BUILT_EXTRA_DIST).
      
      gobject:
      * Makefile.am (BUILT_EXTRA_DIST): New variable.
      (dist-hook): Handle $(BUILT_EXTRA_DIST).
      (*): Remove traces of @STRIP_{BEGIN,END}@.
      
      gthread:
      * Makefile.am (BUILT_EXTRA_DIST): New variable.
      (dist-hook): Handle $(BUILT_EXTRA_DIST).
      
      docs/reference:
      'make distcheck' fixes.
      * glib/Makefile.am (EXTRA_DIST): Add $(DOC_MODULE)-decl.txt.
      (html): Run 'gtkdoc-fixxref' in $(srcdir).
      (dist-check-gtkdoc): Add missing quote.
      (dist-hook): Copy in dependency order, so that none of the
      makerules are fired in a tarball build.
      
      * gobject/Makefile.am: Likewise.
      
      toplevel:
      Remove need for acconfig.h, and misc. cleanups.
      * acglib.m4 (GLIB_SIZEOF): Add 'autoheader' comment to
      AC_DEFINE_UNQUOTED.
      (GLIB_BYTE_CONTENTS): Likewise.
      
      * configure.in: Add 'autoheader' comments to all AC_DEFINE(...)
      and AC_DEFINE_UNQUOTED(...) lines.
      Replace AC_MSG_CHECKING/AC_CACHE_VAL with AC_CACHE_CHECK.
      (AM_PROG_LIBTOOL): Move after AC_PROG_CC.
      
      * acconfig.h: Empty out.
      
      * Makefile.am (BUILT_EXTRA_DIST): New variable.  List 'dist'able
      files that are created in the builddir.
      (dist-hook): Handle those files.
      (libglib_1_3_la_SOURCES): Remove @ALLOCA@.  @ALLOCA@ should only
      be used in an _LDADD or _LIBADD, since it expands (if necessary)
      to 'alloca.o'.
      
      * tests/Makefile.am (BUILT_EXTRA_DIST): New variable.
      (dist-hook): Handle $(BUILT_EXTRA_DIST).
      a626a650
  3. 12 Oct, 2000 3 commits
    • Sebastian Wilhelmi's avatar
      Split glib.h into many header files mostly according to the resp. · b1d15587
      Sebastian Wilhelmi authored
      
      2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
      	gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
      	ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
      	gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
      	grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
      	gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
      	into many header files mostly according to the resp. *.c-files.
      
      	* gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
      	of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
      	__END_DECLS.
      
      	* configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
      	gunicode.h, : Changed guard-macro names to something more
      	consistent.
      
      	* configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
      b1d15587
    • Sebastian Wilhelmi's avatar
      Removed cruft from old threading code. · b1d74438
      Sebastian Wilhelmi authored
      
      2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Removed cruft from old threading code.
      b1d74438
    • Sebastian Wilhelmi's avatar
      define GLIB_HAVE_ALLOCA_H instead of including alloca.h in glibconfig.h, · dfcd3374
      Sebastian Wilhelmi authored
      
      2000-10-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: define GLIB_HAVE_ALLOCA_H instead of including
      	alloca.h in glibconfig.h, GLIB_HAVE_ALLOCA_H is used in glib.h.
      dfcd3374
  4. 09 Oct, 2000 1 commit
    • Raja R Harinath's avatar
      Work with beta autoconf 2.50. · 306bd3a2
      Raja R Harinath authored
      * configure.in (GLIB_MAJOR_VERSION): Use GLIB_DIVERT_BEFORE_HELP
      instead of AC_DIVERT_PUSH(),AC_DIVERT_POP.
      (AC_CHECK_HEADERS): Remove redundant AC_DEFINE(HAVE_...).
      (REALLOC_0_WORKS): Move AC_DEFINE outside AC_CACHE_VAL.
      (dlopen): Quote nested AC_CHECK_... calls.
      
      * acglib.m4 (GLIB_TR_SH, GLIB_TR_CPP): Utility macros copied from
      beta autoconf 2.50.
      (GLIB_DIVERT_BEFORE_HELP): New macro that works both with autoconf
      2.13 and beta autoconf 2.50.
      (GLIB_SIZEOF, GLIB_BYTECONTENTS): Use GLIB_TR_*.
      306bd3a2
  5. 04 Oct, 2000 1 commit
    • Martin Baulig's avatar
      Reverted my last commit: · 81c0bf53
      Martin Baulig authored
      2000-09-30  Martin Baulig  <baulig@suse.de>
      
      	* configure.in (HAVE_THREADS): New automake conditional.
      	* Makefile.am (SUBDIRS): Only compile the gthread subdirectory if we
      	actually have threads.
      81c0bf53
  6. 29 Sep, 2000 2 commits
    • Martin Baulig's avatar
      New automake conditional. Only compile the gthread subdirectory if we · 79b416d0
      Martin Baulig authored
      2000-09-30  Martin Baulig  <baulig@suse.de>
      
      	* configure.in (HAVE_THREADS): New automake conditional.
      	* Makefile.am (SUBDIRS): Only compile the gthread subdirectory if we
      	actually have threads.
      79b416d0
    • Sebastian Wilhelmi's avatar
      Added errorcheck mutexes. These are activated through the preprocessor · 7633908c
      Sebastian Wilhelmi authored
      2000-09-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in, glib.h: Added errorcheck mutexes. These are
      	activated through the preprocessor symbol
      	G_ERRORCHECK_MUTEXES. Need to add an extra word to StaticMutex in
      	order to achieve this. g_(static_)mutex_* functions instrument the
      	mutex operations with mutex name and location, when compiled with
      	-DG_ERRORCHECK_MUTEXES. g_thread_init activates the errorcheck
      	mutexes, when compiled with -DG_ERRORCHECK_MUTEXES.
      
      	* gthread/gthread-impl.c: Added errorcheck mutexes. New
              exported function
              g_thread_init_with_errorcheck_mutexes, which is called instead of
      	g_thread_init, when compiled with -DG_ERRORCHECK_MUTEXES. New
      	static functions
      	g_mutex_(new|lock|trylock|unlock|free)_errorcheck_impl to
      	implement errorcheck mutexes.
      
      	* gthread/gthread-posix.impl.c, gthread/gthread-solaris-impl.c:
              Define the size of a mutex.
      7633908c
  7. 28 Sep, 2000 3 commits
    • Sebastian Wilhelmi's avatar
      Adjusted the test for an unimplemented getpwuid_r. Info from Michael · 5143dcb1
      Sebastian Wilhelmi authored
      
      2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Adjusted the test for an unimplemented
      	 getpwuid_r. Info from Michael Pruett. This is just a forward
      	 merge from glib-1-2.
      5143dcb1
    • Sebastian Wilhelmi's avatar
      Moved determination of G_THREAD_FLAGS before G_THREAD_LIBS. Check for · e885fe24
      Sebastian Wilhelmi authored
      
      2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Moved determination of G_THREAD_FLAGS before
      	G_THREAD_LIBS. Check for UnixWare systems and set the right cflags
      	and libs there (it needs -Kthread for the native compiler and
      	-pthread for gcc). Thanks to Boyd Lynn Gerber <gerberb@zenez.com>
      	for the info.
      
      	* configure.in: Fail immediately, when no thread library is found,
      	instead of continuing searching for rt libs etc. Changed almost
      	all occurances of $enable_threads to $have_threads, as that's,
      	what we want.
      
      	* tests/threadpool-test.c: Define vars inside the guard to avoid
      	warnings.
      e885fe24
    • Sebastian Wilhelmi's avatar
      Some platforms support 64 bit 'long long', but you can not printf or scanf · abb813df
      Sebastian Wilhelmi authored
      
      2000-09-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in, tests/type-test.c: Some platforms support 64 bit
      	'long long', but you can not printf or scanf them. In that case,
      	don't define G_G{UINT|INT}64_FORMAT. Changed the type-test program
      	to reflect that.
      abb813df
  8. 21 Sep, 2000 1 commit
  9. 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
  10. 17 Sep, 2000 1 commit
  11. 06 Sep, 2000 2 commits
  12. 31 Jul, 2000 1 commit
    • 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
  13. 26 Jul, 2000 2 commits
    • Tim Janik's avatar
      added g_strlcat() and g_strlcpy() wrappers, supplied by David Wheeler · 83e49bd0
      Tim Janik authored
      Wed Jul 26 05:47:48 2000  Tim Janik  <timj@gtk.org>
      
              * configure.in:
              * testglib.c:
              * gstrfuncs.c:
              * glib.h: added g_strlcat() and g_strlcpy() wrappers, supplied by
              David Wheeler <dwheeler@ida.org>:
      
              * glib.h, gstrfuncs.c: added g_strlcpy and g_strlcat to support
                safe manipulation of fixed-length string buffers.
                These functions were originally developed by Todd Miller to simplify
                development of security-related programs, and
                are available on many (but not all) Unix-like systems,
                including OpenBSD, FreeBSD, and Solaris.  See
                ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/strlcpy.3
                and http://www.openbsd.org/security.html.
                If there's a strlcpy/strlcat on the system, it's called, otherwise
                an implementation is provided.
      
              * testglib.c: Added tests for g_strlcpy, g_strlcat.
      83e49bd0
    • Tim Janik's avatar
      include <stdlib.h> and <stddef.h> if STDC_HEADERS is defined. · cb2f0780
      Tim Janik authored
      Wed Jul 26 05:03:24 2000  Tim Janik  <timj@gtk.org>
      
              * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
              STDC_HEADERS is defined.
      
              * glib.h:
              * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
      
              * glib.h (g_return_if_reached): applied darin's fix for copy'n
              paste error in the macro implementation.
      cb2f0780
  14. 19 Jul, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      glibconfig.h and glib.h now include files outside of the extern "C" block. · cb931f49
      Sebastian Wilhelmi authored
      2000-07-19  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in, glib.h: glibconfig.h and glib.h now include files
      	outside of the extern "C" block. Makes some C++ compiler
      	happy. Reported by Denis Vakatov <vakatov@peony.nlm.nih.gov>.
      
      	* gmodule/gmodule.h: include glib.h before doing extern "C".
              Makes some C++ compiler happy. Reported by Denis Vakatov
      	<vakatov@peony.nlm.nih.gov>.
      cb931f49
  15. 15 Jul, 2000 1 commit
  16. 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
  17. 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
  18. 29 May, 2000 1 commit
  19. 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
  20. 26 Apr, 2000 1 commit
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 06 Mar, 2000 1 commit
  27. 03 Mar, 2000 1 commit
  28. 18 Feb, 2000 1 commit
  29. 13 Feb, 2000 1 commit
  30. 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
  31. 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
  32. 09 Nov, 1999 1 commit
  33. 08 Nov, 1999 1 commit