1. 25 Oct, 2001 2 commits
    • Tor Lillqvist's avatar
      Updates. · 7d916740
      Tor Lillqvist authored
      2001-10-26  Tor Lillqvist  <tml@iki.fi>
      
      	* README.win32: Updates.
      
      	* tests/makefile.mingw.in
      	* tests/makefile.msc.in: Remove mainloop-test here, too.
      
      gobject:
      
      	* makefile.mingw.in: When running glib-genmarshal, set PATH to
      	include ../glib.
      7d916740
    • Owen Taylor's avatar
      Version 1.3.10, interface age, binary age = 0. · 2b4a6e0a
      Owen Taylor authored
      Wed Oct 24 11:10:54 2001  Owen Taylor  <otaylor@redhat.com>
      
              * configure.in: Version 1.3.10, interface age, binary age = 0.
      
              * NEWS: Updates
      
      Thu Oct 25 12:01:41 2001  Owen Taylor  <otaylor@redhat.com>
      
              * tests/Makefile.am: Temporarily remove mainloop-test, since it
              prevents distcheck.
      2b4a6e0a
  2. 24 Oct, 2001 1 commit
    • Alexander Larsson's avatar
      Add g_strtod & co. · 3c39c8fc
      Alexander Larsson authored
      2001-10-24  Alex Larsson  <alexl@redhat.com>
      
      	* docs/reference/glib/glib-sections.txt:
      	Add g_strtod & co.
      
      	* docs/reference/glib/tmpl/string_utils.sgml:
      	Add docs for G_ASCII_DTOSTR_BUF_SIZE.
      
      	* glib/gstrfuncs.[ch]:
      	Added g_ascii_strtod, g_ascii_dtostr and g_ascii_formatd.
      
      	* tests/Makefile.am:
      	* tests/strtod-test.c:
      	Add tests for g_ascii_strtod & co.
      3c39c8fc
  3. 23 Oct, 2001 2 commits
  4. 22 Oct, 2001 3 commits
    • Tor Lillqvist's avatar
      Add macros G_WIN32_DLLMAIN_FOR_DLL_NAME and G_HARDCODED_PATH_WRAPPER. · 3984621b
      Tor Lillqvist authored
      2001-10-23  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gutils.h: Add macros G_WIN32_DLLMAIN_FOR_DLL_NAME and
      	G_HARDCODED_PATH_WRAPPER. These are used to avoid hardcoding path
      	names into Windows DLLs.
      
      	* glib/gutils.c: Use them for GLIB_LOCALEDIR.
      
      	* glib/gwin32.c (get_package_directory_from_module): Plug a small
      	memory leak. Minor code reordering.
      	(g_win32_get_package_installation_subdirectory):  Allow empty subdir.
      3984621b
    • Tor Lillqvist's avatar
      Typo. · a0b08581
      Tor Lillqvist authored
      2001-10-23  Tor Lillqvist  <tml@iki.fi>
      
      	* config.h.win32.in: Typo.
      
      	* glibconfig.h.win32.in: Minor update to correspond to what
      	configure now generates.
      a0b08581
    • Tor Lillqvist's avatar
      If we have built the MSVC import library, install it. Install the gcc · 20af1ed3
      Tor Lillqvist authored
      2001-10-23  Tor Lillqvist  <tml@iki.fi>
      
      	* {glib,gmodule,gobject,gthread}/Makefile.am: (Win32): If we
      	have built the MSVC import library, install it. Install the
      	gcc import library. Also support uninstall.
      20af1ed3
  5. 19 Oct, 2001 2 commits
  6. 18 Oct, 2001 1 commit
  7. 17 Oct, 2001 1 commit
  8. 13 Oct, 2001 1 commit
    • Tim Janik's avatar
      make struct _GPatternSpec and GMatchType private. (g_pattern_equal): new · 92dfa961
      Tim Janik authored
      Fri Oct 12 18:24:02 2001  Tim Janik  <timj@gtk.org>
      
              * glib/gpattern.[hc]: make struct _GPatternSpec and GMatchType
              private.
              (g_pattern_equal): new function to return equality of two patterns
              (required because GPatternSpec is private now).
              (g_pattern_spec_new): fix bug wrg wildcard counting which produced
              incorrect pattern specs (discovered by Matthias Clasen).
              optimized code so we just keep one compiled pattern string now.
              correctly canonicalize patterns. reduce string walks, optimize
              decision about MATCH_ALL vs. MATCH_ALL_TAIL.
              (g_pattern_match_string): call just g_pattern_match() with NULL
              reversed string.
              (g_pattern_match): allow NULL reversed strings now, reverse_dup
              strings on demand.
      
              * tests/patterntest.c (test_compilation): added an extended testcase
              for pattern matching from Matthias Clasen <matthiasc@poet.de>.
      
      Sat Oct 13 06:58:23 2001  Tim Janik  <timj@gtk.org>
      
              * glib/tmpl/patterns.sgml: amended documentation.
      92dfa961
  9. 11 Oct, 2001 3 commits
  10. 05 Oct, 2001 1 commit
  11. 04 Oct, 2001 2 commits
  12. 03 Oct, 2001 1 commit
    • Tor Lillqvist's avatar
      New function (DLL entry point) to tuck away actual DLL name. · 7ede4e50
      Tor Lillqvist authored
      2001-10-03  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gutils.c (Win32) (DllMain): New function (DLL entry point)
      	to tuck away actual DLL name.
      	(GLIB_LOCALE_DIR) Use actual DLL name, instead of assuming one
      	naming convention for DLLs.
      
      	* glib/glib.def: g_string_append_printf.
      7ede4e50
  13. 02 Oct, 2001 2 commits
  14. 01 Oct, 2001 5 commits
  15. 30 Sep, 2001 1 commit
  16. 29 Sep, 2001 2 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
    • 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
  17. 28 Sep, 2001 3 commits
  18. 27 Sep, 2001 4 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
    • 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
  19. 26 Sep, 2001 3 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