1. 24 Mar, 2000 1 commit
  2. 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
  3. 22 Mar, 2000 9 commits
    • Tor Lillqvist's avatar
      In the "null" module case _g_module_symbol should still first search the main · dd781b91
      Tor Lillqvist authored
      program before searching all the loaded DLLs.
      dd781b91
    • Tor Lillqvist's avatar
      When looking for symbols in the "main" module we must search both the main · 28bd4786
      Tor Lillqvist authored
      2000-03-23  Tor Lillqvist  <tml@iki.fi>
      
      * gmodule-win32.c (_g_module_symbol): When looking for symbols in
      the "main" module we must search both the main program and all
      currently loaded DLLs. Not only the main program, or even just the
      DLLs loaded as gmodules.  Libglade requires this.
      
      Thus we need to get a list of all modules in the current
      process. There are two alternative APIs to do this: PSAPI and
      Toolhelp. The former is only available on NT (including Win2k),
      the latter on Win9x and Win2k. Check which one works, and use
      that.
      
      Code for using PSAPI and Toolhelp was borrowed from the Dr. Mingw
      tool written by José Fonseca <em96115@fe.up.pt>. Thanks.
      28bd4786
    • Owen Taylor's avatar
      Fix indentation. · e0786b05
      Owen Taylor authored
      Wed Mar 22 16:49:57 2000  Owen Taylor  <otaylor@redhat.com>
      
      	* gmem.c (g_mem_chunk_area_compare): Fix indentation.
      e0786b05
    • Elliot Lee's avatar
      gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two · 916d4db1
      Elliot Lee authored
      
      
      gmem.c (g_mem_chunk_area_compare): Fix 64-bitness bug in comparing two
      pointers more than 4G apart.
      916d4db1
    • Tor Lillqvist's avatar
      Move Win32-only includes after inclusion of glib.h, so that G_OS_WIN32 is · 142219f2
      Tor Lillqvist authored
      2000-03-22  Tor Lillqvist  <tml@iki.fi>
      
      * gutils.c: Move Win32-only includes after inclusion of glib.h, so
      that G_OS_WIN32 is defined.
      
      * glibconfig.h.win32.in: Add GSystemThread.
      142219f2
    • Sebastian Wilhelmi's avatar
      better ChangeLog Entry · 5a470fc8
      Sebastian Wilhelmi authored
      
      better ChangeLog Entry
      5a470fc8
    • Sebastian Wilhelmi's avatar
      Ok, Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> convinced me, · 837cbbdf
      Sebastian Wilhelmi authored
      
      2000-03-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gutils.c (g_get_current_dir): Ok, Marcus Brinkmann
      	<Marcus.Brinkmann@ruhr-uni-bochum.de> convinced me, that 128 KB
      	path length might not be enough for the HURD. So I changed the
      	loop to at least avoid an integer overflow, which could happen at
      	beyond 2GB size ;-)
      837cbbdf
    • 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
    • Sebastian Wilhelmi's avatar
      .cvsignore updates · fdb55f62
      Sebastian Wilhelmi authored
      
      .cvsignore updates
      fdb55f62
  4. 21 Mar, 2000 2 commits
    • 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
    • Sebastian Wilhelmi's avatar
      Allocate only up to 128KB for a pathname. While this is an arbitrary value · cdb61955
      Sebastian Wilhelmi authored
      
      2000-03-21  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* gutils.c (g_get_current_dir): Allocate only up to 128KB for a
      	pathname. While this is an arbitrary value just like 2048, it
      	seems to be enough (after all, even 4GB is an arbitrary value).
      cdb61955
  5. 20 Mar, 2000 4 commits
  6. 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
  7. 13 Mar, 2000 1 commit
  8. 06 Mar, 2000 1 commit
  9. 03 Mar, 2000 2 commits
    • Tor Lillqvist's avatar
      New function that returns the message string for a Win32 error code. · d778d016
      Tor Lillqvist authored
      2000-03-04  Tor Lillqvist  <tml@iki.fi>
      
      * gwin32.c (g_win32_error_message): New function that returns the
      message string for a Win32 error code.
      
      * glib.h: Declare it.
      
      * glib.def: Export it, plus g_node_copy.
      
      * gmodule-win32.c: Call g_win32_error_message() to get the error
      message strings.
      
      * libgplugin_a.c
      * libgplugin_b.c
      * gmodule.c: Remove LibMain functions that were needed by LCC,
      which is not a supported compiler.
      
      * testgmodule.c (main): Test for G_MODULE_IMPL ==
      G_MODULE_IMPL_WIN32, not G_OS_WIN32.
      
      * gmoduleconf.h.win32: Remove LCC stuff from here, too.
      d778d016
    • Sebastian Wilhelmi's avatar
      Make the search for pthread_attr_... prototypes find names at the start of · ead3a8c0
      Sebastian Wilhelmi authored
      
      2000-03-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      
      	* configure.in: Make the search for pthread_attr_... prototypes
      	find names at the start of a line also, like it is on AIX. Thanks
      	to Valdis Kletnieks <Valdis.Kletnieks@vt.edu> for the info.
      ead3a8c0
  10. 01 Mar, 2000 6 commits
    • Tim Janik's avatar
      shut up cvs · 49a9cef9
      Tim Janik authored
      49a9cef9
    • Tor Lillqvist's avatar
      New function that returns the message string for a Win32 error code. · c35ab347
      Tor Lillqvist authored
      2000-03-04  Tor Lillqvist  <tml@iki.fi>
      
      * gwin32.c (g_win32_error_message): New function that returns the
      message string for a Win32 error code.
      
      * glib.h: Declare it.
      
      * glib.def: Export it, plus g_node_copy.
      
      * gmodule-win32.c: Call g_win32_error_message() to get the error
      message strings.
      
      * libgplugin_a.c
      * libgplugin_b.c
      * gmodule.c: Remove LibMain functions that were needed by LCC,
      which is not a supported compiler.
      
      * testgmodule.c (main): Test for G_MODULE_IMPL ==
      G_MODULE_IMPL_WIN32, not G_OS_WIN32.
      
      * gmoduleconf.h.win32: Remove LCC stuff from here, too.
      c35ab347
    • Tim Janik's avatar
      minor optimization. · db8baf69
      Tim Janik authored
      Wed Mar  1 10:39:39 2000  Tim Janik  <timj@gtk.org>
      
              * gslist.c (g_slist_reverse): minor optimization.
      
              * testglib.c (g_node_test): added a couple of tests for
              g_node_copy().
      
              * glib.h:
              * gnode.c (g_node_copy): new function to copy subtrees,
              supplied by dbsears@ix.netcom.com.
              changed iterator to walk the children list backwards, so
              we get down from O(n^2) to O(n).
      
              * gnode.c (g_node_first_sibling): applied patch from
              dbsears@ix.netcom.com to optimize access if node->parent
              is present.
      
              * gutils.c (g_get_any_init): backed out HAVE_PW_GECOS check around
              assignment of g_real_name, sicne HAVE_PW_GECOS is never defined and
              thus breaks the original code.
      
              * merged changes from 1.2.7.
      
      Sat Feb 19 19:43:29 2000  Tim Janik  <timj@gtk.org>
      
              * testgmodule.c (main): added test to check that not yet bound symbols
              in shared libraries of the main module are retrievable, from David Gero.
      
      Fri Jan 28 11:37:41 2000  Owen Taylor  <otaylor@redhat.com>
      
              Bug #4156 - Changes vaguely modelled after Scott Gifford's patch
      
              * gtimer.c (g_timer_elapsed): Never report negative times -
              clip times to 0.
      
              * gmain.c (g_timeout_prepare): Guard against unexpected
              clock shifts by never setting a timeout of more than
              data->interval msecs.
      db8baf69
    • Tim Janik's avatar
      do not return NULL symbols. · d568a76a
      Tim Janik authored
      Wed Mar  1 05:34:47 2000  Tim Janik  <timj@gtk.org>
      
              * gmodule-beos.c (_g_module_symbol): do not return NULL symbols.
      
              * gmodule-os2.c: removed NetBSD specific defines.
              (_g_module_self): set an error message for unsupported behaviour.
      
              * gmodule-beos.c: many coding style fixups.
              (_g_module_open):
              (_g_module_self):
              (_g_module_close):
              (_g_module_symbol): bunch of memory leaks plugged.
      
              * gmodule-dl.c: make sure the error message returned from dlerror()
              is always != NULL, by using a wrapper function fetch_dlerror(). based
              on a patch to fix _g_module_symbol() for NetBSD from Scott Presnell
              <srp@zgi.com>.
      
              * gmodule-dld.c: minor indentation.
      
              * gmodule-win32.c: minor cleanups.
      
              * merges from glib-1-2.
      d568a76a
    • Tor Lillqvist's avatar
      New function that returns the message string for a Win32 error code. · 549faafc
      Tor Lillqvist authored
      2000-03-04  Tor Lillqvist  <tml@iki.fi>
      
      * gwin32.c (g_win32_error_message): New function that returns the
      message string for a Win32 error code.
      
      * glib.h: Declare it.
      
      * glib.def: Export it, plus g_node_copy.
      
      * gmodule-win32.c: Call g_win32_error_message() to get the error
      message strings.
      
      * libgplugin_a.c
      * libgplugin_b.c
      * gmodule.c: Remove LibMain functions that were needed by LCC,
      which is not a supported compiler.
      
      * testgmodule.c (main): Test for G_MODULE_IMPL ==
      G_MODULE_IMPL_WIN32, not G_OS_WIN32.
      
      * gmoduleconf.h.win32: Remove LCC stuff from here, too.
      549faafc
    • Tim Janik's avatar
      do not return NULL symbols. · 5991248a
      Tim Janik authored
      Wed Mar  1 05:34:47 2000  Tim Janik  <timj@gtk.org>
      
              * gmodule-beos.c (_g_module_symbol): do not return NULL symbols.
      
              * gmodule-os2.c: removed NetBSD specific defines.
              (_g_module_self): set an error message for unsupported behaviour.
      
              * gmodule-beos.c: many coding style fixups.
              (_g_module_open):
              (_g_module_self):
              (_g_module_close):
              (_g_module_symbol): bunch of memory leaks plugged.
      
              * gmodule-dl.c: make sure the error message returned from dlerror()
              is always != NULL, by using a wrapper function fetch_dlerror(). based
              on a patch to fix _g_module_symbol() for NetBSD from Scott Presnell
              <srp@zgi.com>.
      
              * gmodule-dld.c: minor indentation.
      
              * gmodule-win32.c: minor cleanups.
      
              * merges from glib-1-2.
      5991248a
  11. 27 Feb, 2000 2 commits
    • Tor Lillqvist's avatar
      New function that returns the message string for a Win32 error code. · cb1db9b8
      Tor Lillqvist authored
      2000-03-04  Tor Lillqvist  <tml@iki.fi>
      
      * gwin32.c (g_win32_error_message): New function that returns the
      message string for a Win32 error code.
      
      * glib.h: Declare it.
      
      * glib.def: Export it, plus g_node_copy.
      
      * gmodule-win32.c: Call g_win32_error_message() to get the error
      message strings.
      
      * libgplugin_a.c
      * libgplugin_b.c
      * gmodule.c: Remove LibMain functions that were needed by LCC,
      which is not a supported compiler.
      
      * testgmodule.c (main): Test for G_MODULE_IMPL ==
      G_MODULE_IMPL_WIN32, not G_OS_WIN32.
      
      * gmoduleconf.h.win32: Remove LCC stuff from here, too.
      cb1db9b8
    • Tor Lillqvist's avatar
      Add new functions. · ed2628d6
      Tor Lillqvist authored
      2000-02-27  Tor Lillqvist  <tml@iki.fi>
      
      * glib.def: Add new functions.
      ed2628d6
  12. 23 Feb, 2000 1 commit
  13. 22 Feb, 2000 1 commit
  14. 21 Feb, 2000 1 commit
  15. 18 Feb, 2000 1 commit
  16. 17 Feb, 2000 1 commit
    • Havoc Pennington's avatar
      changed g_str_hash() to a 31 bit version based on a submission by Karl · cf24ff71
      Havoc Pennington authored
      Thu Feb 17 12:53:44 2000  Tim Janik  <timj@gtk.org>
      
              * gstring.c: changed g_str_hash() to a 31 bit version based on
              a submission by Karl Nelson and hand optimized ad absurdum by
              various people ;)
      
              * gstring.c: applied patch from havoc for new gstring functions,
              added some more sanity checks, coding style fixups.
      
      2000-02-13  Havoc Pennington  <hp@pobox.com>
      
              * tests/string-test.c (main): Add tests for the new GString
              features
      
              * testglib.c (main): Add tests for the new GString features
      
              * gstring.c (g_string_insert_len): New function; insert
              a given length of string at a given position.
              (g_string_append): reimplement in terms of g_string_insert_len
              (g_string_append_len): new function
              (g_string_insert_c): accept -1 for "pos" arg to mean "append"
              (g_string_append_c): reimplement in terms of g_string_insert_c
              (g_string_prepend): reimplement in terms of g_string_insert_len
              (g_string_prepend_len): new function
              (g_string_prepend_c): reimplement in terms of g_string_insert_c
              (g_string_insert): reimplement in terms of g_string_insert_len
      
              * glib.h: Declare g_string_insert_len, g_string_append_len,
              g_string_prepend_len
      cf24ff71
  17. 13 Feb, 2000 1 commit
  18. 07 Feb, 2000 1 commit
    • Tor Lillqvist's avatar
      Move to corresponding subdirectories. · 726b3de4
      Tor Lillqvist authored
      2000-02-07  Tor Lillqvist  <tml@iki.fi>
      
      * gmodule.rc.in gthread.rc.in: Move to corresponding subdirectories.
      
      * Makefile.am
      * gmodule/Makefile.am
      * gthread/Makefile.am: Change accordingly.
      
      * makefile.cygwin: Corresponding changes, some cleanup.
      726b3de4
  19. 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
  20. 03 Feb, 2000 1 commit
  21. 02 Feb, 2000 1 commit
    • Tor Lillqvist's avatar
      glib.h New functions for conversion between UTF-8 and the encoding · c22cf34e
      Tor Lillqvist authored
      2000-02-01  Tor Lillqvist  <tml@iki.fi>
      
      * glib.h
      * gstrfuncs.c (g_filename_to_utf8, g_filename_from_utf8): New
      functions for conversion between UTF-8 and the encoding expected
      by C runtime functions like open() and stat(), and returned by
      readdir().
      
      Implement them on Win32 where we use the system "ANSI" codepage,
      which might be single-byte or double-byte. On Unix, just skip the
      issue for now and provide dummy implementations that return a copy
      of the argument.
      
      * README.win32
      * build-dll
      * glib.def: Minor updates.
      c22cf34e