changeset 12780:c886fc7e3f24

[gaim-migrate @ 15127] Some more whitespace. I promise I'll get to real commits sooner or later. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Mon, 09 Jan 2006 06:45:16 +0000
parents a09027e9d159
children ab65ade2e93f
files plugins/perl/common/Log.xs plugins/perl/common/Prefs.xs
diffstat 2 files changed, 69 insertions(+), 83 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/perl/common/Log.xs	Mon Jan 09 06:34:03 2006 +0000
+++ b/plugins/perl/common/Log.xs	Mon Jan 09 06:45:16 2006 +0000
@@ -3,22 +3,21 @@
 MODULE = Gaim::Log  PACKAGE = Gaim::Log  PREFIX = gaim_log_
 PROTOTYPES: ENABLE
 
-int 
+int
 gaim_log_common_sizer(log)
 	Gaim::Log log
 
-void 
+void
 gaim_log_common_writer(log, ext)
 	Gaim::Log log
 	const char *ext
 
-
-gint 
+gint
 gaim_log_compare(y, z)
 	gconstpointer y
 	gconstpointer z
 
-void 
+void
 gaim_log_free(log)
 	Gaim::Log log
 
@@ -31,10 +30,10 @@
 void
 gaim_log_get_log_sets()
 PREINIT:
-        GHashTable *l;
+	GHashTable *l;
 PPCODE:
-        l = gaim_log_get_log_sets(); 
-        XPUSHs(sv_2mortal(gaim_perl_bless_object(l, "GHashTable")));
+	l = gaim_log_get_log_sets();
+	XPUSHs(sv_2mortal(gaim_perl_bless_object(l, "GHashTable")));
 
 void
 gaim_log_get_logs(type, name, account)
@@ -42,13 +41,13 @@
 	const char *name
 	Gaim::Account account
 PREINIT:
-        GList *l;
+	GList *l;
 PPCODE:
-        for (l = gaim_log_get_logs(type, name, account); l != NULL; l = l->next) {
-                XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
-        }
+	for (l = gaim_log_get_logs(type, name, account); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
+	}
 
-int 
+int
 gaim_log_get_size(log)
 	Gaim::Log log
 
@@ -56,42 +55,40 @@
 gaim_log_get_system_logs(account)
 	Gaim::Account account
 PREINIT:
-        GList *l;
+	GList *l;
 PPCODE:
-        for (l = gaim_log_get_system_logs(account); l != NULL; l = l->next) {
-                XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
-        }
+	for (l = gaim_log_get_system_logs(account); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
+	}
 
-int 
+int
 gaim_log_get_total_size(type, name, account)
 	Gaim::LogType type
 	const char *name
 	Gaim::Account account
 
-void 
+void
 gaim_log_init()
- 
 
-void 
+void
 gaim_log_logger_free(logger)
 	Gaim::Log::Logger logger
 
 void
 gaim_log_logger_get_options()
 PREINIT:
-        GList *l;
+	GList *l;
 PPCODE:
-        for (l = gaim_log_logger_get_options(); l != NULL; l = l->next) {
-                XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
-        }
+	for (l = gaim_log_logger_get_options(); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry")));
+	}
 
 char *
 gaim_log_read(log, flags)
 	Gaim::Log log
 	Gaim::Log::ReadFlags flags
 
-gint 
+gint
 gaim_log_set_compare(y, z)
 	gconstpointer y
 	gconstpointer z
-
--- a/plugins/perl/common/Prefs.xs	Mon Jan 09 06:34:03 2006 +0000
+++ b/plugins/perl/common/Prefs.xs	Mon Jan 09 06:45:16 2006 +0000
@@ -3,69 +3,65 @@
 MODULE = Gaim::Prefs  PACKAGE = Gaim::Prefs  PREFIX = gaim_prefs_
 PROTOTYPES: ENABLE
 
-void 
+void
 gaim_prefs_add_bool(name, value)
 	const char *name
 	gboolean value
 
-void 
+void
 gaim_prefs_add_int(name, value)
 	const char *name
 	int value
 
