platform/upstream/glib.git
24 years agoglib.h New functions for conversion between UTF-8 and the encoding
Tor Lillqvist [Wed, 2 Feb 2000 23:39:32 +0000 (23:39 +0000)]
glib.h New functions for conversion between UTF-8 and the encoding

2000-02-01  Tor Lillqvist  <tml@iki.fi>

* glib.h
* gstrfuncs.c (g_filename_to_utf8, g_filename_from_utf8): New
functions for conversion between UTF-8 and the encoding expected
by C runtime functions like open() and stat(), and returned by
readdir().

Implement them on Win32 where we use the system "ANSI" codepage,
which might be single-byte or double-byte. On Unix, just skip the
issue for now and provide dummy implementations that return a copy
of the argument.

* README.win32
* build-dll
* glib.def: Minor updates.

24 years agog_bit_nth_lsf/msf docs from Nils Rennebarth <nils@ipe.uni-stuttgart.de>,
Damon Chaplin [Thu, 27 Jan 2000 22:14:26 +0000 (22:14 +0000)]
g_bit_nth_lsf/msf docs from Nils Rennebarth <nils@ipe.uni-stuttgart.de>,

2000-01-25  Damon Chaplin  <damon@karuna.freeserve.co.uk>

        * tmpl/misc_utils.sgml: g_bit_nth_lsf/msf docs from
         Nils Rennebarth <nils@ipe.uni-stuttgart.de>, and updates for
        GVoidFunc & GFreeFunc.

24 years agos/current_time/dispatch_time/ for the dispatch() handlers. refetch the
Tim Janik [Wed, 26 Jan 2000 04:29:06 +0000 (04:29 +0000)]
s/current_time/dispatch_time/ for the dispatch() handlers. refetch the

Wed Jan 26 05:24:38 2000  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gmain.c: s/current_time/dispatch_time/ for the dispatch() handlers.
        refetch the current time after invocation of poll() to cover up for
        the time spent in that function call.

24 years agoAdded G_N_ELEMENTS macro to determine the number of elements in an array.
Owen Taylor [Fri, 21 Jan 2000 15:27:39 +0000 (15:27 +0000)]
Added G_N_ELEMENTS macro to determine the number of elements in an array.

Fri Jan 21 10:18:24 2000  Owen Taylor  <otaylor@redhat.com>

* glib.h (G_N_ELEMENTS): Added G_N_ELEMENTS macro to determine
the number of elements in an array.

