1. 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
  2. 14 Nov, 1999 1 commit
  3. 09 Nov, 1999 1 commit
  4. 08 Nov, 1999 2 commits
  5. 04 Nov, 1999 1 commit
  6. 01 Nov, 1999 2 commits
  7. 31 Oct, 1999 2 commits
  8. 17 Oct, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      remove g_dataset_global_lock around destroy() notification here as well. · a2760140
      Sebastian Wilhelmi authored
      Sun Oct 17 18:11:40 1999  Tim Janik  <timj@gtk.org>
      
              * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around
              destroy() notification here as well.
      
      1999-10-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
              * gdataset.c (g_datalist_clear_i): Avoid Freezing, when g_datalist
              is called recursivly. Reported by Ola Andersson <rand@ling.umu.se>.
      a2760140
  9. 14 Oct, 1999 1 commit
    • Tim Janik's avatar
      removed useless g_string(x) macro that cluttered the namespace and was · 9a65b20e
      Tim Janik authored
      Tue Oct 12 14:17:12 1999  Tim Janik  <timj@gtk.org>
      
              * glib.h: removed useless g_string(x) macro that cluttered the namespace
              and was just a poor wrapper around the cpp '#' symbol, use #x if you
              need to work around this.
              added new macro G_STRINGIFY(arg) that will convert arg to a string,
              no matter whether it contains macros or not.
      9a65b20e
  10. 12 Oct, 1999 2 commits
    • Tor Lillqvist's avatar
      Define the new GLIB_SIZEOF_* constants here, too. · 52ad8a9c
      Tor Lillqvist authored
      1999-10-12  Tor Lillqvist  <tml@iki.fi>
      
      * config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
      too.
      
      * glib.h: Small Win32 comments improvement.
      52ad8a9c
    • 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
  11. 06 Oct, 1999 1 commit
  12. 05 Oct, 1999 2 commits
  13. 04 Oct, 1999 3 commits
  14. 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
  15. 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
  16. 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
  17. 26 Aug, 1999 1 commit
  18. 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
  19. 17 Aug, 1999 1 commit
    • 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
  20. 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
  21. 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
  22. 01 Aug, 1999 1 commit
  23. 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
  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. 21 Jul, 1999 1 commit
  26. 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
  27. 07 Jul, 1999 1 commit
  28. 02 Jul, 1999 1 commit
  29. 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
  30. 30 Jun, 1999 1 commit
  31. 28 Jun, 1999 1 commit
  32. 21 Jun, 1999 1 commit