-void 
+void
 gaim_prefs_add_none(name)
 	const char *name
 
-void 
+void
 gaim_prefs_add_string(name, value)
 	const char *name
 	const char *value
 
-void 
+void
 gaim_prefs_add_string_list(name, value)
 	const char *name
 	SV *value
 PREINIT:
-        GList *t_GL;
-        int i, t_len;
+	GList *t_GL;
+	int i, t_len;
 PPCODE:
-        t_GL = NULL;
-        t_len = av_len((AV *)SvRV(value));
+	t_GL = NULL;
+	t_len = av_len((AV *)SvRV(value));
 
-        for (i = 0; i < t_len; i++) {
-                STRLEN t_sl;
-                t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(value), i, 0), t_sl));
-        }
+	for (i = 0; i < t_len; i++) {
+		STRLEN t_sl;
+		t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(value), i, 0), t_sl));
+	}
 	gaim_prefs_add_string_list(name, t_GL);
 
-
-
-void 
+void
 gaim_prefs_destroy()
 
-
-void 
+void
 gaim_prefs_disconnect_by_handle(handle)
- 	void * handle
+	void * handle
 
-void 
+void
 gaim_prefs_disconnect_callback(callback_id)
 	guint callback_id
 
-gboolean 
+gboolean
 gaim_prefs_exists(name)
 	const char *name
 
-gboolean 
+gboolean
 gaim_prefs_get_bool(name)
 	const char *name
 
 void *
 gaim_prefs_get_handle()
- 
 
-int 
+int
 gaim_prefs_get_int(name)
 	const char *name
 
@@ -77,86 +73,79 @@
 gaim_prefs_get_string_list(name)
 	const char *name
 PREINIT:
-        GList *l;
+	GList *l;
 PPCODE:
-        for (l = gaim_prefs_get_string_list(name); l != NULL; l = l->next) {
-                XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::PrefValue")));
-        }
-
-
+	for (l = gaim_prefs_get_string_list(name); l != NULL; l = l->next) {
+		XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::PrefValue")));
+	}
 
 Gaim::PrefType
 gaim_prefs_get_type(name)
 	const char *name
 
-void 
+void
 gaim_prefs_init()
 
-
-gboolean 
+gboolean
 gaim_prefs_load()
 
-
-void 
+void
 gaim_prefs_remove(name)
 	const char *name
 
-void 
+void
 gaim_prefs_rename(oldname, newname)
 	const char *oldname
 	const char *newname
 
-void 
+void
 gaim_prefs_rename_boolean_toggle(oldname, newname)
 	const char *oldname
 	const char *newname
 
-void 
+void
 gaim_prefs_set_bool(name, value)
 	const char *name
 	gboolean value
 
-void 
+void
 gaim_prefs_set_generic(name, value)
 	const char *name
 	gpointer value
 
-void 
+void
 gaim_prefs_set_int(name, value)
 	const char *name
 	int value
 
-void 
+void
 gaim_prefs_set_string(name, value)
 	const char *name
 	const char *value
 
-void 
+void
 gaim_prefs_set_string_list(name, value)
 	const char *name
 	SV *value
 PREINIT:
-        GList *t_GL;
-        int i, t_len;
+	GList *t_GL;
+	int i, t_len;
 PPCODE:
-        t_GL = NULL;
-        t_len = av_len((AV *)SvRV(value));
+	t_GL = NULL;
+	t_len = av_len((AV *)SvRV(value));
 
-        for (i = 0; i < t_len; i++) {
-                STRLEN t_sl;
-                t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(value), i, 0), t_sl));
-        }
+	for (i = 0; i < t_len; i++) {
+		STRLEN t_sl;
+		t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(value), i, 0), t_sl));
+	}
 	gaim_prefs_set_string_list(name, t_GL);
 
-void 
+void
 gaim_prefs_trigger_callback(name)
 	const char *name
 
-void 
+void
 gaim_prefs_uninit()
- 
 
-void 
+void
 gaim_prefs_update_old()
-
-