1. 04 Oct, 1999 1 commit
  2. 21 Sep, 1999 1 commit
    • Tim Janik's avatar
      define NULL as (0L) if __cplusplus is defined, to avoid "ANSI C++ forbids · 4944d4df
      Tim Janik authored
      Wed Sep 22 01:53:18 1999  Tim Janik  <timj@gtk.org>
      
              * glib.h (NULL): define NULL as (0L) if __cplusplus is defined, to
              avoid "ANSI C++ forbids implicit conversion from `void *' in argument
              passing" errors upon NULL usage in C++ programs (gcc-2.95 is on crack
              for erroring out on this, instead of just issueing a warning).
      
              * glib.h (g_trash_stack_pop): use uncasted NULL again.
      4944d4df
  3. 17 Sep, 1999 2 commits
    • Tim Janik's avatar
      applied patch from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem · ddfc68fc
      Tim Janik authored
      Fri Sep 17 10:24:45 1999  Tim Janik  <timj@gtk.org>
      
              * gmem.c (g_mem_chunk_compute_size) (g_mem_chunk_new): applied patch
              from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem chunk's area
              sizes to be a multitiple of atom_size, and to eliminate the MAX_MEM_AREA
              restriction of 65536 bytes. we also catch cases where users pass an area
              size < atom size with a return_if_fail statement now (which is ok,
              because previously this lead to memory corruption anyways).
      ddfc68fc
    • Tim Janik's avatar
      add explicit (GTrashStack*) cast for NULL pointer to cure ANSI C++ error. · 2a6f3bd6
      Tim Janik authored
      Thu Sep 16 13:19:54 1999  Tim Janik  <timj@gtk.org>
      
              * glib.h (g_trash_stack_pop): add explicit (GTrashStack*) cast for NULL
              pointer to cure ANSI C++ error.
      2a6f3bd6
  4. 13 Sep, 1999 1 commit
    • Tim Janik's avatar
      in case we have to abort the program, debugging is enabled and we are not · 6072e65c
      Tim Janik authored
      Mon Sep 13 23:25:59 1999  Tim Janik  <timj@gtk.org>
      
              * gmessages.c (g_logv): in case we have to abort the program,
              debugging is enabled and we are not called recursively, try
              to abort with raise (SIGTRAP) first, so developers may ignore
              certain failure conditions during debugging stage.
      6072e65c
  5. 26 Aug, 1999 1 commit
  6. 19 Aug, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      Use /dev/urandom, as it doesn't block, which /dev/random might do. Do not · e435032d
      Sebastian Wilhelmi authored
      
      1999-07-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* grand.c (g_rand_new): Use /dev/urandom, as it doesn't block,
      	which /dev/random might do. Do not XOR the time, when getting the
      	seed form /dev/urandom, as this is good itself. Prevent the
      	initial seed from being zero, which causes the PRNG to produce
      	only zeros. Hints from Colin Plumb <colin@pgp.com>.
      e435032d
  7. 17 Aug, 1999 3 commits
    • Tor Lillqvist's avatar
      Add a cast. · 80c44ef3
      Tor Lillqvist authored
      	* glib.h (g_trash_stack_push): Add a cast.
      
      	* gslist.c
      	* glist.c: Make the inline functions static inline, and add
      	separate extern wrappers. Not all compilers produce callable entry
      	points for inline functions, even if gcc does.
      80c44ef3
    • Owen Taylor's avatar
      Updates to .cvsignore. · 36a4ad37
      Owen Taylor authored
      36a4ad37
    • Owen Taylor's avatar
      Added missing </para> Added missing </para> Added missing </para> Added · 0abbf9b6
      Owen Taylor authored
      Tue Aug 17 08:42:17 1999  Owen Taylor  <otaylor@redhat.com>
      
      	* tmpl/datasets.sgml: Added missing </para>
      	* tmpl/timers.sgml: Added missing </para>
      	* tmpl/misc_utils.sgml: Added missing </para>
      	* tmpl/linked_lists_double.sgml: Added missing </para>
      	* tmpl/linked_lists_single.sgml: Added missing </para>
      	* tmpl/threads.sgml: Removed extra <para>s.
      	* tmpl/main.sgml: Added missing </para>
      0abbf9b6
  8. 16 Aug, 1999 5 commits
  9. 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
  10. 02 Aug, 1999 1 commit
    • Tor Lillqvist's avatar
      glib.h gstrfuncs.c Rename g_strccpy to g_strcompress and g_strecpy to · 1c6c7f74
      Tor Lillqvist authored
      	* glib.h
      	* gstrfuncs.c
      	* tests/strfunc-test.c: Rename g_strccpy to g_strcompress and
      	g_strecpy to g_strescape per Tim Janik's suggestion. Dropped the
      	destination parameter, always g_malloc a new string.  Fix bug in
      	g_strcompress, octal digits were gobbled up without limit, should
      	use max three.
      
      	Sources that use g_strescape must have ifdefs to be compilable
      	both with GLib 1.2 and 1.3.
      1c6c7f74
  11. 01 Aug, 1999 1 commit
  12. 31 Jul, 1999 1 commit
    • Tor Lillqvist's avatar
      New functions. · 1146c6fb
      Tor Lillqvist authored
      	* gstrfuncs.c (g_strccpy, g_strecpy): New functions.
      
      	* glib.h: Declare and document them. Define the deprecated
      	g_strescape as a macro that calls g_strecpy.
      
      	* tests/strfunc-test.c (main): Test them.
      
      	* makefile.{cygwin,msc}.in
      	* tests/makefile.{cygwin,msc}.in: Remove gstack and its test
      	program.
      
      	* glib.def: Additions and removals.
      
      	* README.win32: Improve gcc build instructions.
      
      	* build-dll: Also build import library for MSVC.
      1146c6fb
  13. 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
  14. 21 Jul, 1999 2 commits
  15. 12 Jul, 1999 1 commit
    • Tor Lillqvist's avatar
      Correct URL for mingw runtime sources. · da87b1ac
      Tor Lillqvist authored
      	* README.win32: Correct URL for mingw runtime sources.
      
      	* build-dll: Combine commands with &&.
      
      	* glib.h: Map also rmdir() and hypot() for MSVCRT library.
      
      	* makefile.cygwin.in
      	* tests/makefile.cygwin.in: New DLL naming style. GCC-compiled DLLs are
       	now called *.gcc.dll, to avoid binary incompatibilities with
       	MSVC-compiled versions.
      
      	* makefile.msc.in: Cosmetics.
      da87b1ac
  16. 07 Jul, 1999 1 commit
  17. 02 Jul, 1999 2 commits
  18. 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
  19. 30 Jun, 1999 1 commit
  20. 28 Jun, 1999 2 commits
  21. 21 Jun, 1999 1 commit
  22. 20 Jun, 1999 1 commit
    • Tor Lillqvist's avatar
      Update the pthreads snapshot version we want. Advice how to hand-expand · be80f9a1
      Tor Lillqvist authored
      	* README.win32: Update the pthreads snapshot version we want.
      	Advice how to hand-expand the makefile.*.in files.
      
      	* config.h.win32.in: Define values needed by Sebastian Wilhelmi's
      	new thread stuff.
      
      	* glib.def: Add new functions.
      
      	* glibconfig.h.win32.in: Update the pthreads snapshot version.
      	Fix typo.
      
      	* gthread.c: Include config.h, guard inclusion of unistd.h.  When
       	using gcc on Win32, g_thread_functions_for_glib_use must be marked
       	for export here, too.
      
      	* gtimer.c: Implement g_usleep on native Win32 using Sleep (which
      	only has millisecond granularity, though).
      
      	* makefile.cygwin.in
      	* makefile.msc.in: Update pthreads snapshot version. File
      	name changes. Remove testgthread.
      
      	* tests/makefile.cygwin.in
      	* tests/makefile.msc.in: Add thread-test. Link with gthread lib.
      
      	* gthread-posix.c: Guard pthread_attr_setscope call with test
      	for _POSIX_THREAD_PRIORITY_SCHEDULING, which should be defined
      	in a <pthread.h> that supports that feature.
      be80f9a1
  23. 18 Jun, 1999 2 commits
  24. 17 Jun, 1999 2 commits
    • Sebastian Wilhelmi's avatar
      small tests/.cvsignore commit · f052c347
      Sebastian Wilhelmi authored
      
      small tests/.cvsignore commit
      f052c347
    • 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
  25. 02 Jun, 1999 1 commit
  26. 29 May, 1999 2 commits
  27. 12 May, 1999 1 commit