changeset 12783:520d9abca2aa

[gaim-migrate @ 15130] More whitespace. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Mon, 09 Jan 2006 07:29:41 +0000
parents 57d94c725dbc
children d3476701107d
files plugins/perl/common/Util.xs
diffstat 1 files changed, 43 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/perl/common/Util.xs	Mon Jan 09 07:07:52 2006 +0000
+++ b/plugins/perl/common/Util.xs	Mon Jan 09 07:29:41 2006 +0000
@@ -5,62 +5,59 @@
 } GaimPerlUrlData;
 
 static void gaim_perl_util_url_cb(void *data, const char *url_data, size_t size) {
-        GaimPerlUrlData *gpr = (GaimPerlUrlData *)data;
-        dSP;
-        ENTER;
-        SAVETMPS;
-        PUSHMARK(sp);
+	GaimPerlUrlData *gpr = (GaimPerlUrlData *)data;
+	dSP;
+	ENTER;
+	SAVETMPS;
+	PUSHMARK(sp);
 
-        XPUSHs(sv_2mortal(newSVpv(url_data, 0)));
-        PUTBACK;
+	XPUSHs(sv_2mortal(newSVpv(url_data, 0)));
+	PUTBACK;
 
-        call_pv(gpr->cb, G_EVAL | G_SCALAR);
-        SPAGAIN;
+	call_pv(gpr->cb, G_EVAL | G_SCALAR);
+	SPAGAIN;
 
-        PUTBACK;
-        FREETMPS;
-        LEAVE;
+	PUTBACK;
+	FREETMPS;
+	LEAVE;
 }
 
-
 MODULE = Gaim::Util  PACKAGE = Gaim::Util  PREFIX = gaim_
-PROTOTYPES: ENABLE	
+PROTOTYPES: ENABLE
 
 void
 gaim_url_fetch(handle, url, full, user_agent, http11, cb)
-        Gaim::Plugin handle
-        const char *url
-        gboolean full
-        const char *user_agent
-        gboolean http11
-        SV * cb
+	Gaim::Plugin handle
+	const char *url
+	gboolean full
+	const char *user_agent
+	gboolean http11
+	SV * cb
 CODE:
-        GaimPerlUrlData *gpr;
-        STRLEN len;
-        char *basename, *package;
+	GaimPerlUrlData *gpr;
+	STRLEN len;
+	char *basename, *package;
 
-        basename = g_path_get_basename(handle->path);
-        gaim_perl_normalize_script_name(basename);
-        package = g_strdup_printf("Gaim::Script::%s", basename);
-        gpr = g_new(GaimPerlUrlData, 1);
+	basename = g_path_get_basename(handle->path);
+	gaim_perl_normalize_script_name(basename);
+	package = g_strdup_printf("Gaim::Script::%s", basename);
+	gpr = g_new(GaimPerlUrlData, 1);
 
 	gpr->cb = g_strdup_printf("%s::%s", package, SvPV(cb, len));
-        gaim_url_fetch(url, full, user_agent, http11, gaim_perl_util_url_cb, gpr);
+	gaim_url_fetch(url, full, user_agent, http11, gaim_perl_util_url_cb, gpr);
 
-int 
+int
 gaim_build_dir(path, mode)
 	const char *path
 	int mode
 
 const char *
 gaim_date()
- 
 
 const char *
 gaim_date_full()
- 
 
-gboolean 
+gboolean
 gaim_email_is_valid(address)
 	const char *address
 
@@ -74,9 +71,8 @@
 
 const gchar *
 gaim_home_dir()
- 
 
-gboolean 
+gboolean
 gaim_markup_extract_info_field(str, len, dest, start_token, skip, end_token, check_value, no_value_token, display_name, is_link, link_prefix)
 	const char *str
 	int len
@@ -90,7 +86,7 @@
 	gboolean is_link
 	const char *link_prefix
 
-gboolean 
+gboolean
 gaim_markup_find_tag(needle, haystack, start, end, attributes)
 	const char *needle
 	const char *haystack
@@ -102,7 +98,7 @@
 gaim_markup_get_tag_name(tag)
 	const char *tag
 
-void 
+void
 gaim_markup_html_to_xhtml(html, dest_xhtml, dest_plain)
 	const char *html
 	char **dest_xhtml
@@ -122,7 +118,7 @@
 gaim_markup_strip_html(str)
 	const char *str
 
-gboolean 
+gboolean
 gaim_message_meify(message, len)
 	char *message
 	size_t len
@@ -137,7 +133,7 @@
 	Gaim::Account account
 	const char *str
 
-gboolean 
+gboolean
 gaim_program_is_valid(program)
 	const char *program
 
@@ -150,12 +146,12 @@
 	const unsigned char *binary
 	guint len
 
-gboolean 
+gboolean
 gaim_str_has_prefix(s, p)
 	const char *s
 	const char *p
 
-gboolean 
+gboolean
 gaim_str_has_suffix(s, x)
 	const char *s
 	const char *x
@@ -168,7 +164,7 @@
 gaim_str_size_to_units(size)
 	size_t size
 
-void 
+void
 gaim_str_strip_char(str, thechar)
 	char *str
 	char thechar
@@ -178,7 +174,7 @@
 	const char *str
 	const char *name
 
-time_t 
+time_t
 gaim_str_to_time(timestamp, utc)
 	const char *timestamp
 	gboolean utc
@@ -198,7 +194,7 @@
 gaim_strdup_withhtml(src)
 	const gchar *src
 
-size_t 
+size_t
 gaim_strftime(s, max, format, tm)
 	char *s
 	size_t max
@@ -215,7 +211,7 @@
 gaim_text_strip_mnemonic(in)
 	const char *in
 
-time_t 
+time_t
 gaim_time_build(year, month, day, hour, min, sec)
 	int year
 	int month
@@ -240,9 +236,7 @@
 gaim_url_encode(str)
 	const char *str
 
- 
-
-gboolean 
+gboolean
 gaim_url_parse(url, ret_host, ret_port, ret_path, ret_user, ret_passwd)
 	const char *url
 	char **ret_host
@@ -253,15 +247,13 @@
 
 const char *
 gaim_user_dir()
- 
 
-void 
+void
 gaim_util_set_user_dir(dir)
 	const char *dir
 
-gboolean 
+gboolean
 gaim_util_write_data_to_file(filename, data, size)
 	const char *filename
 	const char *data
 	size_t size
-