Commit Graph

282 Commits

Author SHA1 Message Date
Tim Janik
89713b8320 behave conservative with G_TOKEN_IDENTIFIER_NULL and always assume
Tue Apr 20 08:42:22 1999  Tim Janik  <timj@gtk.org>

        * gscanner.c (g_scanner_unexp_token): behave conservative with
        G_TOKEN_IDENTIFIER_NULL and always assume scanner->value.v_string
        to be "null" in that case.
1999-04-21 00:57:16 +00:00
Havoc Pennington
dfa88ed86d When using the vsnprintf() implementation, '\0'-terminate the resulting
1999-04-20  Havoc Pennington  <hp@pobox.com>

	* gutils.c (g_vsnprintf):  When using the vsnprintf()
		implementation, '\0'-terminate the resulting string
			and return its length rather than -1.
1999-04-20 19:07:12 +00:00
Owen Taylor
ca97a570cd Added missing #ifdef G_THREADS_ENABLED. (I never liked G_THREADS_ENABLED
Mon Apr 19 13:42:21 1999  Owen Taylor  <otaylor@redhat.com>

	* gmain.c (g_main_iterate): Added missing
	#ifdef G_THREADS_ENABLED. (I never liked G_THREADS_ENABLED in
	the first place)
1999-04-19 17:42:53 +00:00
Havoc Pennington
f5722475f1 When using the vsnprintf() implementation, '\0'-terminate the resulting
1999-04-18  Havoc Pennington  <hp@pobox.com>

	* gutils.c (g_snprintf): When using the vsnprintf()
		implementation, '\0'-terminate the resulting string
			and return its length rather than -1.
1999-04-19 01:05:17 +00:00
Tim Janik
cd49c36373 feature G_TOKEN_EOF as a valid expected token as well, so we get "-
Fri Apr 16 06:52:07 1999  Tim Janik  <timj@gtk.org>

        * gscanner.c (g_scanner_unexp_token): feature G_TOKEN_EOF as a valid
        expected token as well, so we get "- expected end of file" instead of
        "- expected (unknown) token <0>".
1999-04-17 03:38:35 +00:00
CDT 1999 Shawn T. Amundson
3118e37ac8 Released GLib 1.2.2
Tue Apr 13 16:16:14 CDT 1999 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.2.2
1999-04-13 21:24:18 +00:00
Elliot Lee
8611980b6b g_strchug: s/strcpy/memmove/ 1999-04-12 15:22:36 +00:00
Sebastian Wilhelmi
822c785df0 Adjusted the test for an unimplemented getpwuid_r. Info from Michael
1999-04-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Adjusted the test for an unimplemented
	getpwuid_r. Info from Michael Pruett <mikep@ugcs.caltech.edu>.
1999-04-12 09:16:07 +00:00
Tim Janik
7f3b25b0d6 bumped versin number to GLib 1.2.2, interface 2, binary 2.
Sun Apr 11 15:07:34 1999  Tim Janik  <timj@gtk.org>

        * configure.in: bumped versin number to GLib 1.2.2, interface 2,
        binary 2.

        * NEWS: updates.

Sun Apr 11 14:37:06 1999  Tim Janik  <timj@gtk.org>

        * gstrfuncs.c (g_strcasecmp): always check for s1, s2 != NULL.
1999-04-11 14:59:33 +00:00
Tim Janik
1fa161fbb8 removed braces around inline strings for the G_GNUC_FUNCTION and
Sat Apr 10 19:30:50 1999  Tim Janik  <timj@gtk.org>

        * glib.h: removed braces around inline strings for the G_GNUC_FUNCTION
        and G_GNUC_PRETTY_FUNCTION macros, so the macros can be used for compile
        time string concatenation.
