1. 02 Oct, 2001 2 commits
  2. 01 Oct, 2001 11 commits
  3. 30 Sep, 2001 2 commits
  4. 29 Sep, 2001 4 commits
    • Tor Lillqvist's avatar
      glib/gwin32.c glib/gwin32.h Remove own implementation of dirent functions. · e4e2fc51
      Tor Lillqvist authored
      2001-09-30  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gwin32.c
      	* glib/gwin32.h
      	* glib/glib.def: Remove own implementation of dirent
      	functions. Instead, gcc (mingw) users should go ahead and use the
      	<dirent.h> included with the mingw gcc, and the dirent functions
      	included in libmingw32, while MSVC users can use the same (public
      	domain) code, extracted from mingw-runtime sources and placed in
      	build/win32/dirent.[ch].
      
      	* glib/gwin32.c (get_package_directory_from_module,
      	g_win32_get_package_installation_directory): Use static lock to
      	protect static hash table.
      e4e2fc51
    • Fatih Demir's avatar
      Updated. · 5df5ffad
      Fatih Demir authored
      5df5ffad
    • Jiri (George) Lebl's avatar
      cast the string size to gulong and use %lu for printing to avoid 64bit · 46aae08e
      Jiri (George) Lebl authored
      Sat Sep 29 02:33:14 2001  George Lebl <jirka@5z.com>
      
      	* tests/testglib.c (main): cast the string size to gulong and use %lu
      	  for printing to avoid 64bit issues
      
      	* glib/gstrfuncs.[ch] (g_ascii_strncasecmp): Change the 'n' argument
      	  to gsize instead guint.
      46aae08e
    • Matthias Clasen's avatar
      glib/tmpl/macros.sgml, glib/tmpl/macros_misc.sgml, · bafb616c
      Matthias Clasen authored
      glib/tmpl/scanner.sgml: Additions and markup fixes.
      bafb616c
  5. 28 Sep, 2001 6 commits
  6. 27 Sep, 2001 5 commits
    • Manish Singh's avatar
      fix typo (#if->#ifdef) so it compiles again. · a002781b
      Manish Singh authored
      *  glib/grand.c (g_rand_new): fix typo (#if->#ifdef) so it compiles again.
      
      -Yosh
      a002781b
    • Bruno Haible's avatar
      When the sublangid is SUBLANG_DEFAULT, return the locale of the language's · 34462896
      Bruno Haible authored
      2001-09-24  Bruno Haible  <haible@clisp.cons.org>
      
      	* glib/gwin32.c (g_win32_getlocale): When the sublangid is
      	SUBLANG_DEFAULT, return the locale of the language's main country,
      	not a country-neutral locale. E.g. "en_US" instead of "en". Add
      	handling of LANG_SORBIAN. Fix typo for SUBLANG_CHINESE_SIMPLIFIED
      	(China == CN, CH == Switzerland). Ignore empty environment
      	variable values.
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/makefile.{mingw,msc}.in: Add localcharset.o. Just copy the
      	source file from libcharset and compile in this directory.
      
      	* glib/giochannel.c: Mark rest of g_set_error strings for
      	translation, too.
      
      	* glib/giowin32.c: Add some debugging output functions, call them
      	when debugging.
      	(create_events, g_io_win32_msg_write): Free message fetched with
      	g_win32_error_message ().
      	(g_io_win32_check): Indentation fixes.
      	(g_io_win32_fd_read,g_io_win32_sock_read): Don't always return
      	G_IO_STATUS_NORMAL. Do return G_IO_STATUS_EOF if we got 0 bytes,
      	like on Unix. This helps making the test programs run
      	successfully.
      
      	* glib/gmain.c (g_poll): Return the code ifdeffed out with
      	TEST_WITHOUT_THIS. Can't remember why it was ifdeffed out. Things
      	seem to work as previously with the code in place. Especially
      	spawn-test didn't work with the code ifdeffed out (Bug#61067).
      
      	* glib/grand.c (g_rand_new): Don't try to use /dev/urandom unless
      	on Unix.
      
      	* glib/gspawn-win32-helper.c (WinMain): Remove Sleep(10000)
      	accidentally left in.
      
      gthread:
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* gthread-win32.c: Use an extra level of indirection for GMutex.
      	It is now a pointer either to a pointer to a CRITICAL_SECTION
      	struct, or to a mutex HANDLE. This is needed in case the user
      	defines G_ERRORCHECK_MUTEXES. G_MUTEX_SIZE must correctly reflect
      	the size of *GMutex, but this used to vary depending on whether we
      	at run-time chose to use CRITICAL_SECTIONs or mutexes.
      	(g_mutex_free_win32_cs_impl, g_cond_free_win32_impl): Call
      	DeleteCriticalSection() when done with it.
      
      	* gthread-impl.c (g_thread_init_with_errorcheck_mutexes): Call
      	g_thread_impl_init() before accessing
      	g_thread_functions_for_glib_use_default, as the
      	g_thread_impl_init() function might modify it.
      
      po:
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* POTFILES.in: Add iochannel.c and giowin32.c.
      
      	* sv.po: Remove a bogus fuzziness indicator.
      34462896
    • Owen Taylor's avatar
      Use gssize to match the header. (Reported by Elliot Lee.) · ad813a42
      Owen Taylor authored
      Thu Sep 27 14:26:57 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gstrfuncs.c (g_ascii_strup/down): Use gssize to
      	match the header. (Reported by Elliot Lee.)
      ad813a42
    • Tor Lillqvist's avatar
      Oops, actually commit the configure.in change I thought I did in my · 63e17a0f
      Tor Lillqvist authored
      previous commit:
      
      2001-09-26  Tor Lillqvist  <tml@iki.fi>
      
      	* configure.in: Retract my change earlier today. Don't preset
      	autoconf variables in a try to match both mingw and MSVC. Instead,
      	he who packages a prebuilt GLib developer distribution for Win32
      	runs configure twice: once for mingw, once for MSVC, and then uses
      	diff -D on the glibconfig.h files to generate a suitably ifdeffed
      	glibconfig.h for distribution that suits both compilers. (Ditto
      	for config.h, although that file wouldn't be distributed in a
      	developer package, but in a source package for Win32 users who
      	want to build GLib but can't use configure.)
      
      ----------------------------------------------------------------------
      ----------------------------------------------------------------------
      63e17a0f
    • Owen Taylor's avatar
      Fixes for #58195, based on some ideas from Hidetosh Tajima. · b5fa5b98
      Owen Taylor authored
      Wed Sep 26 22:34:12 2001  Owen Taylor  <otaylor@redhat.com>
      
              Fixes for #58195, based on some ideas from Hidetosh Tajima.
      
              * aclibcharset.m4 glib/libcharset: Add Bruno Haible's
              portable-current charset detection code from libiconv.
      
              * glib/gutf8.c (g_utf8_get_charset_internal): Rewrite
              to use _g_locale_charset().
      
              * glib/gutf8.c (_g_charset_get_aliases): Private functions
              to get aliases from libcharset for a particular canonical
              name.
      
              * glib/gconvert.c: If loading a charset fails, try
              aliases to look for fallbacks.
      b5fa5b98
  7. 26 Sep, 2001 8 commits
    • Matthias Clasen's avatar
      glib/gmem.c (g_mem_is_system_malloc): Return !vtable_set. · c7896e13
      Matthias Clasen authored
      docs/reference/glib/glib-sections.txt: Add g_mem_is_system_malloc.
      c7896e13
    • Tor Lillqvist's avatar
      Retract my change earlier today. Don't preset autoconf variables in a try · 18190575
      Tor Lillqvist authored
      2001-09-26  Tor Lillqvist  <tml@iki.fi>
      
      	* configure.in: Retract my change earlier today. Don't preset
      	autoconf variables in a try to match both mingw and MSVC. Instead,
      	he who packages a prebuilt GLib developer distribution for Win32
      	runs configure twice: once for mingw, once for MSVC, and then uses
      	diff -D on the glibconfig.h files to generate a suitably ifdeffed
      	glibconfig.h for distribution that suits both compilers. (Ditto
      	for config.h, although that file wouldn't be distributed in a
      	developer package, but in a source package for Win32 users who
      	want to build GLib but can't use configure.)
      
      	* glibconfig.h.win32.in
      	* config.h.win32.in: Generated by using diff -D as described above.
      
      	* tests/makefile.mingw.in (.c.exe): Correct name of gthread (import)
      	library.
      
      gthread:
      2001-09-26  Tor Lillqvist  <tml@iki.fi>
      
      	* makefile.mingw.in: Fix couple of typos.
      
      	* gthread.def: Add g_thread_init_with_errorcheck_mutexes.
      18190575
    • Owen Taylor's avatar
      Fix distclean to remove some extra files. #60993, Ben Gertzfield · 861fb083
      Owen Taylor authored
      Wed Sep 26 15:33:37 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* Makefile.am po/Makefile.in.in: Fix distclean to
      	remove some extra files. #60993, Ben Gertzfield
      861fb083
    • Owen Taylor's avatar
      Patch from Andrew Taylor to make much of the unicode table data const so · 4fc08209
      Owen Taylor authored
      Wed Sep 26 14:37:52 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gen-unicode-tables.pl glib/guniprop.c
      	  glib/{gunibreak,gunichartables,gunidecomp}.h:
      	Patch from Andrew Taylor to make much of the unicode
      	table data const so that it can be made read-only
      	and shared.
      4fc08209
    • Owen Taylor's avatar
      Copy if !g_mem_is_system_malloc, not the other way around. (Found by James · 75f13548
      Owen Taylor authored
      Wed Sep 26 12:41:05 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gstrfuncs.c (g_strdup_vprintf): Copy if
      	!g_mem_is_system_malloc, not the other way around.
      	(Found by James Antill.)
      75f13548
    • Owen Taylor's avatar
      Use memset; might be faster if someone used this for a biiig string. · 44dfc68e
      Owen Taylor authored
      Wed Sep 26 11:00:31 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gstrfuncs.c (g_strnfill): Use memset; might be
      	faster if someone used this for a biiig string.
      	(Suggestion from Jakub Jelinek)
      44dfc68e
    • Tor Lillqvist's avatar
      0208965f
    • Tor Lillqvist's avatar
      Move the Win32 check closer to the start, after the BeOS checks. Preset · 44d87afb
      Tor Lillqvist authored
      2001-09-26  Tor Lillqvist  <tml@iki.fi>
      
      	* configure.in: (Win32:) Move the Win32 check closer to the start,
      	after the BeOS checks. Preset some autoconf variables so that
      	configure won't find those few headers and functions that gcc
      	(mingw) pretends to implement (even if the actual C library
      	doesn't), but MSVC doesn't. This because I want the same config.h
      	and glibconfig.h to be usable both from gcc and MSVC (as they use
      	the same C library). Some other minor hackery for this purpose.
      
      	* glibconfig.h.win32.in
      	* config.h.win32.in: Use versions generated by configure (and
      	hand-edited slightly).
      44d87afb
  8. 25 Sep, 2001 2 commits