diff plugins/perl/common/PluginPref.xs @ 13106:a0a4b44239e8

[gaim-migrate @ 15468] I was reading the gettext man page and it pointed out that it should be typed as const char *, but it's char * to avoid warnings in code predating ANSI C. So, for the heck of it, I changed added a cast in internal.h. As it turns out, there was a lot of code that relied on this. In the interest of type safety, I've fixed all the warnings. I feel this improved a number of function signatures (in terms of typing clarity). Flame me if you object. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 02 Feb 2006 21:34:43 +0000
parents d6df6eb13ecf
children
line wrap: on
line diff
--- a/plugins/perl/common/PluginPref.xs	Thu Feb 02 20:03:17 2006 +0000
+++ b/plugins/perl/common/PluginPref.xs	Thu Feb 02 21:34:43 2006 +0000
@@ -32,7 +32,7 @@
 void
 gaim_plugin_pref_add_choice(pref, label, choice)
 	Gaim::PluginPref pref
-	char *label
+	const char *label
 	gpointer choice
 
 void
@@ -56,7 +56,7 @@
 		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListItem")));
 	}
 
-char *
+const char *
 gaim_plugin_pref_get_label(pref)
 	Gaim::PluginPref pref
 
@@ -68,7 +68,7 @@
 gaim_plugin_pref_get_max_length(pref)
 	Gaim::PluginPref pref
 
-char *
+const char *
 gaim_plugin_pref_get_name(pref)
 	Gaim::PluginPref pref
 
@@ -82,20 +82,20 @@
 
 Gaim::PluginPref
 gaim_plugin_pref_new_with_label(class, label)
-	char *label
+	const char *label
     C_ARGS:
 	label
 
 Gaim::PluginPref
 gaim_plugin_pref_new_with_name(class, name)
-	char *name
+	const char *name
     C_ARGS:
 	name
 
 Gaim::PluginPref
 gaim_plugin_pref_new_with_name_and_label(class, name, label)
-	char *name
-	char *label
+	const char *name
+	const char *label
     C_ARGS:
 	name, label
 
@@ -108,7 +108,7 @@
 void
 gaim_plugin_pref_set_label(pref, label)
 	Gaim::PluginPref pref
-	char *label
+	const char *label
 
 void
 gaim_plugin_pref_set_masked(pref, mask)
@@ -123,7 +123,7 @@
 void
 gaim_plugin_pref_set_name(pref, name)
 	Gaim::PluginPref pref
-	char *name
+	const char *name
 
 void
 gaim_plugin_pref_set_type(pref, type)