Move a few strings from .data to .rodata.

2005-09-10  Matthias Clasen  <mclasen@redhat.com>

	* gtype.c (INVALID_RECURSION, check_type_name_I): Move a few strings
	from .data to .rodata.
This commit is contained in:
Matthias Clasen 2005-09-10 04:01:03 +00:00 committed by Matthias Clasen
parent 2147c486b0
commit 21bbad188f

View File

@ -74,7 +74,7 @@ static GStaticRWLock type_rw_lock = G_STATIC_RW_LOCK_INIT;
#define G_WRITE_UNLOCK(rw_lock) g_static_rw_lock_writer_unlock (rw_lock) #define G_WRITE_UNLOCK(rw_lock) g_static_rw_lock_writer_unlock (rw_lock)
#endif #endif
#define INVALID_RECURSION(func, arg, type_name) G_STMT_START{ \ #define INVALID_RECURSION(func, arg, type_name) G_STMT_START{ \
static const gchar *_action = " invalidly modified type "; \ static const gchar _action[] = " invalidly modified type "; \
gpointer _arg = (gpointer) (arg); const gchar *_tname = (type_name), *_fname = (func); \ gpointer _arg = (gpointer) (arg); const gchar *_tname = (type_name), *_fname = (func); \
if (_arg) \ if (_arg) \
g_error ("%s(%p)%s`%s'", _fname, _arg, _action, _tname); \ g_error ("%s(%p)%s`%s'", _fname, _arg, _action, _tname); \
@ -583,7 +583,7 @@ check_plugin_U (GTypePlugin *plugin,
static gboolean static gboolean
check_type_name_I (const gchar *type_name) check_type_name_I (const gchar *type_name)
{ {
static const gchar *extra_chars = "-_+"; static const gchar extra_chars[] = "-_+";
const gchar *p = type_name; const gchar *p = type_name;
gboolean name_valid; gboolean name_valid;