24 years ago[FIXME: On NetBSD, dlsym() doesn't set errno != 0 when the system cannot be
Martin Baulig [Thu, 13 Jan 2000 22:11:39 +0000 (22:11 +0000)]
[FIXME: On NetBSD, dlsym() doesn't set errno != 0 when the system cannot be
        found; this leads to an incorrect return value of g_module_symbol.]

2000-01-13  Martin Baulig  <martin@home-of-linux.org>

* gmodule.c (g_module_open): Check whether `check_init' is not NULL
before we attempt to call it.

24 years agocorrectly fetch the current locale, fix from owen.
Tim Janik [Sun, 9 Jan 2000 10:58:55 +0000 (10:58 +0000)]
correctly fetch the current locale, fix from owen.

Sun Jan  9 13:28:36 2000  Tim Janik  <timj@gtk.org>

        * gstrfuncs.c (g_strtod): correctly fetch the current locale,
        fix from owen.

24 years agoUse FormatMessage to translate system error codes into textual messages.
Tor Lillqvist [Thu, 16 Dec 1999 20:29:12 +0000 (20:29 +0000)]
Use FormatMessage to translate system error codes into textual messages.

1999-12-16  Tor Lillqvist  <tml@iki.fi>

* gmodule/gmodule-win32.c: Use FormatMessage to translate system
error codes into textual messages.

24 years agoRemoved G_THREADS_IMPL_NSPR. Shouldn't be used anyway.
Sebastian Wilhelmi [Thu, 2 Dec 1999 14:32:41 +0000 (14:32 +0000)]
Removed G_THREADS_IMPL_NSPR. Shouldn't be used anyway.

1999-12-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib-sections.txt, tmpl/threads.sgml: Removed
G_THREADS_IMPL_NSPR. Shouldn't be used anyway.

* glib-overrides.txt: New file, that makes most of the thread
related macros look like functions.

* Makefile.am: Added glib-overrides.txt to EXTRA_DIST.

* tmpl/threads.sgml: Minor updates.

24 years agoThis of course should return TRUE in a program with a thread-disabled
Sebastian Wilhelmi [Thu, 25 Nov 1999 13:47:55 +0000 (13:47 +0000)]
This of course should return TRUE in a program with a thread-disabled

1999-11-25  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib.h (G_TRYLOCK): This of course should return TRUE in a
program with a thread-disabled GLib.

24 years agog_strjoin was missing.
Tor Lillqvist [Thu, 18 Nov 1999 22:15:51 +0000 (22:15 +0000)]
g_strjoin was missing.

1999-11-18  Tor Lillqvist  <tml@iki.fi>

* glib.def: g_strjoin was missing.

24 years agoupdated .cvsignore
Sebastian Wilhelmi [Tue, 16 Nov 1999 12:30:49 +0000 (12:30 +0000)]
updated .cvsignore

24 years agoRenamed GLIB_SIZEOF_PTHREAD_T to GLIB_SIZEOF_SYSTEM_THREAD to reflect
Sebastian Wilhelmi [Tue, 16 Nov 1999 10:30:25 +0000 (10:30 +0000)]
Renamed GLIB_SIZEOF_PTHREAD_T to GLIB_SIZEOF_SYSTEM_THREAD to reflect

1999-11-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * acconfig.h, config.h.win32.in, configure.in: Renamed
        GLIB_SIZEOF_PTHREAD_T to GLIB_SIZEOF_SYSTEM_THREAD to reflect
        changed meaning.

        * configure.in: Cope with systems, that have a pthread_t type,
        that is not a pointer. Hint from Karl Nelson
        <kenelson@ece.ucdavis.edu>. Define GLIB_SIZEOF_SYSTEM_THREAD to 4
        for Solaris. Cope with systems, that have no default mutex
        initialize, like obviously most DCE systems.

        * glib.h, gthread.c: Changed the prototype of thread_create and
        thread_self to return the system thread into provided memory
        instead of a return value. This is necessary, as HPUX has a
        pthread_t, that is bigger than the biggest integral type there.

        * gthread.c: system_thread is no longer a pointer, but an memory
        area of size GLIB_SIZEOF_SYSTEM_THREAD. Changed the
        zeroinitialization and the tests for zeroness accordingly.

24 years agoChanged the prototype of thread_create and thread_self to return the
Sebastian Wilhelmi [Tue, 16 Nov 1999 10:29:27 +0000 (10:29 +0000)]
Changed the prototype of thread_create and thread_self to return the

1999-11-16  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * gthread-posix.c, gthread-solaris.c: Changed the prototype of
        thread_create and thread_self to return the system thread into
        provided memory instead of a return value. This is necessary, as
        HPUX has a pthread_t, that is bigger than the biggest integral
        type there. Made some more functions static.

        * gthread-posix.c: Small fixes for DCE threads: Detaching has to
        be done after thread creation for DCE.

24 years agoupdated .cvsignore
Sebastian Wilhelmi [Tue, 16 Nov 1999 10:11:45 +0000 (10:11 +0000)]
updated .cvsignore

24 years agoVery minor stuff.
Tor Lillqvist [Sun, 14 Nov 1999 21:48:31 +0000 (21:48 +0000)]
Very minor stuff.

24 years agoMore verbose and up-to-date instructions.
Tor Lillqvist [Wed, 10 Nov 1999 23:08:37 +0000 (23:08 +0000)]
More verbose and up-to-date instructions.

24 years agoForgot to commit ChangeLog. Here we go. (I'm still learning, how to
Sebastian Wilhelmi [Tue, 9 Nov 1999 14:46:56 +0000 (14:46 +0000)]
Forgot to commit ChangeLog. Here we go. (I'm still learning, how to
use PCL-CVS;-)

24 years agoCreate docs/glib-config.1 from docs/glib-config.1.in. Makes 'make
Sebastian Wilhelmi [Tue, 9 Nov 1999 14:45:59 +0000 (14:45 +0000)]
Create docs/glib-config.1 from docs/glib-config.1.in. Makes 'make

1999-11-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Create docs/glib-config.1 from
docs/glib-config.1.in. Makes 'make distcheck' happy (and me too).

* glib-config.1: Removed from CVS, as it is a generated file.

24 years agoMake the test for getpwuid_r work on newer AIX versions, too. Still works
Sebastian Wilhelmi [Mon, 8 Nov 1999 10:02:17 +0000 (10:02 +0000)]
Make the test for getpwuid_r work on newer AIX versions, too. Still works

1999-11-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * configure.in: Make the test for getpwuid_r work on newer AIX
        versions, too. Still works on Solaris and Linux. Patch from Craig
        Rodrigues <rodrigc@mediaone.net>.

24 years agoTypos.
Tor Lillqvist [Mon, 8 Nov 1999 09:49:10 +0000 (09:49 +0000)]
Typos.

24 years agoNew function that returns the message string for a Win32 error code.
Tor Lillqvist [Mon, 8 Nov 1999 09:49:10 +0000 (09:49 +0000)]
New function that returns the message string for a Win32 error code.

2000-03-04  Tor Lillqvist  <tml@iki.fi>

* gwin32.c (g_win32_error_message): New function that returns the
message string for a Win32 error code.

* glib.h: Declare it.

* glib.def: Export it, plus g_node_copy.

* gmodule-win32.c: Call g_win32_error_message() to get the error
message strings.

* libgplugin_a.c
* libgplugin_b.c
* gmodule.c: Remove LibMain functions that were needed by LCC,
which is not a supported compiler.

* testgmodule.c (main): Test for G_MODULE_IMPL ==
G_MODULE_IMPL_WIN32, not G_OS_WIN32.

* gmoduleconf.h.win32: Remove LCC stuff from here, too.

24 years agoLook at env vars LC_ALL, LC_CTYPE and LANG first. Some refinements to the
Tor Lillqvist [Mon, 8 Nov 1999 09:49:10 +0000 (09:49 +0000)]
Look at env vars LC_ALL, LC_CTYPE and LANG first. Some refinements to the

1999-11-08  Tor Lillqvist  <tml@iki.fi>

* gwin32.c (g_win32_getlocale): Look at env vars LC_ALL, LC_CTYPE
and LANG first. Some refinements to the sublanguage logic.

24 years agoAdd gwin32 object. Add rule to make .i (preprocessed source) files.
Tor Lillqvist [Thu, 4 Nov 1999 22:49:19 +0000 (22:49 +0000)]
Add gwin32 object. Add rule to make .i (preprocessed source) files.

1999-11-04  Tor Lillqvist  <tml@iki.fi>

* makefile.{cygwin,msc}.in: Add gwin32 object. Add rule to make .i
(preprocessed source) files.

24 years agoDistribute also gwin32.c
Tor Lillqvist [Mon, 1 Nov 1999 20:47:30 +0000 (20:47 +0000)]
Distribute also gwin32.c

24 years agoglib.h Rename Win32-only functions from gwin_* to g_win32_* to match the
Tor Lillqvist [Mon, 1 Nov 1999 20:46:44 +0000 (20:46 +0000)]
glib.h Rename Win32-only functions from gwin_* to g_win32_* to match the

1999-11-01  Tor Lillqvist  <tml@iki.fi>

* glib.h
* glib.def: Rename Win32-only functions from gwin_* to g_win32_*
to match the GLib naming conventions.

* gutils.c
* gwin32.c
* testglib.c
* makefile.{cygwin,msc}: Move the Win32-only functions to the new
file gwin32.c

24 years agoUse the fix for the g_cache_remove bug from the 1.2 branch instead.
Tor Lillqvist [Sun, 31 Oct 1999 23:03:45 +0000 (23:03 +0000)]
Use the fix for the g_cache_remove bug from the 1.2 branch instead.

24 years agoDon't crash if removing a nonexistent value.
Tor Lillqvist [Sun, 31 Oct 1999 12:15:34 +0000 (12:15 +0000)]
Don't crash if removing a nonexistent value.

1999-10-31  Tor Lillqvist  <tml@iki.fi>

* gcache.c (g_cache_remove): Don't crash if removing a nonexistent
value.

* gutils.c (gwin_getlocale): New Win32-specific function, returns
a Unixish current locale string (en, zh_TW etc).

* glib.h: Declare it.

* glib.def: Export it.

* testglib.c: Test it.

* gmessages.c (Win32: ensure_stdout_valid): Some improvements,
make sure we don't call AllocConsole several times, which I think
has happened.

24 years agoremove g_dataset_global_lock around destroy() notification here as well.
Sebastian Wilhelmi [Sun, 17 Oct 1999 16:04:49 +0000 (16:04 +0000)]
remove g_dataset_global_lock around destroy() notification here as well.

Sun Oct 17 18:11:40 1999  Tim Janik  <timj@gtk.org>

        * gdataset.c (g_data_set_internal): remove g_dataset_global_lock around
        destroy() notification here as well.

1999-10-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * gdataset.c (g_datalist_clear_i): Avoid Freezing, when g_datalist
        is called recursivly. Reported by Ola Andersson <rand@ling.umu.se>.

24 years agoremoved useless g_string(x) macro that cluttered the namespace and was
Tim Janik [Thu, 14 Oct 1999 22:04:24 +0000 (22:04 +0000)]
removed useless g_string(x) macro that cluttered the namespace and was

Tue Oct 12 14:17:12 1999  Tim Janik  <timj@gtk.org>

        * glib.h: removed useless g_string(x) macro that cluttered the namespace
        and was just a poor wrapper around the cpp '#' symbol, use #x if you
        need to work around this.
        added new macro G_STRINGIFY(arg) that will convert arg to a string,
        no matter whether it contains macros or not.

24 years agoDefine the new GLIB_SIZEOF_* constants here, too.
Tor Lillqvist [Tue, 12 Oct 1999 20:46:13 +0000 (20:46 +0000)]
Define the new GLIB_SIZEOF_* constants here, too.

1999-10-12  Tor Lillqvist  <tml@iki.fi>

* config.h.win32.in: Define the new GLIB_SIZEOF_* constants here,
too.

* glib.h: Small Win32 comments improvement.

24 years agocompletly new implementation for printf string upper bounds calculation.
Tim Janik [Tue, 12 Oct 1999 12:08:13 +0000 (12:08 +0000)]
completly new implementation for printf string upper bounds calculation.

Tue Oct 12 12:16:12 1999  Tim Janik  <timj@gtk.org>

        * gmessages.c (g_printf_string_upper_bound): completly new implementation
        for printf string upper bounds calculation.
        we handle all glibc 2.1 format specifiers now, except for positional
        parameters (%nn$...) and wide char strings, plus some obscure upper
        case variants of the standard conversions. this fixes a lot of
        bugs in the old code, i.e.
        - NULL format strings
        - floats with exponents >+24
        - %G
        - precision specifications in general
        - negative field widths
        - %p for SIZEOF_VOID_P > 4 platforms
        we now issue warnigns in places where the old code would have
        caused buffer overruns anyways. warnings are suppressed when invoked
        from glogv(), to avoid infinite recursions if someone passes a log
        message that comes with really obscure format specifications.

Tue Oct 12 11:49:00 1999  Tim Janik  <timj@gtk.org>

        * gstrfuncs.c: nuked old g_printf_string_upper_bound() version.

Tue Oct 12 03:34:40 1999  Tim Janik  <timj@gtk.org>

        * glib.h: added GFloatIEEE754 and GDoubleIEEE754 unions to access sign,
        mantissa and exponent of IEEE floats and doubles (required by the new
        version of g_printf_string_upper_bound). the unions are endian specific,
        we handle G_LITTLE_ENDIAN and G_BIG_ENDIAN as of currently. ieee floats
        and doubles are supported (used for storage) by at least intel, ppc and
        sparc, reference:
        http://twister.ou.edu/workshop.docs/common-tools/numerical_comp_guide/ncg_math.doc.html

Mon Oct 11 18:01:49 1999  Tim Janik  <timj@gtk.org>

        * configure.in: added additional checks to figure sizes of size_t,
        ptrdiff_t and intmax_t (required by g_printf_string_upper_bound).

24 years agoblah. use G_WITH_CYGWIN instead of G_HAVE_CYGWIN
Manish Singh [Wed, 6 Oct 1999 19:45:04 +0000 (19:45 +0000)]
blah. use G_WITH_CYGWIN instead of G_HAVE_CYGWIN

-Yosh

24 years agoUse G_OS_WIN32.
Tor Lillqvist [Tue, 5 Oct 1999 16:21:07 +0000 (16:21 +0000)]
Use G_OS_WIN32.

* tests/string-test.c tests/dirname-test.c: Use G_OS_WIN32.

* glib.def: Add g_thread_use_default_impl.

24 years agoDrop the mapping of POSIX function names to the underscored versions, it's
Tor Lillqvist [Tue, 5 Oct 1999 16:05:38 +0000 (16:05 +0000)]
Drop the mapping of POSIX function names to the underscored versions, it's

* glib.h: (Win32) Drop the mapping of POSIX function names to the
underscored versions, it's unnecessary after all. With MSVC we get
them from oldnames.lib, with gcc-2.95 and mingw32 from
-lmoldname-msvc. Add comment about what headers to include for
prototypes.

24 years agoDon't define WIN32 and NATIVE_WIN32.
Tor Lillqvist [Mon, 4 Oct 1999 23:04:34 +0000 (23:04 +0000)]
Don't define WIN32 and NATIVE_WIN32.

1999-10-05  Tor Lillqvist  <tml@iki.fi>

* glibconfig.h.win32.in: Don't define WIN32 and NATIVE_WIN32.

* gerror.c (g_on_error_query): (Win32) Slightly more verbosity.

* build-dll: Don't strip.

* gmodule.h: (Win32) Use __declspec(dllexport) in G_MODULE_EXPORT
only with gcc.

24 years agouse G_HAVE_CYGWIN in favor of G_OS_FEATURE_CYGWIN
Manish Singh [Mon, 4 Oct 1999 02:48:10 +0000 (02:48 +0000)]
use G_HAVE_CYGWIN in favor of G_OS_FEATURE_CYGWIN

-Yosh

24 years agoG_OS_FOO #defines. I *think* I got the cygwin and beos stuff right, but
Manish Singh [Mon, 4 Oct 1999 02:32:50 +0000 (02:32 +0000)]
G_OS_FOO #defines. I *think* I got the cygwin and beos stuff right, but
I haven't tested it. The respective porters should fix any screwups

-Yosh

24 years agodefine NULL as (0L) if __cplusplus is defined, to avoid "ANSI C++ forbids
Tim Janik [Tue, 21 Sep 1999 23:55:19 +0000 (23:55 +0000)]
define NULL as (0L) if __cplusplus is defined, to avoid "ANSI C++ forbids

Wed Sep 22 01:53:18 1999  Tim Janik  <timj@gtk.org>

        * glib.h (NULL): define NULL as (0L) if __cplusplus is defined, to
        avoid "ANSI C++ forbids implicit conversion from `void *' in argument
        passing" errors upon NULL usage in C++ programs (gcc-2.95 is on crack
        for erroring out on this, instead of just issueing a warning).

        * glib.h (g_trash_stack_pop): use uncasted NULL again.

