Commit Graph

1010 Commits

Author SHA1 Message Date
Sven Neumann
7040de9ee9 perform an exact match on the two types instead of using
2001-12-10  Sven Neumann  <sven@gimp.org>

	* gobject/gvalue.c (g_value_register_transform_func): perform an exact
	match on the two types instead of using transform_func_lookup().
2001-12-10 22:21:50 +00:00
Christopher Blizzard
662bf991c0 Add pragma that will prevent warnings when you are not using -std=99 and
2001-12-09  Christopher Blizzard  <blizzard@redhat.com>

        * glib/gmessages.h: Add pragma that will prevent warnings when you
        are not using -std=99 and newer gcc compilers.  Patch from Red
        Hat's gtk+ 1.2 rpm.
2001-12-09 23:15:35 +00:00
Darin Adler
8c613d7d09 Do the same for "pure".
* glib/gmacros.h: Do the same for "pure".
2001-12-06 22:58:58 +00:00
Matthias Clasen
39e4c5afe8 The following patch corrects some function attributes. (#61780)
The following patch corrects some function attributes. (#61780)

        * glib/ghash.h (g_int_equal, g_int_hash): These are not const.

        * glib/glibintl.h (_glib_gettext): Add G_GNUC_FORMAT(1).

        * glib/gmacros.h: Use reserved symbols in function attribute macros.

        The following patch avoids manual printf()-format parsing
        if a C99-conforming vsnprintf() is available. (#55106)

        * acinclude.m4 (AC_FUNC_VSNPRINTF_C99): New macro to test for a
        C99 conforming vsnprintf.

        * configure.in: Use AC_FUNC_VSNPRINTF_C99.

        * glib/gmessages.c (g_printf_string_upper_bound): Use C99 vsnprintf().
2001-12-06 22:37:05 +00:00
Sven Neumann
5a30ea7ee4 mention the fact that the tree is traversed in sorted order.
2001-12-05  Sven Neumann  <sven@gimp.org>

	* glib/gtree.c (g_tree_foreach): mention the fact that the tree is
	traversed in sorted order.
2001-12-05 01:38:12 +00:00
Manish Singh
7fac2ee037 g_module_symbol takes a gpointer *, not just a gpointer 2001-12-03 20:10:44 +00:00
Manish Singh
88b9c7f902 g_module_symbol takes a gpointer *, not just a gpointer
2001-12-03  Manish Singh  <yosh@gimp.org>

        * tests/module-test.c: g_module_symbol takes a gpointer *, not just
        a gpointer
2001-12-03 19:22:50 +00:00
Havoc Pennington
eb2f6f6fc1 Add notes about how you shouldn't modify these data structures as you
2001-11-29  Havoc Pennington  <hp@redhat.com>

	* glib/gtree.c (g_tree_foreach):
	* glib/ghash.c (g_hash_table_foreach):

	Add notes about how you shouldn't modify these data structures as
	you iterate over them.
2001-11-29 20:49:07 +00:00
Owen Taylor
4790c35c8d Update (#65721, Dave Neary)
Thu Nov 29 11:16:03 2001  Owen Taylor  <otaylor@redhat.com>
	* HACKING: Update (#65721, Dave Neary)
2001-11-29 16:18:50 +00:00
Sebastian Wilhelmi
16b9653830 Fixed wrong order in conversion.
2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gdate.c: Fixed wrong order in conversion.
2001-11-29 09:41:25 +00:00
Owen Taylor
13852a10d4 Rename (private) GSource.id and id parameter to
Wed Nov 28 18:34:22 2001  Owen Taylor  <otaylor@redhat.com>
        * glib/gmain.[ch]: Rename (private) GSource.id and
        id parameter to g_main_context_find_source_by_id()
        to avoid problems with Objective C where 'id' is
        a keyword. (#65616)
2001-11-28 23:51:51 +00:00
Daniel Elstner
f344cb2cc2 In order to avoid infinite loops on invalid UTF-8 strings, change the skip
2001-11-28  Daniel Elstner  <daniel.elstner@gmx.net>
* glib/gutf8.c (utf8_skip_data): In order to avoid infinite loops on invalid UTF-8 strings, change the skip count for 0xfe and 0xff from 0 to 1.
2001-11-28 21:23:32 +00:00
Sebastian Wilhelmi
ddc45b8892 Always call GLIB_SIZEOF(..., system_thread). Fixes #65624.
2001-11-28  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Always call GLIB_SIZEOF(..., system_thread). Fixes
	#65624.
2001-11-28 16:47:26 +00:00
Tor Lillqvist
4964b7d9cb Add GLIB_SIZEOF_SIZE_T here, too.
2001-11-28  Tor Lillqvist  <tml@iki.fi>

	* glibconfig.h.win32.in: Add GLIB_SIZEOF_SIZE_T here, too.
2001-11-27 23:30:07 +00:00
Dan Winship
8049ab4876 Set this from libtool rather than hardcoding values for certain platforms.
* configure.in (G_MODULE_LDFLAGS): Set this from libtool rather
	than hardcoding values for certain platforms.

	* glib/libcharset/config.charset: Add a rule for NetBSD.

	* glib/libcharset/localcharset.c (_g_locale_get_charset_aliases):
	If LIBCHARSET_ALIAS_DIR is set, look for charset.aliases there.

	* tests/Makefile.am (TESTS_ENVIRONMENT): set LIBCHARSET_ALIAS_DIR
	so we don't depend on charset.aliases having been installed
2001-11-27 17:31:12 +00:00
Matthias Clasen
e409b5ae5e Implement G_LEVEL_ORDER correctly.
* glib/gnode.c (g_node_traverse): Implement G_LEVEL_ORDER correctly.

        * tests/node-test.c: Add a testcase for G_LEVEL_ORDER implementation.

        * glib/tmpl/trees-nary.sgml: Document G_LEVEL_ORDER better.
2001-11-26 19:08:46 +00:00
Matthias Clasen
e446298113 Mark g_tree_traverse() as deprecated. (#65343)
* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)

        * glib/gtree.c (g_tree_traverse): Explain the deprecation in
        some detail.
2001-11-26 19:01:08 +00:00
Tim Janik
ff3ecc745d provide GLIB_SIZEOF_SIZE_T.
Mon Nov 26 09:42:24 2001  Tim Janik  <timj@gtk.org>

        * configure.in: provide GLIB_SIZEOF_SIZE_T.
2001-11-26 09:19:17 +00:00
Jesus Bravo Alvarez
a8a91e438f Added Galician translation 2001-11-25 23:24:51 +00:00
Hans Breuer
70f846285f added -Zm400 to DEPCFLAGS to avoid : gunidecomp.h(5846) : fatal error
2001-11-23  Hans Breuer  <hans@breuer.org>

	* glib/makefile.msc.in : added -Zm400 to DEPCFLAGS to avoid :
	gunidecomp.h(5846) : fatal error C1076: compiler limit :
	internal heap limit reached; use /Zm to specify a higher limit

	* glibconfig.h.win32.in : added recommended pragma list for
	msvc again. They are an invaluable help of letting the
	compiler catch bugs.
2001-11-23 15:59:30 +00:00
Owen Taylor
1009e61ff1 Version 1.3.11
Thu Nov 22 13:56:55 2001  Owen Taylor  <otaylor@redhat.com>

        * Version 1.3.11
2001-11-22 19:36:31 +00:00
Owen Taylor
4ab50f038b Version 11, interface, binary age 0.
Thu Nov 22 13:14:18 2001  Owen Taylor  <otaylor@redhat.com>

        * configure.in (GLIB_MICRO_VERSION): Version 11,
        interface, binary age 0.

        * NEWS: Updated.

        * tests/Makefile.am (libmoduletestplugin_[ab]_la_LDFLAGS):
        Add dummy -rpath argument. On some (but not all) platforms,
        libtool will only build a convenience library without this.
        (#63486, Dan Winship)

        * Makefile.am (EXTRA_DIST): Add README.in, INSTALL.in -
        autoconf-2.5x checks for 'make dist' in the tarball
        when you make distcheck.

        * glib/Makefile.am (EXTRA_DIST): Distribute
        makefile.msc/mingw.in, glib.rc.in.

        * tests/patterntest.c: Include string.h.

        * glib/gpattern.c (g_utf8_reverse): doc parsing fix.
2001-11-22 18:56:12 +00:00
Tim Janik
aafb9e4ba9 use g_type_check_is_value_type() instead of g_type_value_table_peek().
Thu Nov 22 03:30:57 2001  Tim Janik  <timj@gtk.org>

        * gvalue.h (G_TYPE_IS_VALUE): use g_type_check_is_value_type()
        instead of g_type_value_table_peek().

        * gtype.[hc] (type_check_is_value_type_U): speed up check
        LOCK-less by caching lookups in node->mutatable_has_value_table.

        * gtype.[hc]: removed locks where possible. partly based on
        patches from owen and alex.
2001-11-22 03:20:07 +00:00
Tor Lillqvist
2410616200 Set G_LOG_DOMAIN as in Makefile.am.
2001-11-21  Tor Lillqvist  <tml@iki.fi>

	* glib/makefile.mingw.in (DEFINES): Set G_LOG_DOMAIN as in
	Makefile.am.

gobject:

2001-11-22  Tor Lillqvist  <tml@iki.fi>

	* makefile.mingw.in (DEFINES): Set G_LOG_DOMAIN as in Makefile.am.

	* gparamspecs.h (GOBJECT_VAR): Can't use GLIB_VAR here, as that
	makes sense only when building libglib. GOBJECT_VAR is similar for
	libgobject.

	* gobject.def: Add g_param_spec_types, remove
	g_type_fundamental_branch_last.
2001-11-21 22:01:50 +00:00
Owen Taylor
2bbd00a263 Patch from Andrew Taylor to optimize the decomposition table to eliminate
Tue Nov 20 20:54:25 2001  Owen Taylor  <otaylor@redhat.com>
	* glib/gunidecomp.[ch] glib/gen-unicode-tables.pl: Patch
	from Andrew Taylor to optimize the decomposition table
	to eliminate relocations and save space. (#64982)
2001-11-21 01:57:10 +00:00
Hans Breuer
6425f5453d remove g_log_domain_glib usage/export
2001-11-18  Hans Breuer  <hans@breuer.org>

	* glib/glib.def :
	* glib/makefile.msc.in : remove g_log_domain_glib usage/export

	* tests/makefile.msc.in : add iochannel-test
2001-11-18 15:30:53 +00:00
Owen Taylor
d244f3b079 missed changelog entry 2001-11-18 12:49:29 +00:00
Owen Taylor
5852eace66 Include gtypes.h not gobject/gtype.h
Sat Nov 17 14:10:35 2001  Owen Taylor  <otaylor@redhat.com>

	* glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h

	* glib/glib-object.h gobject/*.h: Prevent headers from
	being included directly except when compiling GObject.

	* gobject/gvaluecollector.h: Include glib-object.h so that
	this file can be included directly, since we don't
	include it _from_ glib-object.h.

	* gobject/gtype.c: Remove struct _GValue hack since we
	now include glib/gvaluecollector.h which simply pulls in
        glib-object.h.
2001-11-18 00:38:48 +00:00
Matthias Clasen
50c2504186 Documentation fixes.
* glib/giochannel.c: Documentation fixes.

        * glib/tmpl/iochannels.sgml: Document GIOFlags, fix typos.

        * glib/tmpl/conversions.sgml, glib/tmpl/unicode.sgml,
        glib/tmpl/spawn.sgml, glib/tmpl/fileutils.sgml,
        glib/tmpl/shell.sgml, glib/tmpl/windows.sgml: Add
        some missing short and long descriptions.
2001-11-15 23:03:29 +00:00
Takayuki KUSANO
2a66b244b2 Added "ja" to ALL_LINGUAS. Added Japanese translation.
* configure.in: Added "ja" to ALL_LINGUAS.
	* po/ja.po: Added Japanese translation.
2001-11-15 08:21:45 +00:00
Michael Meeks
33904bdc6d set the fd before using it.
2001-11-15  Michael Meeks  <michael@ximian.com>

	* glib/giounix.c (g_io_channel_unix_new): set the fd
	before using it.
2001-11-15 00:13:52 +00:00
Tor Lillqvist
da611e7cec Add back mainloop-test here, too.
2001-11-15  Tor Lillqvist  <tml@iki.fi>

	* tests/makefile.{mingw,msc}.in (TESTS): Add back mainloop-test
	here, too.

	* tests/Makefile.am: Remove leftover comment that claimed
	mainloop-test is removed.

2001-11-15  Tor Lillqvist  <tml@iki.fi>

	* gobject.def: Reflect recent changes.
2001-11-14 23:41:54 +00:00
Matthias Clasen
a49a78a3b3 add UTF-8 support.
* glib/gpattern.c: add UTF-8 support.

        * tests/patterntest.c: add UTF-8 and equality tests.

        * docs/reference/glib/Makefile.am (MKDB_OPTIONS): Add --sgml-mode.

        * docs/reference/glib/tmpl/patterns.sgml: Document UTF-8 support.
2001-11-14 22:22:34 +00:00
Tim Janik
79208c7cf6 provide g_newa(ctype, count) on top of g_alloca() like we provide g_new()
Wed Nov 14 07:34:24 2001  Tim Janik  <timj@gtk.org>

        * glib/galloca.h (g_newa): provide g_newa(ctype, count) on top of
        g_alloca() like we provide g_new() on top of g_malloc().
2001-11-14 07:50:12 +00:00
Owen Taylor
917026269e Patch from Andrew Taylor to improve tables and reduce relocations by using
Tue Nov 13 21:25:35 2001  Owen Taylor  <otaylor@redhat.com>

	* glib/{gen-unicode-tables.pl,gunibreak.c,gunibreak.h,
	gunichartables.h, gunicomp.h, gunidecomp.[ch],
	guniprop.c}: Patch from Andrew Taylor to improve
	tables and reduce relocations by using indices
	rather than pointers. (#64433)

	* tests/unicode-normalize.c (main): Fix for changes
	to g_strsplit().
2001-11-14 02:32:45 +00:00
Darin Adler
113d5e1d74 Fix max_tokens == 1 case to match documentation. Add tests.
* glib/gstrfuncs.c: (g_strsplit): Fix max_tokens == 1 case to
	match documentation.
	* tests/strfunc-test.c: (main): Add tests.

	* tests/.cvsignore: Recently-added test.
2001-11-13 00:02:30 +00:00
Tim Janik
115366f663 G_TOKEN_ERROR is also an end of stream condition.
Mon Nov 12 03:01:28 2001  Tim Janik  <timj@gtk.org>

        * glib/gscanner.c (g_scanner_eof): G_TOKEN_ERROR is also an end
        of stream condition.
2001-11-12 14:11:30 +00:00
Tor Lillqvist
b1aa75e9c3 Also share/glib-2.0.
2001-11-10  Tor Lillqvist  <tml@iki.fi>

	* glib-zip.in (DEVZIP): Also share/glib-2.0.
2001-11-11 12:53:36 +00:00
Tor Lillqvist
23de741c29 Add a couple of languages that have LANG_* codes in newest headers, just
2001-11-09  Tor Lillqvist  <tml@iki.fi>

	* glib/gwin32.c (g_win32_getlocale): Add a couple of languages
	that have LANG_* codes in newest headers, just for completeness.
2001-11-09 21:21:27 +00:00
Wang Jian
01103fab04 *** empty log message *** 2001-11-08 13:49:31 +00:00
Tor Lillqvist
4da724f88b Don't define LANG_AZERI etc in case those aren't defined in the headers
2001-11-08  Tor Lillqvist  <tml@iki.fi>

	* glib/gwin32.c: Don't define LANG_AZERI etc in case those aren't
	defined in the headers (MSVC 5.0).
	(g_win32_getlocale): Instead, surround uses of those with
	#ifdef. Those MSVC 5.0 users that want to build a GLib that
	recognizes those languages should download the Platform SDK and
	use the headers from it.

2001-11-07  Peter Williams  <peterw@ximian.com>

	* glib/gdir.c (g_dir_read_name): Return NULL when done reading.
2001-11-08 06:47:33 +00:00
Tor Lillqvist
012e1fd539 Use -mwindows.
2001-11-06  Tor Lillqvist  <tml@iki.fi>

	* glib/Makefile.am (gspawn_win32_helper_LDFLAGS): Use -mwindows.
2001-11-06 06:38:36 +00:00
Tor Lillqvist
89fa66b5fd Minor edits.
2001-11-05  Tor Lillqvist  <tml@iki.fi>

	* README.win32: Minor edits.

	* glib-zip.in: Build separate runtime and developer packages.

	* glib/libcharset/config.charset (os): Don't need to match mingw
	after all, the charset.alias file isn't even used on Win32... (see
	localcharset.c).

	* glib/makefile.mingw.in: Add gdir.

	* glib/glib.def: Add g_dir_* entry points.
2001-11-05 20:40:14 +00:00
Owen Taylor
ff6174aedd Add check for dirent.h
Sun Nov  4 20:45:21 2001  Owen Taylor  <otaylor@redhat.com>

	* configure.in (CFLAGS): Add check for dirent.h

	* glib/glib.h glib/Makefile.am: Add gdir.

	* glib/gdir.c (g_dir_close): Couple of small tweaks
	now that it is actually compiling...
2001-11-05 01:47:31 +00:00
Owen Taylor
ae86dd0c4b Indentation fixes, some rewriting of docs to conform to gtk-doc standard.
Sun Nov  4 20:29:31 2001  Owen Taylor  <otaylor@redhat.com>

        * glib/gdir.[ch]: Indentation fixes, some rewriting of docs to
        conform to gtk-doc standard.

        * glib/gdir.[ch] (g_dir_close): Remove the boolean
        return value. What would you do if closing failed?
        What would the user do if you printed a warning
        message "closing directory %d failed"?
2001-11-05 01:35:30 +00:00
Hans Breuer
3a86505c77 simplified wrapper around dirent functions to improve portability of
2001-11-04  Hans Breuer  <hans@breuer.org>

	* glib/gdir.[hc] : (new files) simplified wrapper around dirent
	functions to improve portability of downstream libs/apps
	* glib/makefile.msc.in : use them
	* glib/glib.def : export them
	* config.h.win32.in : needing HAVE_DIRENT_H defined
2001-11-05 01:15:38 +00:00
Tor Lillqvist
90bb210e1e On Win32, create separate .exp file for module-test.o and link with that.
2001-11-04  Tor Lillqvist  <tml@iki.fi>

	* tests/Makefile.am: On Win32, create separate .exp file for
	module-test.o and link with that. Otherwise the GNU linker doesn't
	export the g_clash_func.
2001-11-03 23:19:25 +00:00
Hans Breuer
5981d6fe6b static correctness
2001-11-03  Hans Breuer  <hans@breuer.org>

	* glib/giowin32.c : static correctness

	* glib/gwin32.c : some more #if defined (SUBLANG_* ...
	(g_win32_get_package_installation_subdirectory) use g_build_filename
	instead of duplicating its logic

	* glib/glib.def : removed duplicates, added mising, removed
	compat cruft
2001-11-03 16:51:10 +00:00
Tim Janik
748d5c0449 remove public signal.h include.
Fri Nov  2 19:54:16 2001  Tim Janik  <timj@gtk.org>

        * glib/gbacktrace.h (G_BREAKPOINT): remove public signal.h include.
2001-11-02 18:56:51 +00:00
Owen Taylor
3481763c97 Recurse with may_block = FALSE, so we don't get into the pathology where
Thu Nov  1 21:48:43 2001  Owen Taylor  <otaylor@redhat.com>

        * tests/mainloop-test.c (recurser_idle): Recurse
        with may_block = FALSE, so we don't get into
        the pathology where the recurser_idle recurses
        for 10 iterations, and the only thing that is
        running is the recurser idle, which adds
        another recursion for each of those 10 iterations
        and....

        * tests/mainloop-test.c (create_crawler): Fix race
        condition where a crawler source could be destroyed
        before it was added to the crawler array.

        * test/Makefile.am: Add mainloop-test back.
2001-11-02 02:56:08 +00:00
Marius Andreiana
5e70b13b2a Added ro (Romanian) to ALL_LINGUAS added
2001-11-01  Marius Andreiana  <mandreiana@yahoo.com>

        * configure.in: Added ro (Romanian) to ALL_LINGUAS
	* po/ro.po: added
2001-11-01 13:45:55 +00:00
Havoc Pennington
24915b9a10 fix to the locking so we don't hang
2001-10-31  Havoc Pennington  <hp@redhat.com>

	* glib/gmain.c (g_main_loop_run): fix to the locking so we don't
	hang
2001-11-01 00:01:50 +00:00
Sebastian Wilhelmi
eb1df47d71 Make --with-threads=none mean, that we want thread support, but no default
2001-10-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Make --with-threads=none mean, that we want thread
	support, but no default thread implementation. This also was the
	original intention, but disapeared around 1998... So it doesn't
	seem to be the most requested feature, but we went far to make it
	possible in the code, so I resurrected this feature.

	* INSTALL.in: Describe the --enable-gc-friendly, --disable-threads
	and --with-threads options of configure.
2001-10-31 15:40:52 +00:00
Sebastian Wilhelmi
5cdbc63e47 Use the right conditional (G_THREADS_ENABLED instead of G_THREAD_ENABLED).
2001-10-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gmain.c (g_main_context_acquire, g_main_context_release,
	g_main_context_wait): Use the right conditional (G_THREADS_ENABLED
	instead of G_THREAD_ENABLED). Also remove wrong
	return-statement. Unfortunately mainloop-test still does fail. Many
	thanks to Andrea Fazekas <fazek@ludens.elte.hu> for spotting
	this. (#63455)
2001-10-31 13:49:53 +00:00
Matthias Clasen
eb17b20bd2 Fix documentation. Document g_log_domain_glib, gunichar, gunichar2,
* gobject/gsourceclosure.c (g_source_set_closure): Fix documentation.
        * glib/tmpl/messages.sgml, glib/tmpl/unicode.sgml:
        Document g_log_domain_glib, gunichar, gunichar2, GUnicodeType,
        GUnicodeBreakType.
2001-10-30 23:56:30 +00:00
Tor Lillqvist
a0781a1747 New file, used to build distribution packages for Windows.
2001-10-30  Tor Lillqvist  <tml@iki.fi>

	* glib-zip.in: New file, used to build distribution packages for
	Windows.

	* configure.in: Expand it.

	* Makefile.am: Distribute it.

	* config.h.win32.in: Update to match currently produced config.h
2001-10-29 22:33:34 +00:00
Daniel Egger
062ecaf1ed Fix non-Intel/-Alpha version of the G_BREAKPOINT macro to include
2001-10-29  Daniel Egger  <degger@fhm.edu>

	* glib/gbacktrace.h: Fix non-Intel/-Alpha version of the
	G_BREAKPOINT macro to include <signal.h> and use SIGTRAP.

	* glib/gmessages.c: Conditionalise definition of args2
	depending on the definition of HAVE_VSNPRINTF to avoid
	compiler warning.

	* gobject/testgruntime.c
	* tests/patterntest.c: Include <string.h> to avoid warnings.
2001-10-29 18:49:28 +00:00
Owen Taylor
227ae2a96c Don't try to use PKG_CONFIG when we didn't find it. (#62944, Eric Lemings)
Mon Oct 29 11:29:37 2001  Owen Taylor  <otaylor@redhat.com>

        * m4macros/glib-2.0.m4: Don't try to use PKG_CONFIG
        when we didn't find it. (#62944, Eric Lemings)

        * m4macros/glib-2.0.m4: Fix problem with spaces around =
        sign in assignment. (#63209, Arkadiusz Miskiewicz)
2001-10-29 16:48:40 +00:00
Owen Taylor
404bb824c9 Generate glib-mkenums from glib-mkenums.in, substituting in path to perl.
Mon Oct 29 11:05:15 2001  Owen Taylor  <otaylor@redhat.com>

	* glib-mkenums.in: Generate glib-mkenums from glib-mkenums.in,
	substituting in path to perl.  (#63093, Dan Winship)

	* Makefile.am (bin_SCRIPTS): Remove hack to copy glib-mkenums
	from srcdir.

Mon Oct 29 10:59:36 2001  Owen Taylor  <otaylor@redhat.com>

	* configure.in: Check for path to Perl, add gobject/glib-mkenums
2001-10-29 16:13:36 +00:00
Owen Taylor
a25517548c Dist ref-add.sin, ref-del.sin. (#63092, Dan Winship)
Mon Oct 29 10:55:12 2001  Owen Taylor  <otaylor@redhat.com>

	* glib/libcharset/Makefile.am (EXTRA_DIST): Dist
	ref-add.sin, ref-del.sin. (#63092, Dan Winship)
2001-10-29 15:58:58 +00:00
Sebastian Wilhelmi
7f7a422ce5 Conditionalize thread related calls. (#63091)
2001-10-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib/gmain.c (g_main_loop_quit): Conditionalize thread related
	calls. (#63091)
2001-10-29 11:09:53 +00:00
Tor Lillqvist
9c35df3de3 Add missing g_pattern_match_simple and g_pattern_spec_equal.
2001-10-28  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Add missing g_pattern_match_simple and
	g_pattern_spec_equal.

	* glib/gwin32.c (g_win32_get_package_installation_subdirectory):
	Set separator correctly.

	* glib/libcharset/config.charset (os): Match also mingw*.

	* tests/testglib.c (main): (Win32): Print the lib/locale
	subdirectory, as that is what actually gets used.
2001-10-28 21:05:03 +00:00
Owen Taylor
11609462b4 Remove $(srcdir)/html before building HTML to prevent stale files. Dist
Fri Oct 26 11:42:50 2001  Owen Taylor  <otaylor@redhat.com>

	* */Makefile.am: Remove $(srcdir)/html before building
	HTML to prevent stale files. Dist all files in html/
2001-10-26 15:58:11 +00:00
Tor Lillqvist
982edff615 Don't default to win32 thread implementation on Cygwin. The gthread-win32
2001-10-26  Tor Lillqvist  <tml@iki.fi>

	* configure.in: Don't default to win32 thread implementation on
	Cygwin. The gthread-win32 implementation really is for Win32 with
	MS runtime only. Let configure find pthreads when configuring for
	Cygwin.
2001-10-26 05:38:32 +00:00
Tor Lillqvist
3729dc28ad Update.
2001-10-26  Tor Lillqvist  <tml@iki.fi>

	* glib/glib.def: Update.

	* tests/makefile.{mingw,msc}.in: Add ../* to PATH before running
	tests to find DLLs. Separate the interactive tests, don't run them
	in the check target.

	* */makefile.msc.in: Include make.msc from GLib's build directory.
2001-10-25 23:40:38 +00:00
Tor Lillqvist
7d9167402b Updates.
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.
2001-10-25 22:59:20 +00:00
Owen Taylor
2b4a6e0a88 Version 1.3.10, interface age, binary age = 0.
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.
2001-10-25 18:51:58 +00:00
Alex Larsson
3c39c8fcd0 Add g_strtod & co.
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.
2001-10-24 18:00:11 +00:00
Tor Lillqvist
b0facb3863 Typo: GLIB_MICRO_VERSION and GLIB_MINOR_VERSION were swapped.
2001-10-23  Tor Lillqvist  <tml@iki.fi>

	* config.h.win32.in: Typo: GLIB_MICRO_VERSION and
	GLIB_MINOR_VERSION were swapped.
2001-10-23 20:19:50 +00:00
Tor Lillqvist
0c9c94c6e1 Remove G_HARDCODED_PATH_WRAPPER, Owen didn't like it.
2001-10-23  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.h: Remove G_HARDCODED_PATH_WRAPPER, Owen didn't like
 	it.

	* glib/gutils.c: Instead, expand it on Win32 as
 	_glib_get_locale_dir(), and #define GLIB_LOCALE_DIR as a call to
 	it.
2001-10-23 09:26:54 +00:00
Tor Lillqvist
3984621bd3 Add macros G_WIN32_DLLMAIN_FOR_DLL_NAME and G_HARDCODED_PATH_WRAPPER.
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.
2001-10-22 23:19:19 +00:00
Tor Lillqvist
a0b08581c0 Typo.
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.
2001-10-22 22:24:11 +00:00
Tor Lillqvist
20af1ed309 If we have built the MSVC import library, install it. Install the gcc
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.
2001-10-22 22:14:26 +00:00
Tor Lillqvist
c9ffda7cd7 Fix test for lib.exe. Can't set ms_librarian before calling AC_CHECK_PROG,
2001-10-19  Tor Lillqvist  <tml@iki.fi>

	* configure.in: Fix test for lib.exe. Can't set ms_librarian
	before calling AC_CHECK_PROG, as it doesn't actually check
	anything if the result variable has been preset...
2001-10-19 20:22:15 +00:00
Sebastian Wilhelmi
144cb923dd 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)
2001-10-19 08:09:22 +00:00
Tor Lillqvist
73c99a0f64 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.
2001-10-18 21:07:29 +00:00
Hidetoshi Tajima
5641d7107e Fix a typo: to_codeset => from_codeset. (#58195, #55152)
* glib/gconvert.c (g_iconv_open):
	Fix a typo: to_codeset => from_codeset.
	(#58195, #55152)
2001-10-17 16:58:26 +00:00
Tim Janik
92dfa96114 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.
2001-10-13 05:54:10 +00:00
Raja R Harinath
858b18bdca (ac_cv_sizeof_long_long): Avoid '==' and '-a' in 'test's.
Please read the 'autoconf' manual on writing portable tests.
2001-10-11 05:15:46 +00:00
Joshua N Pritikin
dbf99df7e3 Remove G_HAVE_GINT64 conditionalization.
* glib/gmessages.c glib/gtypes.h: Remove G_HAVE_GINT64
conditionalization.
2001-10-11 03:06:49 +00:00
Joshua N Pritikin
04e753ab88 Un-conditionalize and require a 64-bit integer type.
* configure.in: Un-conditionalize and require a 64-bit integer
type.
2001-10-11 02:43:40 +00:00
Raja R Harinath
6af5ba071d Avoid 'test -a'. 2001-10-05 01:36:56 +00:00
Matthias Clasen
e0e9ddd68c Documentation update.
* glib/gwin32.c: Documentation update.
2001-10-04 22:23:03 +00:00
Havoc Pennington
3af43e9b09 add config.charset
2001-10-04  Havoc Pennington  <hp@redhat.com>

	* glib/libcharset/Makefile.am (EXTRA_DIST): add config.charset
2001-10-04 19:33:01 +00:00
Tor Lillqvist
7ede4e5066 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.
2001-10-03 20:19:13 +00:00
Matthias Clasen
d761fb4b3b 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.
2001-10-02 23:09:51 +00:00
Sven Neumann
c414f5c1b4 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().
2001-10-02 12:13:14 +00:00
Alex Larsson
5c75cc9617 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
2001-10-01 20:40:05 +00:00
Owen Taylor
ce83d7fb82 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.)
2001-10-01 20:27:04 +00:00
Tor Lillqvist
194d67c8b6 Documentation cleanups. (#61487)
2001-10-01  Tor Lillqvist  <tml@iki.fi>

	* glib/gwin32.c: Documentation cleanups. (#61487)
2001-10-01 18:54:27 +00:00
Matthias Clasen
56d0914111 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)
2001-10-01 18:21:57 +00:00
Sven Neumann
7282810dd9 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.
2001-10-01 17:35:18 +00:00
Alexander Larsson
d398a176e1 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
2001-09-30 01:08:36 +00:00
Tor Lillqvist
e4e2fc5134 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.
2001-09-29 23:19:24 +00:00
George Lebl
46aae08e8d 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.
2001-09-29 09:42:20 +00:00
Owen Taylor
b6d8893eb7 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.)
2001-09-28 23:44:46 +00:00
Matthias Clasen
4baa1e16de Fix inline docs for g_string_prepend_unichar.
* glib/gstring.c: Fix inline docs for g_string_prepend_unichar.
2001-09-28 21:38:02 +00:00
Kwok-Koon Cheung
5ce4dc1857 Adding double quotes around values in test expression 2001-09-28 21:03:02 +00:00
Manish Singh
a002781b6d fix typo (#if->#ifdef) so it compiles again.
*  glib/grand.c (g_rand_new): fix typo (#if->#ifdef) so it compiles again.

-Yosh
2001-09-27 22:22:02 +00:00
Bruno Haible
34462896a0 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.
2001-09-27 22:07:00 +00:00