1999-04-10 18:55:08 +00:00
Owen Taylor
7c1f07d1ef Check for two threads calling g_main_iterate at once.
Thu Apr  8 19:53:19 1999  Owen Taylor  <otaylor@redhat.com>

	* gmain.c (g_main_iterate): Check for two threads
	calling g_main_iterate at once.

	* gmain.c: If the set of poll file descriptors changes
	during a call to poll(), abort that call, and start
	a new poll. My test program still segfaults
	obscurely on glibc 2.0 (in read()!!!), but now it works on
	glibc 2.1, so I'll blame something else for the other segfault.
1999-04-09 00:03:37 +00:00
Sebastian Wilhelmi
6a1327a2ef Fixed slight bug, that made configure hang on some systems. Please do not
1999-03-31  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Fixed slight bug, that made configure hang on some
	systems. Please do not merge this into 1.3 branch. It's taken care
	of differently there. Info from J. Rhett Aultman
	<cuplan@alley.gator.net>
1999-03-31 12:29:08 +00:00
CST 1999 Shawn T. Amundson
36f6b54fb2 Released GLib 1.2.1
Wed Mar 24 21:23:47 CST 1999 Shawn T. Amundson <amundson@gtk.org>

        * Released GLib 1.2.1

        * README:
          INSTALL:
          NEWS:
          sanity_check: updated

        * glibconfig.h.win32.in:
          Makefile.am:
          docs/glib-config.1.in:
          docs/Makefile.am: Added files used to generate new files.

        * glibconfig.h.win32:
          docs/glib-config.1: Removed, now generated.

        * configure.in: Added to output now-generated files.
1999-03-25 04:04:57 +00:00
Manish Singh
6b1e2b8fed Add user_data to check and prepare functions
-Yosh
1999-03-23 21:44:16 +00:00
Tim Janik
f24c9fb7ef add user_data to the GSource ->check and ->prepare functions, so it can be
Mon Mar 22 03:54:43 1999  Tim Janik  <timj@gtk.org>

        * glib.h:
        * gmain.c: add user_data to the GSource ->check and ->prepare functions,
        so it can be used to e.g. pass a GPollFd.
        (g_main_poll): only add poll records with an events mask != 0 to the
        fd_array. don't even bother calling poll_func() if fds=timeout=0.
        added debugging printouts around poll_func() invokation that can be
        enabled with #define G_MAIN_POLL_DEBUG.
1999-03-23 01:31:47 +00:00
Manish Singh
f41bb461d2 acinclude.m4 config.guess config.sub ltconfig upgrade to libtool 1.2f
* acinclude.m4
* config.guess
* config.sub
* ltconfig
* ltmain.sh: upgrade to libtool 1.2f

* autogen.sh: libtool is not required to autogen glib

* acconfig.h: remove WITH_SYMBOL_UNDERSCORE (not explictly needed)

-Yosh
1999-03-20 00:33:34 +00:00
Sebastian Wilhelmi
849005f98e Fixed another stupid fault of mine: Did s/g_static_/g_private_/g
1999-03-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gmem.c: Fixed another stupid fault of mine: Did
	s/g_static_/g_private_/g
1999-03-18 14:06:43 +00:00
Tim Janik
9f18edbb99 configure.in bumped versin number to GLib 1.2.1, interface 1, binary 1.
Wed Mar 17 03:17:42 1999  Tim Janik  <timj@gtk.org>

        * configure.in bumped versin number to GLib 1.2.1, interface 1,
        binary 1.

        * NEWS: updates.

        * glib.h: added GLIB_CHECK_VERSION() macro similar to
        GTK_CHECK_VERSION().
1999-03-17 02:37:02 +00:00
Tim Janik
dbfd5be9a6 changed a bunch of g_assert() statements to g_return_if_fail().
Sun Mar 14 17:50:35 1999  Tim Janik  <timj@gtk.org>

        * gmem.c (g_mem_chunk_*): changed a bunch of g_assert() statements
        to g_return_if_fail().
        (g_mem_profile):
        (g_mem_chunk_print):
        (g_mem_chunk_info): removed some extraneous "\n"s at the end of the log
        messages.

        * gtimer.c (g_timer_*): changed a bunch of g_assert() statements
        to g_return_if_fail().
        * grel.c (g_*): changed a bunch of g_assert() statements to
        g_return_if_fail() and added some extra ones to check relation != NULL.