24 years agoapplied patch from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem
Tim Janik [Fri, 17 Sep 1999 09:02:48 +0000 (09:02 +0000)]
applied patch from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem

Fri Sep 17 10:24:45 1999  Tim Janik  <timj@gtk.org>

        * gmem.c (g_mem_chunk_compute_size) (g_mem_chunk_new): applied patch
        from Soeren Sandmann <sandmann@daimi.au.dk>, to force mem chunk's area
        sizes to be a multitiple of atom_size, and to eliminate the MAX_MEM_AREA
        restriction of 65536 bytes. we also catch cases where users pass an area
        size < atom size with a return_if_fail statement now (which is ok,
        because previously this lead to memory corruption anyways).

24 years agoadd explicit (GTrashStack*) cast for NULL pointer to cure ANSI C++ error.
Tim Janik [Fri, 17 Sep 1999 06:03:09 +0000 (06:03 +0000)]
add explicit (GTrashStack*) cast for NULL pointer to cure ANSI C++ error.

Thu Sep 16 13:19:54 1999  Tim Janik  <timj@gtk.org>

        * glib.h (g_trash_stack_pop): add explicit (GTrashStack*) cast for NULL
        pointer to cure ANSI C++ error.

24 years agoin case we have to abort the program, debugging is enabled and we are not
Tim Janik [Mon, 13 Sep 1999 22:17:27 +0000 (22:17 +0000)]
in case we have to abort the program, debugging is enabled and we are not

