+2005-11-17 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gbacktrace.c:
+ * glib/gdate.c:
+ * glib/gthread.c: const correctness fixes, found
+ by Arjan van de Ven and gcc.
+
2005-11-16 Behdad Esfahbod <behdad@gnome.org>
* docs/reference/glib/tmpl/unicode.sgml: Correct typo on mentioning
+2005-11-17 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gbacktrace.c:
+ * glib/gdate.c:
+ * glib/gthread.c: const correctness fixes, found
+ by Arjan van de Ven and gcc.
+
2005-11-16 Behdad Esfahbod <behdad@gnome.org>
* docs/reference/glib/tmpl/unicode.sgml: Correct typo on mentioning
+2005-11-17 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gbacktrace.c:
+ * glib/gdate.c:
+ * glib/gthread.c: const correctness fixes, found
+ by Arjan van de Ven and gcc.
+
2005-11-16 Behdad Esfahbod <behdad@gnome.org>
* docs/reference/glib/tmpl/unicode.sgml: Correct typo on mentioning
g_on_error_query (const gchar *prg_name)
{
#ifndef G_OS_WIN32
- static const gchar *query1 = "[E]xit, [H]alt";
- static const gchar *query2 = ", show [S]tack trace";
- static const gchar *query3 = " or [P]roceed";
+ static const gchar * const query1 = "[E]xit, [H]alt";
+ static const gchar * const query2 = ", show [S]tack trace";
+ static const gchar * const query3 = " or [P]roceed";
gchar buf[16];
if (!prg_name)
* are counted as in the year 1900.
*/
-static GDateYear twodigit_start_year = 1930;
+static const GDateYear twodigit_start_year = 1930;
/* It is impossible to enter a year between 1 AD and 99 AD with this
* in effect.
void
g_static_mutex_init (GStaticMutex *mutex)
{
- static GStaticMutex init_mutex = G_STATIC_MUTEX_INIT;
+ static const GStaticMutex init_mutex = G_STATIC_MUTEX_INIT;
g_return_if_fail (mutex);
void
g_static_rec_mutex_init (GStaticRecMutex *mutex)
{
- static GStaticRecMutex init_mutex = G_STATIC_REC_MUTEX_INIT;
+ static const GStaticRecMutex init_mutex = G_STATIC_REC_MUTEX_INIT;
g_return_if_fail (mutex);
void
g_static_rw_lock_init (GStaticRWLock* lock)
{
- static GStaticRWLock init_lock = G_STATIC_RW_LOCK_INIT;
+ static const GStaticRWLock init_lock = G_STATIC_RW_LOCK_INIT;
g_return_if_fail (lock);
+2005-11-17 Matthias Clasen <mclasen@redhat.com>
+
+ * glib-genmarshal.c: const correctness fixes, found
+ by Arjan van de Ven and gcc.
+
Tue Nov 1 17:07:43 2005 Tim Janik <timj@imendio.com>
* gsignal.c: allocate signal handlers and handler match structures
FALSE /* symbol_2_token */,
FALSE /* scope_0_fallback */,
};
-static gchar *std_marshaller_prefix = "g_cclosure_marshal";
+static gchar * const std_marshaller_prefix = "g_cclosure_marshal";
static gchar *marshaller_prefix = "g_cclosure_user_marshal";
static GHashTable *marshallers = NULL;
static gboolean gen_cheader = FALSE;