Commit Graph

1477 Commits

Author SHA1 Message Date
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
Owen Taylor
49d9628efc Add a function g_pointer_type_register_static() to register a type derived
Sun Nov  4 14:01:23 2001  Owen Taylor  <otaylor@redhat.com>

        * gvaluetypes.[ch]: Add a function g_pointer_type_register_static()
        to register a type derived from G_TYPE_POINTER.
2001-11-04 19:02:10 +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
Hans Breuer
2a4f0c972c gobject-query needs gmarshal.[hc,stings] so build it after them. Add
2001-11-03  Hans Breuer  <hans@breuer.org>

	* makefile.msc.in : gobject-query needs gmarshal.[hc,stings]
	so build it after them. Add gsourceclosure.obj.

	* gobject.def : removed duplicates, added mising
2001-11-03 16:49:27 +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
Andraz Tori
018c5f7d6b Updated Slovenian translation 2001-11-02 00:21:50 +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
Dan Winship
11153df029 Add gmodule-dyld.c
* Makefile.am (EXTRA_DIST): Add gmodule-dyld.c
2001-10-31 16:53:25 +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
Sven Neumann
bece452f40 shut up CVS 2001-10-30 16:55:37 +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
jacob berkman
d59c859aec version of gettextize which uses glib's po/Makefile.in.in and
2001-10-28  jacob berkman  <jacob@ximian.com>

	* glib-gettextize.in: version of gettextize which uses glib's
	po/Makefile.in.in and po2tbl.sed.in, and no longer copies in intl/
	or installs ChangeLog entries in po/ChangeLog

	* configure.in (AC_OUTPUT): generate glib-gettextize

	* Makefile.am (bin_SCRIPTS): install glib-gettextize

2001-10-28  jacob berkman  <jacob@ximian.com>

	* Makefile.in.in: install Makefile.in.in and po2tbl.sed.in for use
	with glib-gettextize by other packages
2001-10-28 16:34:24 +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
319f661027 Add ../* to PATH before running tests to find DLLs.
2001-10-26  Tor Lillqvist  <tml@iki.fi>

	* tests/makefile.msc.in: Add ../* to PATH before running
	tests to find DLLs.
2001-10-25 23:50:50 +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
Havoc Pennington
0628133a11 docs on why the deprecated functions are deprecated.
2001-10-25  Havoc Pennington  <hp@pobox.com>

	* glib/tmpl/string_utils.sgml: docs on why the deprecated
	functions are deprecated.
2001-10-25 14:38:45 +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
Keld Jørn Simonsen
d3cbb4888e Updates glib/po/da.po
Updates
glib/po/da.po
2001-10-21 14:05:58 +00:00
Keld Jørn Simonsen
614917e5fb New translations from Norwegian
glade2/po/da.po glib/po/da.po libbonobo/po/da.po
libbonoboui/po/da.po libgnome/po/da.po libgnomecanvas/po/da.po
libgnomefilesel/po/da.po libgnomeprint/po/da.po
libgnomeui/po/da.po
2001-10-20 21:42:37 +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
Sven Neumann
01b07656ea fixed typo.
2001-10-15  Sven Neumann  <sven@gimp.org>

	* glib/tmpl/random_numbers.sgml: fixed typo.
2001-10-15 15:48:24 +00:00
Matthias Clasen
7df19f4371 Typo fixes.
* glib-genmarshal.1, glib-mkenums.1: Typo fixes.
2001-10-13 22:11:04 +00:00
Stanislav Visnovsky
e4cdbdef60 Updated Slovak translation.
2001-10-13  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>

	* sk.po: Updated Slovak translation.
2001-10-13 17:11:48 +00:00
Valek Frob
ec0c7e4b17 Updated russian translation. 2001-10-13 11:37:12 +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
Stanislav Visnovsky
96bc4f0c3b Updated Slovak translation.
2001-10-12  Stanislav Visnovsky  <visnovsky@nenya.ms.mff.cuni.cz>

	* sk.po: Updated Slovak translation.
2001-10-12 16:56:11 +00:00
Tim Janik
a7cba8a50a cosmetic fixups.
Fri Oct 12 18:40:18 2001  Tim Janik  <timj@gtk.org>

        * cosmetic fixups.
2001-10-12 16:42:48 +00:00