1999-03-14 20:03:51 +00:00
Sebastian Wilhelmi
1227e07bd8 Also accept _Pctime_r instead of ctime_r, while seraching for the right
1999-03-12  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

       * configure.in: Also accept _Pctime_r instead of ctime_r, while
       seraching for the right `_REENTRANT' flag. This is for Digital
       UNIX 4.0d. Thanks to Sascha Brawer <sb@adasys.ch>.
1999-03-12 15:15:54 +00:00
Tim Janik
911b6132ea check for working realloc (NULL,). use malloc() for initial allocation on
Tue Mar  9 23:25:50 1999  Tim Janik  <timj@gtk.org>

        * configure.in: check for working realloc (NULL,).
        * gmem.c (g_realloc): use malloc() for initial allocation on systems
        where realloc(NULL,) will not work (this is the case on SunOS, reported
        by Tom Geiger).
1999-03-09 22:31:33 +00:00
Tim Janik
6e6166ddd3 when !hook_list->is_setup, wrap the flag around the call to g_hook_free()
Mon Mar  8 07:42:08 1999  Tim Janik  <timj@gtk.org>

        * ghook.c (g_hook_unref): when !hook_list->is_setup, wrap the
        flag around the call to g_hook_free() to avoid spurious
        warnings (happens during destruction phase).
1999-03-08 21:11:13 +00:00
Sebastian Wilhelmi
45ce5e5c30 Moved G_THREADS_IMPL_POSIX from config.h.win32 to glibconfig.h.win32
1999-03-03  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glibconfig.h.win32, config.h.win32: Moved G_THREADS_IMPL_POSIX
	from config.h.win32 to glibconfig.h.win32

	* acconfig.h, configure.in, config.h.win32: Added test for DCE
	versions of mutex_trylock and cond_timedwait. The win32 versions
	are posix, aren't they?

	* gthread/gthread-posix.c: Fixed broken mutex_trylock and
	slightly broken	cond_timed_wait functions.
1999-03-03 08:47:23 +00:00
Sebastian Wilhelmi
3d0bb121f2 Fixed a stupid cut'n'paste error of mine. Thanks to Friedrich Dominicus
1999-03-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to
	Friedrich Dominicus <Friedrich.Dominicus@inka.de>
1999-03-02 08:17:36 +00:00
Sebastian Wilhelmi
378c2c66df Fixed yet another bloody implementation of getpwuid_r on AIX. Thanks to
1999-03-01  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

        * gutils.c (g_get_any_init): Fixed yet another bloody
        implementation of getpwuid_r on AIX. Thanks to Olaf Dietsche
        <olaf.dietsche+list.gtk@netcologne.de>. I would like a configure
        test better than that, but have no idea, how to do that easily.
1999-03-01 10:17:12 +00:00
Shawn Amundson
a66533dbfa Increment version to 1.2.0.
Increment version to 1.2.0.

-Shawn
amundson@gtk.org
1999-02-25 21:34:25 +00:00
CST 1999 Shawn T. Amundson
b9ef2b41db inserted additional note to look for ChangeLog and AUTHORS file for a log
Wed Feb 24 00:08:42 CST 1999 Shawn T. Amundson <amundson@gtk.org>

        * *.[ch]: inserted additional note to look for ChangeLog and
	  AUTHORS file for a log of modifications.
1999-02-24 06:14:27 +00:00
Michael Fulbright
a9a2206fc6 I've made the spec file autogenerated, and I tweaked it
Dr Mike <drmike@redhat.com>
1999-02-21 18:58:59 +00:00
Tim Janik
af15d082a8 plugged a memory leak, reported by Koen D'Hondt <ripley@xs4all.nl> on 15
Thu Feb 18 08:24:12 1999  Tim Janik  <timj@gtk.org>

        * gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
        <ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.
1999-02-18 08:13:19 +00:00
Elliot Lee
ba2def0aee glib.spec: Do --enable-debug=no for the .rpm's.
glib.spec: Do --enable-debug=no for the .rpm's.
1999-02-18 00:10:04 +00:00
Tor Lillqvist
1dfbfe9823 Must define HAVE_PTHREAD_GETSPECIFIC_POSIX. Pity I didn't notice this
until just after 1.1.16... sigh.
1999-02-17 17:48:17 +00:00
CST 1999 Shawn T. Amundson
95a5574cf4 version=1.1.16
Tue Feb 16 14:08:59 CST 1999 Shawn T. Amundson <amundson@gtk.org>

        * NEWS
          README
          INSTALL
          config.h.win32
          configure.in
          glib.spec
          glibconfig.h.win32
          docs/glib-config.1: version=1.1.16

        * Released GLib 1.1.16
1999-02-16 21:20:13 +00:00
Sebastian Wilhelmi
8168836cd2 Changed signature of all g_static_mutex_* functions to take a pointer
1999-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* glib.h, glibconfig.h.win32, configure.in: Changed signature of
	all g_static_mutex_* functions to take a pointer rather than the
	struct itself. This is not an issue at the moment, because those
	funcs are really macros, but is it un'G'ish and might fall on our
	feet in the future.

	* gthread/testgthread.c (test_mutexes): Use new signature of
	g_static_mutex* functions.
1999-02-15 08:26:00 +00:00
Tim Janik
3f5639a791 default to yes for development trees.
Mon Feb 15 07:45:54 1999  Tim Janik  <timj@gtk.org>

        * configure.in (--enable-debug): default to yes for development trees.
1999-02-15 06:50:15 +00:00
Tim Janik
d31ba84c8e return guints instead of gints for g_hash_table_size and
Mon Feb 15 06:18:58 1999  Tim Janik  <timj@gtk.org>

        * glib.h: return guints instead of gints for g_hash_table_size
        and g_hash_table_foreach_remove.
1999-02-15 05:47:24 +00:00
Tim Janik
0df89d51a4 be more descriptive on unsupported systems.
Wed Feb 10 12:06:30 1999  Tim Janik  <timj@gtk.org>

        * gmodule.c (CHECK_ERROR): be more descriptive on unsupported systems.

Wed Feb 10 12:01:42 1999  Tim Janik  <timj@gtk.org>

        * configure.in: don't reset G_MODULE_IMPL, so it can be overridden
        from the command line.
1999-02-10 11:15:13 +00:00
Sebastian Wilhelmi
58a51cbf5f forgot the ChangeLog. Here we go
forgot the ChangeLog. Here we go
1999-02-10 09:56:40 +00:00
Tim Janik
a8ff1b4fce fixed errernerous code wrt to thread specific error string allocation
Wed Feb 10 07:56:33 1999  Tim Janik  <timj@gtk.org>

        * gmodule.c (g_module_error): fixed errernerous code wrt to thread
        specific error string allocation handling.

Wed Feb 10 06:20:30 1999  Tim Janik  <timj@gtk.org>

        * gmutex.c (g_static_private_set): invoke destroy notifier when
        overwriting values, initialize new array fields with NULL.
        (g_static_private_free_data): do not skip destroy notification for
        data == NULL.

        * gutils.c (g_direct_equal): compare pointer values directly instead
        of just their guint values which is a loosing conversion for
        sizeof(gpointer)==8 systems.
        (g_get_any_init): restructured code so we don't use endless loops like
        while (1), which boil down to an ugly alias for goto.
        strip ,.* from the real name.
1999-02-10 08:06:26 +00:00
Elliot Lee
6c79947722 pools of 128 items instead of 1024 items.
pools of 128 items instead of 1024 items.
1999-02-09 19:25:38 +00:00
Sebastian Wilhelmi
fa5d3b74b0 Changed the test for getpwuid_r to exclude those systems (i.e. IRIX), that
1999-02-08  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in, acconfig.h: Changed the test for getpwuid_r to
	exclude those systems (i.e. IRIX), that set ENOSYS after the call.
	Test, if pthread_getspecific is posix like or something different,
	as on PCThreads.

	* gthread/gthread-posix.c (g_private_get_posix_impl): Use the
	HAVE_PTHREAD_GETSPECIFIC_POSIX macro to determine, which signature
	to use for pthread_getspecific.
1999-02-08 17:14:44 +00:00
Owen Taylor
9071de6fdc Copy all elements of the allocations[] array, including the last. (Pointed
Sun Feb  7 21:56:00 1999  Owen Taylor  <otaylor@redhat.com>

	* gmem.c (g_mem_profile): Copy all elements
	of the allocations[] array, including the last.
	(Pointed out by "Matthew W. Samsonoff" <mws7323@osfmail.isc.rit.edu>)
1999-02-08 02:51:30 +00:00
Sebastian Wilhelmi
28500009d4 Make the error message in case of a broken thread system a bit more
1999-02-05  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Make the error message in case of a broken thread
	system a bit more informative.

	* gutils.c (g_get_any_init): Changed the error logic again, now
	only leaving the memory doubling loop, when success is reached or
	when the user isn't found or when the buffer is 32k big,
	additionally now getpwuid will be run, if getpwuid_r didn't work
	out properly. A warning is issued however.
1999-02-05 16:41:02 +00:00
Tor Lillqvist
319fb3361c Update GLIB_MICRO_VERSION. (Pity it has to be done manually. Hmm.) 1999-02-04 21:53:48 +00:00
Christopher Blizzard
96ebb43e3d change my email address 1999-02-04 14:12:28 +00:00
PST 1999 Shawn T. Amundson
3d2943e0cf version=1.1.15
Thu Feb  4 01:45:01 PST 1999 Shawn T. Amundson <amundson@gtk.org>

        * ChangeLog
          NEWS
          README
          configure.in
          glib.spec
          docs/glib-config.1: version=1.1.15

        * Released GLib 1.1.15
1999-02-04 12:59:35 +00:00
Tor Lillqvist
0221263645 Don't call ensure_stdout_valid (which would open an unneeded console
* gmessages.c (g_log_default_handler): (Win32:) Don't call
  ensure_stdout_valid (which would open an unneeded console window)
  if we're calling a logging function.  Define ensure_stdout_valid
  as an empty macro on Unix.

* gutils.c (g_get_any_init): (Win32:) Trust HOME first if defined,
  then try HOMEDRIVE and HOMEPATH.
1999-02-02 01:24:34 +00:00
Owen Taylor
f26256fe18 Release the main_loop lock around calls to prepare() and check() so that
Mon Feb  1 19:04:28 1999  Owen Taylor  <otaylor@redhat.com>

	* gmain.c (g_main_iterate): Release the main_loop
	 lock around calls to prepare() and check() so
	 that we are not holding the main loop lock
	 over user code.
1999-02-02 01:04:41 +00:00
Sebastian Wilhelmi
87d3468f20 Moved the check for MT save function variants after the determination of
1999-01-30  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Moved the check for MT save function variants
	after the determination of the MT cflags and use them there.
1999-02-01 08:44:24 +00:00
Sebastian Wilhelmi
1432d70585 Fixed typo. Now HPUX 11 thread system detection should work.
1999-01-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

	* configure.in: Fixed typo. Now HPUX 11 thread system detection
	should work.
1999-01-29 13:34:43 +00:00
CST 1999 Shawn T. Amundson
0fc0cf6635 version=1.1.14
Wed Jan 27 23:21:50 CST 1999 Shawn T. Amundson <amundson@gtk.org>

        * INSTALL
          NEWS
          README
          configure.in
          glib.spec
          docs/glib-config.1: version=1.1.14

        * Released GLib 1.1.14
1999-01-28 08:13:30 +00:00