Sebastian Wilhelmi [Fri, 19 Oct 2001 08:09:22 +0000 (08:09 +0000)]
Use another LOCK for g_prgname to avoid deadlocking. (#62606)
2001-10-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib/gutils.c (g_set_prgname, g_get_prgname): Use another LOCK
for g_prgname to avoid deadlocking. (#62606)
Tor Lillqvist [Thu, 18 Oct 2001 21:07:29 +0000 (21:07 +0000)]
Check also ac_cv_sizeof___int64 when requiring a 64-bit type.
2001-10-19 Tor Lillqvist <tml@iki.fi>
* configure.in: Check also ac_cv_sizeof___int64 when requiring a
64-bit type.
Hidetoshi Tajima [Wed, 17 Oct 2001 16:58:26 +0000 (16:58 +0000)]
Fix a typo: to_codeset => from_codeset. (#58195, #55152)
* glib/gconvert.c (g_iconv_open):
Fix a typo: to_codeset => from_codeset.
(#58195, #55152)
Sven Neumann [Mon, 15 Oct 2001 15:48:24 +0000 (15:48 +0000)]
fixed typo.
2001-10-15 Sven Neumann <sven@gimp.org>
* glib/tmpl/random_numbers.sgml: fixed typo.
Matthias Clasen [Sat, 13 Oct 2001 22:11:04 +0000 (22:11 +0000)]
Typo fixes.
* glib-genmarshal.1, glib-mkenums.1: Typo fixes.
Stanislav Visnovsky [Sat, 13 Oct 2001 17:11:48 +0000 (17:11 +0000)]
Updated Slovak translation.
2001-10-13 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: Updated Slovak translation.
Valek Frob [Sat, 13 Oct 2001 11:37:12 +0000 (11:37 +0000)]
Updated russian translation.
Tim Janik [Sat, 13 Oct 2001 05:54:10 +0000 (05:54 +0000)]
make struct _GPatternSpec and GMatchType private. (g_pattern_equal): new
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.
Stanislav Visnovsky [Fri, 12 Oct 2001 16:56:11 +0000 (16:56 +0000)]
Updated Slovak translation.
2001-10-12 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: Updated Slovak translation.
Tim Janik [Fri, 12 Oct 2001 16:42:48 +0000 (16:42 +0000)]
cosmetic fixups.
Fri Oct 12 18:40:18 2001 Tim Janik <timj@gtk.org>
* cosmetic fixups.
Matthias Clasen [Thu, 11 Oct 2001 20:40:55 +0000 (20:40 +0000)]
Updates.
* glib/tmpl/patterns.sgml, glib/tmpl/shell.sgml: Updates.
Raja R Harinath [Thu, 11 Oct 2001 05:15:46 +0000 (05:15 +0000)]
(ac_cv_sizeof_long_long): Avoid '==' and '-a' in 'test's.
Please read the 'autoconf' manual on writing portable tests.
Joshua N Pritikin [Thu, 11 Oct 2001 03:06:49 +0000 (03:06 +0000)]
Remove G_HAVE_GINT64 conditionalization.
* glib/gmessages.c glib/gtypes.h: Remove G_HAVE_GINT64
conditionalization.
Joshua N Pritikin [Thu, 11 Oct 2001 02:43:40 +0000 (02:43 +0000)]
Un-conditionalize and require a 64-bit integer type.
* configure.in: Un-conditionalize and require a 64-bit integer
type.
Joshua N Pritikin [Thu, 11 Oct 2001 02:43:04 +0000 (02:43 +0000)]
Fill in missing support for gint64 & guint64 (#59254).
* glib-genmarshal.c gparamspecs.[ch] gtype.[ch] gvalue.h
gvaluecollector.h gvaluetypes.[ch]: Fill in missing support for
gint64 & guint64 (#59254).
* Unconditionalize same (compile with or without G_HAVE_INT64).
Joshua N Pritikin [Wed, 10 Oct 2001 22:38:20 +0000 (22:38 +0000)]
Fix order of *_PARAM_SPEC_ULONG defines.
* gparamspecs.h (G_IS_PARAM_SPEC_FLAGS): Fix order of
*_PARAM_SPEC_ULONG defines.
Tor Lillqvist [Tue, 9 Oct 2001 20:40:19 +0000 (20:40 +0000)]
More Unix compatibility: Add "lib" prefix in case the module name doesn't
2001-10-09 Tor Lillqvist <tml@iki.fi>
* gmodule-win32.c (_g_module_build_path): More Unix compatibility:
Add "lib" prefix in case the module name doesn't already have it,
except if it ends with ".dll" (in which case it probably already
is the name of an existing DLL). This is needed for instance for
the gdk-pixbuf loaders, which are called "lib*.dll", but
gdk-pixbuf-io calls g_module_build_path without the "lib" prefix.
Pablo Saratxaga [Mon, 8 Oct 2001 14:53:05 +0000 (14:53 +0000)]
updated Catalan file
Tim Janik [Sat, 6 Oct 2001 09:25:09 +0000 (09:25 +0000)]
doc builds.
Matthias Clasen [Fri, 5 Oct 2001 20:53:02 +0000 (20:53 +0000)]
Document G_HOOK_FLAG_USER_SHIFT.
* glib/tmpl/hooks.sgml: Document G_HOOK_FLAG_USER_SHIFT.
* glib/tmpl/trash_stacks.sgml: Document trash stacks.
* glib/tmpl/async_queues.sgml, glib/tmpl/caches.sgml,
glib/tmpl/completion.sgml, glib/tmpl/patterns.sgml,
glib/tmpl/numerical.sgml, glib/tmpl/random_numbers.sgml,
glib/tmpl/relations.sgml, glib/tmpl/modules.sgml: Update.
Pablo Saratxaga [Fri, 5 Oct 2001 14:37:38 +0000 (14:37 +0000)]
updated Azeri and Basque files
Raja R Harinath [Fri, 5 Oct 2001 01:36:56 +0000 (01:36 +0000)]
Avoid 'test -a'.
Matthias Clasen [Fri, 5 Oct 2001 00:06:48 +0000 (00:06 +0000)]
Update.
* glib/tmpl/conversions.sgml: Update.
Matthias Clasen [Thu, 4 Oct 2001 23:51:36 +0000 (23:51 +0000)]
Update.
* glib/tmpl/patterns.sgml: Update.
Matthias Clasen [Thu, 4 Oct 2001 22:26:23 +0000 (22:26 +0000)]
Update.
* glib/tmpl/hooks.sgml, glib/tmpl/spawn.sgml,
glib/tmpl/macros_misc.sgml: Update.
* glib/tmpl/linked_lists_double.sgml, glib/tmpl/trees-binary.sgml,
glib/glib-sections.txt: Document GCompareDataFunc.
Matthias Clasen [Thu, 4 Oct 2001 22:23:03 +0000 (22:23 +0000)]
Documentation update.
* glib/gwin32.c: Documentation update.
Havoc Pennington [Thu, 4 Oct 2001 19:33:01 +0000 (19:33 +0000)]
add config.charset
2001-10-04 Havoc Pennington <hp@redhat.com>
* glib/libcharset/Makefile.am (EXTRA_DIST): add config.charset
Owen Taylor [Thu, 4 Oct 2001 05:13:12 +0000 (05:13 +0000)]
Add missing G_HAVE_GINT64 conditionalization.
Thu Oct 4 01:10:52 2001 Owen Taylor <otaylor@redhat.com>
* gparamspecs.h: Add missing G_HAVE_GINT64 conditionalization.
Tor Lillqvist [Wed, 3 Oct 2001 20:19:13 +0000 (20:19 +0000)]
New function (DLL entry point) to tuck away actual DLL name.
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.
Owen Taylor [Wed, 3 Oct 2001 20:14:21 +0000 (20:14 +0000)]
Add support for G_TYPE_INT64 and storing it in GValue (Patch from Mathieu
Wed Oct 3 16:02:24 2001 Owen Taylor <otaylor@redhat.com>
* glib-genmarshal.c gparamspecs.[ch] gvalue.h
gobject/gvaluetypes.[ch]: Add support for G_TYPE_INT64
and storing it in GValue (Patch from Mathieu Lacage, #59254.)
jacob berkman [Wed, 3 Oct 2001 19:46:05 +0000 (19:46 +0000)]
s/retrive/retrieve/
2001-10-03 jacob berkman <jacob@ximian.com>
* gtype.c (type_iface_retrieve_holder_info_Wm):
(type_iface_vtable_init_Wm):
(type_iface_vtable_finalize_Wm):
(g_type_class_ref):
* gobject.c (g_object_get_property): s/retrive/retrieve/
jacob berkman [Wed, 3 Oct 2001 19:45:04 +0000 (19:45 +0000)]
s/retrive/retrieve/
2001-10-03 jacob berkman <jacob@ximian.com>
* libgplugin_a.c: (gplugin_a_module_func):
* gmodule.h: s/retrive/retrieve/
Matthias Clasen [Tue, 2 Oct 2001 23:09:51 +0000 (23:09 +0000)]
documentation update. add documentation. update docs. Remove references to
* glib/gstrfuncs.c, glib/giochannel.c: documentation update.
* glib/gqueue.c: add documentation.
* glib/tmpl/iochannel.sgml, glib/tmpl/macros_misc.sgml,
glib/tmpl/queue.sgml: update docs.
* glib/tmpl/modules.sgml, glib/tmpl/threads.sgml: Remove
references to glib-config.
Sven Neumann [Tue, 2 Oct 2001 12:13:14 +0000 (12:13 +0000)]
let the compatibility definition point to the new name
2001-10-02 Sven Neumann <sven@gimp.org>
* glib/gstring.h (g_string_sprintfa): let the compatibility definition
point to the new name g_string_append_printf().
Matthias Clasen [Mon, 1 Oct 2001 22:54:48 +0000 (22:54 +0000)]
More markup fixes and completions.
* glib/tmpl/iochannels.sgml, glib/tmpl/shell.sgml,
glib/tmpl/spawn.sgml, glib/tmpl/memory.sgml,
glib/tmpl/macros.sgml, glib/tmpl/completion.sgml,
glib/tmpl/main.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml, glib/tmpl/threads.sgml,
glib/tmpl/trees-nary.sgml, glib/tmpl/string_utils.sgml:
More markup fixes and completions.
Alex Larsson [Mon, 1 Oct 2001 20:40:05 +0000 (20:40 +0000)]
Convert G_CONVERT_ERROR_NOT_ABSOLUTE_FILE_URI and
2001-10-01 Alex Larsson <alexl@redhat.com>
* glib/gconvert.[ch]:
Convert G_CONVERT_ERROR_NOT_ABSOLUTE_FILE_URI and
G_CONVERT_ERROR_INVALID_URI to G_CONVERT_ERROR_BAD_URI.
* tests/uri-test.c:
Update tests
Owen Taylor [Mon, 1 Oct 2001 20:27:04 +0000 (20:27 +0000)]
Rename g_string_printfa() to g_string_append_printf(). (#61041, Havoc
Mon Oct 1 16:01:24 2001 Owen Taylor <otaylor@redhat.com>
* glib/gstring.[ch] glib/grel.c: Rename g_string_printfa()
to g_string_append_printf(). (#61041, Havoc Pennington.)
Owen Taylor [Mon, 1 Oct 2001 20:26:11 +0000 (20:26 +0000)]
Rename g_string_printfa(). to g_string_append_printf().
Mon Oct 1 15:59:46 2001 Owen Taylor <otaylor@redhat.com>
* glib/tmpl/strings.sgml docs/glib-sections.txt: Rename
g_string_printfa(). to g_string_append_printf().
Matthias Clasen [Mon, 1 Oct 2001 18:57:18 +0000 (18:57 +0000)]
Move all *_error_quark() unctions to the 'Private' sections. (#61472)
* glib/glib-sections.txt: Move all *_error_quark()
unctions to the 'Private' sections. (#61472)
Tor Lillqvist [Mon, 1 Oct 2001 18:54:27 +0000 (18:54 +0000)]
Documentation cleanups. (#61487)
2001-10-01 Tor Lillqvist <tml@iki.fi>
* glib/gwin32.c: Documentation cleanups. (#61487)
Matthias Clasen [Mon, 1 Oct 2001 18:23:20 +0000 (18:23 +0000)]
make third argument a gboolean. (g_scanner_add_symbol,
* glib/gscanner.h (GScannerMsgFunc): make third argument a gboolean.
(g_scanner_add_symbol, g_scanner_remove_symbol,
g_scanner_foreach_symbol): mark these
G_DISABLE_DEPRECATED. (#61469)
* glib/gscanner.c (g_scanner_msg_handler): make third argument gboolean. (#61468)
Matthias Clasen [Mon, 1 Oct 2001 18:21:57 +0000 (18:21 +0000)]
make third argument a gboolean. (g_scanner_add_symbol,
* glib/gscanner.h (GScannerMsgFunc): make third argument a gboolean.
(g_scanner_add_symbol, g_scanner_remove_symbol,
g_scanner_foreach_symbol): mark these
G__DISABLE_DEPRECATED. (#61469)
* glib/gscanner.c (g_scanner_msg_handler): make third argument gboolean. (#61468)
Matthias Clasen [Mon, 1 Oct 2001 18:19:02 +0000 (18:19 +0000)]
document allowed uses for 'out' parameters.
* glib/tmpl/macros.sgml (G_CONST_RETURN): document
allowed uses for 'out' parameters.
Matthias Clasen [Mon, 1 Oct 2001 18:11:58 +0000 (18:11 +0000)]
consistently refer to GTK+.
* glib/tmpl/caches.sgml, glib/tmpl/datalist.sgml,
glib/tmpl/hash_tables.sgml, glib/tmpl/messages.sgml,
glib/tmpl/misc_utils.sgml: consistently refer to GTK+.
* glib/tmpl/error_reporting.sgml, glib/tmpl/fileutils.sgml,
glib/tmpl/windows.sgml, glib/tmpl/modules.sgml,
glib/tmpl/linked_lists_single.sgml, glib/tmpl/trees-nary.sgml,
glib/tmpl/trees-binary.sgml, glib/tmpl/timers.sgml: Markup fixes.
Sven Neumann [Mon, 1 Oct 2001 17:35:18 +0000 (17:35 +0000)]
glib/gconvert.c glib/gspawn-win32.c some minor documentation fixes.
2001-10-01 Sven Neumann <sven@gimp.org>
* glib/gconvert.c
* glib/gspawn-win32.c
* glib/gspawn.c: some minor documentation fixes.
Matthias Clasen [Sun, 30 Sep 2001 22:49:01 +0000 (22:49 +0000)]
glib/tmpl/arrays.sgml,glib/tmpl/arrays_byte.sgml
glib/tmpl/arrays_pointer.sgml, glib/tmpl/caches.sgml,
glib/tmpl/datalist.sgml, glib/tmpl/date.sgml,
glib/tmpl/datasets.sgml, glib/tmpl/type_conversion.sgml,
glib/tmpl/memory.sgml, glib/tmpl/hash_tables.sgml:
Markup fixes and a few additions.
Alexander Larsson [Sun, 30 Sep 2001 01:08:36 +0000 (01:08 +0000)]
Add build/win32/dirent/Makefile to the list of makefiles
2001-09-29 Alexander Larsson <alla@lysator.liu.se>
* configure.in:
Add build/win32/dirent/Makefile to the list of makefiles
Tor Lillqvist [Sat, 29 Sep 2001 23:19:24 +0000 (23:19 +0000)]
glib/gwin32.c glib/gwin32.h Remove own implementation of dirent functions.
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.
Fatih Demir [Sat, 29 Sep 2001 11:05:33 +0000 (11:05 +0000)]
Updated.
George Lebl [Sat, 29 Sep 2001 09:42:20 +0000 (09:42 +0000)]
cast the string size to gulong and use %lu for printing to avoid 64bit
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.
Matthias Clasen [Sat, 29 Sep 2001 00:21:16 +0000 (00:21 +0000)]
glib/tmpl/macros.sgml, glib/tmpl/macros_misc.sgml,
glib/tmpl/scanner.sgml: Additions and markup fixes.
Owen Taylor [Fri, 28 Sep 2001 23:44:46 +0000 (23:44 +0000)]
Fix macros from libcharset to work with autoconf-2.5x. (From Laszlo
Fri Sep 28 19:41:32 2001 Owen Taylor <otaylor@redhat.com>
* glib/libcharset/* configure.in: Fix macros from libcharset
to work with autoconf-2.5x. (From Laszlo Peter.)
Matthias Clasen [Fri, 28 Sep 2001 21:39:26 +0000 (21:39 +0000)]
glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
Matthias Clasen [Fri, 28 Sep 2001 21:38:02 +0000 (21:38 +0000)]
Fix inline docs for g_string_prepend_unichar.
* glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
Matthias Clasen [Fri, 28 Sep 2001 21:33:14 +0000 (21:33 +0000)]
Documented some functions, markup fixes. New file. Add entity for
* glib/tmpl/warnings.sgml, glib/tmpl/linked_lists_double.sgml,
glib/tmpl/completion.sgml, glib/tmpl/strings.sgml: Documented
some functions, markup fixes.
* glib/tmpl/patterns.sgml: New file.
* glib/glib-docs.sgml: Add entity for patterns.sgml.
Kwok-Koon Cheung [Fri, 28 Sep 2001 21:03:02 +0000 (21:03 +0000)]
Adding double quotes around values in test expression
Stanislav Visnovsky [Fri, 28 Sep 2001 14:13:15 +0000 (14:13 +0000)]
Updated Slovak translation.
2001-09-28 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* sk.po: Updated Slovak translation.
Manish Singh [Thu, 27 Sep 2001 22:22:02 +0000 (22:22 +0000)]
fix typo (#if->#ifdef) so it compiles again.
* glib/grand.c (g_rand_new): fix typo (#if->#ifdef) so it compiles again.
-Yosh
Bruno Haible [Thu, 27 Sep 2001 22:07:00 +0000 (22:07 +0000)]
When the sublangid is SUBLANG_DEFAULT, return the locale of the language's
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.
Owen Taylor [Thu, 27 Sep 2001 19:14:36 +0000 (19:14 +0000)]
Use gssize to match the header. (Reported by Elliot Lee.)
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.)
Tor Lillqvist [Thu, 27 Sep 2001 06:11:48 +0000 (06:11 +0000)]
Oops, actually commit the configure.in change I thought I did in my
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.)
----------------------------------------------------------------------
----------------------------------------------------------------------
Owen Taylor [Thu, 27 Sep 2001 02:49:05 +0000 (02:49 +0000)]
Fixes for #58195, based on some ideas from Hidetosh Tajima.
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.
Matthias Clasen [Wed, 26 Sep 2001 22:00:17 +0000 (22:00 +0000)]
glib/gmem.c (g_mem_is_system_malloc): Return !vtable_set.
docs/reference/glib/glib-sections.txt: Add g_mem_is_system_malloc.
Tor Lillqvist [Wed, 26 Sep 2001 20:35:51 +0000 (20:35 +0000)]
Retract my change earlier today. Don't preset autoconf variables in a try
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.
Owen Taylor [Wed, 26 Sep 2001 19:37:08 +0000 (19:37 +0000)]
Fix distclean to remove some extra files. #60993, Ben Gertzfield
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
Owen Taylor [Wed, 26 Sep 2001 18:39:54 +0000 (18:39 +0000)]
Patch from Andrew Taylor to make much of the unicode table data const so
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.
Owen Taylor [Wed, 26 Sep 2001 16:42:10 +0000 (16:42 +0000)]
Copy if !g_mem_is_system_malloc, not the other way around. (Found by James
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.)
Owen Taylor [Wed, 26 Sep 2001 15:26:44 +0000 (15:26 +0000)]
Use memset; might be faster if someone used this for a biiig string.
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)
Tor Lillqvist [Wed, 26 Sep 2001 06:23:25 +0000 (06:23 +0000)]
One-line fix, wrong variable name was leftover.
Tor Lillqvist [Wed, 26 Sep 2001 06:20:31 +0000 (06:20 +0000)]
Move the Win32 check closer to the start, after the BeOS checks. Preset
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).
Darin Adler [Tue, 25 Sep 2001 23:15:53 +0000 (23:15 +0000)]
Use gboolean for return value of GTraverseFunc.
* glib/gtree.h: Use gboolean for return value of GTraverseFunc.
Pablo Saratxaga [Tue, 25 Sep 2001 19:58:56 +0000 (19:58 +0000)]
updated Catalan file
Matthias Clasen [Tue, 25 Sep 2001 18:13:12 +0000 (18:13 +0000)]
glib/glib-section.txt: Add a missing SECTION endtag. (#61126)
Owen Taylor [Tue, 25 Sep 2001 15:55:39 +0000 (15:55 +0000)]
Version 1.3.9 (binary, interface == 0)
Tue Sep 25 11:34:22 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Version 1.3.9 (binary, interface == 0)
* glib/gstrfuncs.c (g_ascii_strdown): Change g_ascii_strup/strdown
to take a 'len' argument to match g_utf8_strup/strdown. This
hopefully will also make it more obvious that they duplicate
the string rather than acting like g_strup/strdown.
(Suggestion from Matthias Clasen, #59550)
Sebastian Wilhelmi [Tue, 25 Sep 2001 07:17:50 +0000 (07:17 +0000)]
Corrected the array size (cough, cough). Pointed out by
2001-09-25 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* gthread-impl.c: Corrected the array size (cough, cough). Pointed
out by gpablo@intersystems.com.ar. Fixes #61065.
Tor Lillqvist [Tue, 25 Sep 2001 06:03:23 +0000 (06:03 +0000)]
More Win32 automake macros. For .def files: GLIB_DEF, GMODULE_DEF,
2001-09-25 Tor Lillqvist <tml@iki.fi>
* configure.in: More Win32 automake macros. For .def files:
GLIB_DEF, GMODULE_DEF, GOBJECT_DEF and GTHREAD_DEF. For .exp
files: TESTGMODULE_EXP (for programs that need to export symbols,
just testgmodule here). A new conditional, MS_LIB_AVAILABLE to
test whether the Microsoft librarian ("ar") is available to build
MS import libraries.
* glib/Makefile.am
* gmodule/Makefile.am: Use above. New rule to build MS import
library.
* glib/makefile.msc.in
* tests/makefile.msc.in
* tests/makefile.mingw.in: Use same DLL and import library names as
libtool.
gmodule:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* makefile.mingw.in: Fix missing end @ in @LT_CURRENT@.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gobject:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
gthread:
2001-09-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am: Use new macros for .def file, and check for
MS_LIB_AVAILABLE, new rule to build MS import library.
* makefile.msc.in: Use same DLL and import library names as
libtool.
Matthias Clasen [Mon, 24 Sep 2001 21:28:57 +0000 (21:28 +0000)]
glib/gutf8.c, glib/gunibreak.c, glib/gunicollate.c,
glib/gunidecomp.c, glib/guniprop.c: Inline doc consistency fixes.
Stanislav Visnovsky [Mon, 24 Sep 2001 14:29:20 +0000 (14:29 +0000)]
Added "sk" to ALL_LINGUAS. Added Slovak translation.
2001-09-24 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* configure.in: Added "sk" to ALL_LINGUAS.
* po/sk.po: Added Slovak translation.
Fatih Demir [Sun, 23 Sep 2001 21:55:36 +0000 (21:55 +0000)]
Updated ta.po
Pablo Saratxaga [Sun, 23 Sep 2001 17:44:44 +0000 (17:44 +0000)]
updated Azeri file
Andraz Tori [Sat, 22 Sep 2001 23:27:22 +0000 (23:27 +0000)]
Updated Slovenian translation
Andraz Tori [Sat, 22 Sep 2001 21:57:57 +0000 (21:57 +0000)]
Updated Slovenian translation
Hans Breuer [Sat, 22 Sep 2001 19:40:58 +0000 (19:40 +0000)]
simply setting is_readable and is_writeable to TRUE does make Gimp
2001-09-22 Hans Breuer <hans@breuer.org>
* glib/giowin32.c : simply setting is_readable and is_writeable
to TRUE does make Gimp plug-ins work again. Still no API known
to request this info on Win32 (see #57690)
Hans Breuer [Fri, 21 Sep 2001 19:48:59 +0000 (19:48 +0000)]
added rule for glibconfig.h
2001-09-21 Hans Breuer <hans@breuer.org>
* makefile.msc : added rule for glibconfig.h
* glib/giowin32.c (g_io_channel_new_file) : always open
in binary mode
* glib/glib.def : updated externals
* glib/gwin32.c : re-added LANG_* and SUBLANG_* definitions,
which are missing from the msvc 5.0 win32 sdk
* glib/makefile.msc.in : added gbsearcharry
Hans Breuer [Fri, 21 Sep 2001 19:47:26 +0000 (19:47 +0000)]
updated externals
2001-09-21 Hans Breuer <hans@breuer.org>
* gobject.def : updated externals
Owen Taylor [Fri, 21 Sep 2001 00:34:12 +0000 (00:34 +0000)]
Rename g_mem_vtable_is_set() to g_mem_is_system_malloc().
Thu Sep 20 20:33:45 2001 Owen Taylor <otaylor@redhat.com>
* Rename g_mem_vtable_is_set() to g_mem_is_system_malloc().
Tor Lillqvist [Thu, 20 Sep 2001 05:41:52 +0000 (05:41 +0000)]
Accept also forward slashes. (But still don't accept them in the other
2001-09-20 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_path_is_absolute): (Win32:) Accept also forward
slashes. (But still don't accept them in the other functions
here. This is a thorny issue. Windows in fact does treat / like \
on input (at least as local directory separators, dunno about
server/share separators). But GLib only has the one
G_DIR_SEPARATOR value, that apps should scan for, and use when
building pathnames. To properly fix this would require totally
abstracting pathnames, and don't having any path name scanning and
building in applications at all. Fat chance.)
(GLIB_LOCALE_DIR): Redefine only on "pure" Win32, not Cygwin. Use
subdirectory "share\locale", as on Unix.
* glib/gwin32.c: Don't need to define those langiage and
sublanguage constants here, current mingw (w32api) headers have
them.
* glib/glib.def: Add a few missing entry points.
* tests/testglib.c (main): Use same name for DLL as libtool does.
Use G_DIR_SEPARATOR in g_path_get_basename tests.
Owen Taylor [Wed, 19 Sep 2001 20:39:56 +0000 (20:39 +0000)]
Patch from Matthias Clasen (#59806)
Wed Sep 19 14:17:31 2001 Owen Taylor <otaylor@redhat.com>
Patch from Matthias Clasen (#59806)
* configure.in: Check for vasprintf().
Owen Taylor [Wed, 19 Sep 2001 20:39:21 +0000 (20:39 +0000)]
Fix handling of user data when locating sources. (#60414, Katsuhiro Okuno)
Wed Sep 19 16:35:22 2001 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c (g_main_context_find_source_by[_funcs]_user_data):
Fix handling of user data when locating sources.
(#60414, Katsuhiro Okuno)
Owen Taylor [Wed, 19 Sep 2001 18:43:22 +0000 (18:43 +0000)]
Patch from Matthias Clasen (#59806)
Wed Sep 19 14:17:31 2001 Owen Taylor <otaylor@redhat.com>
Patch from Matthias Clasen (#59806)
* configure.in: Check for vasprintf().
* glib/gmem.[ch]: Add g_mem_vtable_is_set() to be used
for efficiency hacks to avoid extra copies when not
needed.
* glib/gstrfuncs.c: Use vasprintf() to implement
g_strdup_printf() when available.
* glib/gmessages.c (g_logv): Avoid using
printf_string_upper_bound() when we have have vsnprintf.
* glib/gmessages.c (printf_string_upper_bound): Don't
segfault when warning about positional parameters.
Owen Taylor [Wed, 19 Sep 2001 18:08:19 +0000 (18:08 +0000)]
Patch from Darin Adler to remove GReal* structures in favor of simple
Wed Sep 19 14:05:27 2001 Owen Taylor <otaylor@redhat.com>
* glib/{gcache.c,gmem.c,grel.c,gstring.c,gtimer.c,gtree}:
Patch from Darin Adler to remove GReal* structures in
favor of simple opaque typedefs in cases where there
were no non-private members. (#59693)
Owen Taylor [Wed, 19 Sep 2001 17:06:14 +0000 (17:06 +0000)]
Handle NUL bytes_written, bytes_read. (Suggested by Joshua N Pritikin,
Wed Sep 19 13:03:38 2001 Owen Taylor <otaylor@redhat.com>
* glib/giochannel.c (g_io_channel_read/write_chars): Handle NUL
bytes_written, bytes_read. (Suggested by Joshua N Pritikin, #59550)
Owen Taylor [Wed, 19 Sep 2001 16:52:20 +0000 (16:52 +0000)]
Handle failure of sysconf and pick a fixed size buffer. (Happens on Cygwin
Wed Sep 19 12:49:11 2001 Owen Taylor <otaylor@redhat.com>
* glib/gutils.c (g_get_any_init): Handle failure of
sysconf and pick a fixed size buffer. (Happens on Cygwin
#60242)
Owen Taylor [Wed, 19 Sep 2001 15:40:38 +0000 (15:40 +0000)]
Error out if gettext support is not found. (#59386)
Wed Sep 19 11:23:41 2001 Owen Taylor <otaylor@redhat.com>
* configure.in: Error out if gettext support is not found. (#59386)
Kjartan Maraas [Wed, 19 Sep 2001 15:09:02 +0000 (15:09 +0000)]
Updated Norwegian (bokmål) translation.
2001-09-19 Kjartan Maraas <kmaraas@gnome.org>
* no.po: Updated Norwegian (bokmål) translation.
Sebastian Wilhelmi [Wed, 19 Sep 2001 12:46:39 +0000 (12:46 +0000)]
Add thread_equal function to allow for platform defined function to
2001-09-19 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* glib/gthread.h (GThreadFunctions): Add thread_equal function to
allow for platform defined function to compare two threads.
* glib/gthread.c: Use g_thread_functions_for_glib_use.thread_equal
when non-NULL instead of ==.
* gthread/gthread-posix.c: Add g_thread_equal_posix_impl and
add to the function vector g_thread_functions_for_glib_use_default.
* gthread/gthread-solaris.c, gthread/gthread-win32.c: Add NULL
as equal function, as on those two platforms you don't need an
equal function.
Tim Janik [Wed, 19 Sep 2001 08:58:31 +0000 (08:58 +0000)]
Released 1.3.8.
Wed Sep 19 10:44:25 2001 Tim Janik <timj@gtk.org>
* Released 1.3.8.
Tim Janik [Wed, 19 Sep 2001 02:12:32 +0000 (02:12 +0000)]
distcheck updates
Tor Lillqvist [Wed, 19 Sep 2001 01:00:52 +0000 (01:00 +0000)]
Correct InternalName and OriginalFilename to match what we actually
2001-09-19 Tor Lillqvist <tml@iki.fi>
* gthread.rc.in: Correct InternalName and OriginalFilename to
match what we actually produce.
Tor Lillqvist [Wed, 19 Sep 2001 01:00:17 +0000 (01:00 +0000)]
Correct InternalName and OriginalFilename to match what we actually
2001-09-19 Tor Lillqvist <tml@iki.fi>
* {gmodule,gobject,gthread.rc.in}: Correct InternalName and
OriginalFilename to match what we actually produce.