Mon Sep 13 23:25:59 1999  Tim Janik  <timj@gtk.org>

        * gmessages.c (g_logv): in case we have to abort the program,
        debugging is enabled and we are not called recursively, try
        to abort with raise (SIGTRAP) first, so developers may ignore
        certain failure conditions during debugging stage.

24 years agoadded --export-dynamic so we can load dynmic modules, (required, according
Tim Janik [Thu, 26 Aug 1999 13:09:50 +0000 (13:09 +0000)]
added --export-dynamic so we can load dynmic modules, (required, according

Thu Aug 26 15:09:36 1999  Tim Janik  <timj@gtk.org>

        * Makefile.am:
        * gmodule/Makefile.am:
        * gthread/Makefile.am: added --export-dynamic so we can load dynmic
        modules, (required, according to the libtool 1.3.3 docu).

24 years agoUse /dev/urandom, as it doesn't block, which /dev/random might do. Do not
Sebastian Wilhelmi [Thu, 19 Aug 1999 08:32:03 +0000 (08:32 +0000)]
Use /dev/urandom, as it doesn't block, which /dev/random might do. Do not

1999-07-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* grand.c (g_rand_new): Use /dev/urandom, as it doesn't block,
which /dev/random might do. Do not XOR the time, when getting the
seed form /dev/urandom, as this is good itself. Prevent the
initial seed from being zero, which causes the PRNG to produce
only zeros. Hints from Colin Plumb <colin@pgp.com>.

24 years agoAdd a cast.
Tor Lillqvist [Tue, 17 Aug 1999 17:41:01 +0000 (17:41 +0000)]
Add a cast.

* glib.h (g_trash_stack_push): Add a cast.

* gslist.c
* glist.c: Make the inline functions static inline, and add
separate extern wrappers. Not all compilers produce callable entry
points for inline functions, even if gcc does.

24 years agoUpdates to .cvsignore.
Owen Taylor [Tue, 17 Aug 1999 12:40:49 +0000 (12:40 +0000)]
Updates to .cvsignore.

24 years agoAdded missing </para> Added missing </para> Added missing </para> Added
Owen Taylor [Tue, 17 Aug 1999 12:39:52 +0000 (12:39 +0000)]
Added missing </para> Added missing </para> Added missing </para> Added

Tue Aug 17 08:42:17 1999  Owen Taylor  <otaylor@redhat.com>

* tmpl/datasets.sgml: Added missing </para>
* tmpl/timers.sgml: Added missing </para>
* tmpl/misc_utils.sgml: Added missing </para>
* tmpl/linked_lists_double.sgml: Added missing </para>
* tmpl/linked_lists_single.sgml: Added missing </para>
* tmpl/threads.sgml: Removed extra <para>s.
* tmpl/main.sgml: Added missing </para>

24 years agoA few more notes about mechanism and policy.
Owen Taylor [Mon, 16 Aug 1999 18:38:22 +0000 (18:38 +0000)]
A few more notes about mechanism and policy.

24 years agoAdded some simple build instructions.
Owen Taylor [Mon, 16 Aug 1999 18:28:01 +0000 (18:28 +0000)]
Added some simple build instructions.

Wed Aug 18 23:38:52 1999  Owen Taylor  <otaylor@redhat.com>

* README: Added some simple build instructions.

Added a .cvsignore

24 years agoInitial import of glib-reference from the RDP.
Owen Taylor [Mon, 16 Aug 1999 17:58:30 +0000 (17:58 +0000)]
Initial import of glib-reference from the RDP.

24 years agoInitial revision
Owen Taylor [Mon, 16 Aug 1999 17:58:30 +0000 (17:58 +0000)]
Initial revision

24 years agoremoved comma
Tim Janik [Mon, 16 Aug 1999 03:36:57 +0000 (03:36 +0000)]
removed comma

24 years agoeliminate memset() call, since string.h has not neccessarily been included
Tim Janik [Sun, 15 Aug 1999 00:58:48 +0000 (00:58 +0000)]
eliminate memset() call, since string.h has not neccessarily been included

Sun Aug 15 02:47:14 1999  Tim Janik  <timj@gtk.org>

        * glib.h (g_trash_stack_pop): eliminate memset() call, since string.h
        has not neccessarily been included prior to glib.h.

Mon Aug  2 21:03:10 1999  Tim Janik  <timj@gtk.org>

        * configure.in: added --enable-msg-prefix option.

        * gmessages.c (g_log_default_handler): feature "prg_name (pid:%u): "
        if --enable-msg-prefix was selected (use "(process:%u): " if
        g_get_prgname () returns NULL, along the lines of g_on_error_query).

24 years agoglib.h gstrfuncs.c Rename g_strccpy to g_strcompress and g_strecpy to
Tor Lillqvist [Mon, 2 Aug 1999 23:16:32 +0000 (23:16 +0000)]
glib.h gstrfuncs.c Rename g_strccpy to g_strcompress and g_strecpy to

* glib.h
* gstrfuncs.c
* tests/strfunc-test.c: Rename g_strccpy to g_strcompress and
g_strecpy to g_strescape per Tim Janik's suggestion. Dropped the
destination parameter, always g_malloc a new string.  Fix bug in
g_strcompress, octal digits were gobbled up without limit, should
use max three.

Sources that use g_strescape must have ifdefs to be compilable
both with GLib 1.2 and 1.3.

24 years agoglib.h the #define for g_strescape interfered with the compilation of the
Manish Singh [Sun, 1 Aug 1999 00:54:14 +0000 (00:54 +0000)]
glib.h the #define for g_strescape interfered with the compilation of the

* glib.h
* gstrfuncs.c: the #define for g_strescape interfered with the
compilation of the function, so just remove the function and
note that it's deprecated in the header

-Yosh

24 years agoNew functions.
Tor Lillqvist [Sat, 31 Jul 1999 21:45:21 +0000 (21:45 +0000)]
New functions.

* gstrfuncs.c (g_strccpy, g_strecpy): New functions.

* glib.h: Declare and document them. Define the deprecated
g_strescape as a macro that calls g_strecpy.

* tests/strfunc-test.c (main): Test them.

* makefile.{cygwin,msc}.in
* tests/makefile.{cygwin,msc}.in: Remove gstack and its test
program.

* glib.def: Additions and removals.

* README.win32: Improve gcc build instructions.

* build-dll: Also build import library for MSVC.

24 years ago18:36. incorporated proposed cleanups from gtk-devel-list.
Tim Janik [Sat, 24 Jul 1999 18:50:58 +0000 (18:50 +0000)]
18:36. incorporated proposed cleanups from gtk-devel-list.

Sat Jul 24 20:11:35 1999  Tim Janik  <timj@gtk.org>

        * merged GLib 1.3.0 with glib-1.2.3 from Fri Jul 16 22:18:36.
        * incorporated proposed cleanups from gtk-devel-list.

        * bumped version number to GLib-1.3.1

        * glib.h:
        * gqueue.c:
        * gstring.c:
        * glist.c:
        removed string tokenisation (we got g_strsplit() and g_strjoin()
        already) and readline functions.
        s/g_list_delete/g_list_delete_link.
        implemented g_slist_delete_link.
        removed notion of g_ATEXIT() macro in glib.h, this is an *internal*
        macro, g_atexit() is provided for public consumption.
        added GTrashStack inline utility functions.
        reimplement double eneded queues.
        removed GStack implementation, people can use a queue or a (singly)
        linked list for this task.
        deprecated g_strescape(), we need the SunOS variants here.

        * gdate.c: added DEBUG_MSG() macro to wrap old messages.

        * *.*: CVS merges.

        * upgrade to libtool 1.3.3.

24 years ago Win32: With the latest gcc (2.95, pre-release), we can have binary
Tor Lillqvist [Wed, 21 Jul 1999 19:18:41 +0000 (19:18 +0000)]
Win32: With the latest gcc (2.95, pre-release), we can have binary
  compatibility with MSVC by using the switch -fnative-struct. No
  longer build DLLs with .gcc in the name when using gcc.

24 years ago Win32: With the latest gcc (2.95, pre-release), we can have binary
Tor Lillqvist [Wed, 21 Jul 1999 19:18:03 +0000 (19:18 +0000)]
Win32: With the latest gcc (2.95, pre-release), we can have binary
  compatibility with MSVC by using the switch -fnative-struct. No
  longer build DLLs with .gcc in the name when using gcc.

* README.win32: Renew gcc build instructions.

* build-dll: Comments change, handle also .a files.

* makefile.cygwin.in
* tests/makefile.cygwin.in: Remove .gcc from DLL name.

24 years agoCorrect URL for mingw runtime sources.
Tor Lillqvist [Mon, 12 Jul 1999 23:11:27 +0000 (23:11 +0000)]
Correct URL for mingw runtime sources.

* README.win32: Correct URL for mingw runtime sources.

* build-dll: Combine commands with &&.

* glib.h: Map also rmdir() and hypot() for MSVCRT library.

* makefile.cygwin.in
* tests/makefile.cygwin.in: New DLL naming style. GCC-compiled DLLs are
  now called *.gcc.dll, to avoid binary incompatibilities with
  MSVC-compiled versions.

* makefile.msc.in: Cosmetics.

24 years agoTest for pthread_join rather than for pthread_create to determine the
Sebastian Wilhelmi [Wed, 7 Jul 1999 12:36:45 +0000 (12:36 +0000)]
Test for pthread_join rather than for pthread_create to determine the

1999-07-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Test for pthread_join rather than for
pthread_create to determine the right thread-lib. Makes it work on
mips-sgi-irix6.5. Hitn from to Jari Vuoksenranta
<javu@piano.ux.phys.jyu.fi>.

24 years ago*** empty log message ***
Tor Lillqvist [Fri, 2 Jul 1999 21:41:48 +0000 (21:41 +0000)]
*** empty log message ***

24 years agoREADME.win32: Note about fixing another bug in the mingw32 headers.
Tor Lillqvist [Fri, 2 Jul 1999 21:33:02 +0000 (21:33 +0000)]
README.win32: Note about fixing another bug in the mingw32 headers.
makefile.msc.in: Turn on debugging with nmake variable.

24 years agoAdded a g_memmove replacement for platforms without memmove, where bcopy
Sebastian Wilhelmi [Thu, 1 Jul 1999 09:30:18 +0000 (09:30 +0000)]
Added a g_memmove replacement for platforms without memmove, where bcopy

1999-07-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in, acconfig.h, gutils.c: Added a g_memmove
replacement for platforms without memmove, where bcopy can't
handle overlapping copies and the corresponding checks, which is
taken form the PERL Configure routine.

* glib.h: Updated the commentary about g_memmove to be right and
more GLib-like.

* configure.in: Removed test for rand_r, as it isn't used anymore.

24 years agoFinally removed the g_random_normal and g_rand_normal functions.
Sebastian Wilhelmi [Wed, 30 Jun 1999 08:10:01 +0000 (08:10 +0000)]
Finally removed the g_random_normal and g_rand_normal functions.

1999-06-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib.h, grand.c: Finally removed the g_random_normal and
g_rand_normal functions.

24 years agoAdd missing export of g_strncasecmp.
Tor Lillqvist [Mon, 28 Jun 1999 06:53:43 +0000 (06:53 +0000)]
Add missing export of g_strncasecmp.

* glib.def: Add missing export of g_strncasecmp.

24 years agoDistribute the build-dll script also. Add some comments about it.
Tor Lillqvist [Mon, 28 Jun 1999 06:06:34 +0000 (06:06 +0000)]
Distribute the build-dll script also. Add some comments about it.

24 years agoMore spec file cleanups from Jose Mercado of Jose Mercado fame.
Jose Mercado [Mon, 21 Jun 1999 23:07:58 +0000 (23:07 +0000)]
More spec file cleanups from Jose Mercado of Jose Mercado fame.

1999-06-21  Jose Mercado  <jmercado@mit.edu>

* glib.spec.in: Changed version number (1.1->1.3) in files section
to allow rpm to build packages again.

24 years agoUpdate the pthreads snapshot version we want. Advice how to hand-expand
Tor Lillqvist [Sun, 20 Jun 1999 22:20:43 +0000 (22:20 +0000)]
Update the pthreads snapshot version we want. Advice how to hand-expand

* README.win32: Update the pthreads snapshot version we want.
Advice how to hand-expand the makefile.*.in files.

* config.h.win32.in: Define values needed by Sebastian Wilhelmi's
new thread stuff.

* glib.def: Add new functions.

* glibconfig.h.win32.in: Update the pthreads snapshot version.
Fix typo.

* gthread.c: Include config.h, guard inclusion of unistd.h.  When
  using gcc on Win32, g_thread_functions_for_glib_use must be marked
  for export here, too.

* gtimer.c: Implement g_usleep on native Win32 using Sleep (which
only has millisecond granularity, though).

* makefile.cygwin.in
* makefile.msc.in: Update pthreads snapshot version. File
name changes. Remove testgthread.

* tests/makefile.cygwin.in
* tests/makefile.msc.in: Add thread-test. Link with gthread lib.

* gthread-posix.c: Guard pthread_attr_setscope call with test
for _POSIX_THREAD_PRIORITY_SCHEDULING, which should be defined
in a <pthread.h> that supports that feature.

24 years agoRe-order tests in alpha order.
Jeff Garzik [Fri, 18 Jun 1999 16:36:25 +0000 (16:36 +0000)]
Re-order tests in alpha order.

1999-06-18  Jeff Garzik  <jgarzik@pobox.com>

        * tests/Makefile.am:  Re-order tests in alpha order.

24 years agoChanged test for pthread_attr_setstacksize from AC_TRY_COMPILE to
Sebastian Wilhelmi [Fri, 18 Jun 1999 07:19:38 +0000 (07:19 +0000)]
Changed test for pthread_attr_setstacksize from AC_TRY_COMPILE to

1999-06-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Changed test for pthread_attr_setstacksize from
AC_TRY_COMPILE to AC_TRY_LINK.

24 years agosmall tests/.cvsignore commit
Sebastian Wilhelmi [Thu, 17 Jun 1999 15:47:52 +0000 (15:47 +0000)]
small tests/.cvsignore commit

small tests/.cvsignore commit

24 years agoCompleted the thread support in GLib. Thread creation, prioritizing
Sebastian Wilhelmi [Thu, 17 Jun 1999 15:39:31 +0000 (15:39 +0000)]
Completed the thread support in GLib. Thread creation, prioritizing

1999-06-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in, acglib.m4, acconfig.h, glib.h, gthread.c:
Completed the thread support in GLib. Thread creation,
prioritizing threads, yielding, joining threads as well as
reader/writer locks and recursive mutexes are now in place. Please
test heavily on your platform. It is so far tested on
Linux/i386/pthreads, Solaris/Sparc/pthreads and
Solaris/Sparc/solaristhreads.

* gtimer.c, glib.h: Implement g_usleep (gulong microseconds) for
thread safe sleeping. (sleep() is not MT-safe at all!)

* gutils.c: Avoid compiler warning.

* tests/Makefile.am, tests/thread-test.c: New program to test some
aspects of the thread implementation.

* gthread.c, Makefile.am: Renamed from gmutex.c to reflect the
change of content.

* configure.in: Purged all appearances of nspr.

* gthread/gthread-posix.c, gthread-solaris.c: Added the native
implementations for the GLib's extended thread support.

* gthread/gthread-nspr.c: Removed for good. NSPR is nothing we
would want to build upon.

* gthread/gthread.c: Renamed to gthread-impl.c to avoid
confusion with ../gthread.c (Formerly known as the file called
gmutex.c)

* gthread/testgthread.c: Removed. The new and much extended
        tests are in ../tests/thread-test.c.

* gthread/Makefile.am: Changed to reflect the changes above.

24 years agolibtool 1.3.2 (BeOS changes merged)
Manish Singh [Wed, 2 Jun 1999 18:43:45 +0000 (18:43 +0000)]
libtool 1.3.2 (BeOS changes merged)

-Yosh

25 years agoMisc editing.
Tor Lillqvist [Sat, 29 May 1999 10:37:28 +0000 (10:37 +0000)]
Misc editing.

25 years agoBackslashify also '"' characters.
Tor Lillqvist [Sat, 29 May 1999 10:28:06 +0000 (10:28 +0000)]
Backslashify also '"' characters.

* gstrfuncs.c (g_strescape): Backslashify also '"' characters.

* glib.h: Document g_strescape.

25 years agoMap fileno to _fileno for mingw32. Map fstat to _fstat.
Tor Lillqvist [Wed, 12 May 1999 18:59:49 +0000 (18:59 +0000)]
Map fileno to _fileno for mingw32. Map fstat to _fstat.

* glib.h (Win32): Map fileno to _fileno for mingw32. Map fstat to
  _fstat.

* README.win32: Advice also to remove -lmoldname from the
  patch to the egcs-1.1.2 spec file patch.

25 years agoAnother small fix.
CDT 1999 Shawn T. Amundson [Wed, 12 May 1999 05:27:34 +0000 (05:27 +0000)]
Another small fix.

Wed May 12 00:23:55 CDT 1999 Shawn T. Amundson <amundson@gtk.org>

        * gmodule/Makefile.am: Another small fix.

25 years agoCorrect rules for making the win32-related files that are made from
Tor Lillqvist [Sat, 8 May 1999 14:14:32 +0000 (14:14 +0000)]
Correct rules for making the win32-related files that are made from

* Makefile.am tests/Makefile.am: Correct rules for making the
win32-related files that are made from corresponding .in files.
Is there a cleaner way than explicitly writing rules that invoke
config.status?

25 years agoBetter testing reveals better methods. Fixes for BeOS.
CDT 1999 Shawn T. Amundson [Sat, 8 May 1999 11:04:26 +0000 (11:04 +0000)]
Better testing reveals better methods. Fixes for BeOS.

Sat May  8 06:00:17 CDT 1999 Shawn T. Amundson <amundson@gtk.org>

        * configure.in
          gmodule/Makefile.am
          gthread/Makefile.am: Better testing reveals better
          methods.  Fixes for BeOS.

25 years agoSmall typo...
Tor Lillqvist [Sat, 8 May 1999 08:43:58 +0000 (08:43 +0000)]
Small typo...

25 years agoMore Win32 port documentation. (No ChangeLog entry. Is that OK in
Tor Lillqvist [Sat, 8 May 1999 08:42:47 +0000 (08:42 +0000)]
More Win32 port documentation. (No ChangeLog entry. Is that OK in
this case?)

25 years agoPort to BeOS by myself and Richard Offer.
CDT 1999 Shawn T. Amundson [Sat, 8 May 1999 07:40:44 +0000 (07:40 +0000)]
Port to BeOS by myself and Richard Offer.

Sat May  8 01:52:29 CDT 1999 Shawn T. Amundson <amundson@gtk.org>

        * configure.in
          gerror.c
          gmain.c
          gstrfuncs.c
          gutils.c
          ltconfig
          ltmain.sh
          gmodule/Makefile.am
          gmodule/gmodule.c
          gmodule/gmoduleconf.h.in
          gmodule/gmodule-beos.c
          gthread/Makefile.am: Port to BeOS by myself and Richard Offer.

25 years agoNew files, used to generate corresponding non-.in files when making a
Tor Lillqvist [Thu, 6 May 1999 17:33:15 +0000 (17:33 +0000)]
New files, used to generate corresponding non-.in files when making a

* makefile.msc.in makefile.cygwin.in glibconfig.h.win32.in
  config.h.win32.in tests/makefile.msc.in tests/makefile.cygwin.in:
  New files, used to generate corresponding non-.in files when
  making a dist. This is just so the version numbers will be kept in
  synch automatically.

* configure.in: Also substitute @GLIB_MAJOR_VERSION@,
  @GLIB_MINOR_VERSION@, and @GLIB_INTERFACE_AGE@.

* Makefile.am tests/Makefile.am: Also distribute makefile.cygwin.

* gerror.c (g_on_error_query): On Win32, put up a MessageBox and
  then exit.

* glib.def: Add a couple of functions.

25 years agolibtool 1.3 upgrade
Manish Singh [Sat, 1 May 1999 18:00:00 +0000 (18:00 +0000)]
libtool 1.3 upgrade

use -avoid-version and -module for test plugins

-Yosh

25 years agoMinor details fixed.
Tor Lillqvist [Sun, 25 Apr 1999 20:54:55 +0000 (20:54 +0000)]
Minor details fixed.

25 years agoMore editing. Use gcc, not ld to link. On native Win32 use _unlink(). Use
Tor Lillqvist [Sun, 25 Apr 1999 20:52:42 +0000 (20:52 +0000)]
More editing. Use gcc, not ld to link. On native Win32 use _unlink(). Use

* README.win32: More editing.
* build-dll: Use gcc, not ld to link.
* glib.h: On native Win32 use _unlink().
* gscanner.c: Use corrent NATIVE_WIN32 feature test macro,
not _MSC_VER.
* gstring.c: Include <io.h> on Win32 for _read prototype.
* gutils.c: Remove old IO channel code (was in #if 0).
* makefile.cygwin: Don't need to link with kernel32 and msvcrt
explicitly, they are included anyway.

25 years ago Support added for building using a GNU toolchain on Win32,
Tor Lillqvist [Sat, 24 Apr 1999 13:52:51 +0000 (13:52 +0000)]
Support added for building using a GNU toolchain on Win32,
i.e. gcc -mno-cygwin on cygwin (a.k.a. mingw32, using egcs-1.1.2).

* README.win32: Updated.
* build-dll makefile.cygwin tests/makefile.cygwin: New files.
* glib.h glib.def glibconfig.h.win32 makefile.msc: Slight updates.
* gmain.c: No need to include <fcntl.h> and <io.h> on Win32.
* gmain.c gutils.c testglib.c tests/string-test.c: Test for
NATIVE_WIN32, not _MSC_VER.
* gmutex.c: Must declare g_thread_functions_for_glib_use as
exported (using the GUTILS_C_VAR macro).
* gutils.c gmodule/libgplugin_[ab].c: LibMain not needed.
* gmodule/gmoduleconf.h.win32: Need underscore with gcc.
* gthread/gthread.c: With gcc on Win32, must use memcpy to assign
value of g_thread_functions_for_glib_use (?).
* makefile.msc tests/makefile.msc: Cosmetics.

25 years agoFix typo in g_string_ncasecmp macro (by me). Add b_string_strncasecmp
BST 1999 Tony Gale [Fri, 23 Apr 1999 13:34:09 +0000 (13:34 +0000)]
Fix typo in g_string_ncasecmp macro (by me). Add b_string_strncasecmp

Fri Apr 23 14:29:25 BST 1999  Tony Gale <gale@gtk.org>

        * glib.h: Fix typo in g_string_ncasecmp macro (by me).
          Add b_string_strncasecmp macro.

25 years agouse sysconf (_SC_GETPW_R_SIZE_MAX) as the new initinal bufsize for
Sebastian Wilhelmi [Thu, 22 Apr 1999 13:16:10 +0000 (13:16 +0000)]
use sysconf (_SC_GETPW_R_SIZE_MAX) as the new initinal bufsize for

1999-04-22  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gutils.c (g_get_any_init): use sysconf (_SC_GETPW_R_SIZE_MAX) as
the new initinal bufsize for getpwuid_r on systems, that support
this. Hint from Holger Duerer <H.Duerer@zait.uni-bremen.de>.

25 years agoadd gmodule-os2.c
Asbjørn Pettersen [Mon, 19 Apr 1999 06:44:56 +0000 (06:44 +0000)]
add gmodule-os2.c

25 years agoAdd new g_string functions for reading from file/socket descriptors, and
BST 1999 Tony Gale [Sat, 17 Apr 1999 20:04:49 +0000 (20:04 +0000)]
Add new g_string functions for reading from file/socket descriptors, and

Sat Apr 17 20:55:13 BST 1999  Tony Gale <gale@gtk.org>

        * glib.h, gstring.c: Add new g_string functions for reading
          from file/socket descriptors, and tokenising strings.

          Added various g_string macros.

25 years agoMention the tests directory.
Tor Lillqvist [Tue, 13 Apr 1999 21:05:08 +0000 (21:05 +0000)]
Mention the tests directory.

* README.win32: Mention the tests directory.

* glib.def: Add the functions from grand.c.

* glibconfig.h.win32: Add unsigned max values, and the format
  strings.

* makefile.msc: Add grand.

* tests/{date-test,node-test}.c: Include <stdlib.h> for exit().

* tests/makefile.msc: New file.

25 years agoMoved struct declaration up. Style fixes.
Sebastian Wilhelmi [Mon, 12 Apr 1999 12:53:37 +0000 (12:53 +0000)]
Moved struct declaration up. Style fixes.

1999-04-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib.h: Moved struct declaration up. Style fixes.

* grand.c: Style fixes. Only try to open /dev/random once.

* tests/rand-test.c (main): New tests; Slight bug fix.

25 years agobe quiet cvs
Jeff Garzik [Sun, 11 Apr 1999 00:34:06 +0000 (00:34 +0000)]
be quiet cvs

25 years agoNew files to implement the Mersenne Twister Pseudo Random Number
Sebastian Wilhelmi [Fri, 9 Apr 1999 14:40:58 +0000 (14:40 +0000)]
New files to implement the Mersenne Twister Pseudo Random Number

1999-04-09  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* grand.c, tests/rand-test.c: New files to implement the Mersenne
Twister Pseudo Random Number Generator.

* glib.h, AUTHORS, Makefile.am, tests/Makefile.am: Changed
accordingly.

25 years agoIncrement some version numbers, add warning to configure. GLIB_1_3_0
Shawn Amundson [Fri, 9 Apr 1999 02:16:39 +0000 (02:16 +0000)]
Increment some version numbers, add warning to configure.

Increment some version numbers, add warning to configure.

-Shawn
amundson@gtk.org

25 years agoAdd G_MODULE_IMPL_OS2
Asbjørn Pettersen [Wed, 7 Apr 1999 18:17:38 +0000 (18:17 +0000)]
Add G_MODULE_IMPL_OS2

25 years agoUse the right default arguments for the construction of mutexes and conds
Sebastian Wilhelmi [Wed, 31 Mar 1999 09:28:59 +0000 (09:28 +0000)]
Use the right default arguments for the construction of mutexes and conds

1999-03-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gthread/gthread-posix.c: Use the right default arguments for the
construction of mutexes and conds for dce threads, these are
&pthread_(cond|mutex)attr_default instead of NULL. Hint from
D. Emilio Grimaldo Tunon <emilio_tunon@nl.compuware.com>.

25 years agoAdded a check for the right format to printf and scanf long longs. It is
Sebastian Wilhelmi [Tue, 30 Mar 1999 14:25:50 +0000 (14:25 +0000)]
Added a check for the right format to printf and scanf long longs. It is

1999-03-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in: Added a check for the right format to printf and
scanf long longs. It is %qi instead of %lli on FreeBSD for
whatever reason.

25 years agoMake sure `glibconfig.h' exists after the rule is fired.
Raja R Harinath [Mon, 29 Mar 1999 00:02:37 +0000 (00:02 +0000)]
Make sure `glibconfig.h' exists after the rule is fired.

* Makefile.am (glibconfig.h): Make sure `glibconfig.h' exists
after the rule is fired.
(install-exec-local): Install glibconfig.h only if the contents
are different from the currently installed glibconfig.h.