aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-25 15:44:11 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-25 15:44:11 +0800
commit55702ec70beb591bf3e44b1a58d7cb8ab2c59c92 (patch)
tree240d5446bbba34dafce0671cf5e9d70833521cd0
parent38a5ff75a721c82e458c6268da243972314aa517 (diff)
downloadgsoc2013-evolution-55702ec70beb591bf3e44b1a58d7cb8ab2c59c92.tar
gsoc2013-evolution-55702ec70beb591bf3e44b1a58d7cb8ab2c59c92.tar.gz
gsoc2013-evolution-55702ec70beb591bf3e44b1a58d7cb8ab2c59c92.tar.bz2
gsoc2013-evolution-55702ec70beb591bf3e44b1a58d7cb8ab2c59c92.tar.lz
gsoc2013-evolution-55702ec70beb591bf3e44b1a58d7cb8ab2c59c92.tar.xz
gsoc2013-evolution-55702ec70beb591bf3e44b1a58d7cb8ab2c59c92.tar.zst
gsoc2013-evolution-55702ec70beb591bf3e44b1a58d7cb8ab2c59c92.zip
Added a bunch of e_marshal functions.
2000-07-25 Christopher James Lahey <clahey@helixcode.com> * e-util.c, e-util.h: Added a bunch of e_marshal functions. svn path=/trunk/; revision=4311
-rw-r--r--e-util/ChangeLog4
-rw-r--r--e-util/e-util.c100
-rw-r--r--e-util/e-util.c-8611100
-rw-r--r--e-util/e-util.h26
-rw-r--r--e-util/e-util.h-2900226
5 files changed, 248 insertions, 8 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index bf68a708c3..e4e5a7a741 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,7 @@
+2000-07-25 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-util.c, e-util.h: Added a bunch of e_marshal functions.
+
2000-07-12 Christopher James Lahey <clahey@helixcode.com>
* e-util.c, e-util.h: Added e_strstrcase function.
diff --git a/e-util/e-util.c b/e-util/e-util.c
index c8c60fe1b3..83e83f7a75 100644
--- a/e-util/e-util.c
+++ b/e-util/e-util.c
@@ -253,6 +253,102 @@ e_marshal_BOOL__OBJECT_DOUBLE_DOUBLE_BOOL (GtkObject * object,
func_data);
}
+typedef void (*GtkSignal_NONE__INT_INT_POINTER_POINTER_INT_INT) (GtkObject * object,
+ gint arg1,
+ gint arg2,
+ gpointer arg3,
+ gpointer arg4,
+ gint arg5,
+ gint arg6,
+ gpointer user_data);
+void
+e_marshal_NONE__INT_INT_POINTER_POINTER_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data, GtkArg * args)
+{
+ GtkSignal_NONE__INT_INT_POINTER_POINTER_INT_INT rfunc;
+ rfunc = (GtkSignal_NONE__INT_INT_POINTER_POINTER_INT_INT) func;
+ (*rfunc) (object,
+ GTK_VALUE_INT (args[0]), GTK_VALUE_INT (args[1]),
+ GTK_VALUE_POINTER (args[2]),
+ GTK_VALUE_POINTER (args[3]),
+ GTK_VALUE_INT (args[4]), GTK_VALUE_INT (args[5]), func_data);
+}
+
+typedef void (*GtkSignal_NONE__INT_INT_POINTER_INT) (GtkObject * object,
+ gint arg1,
+ gint arg2,
+ gpointer arg3,
+ gint arg4, gpointer user_data);
+void
+e_marshal_NONE__INT_INT_POINTER_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data, GtkArg * args)
+{
+ GtkSignal_NONE__INT_INT_POINTER_INT rfunc;
+ rfunc = (GtkSignal_NONE__INT_INT_POINTER_INT) func;
+ (*rfunc) (object,
+ GTK_VALUE_INT (args[0]), GTK_VALUE_INT (args[1]),
+ GTK_VALUE_POINTER (args[2]), GTK_VALUE_INT (args[3]), func_data);
+}
+
+typedef gboolean (*GtkSignal_BOOL__INT_INT_POINTER_INT_INT_INT) (GtkObject * object,
+ gint arg1,
+ gint arg2,
+ gpointer arg3,
+ gint arg4,
+ gint arg5,
+ gint arg6,
+ gpointer user_data);
+void
+e_marshal_BOOL__INT_INT_POINTER_INT_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data, GtkArg * args)
+{
+ GtkSignal_BOOL__INT_INT_POINTER_INT_INT_INT rfunc;
+ gboolean *return_val;
+ return_val = GTK_RETLOC_BOOL (args[6]);
+ rfunc = (GtkSignal_BOOL__INT_INT_POINTER_INT_INT_INT) func;
+ *return_val = (*rfunc) (object,
+ GTK_VALUE_INT (args[0]),
+ GTK_VALUE_INT (args[1]),
+ GTK_VALUE_POINTER (args[2]),
+ GTK_VALUE_INT (args[3]),
+ GTK_VALUE_INT (args[4]),
+ GTK_VALUE_INT (args[5]), func_data);
+}
+
+typedef void (*GtkSignal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT) (GtkObject *
+ object,
+ gint arg1,
+ gint arg2,
+ gpointer
+ arg3,
+ gint arg4,
+ gint arg5,
+ gpointer
+ arg6,
+ gint arg7,
+ gint arg8,
+ gpointer
+ user_data);
+void
+e_marshal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data,
+ GtkArg * args)
+{
+ GtkSignal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT rfunc;
+ rfunc = (GtkSignal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT) func;
+ (*rfunc) (object,
+ GTK_VALUE_INT (args[0]), GTK_VALUE_INT (args[1]),
+ GTK_VALUE_POINTER (args[2]),
+ GTK_VALUE_INT (args[3]),
+ GTK_VALUE_INT (args[4]),
+ GTK_VALUE_POINTER (args[5]),
+ GTK_VALUE_INT (args[6]), GTK_VALUE_INT (args[7]), func_data);
+}
+
gchar**
e_strsplit (const gchar *string,
const gchar *delimiter,
@@ -306,7 +402,7 @@ e_strsplit (const gchar *string,
return str_array;
}
-gchar *
+const gchar *
e_strstrcase (const gchar *haystack, const gchar *needle)
{
/* find the needle in the haystack neglecting case */
@@ -321,7 +417,7 @@ e_strstrcase (const gchar *haystack, const gchar *needle)
return NULL;
if (len == 0)
- return haystack;
+ return (char *)haystack;
for (ptr = (char *)haystack; *(ptr + len - 1) != '\0'; ptr++)
if (!g_strncasecmp(ptr, needle, len))
diff --git a/e-util/e-util.c-8611 b/e-util/e-util.c-8611
index c8c60fe1b3..83e83f7a75 100644
--- a/e-util/e-util.c-8611
+++ b/e-util/e-util.c-8611
@@ -253,6 +253,102 @@ e_marshal_BOOL__OBJECT_DOUBLE_DOUBLE_BOOL (GtkObject * object,
func_data);
}
+typedef void (*GtkSignal_NONE__INT_INT_POINTER_POINTER_INT_INT) (GtkObject * object,
+ gint arg1,
+ gint arg2,
+ gpointer arg3,
+ gpointer arg4,
+ gint arg5,
+ gint arg6,
+ gpointer user_data);
+void
+e_marshal_NONE__INT_INT_POINTER_POINTER_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data, GtkArg * args)
+{
+ GtkSignal_NONE__INT_INT_POINTER_POINTER_INT_INT rfunc;
+ rfunc = (GtkSignal_NONE__INT_INT_POINTER_POINTER_INT_INT) func;
+ (*rfunc) (object,
+ GTK_VALUE_INT (args[0]), GTK_VALUE_INT (args[1]),
+ GTK_VALUE_POINTER (args[2]),
+ GTK_VALUE_POINTER (args[3]),
+ GTK_VALUE_INT (args[4]), GTK_VALUE_INT (args[5]), func_data);
+}
+
+typedef void (*GtkSignal_NONE__INT_INT_POINTER_INT) (GtkObject * object,
+ gint arg1,
+ gint arg2,
+ gpointer arg3,
+ gint arg4, gpointer user_data);
+void
+e_marshal_NONE__INT_INT_POINTER_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data, GtkArg * args)
+{
+ GtkSignal_NONE__INT_INT_POINTER_INT rfunc;
+ rfunc = (GtkSignal_NONE__INT_INT_POINTER_INT) func;
+ (*rfunc) (object,
+ GTK_VALUE_INT (args[0]), GTK_VALUE_INT (args[1]),
+ GTK_VALUE_POINTER (args[2]), GTK_VALUE_INT (args[3]), func_data);
+}
+
+typedef gboolean (*GtkSignal_BOOL__INT_INT_POINTER_INT_INT_INT) (GtkObject * object,
+ gint arg1,
+ gint arg2,
+ gpointer arg3,
+ gint arg4,
+ gint arg5,
+ gint arg6,
+ gpointer user_data);
+void
+e_marshal_BOOL__INT_INT_POINTER_INT_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data, GtkArg * args)
+{
+ GtkSignal_BOOL__INT_INT_POINTER_INT_INT_INT rfunc;
+ gboolean *return_val;
+ return_val = GTK_RETLOC_BOOL (args[6]);
+ rfunc = (GtkSignal_BOOL__INT_INT_POINTER_INT_INT_INT) func;
+ *return_val = (*rfunc) (object,
+ GTK_VALUE_INT (args[0]),
+ GTK_VALUE_INT (args[1]),
+ GTK_VALUE_POINTER (args[2]),
+ GTK_VALUE_INT (args[3]),
+ GTK_VALUE_INT (args[4]),
+ GTK_VALUE_INT (args[5]), func_data);
+}
+
+typedef void (*GtkSignal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT) (GtkObject *
+ object,
+ gint arg1,
+ gint arg2,
+ gpointer
+ arg3,
+ gint arg4,
+ gint arg5,
+ gpointer
+ arg6,
+ gint arg7,
+ gint arg8,
+ gpointer
+ user_data);
+void
+e_marshal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data,
+ GtkArg * args)
+{
+ GtkSignal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT rfunc;
+ rfunc = (GtkSignal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT) func;
+ (*rfunc) (object,
+ GTK_VALUE_INT (args[0]), GTK_VALUE_INT (args[1]),
+ GTK_VALUE_POINTER (args[2]),
+ GTK_VALUE_INT (args[3]),
+ GTK_VALUE_INT (args[4]),
+ GTK_VALUE_POINTER (args[5]),
+ GTK_VALUE_INT (args[6]), GTK_VALUE_INT (args[7]), func_data);
+}
+
gchar**
e_strsplit (const gchar *string,
const gchar *delimiter,
@@ -306,7 +402,7 @@ e_strsplit (const gchar *string,
return str_array;
}
-gchar *
+const gchar *
e_strstrcase (const gchar *haystack, const gchar *needle)
{
/* find the needle in the haystack neglecting case */
@@ -321,7 +417,7 @@ e_strstrcase (const gchar *haystack, const gchar *needle)
return NULL;
if (len == 0)
- return haystack;
+ return (char *)haystack;
for (ptr = (char *)haystack; *(ptr + len - 1) != '\0'; ptr++)
if (!g_strncasecmp(ptr, needle, len))
diff --git a/e-util/e-util.h b/e-util/e-util.h
index 25fd839e19..91856de1cc 100644
--- a/e-util/e-util.h
+++ b/e-util/e-util.h
@@ -46,8 +46,8 @@ gchar **e_strsplit (const gchar *string,
const gchar *delimiter,
gint max_tokens);
-gchar *e_strstrcase (const gchar *haystack,
- const gchar *needle);
+const gchar *e_strstrcase (const gchar *haystack,
+ const gchar *needle);
void e_marshal_INT__INT_INT_POINTER (GtkObject * object,
GtkSignalFunc func,
@@ -65,5 +65,27 @@ void e_marshal_BOOL__OBJECT_DOUBLE_DOUBLE_BOOL (GtkObject * object,
GtkSignalFunc func,
gpointer func_data, GtkArg * args);
+#define e_marshal_NONE__INT_INT_POINTER_POINTER_UINT_UINT e_marshal_NONE__INT_INT_POINTER_POINTER_INT_INT
+void e_marshal_NONE__INT_INT_POINTER_POINTER_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data,
+ GtkArg * args);
+
+#define e_marshal_NONE__INT_INT_POINTER_UINT e_marshal_NONE__INT_INT_POINTER_INT
+void e_marshal_NONE__INT_INT_POINTER_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data, GtkArg * args);
+
+#define e_marshal_BOOL__INT_INT_POINTER_INT_INT_UINT e_marshal_BOOL__INT_INT_POINTER_INT_INT_INT
+void e_marshal_BOOL__INT_INT_POINTER_INT_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data,
+ GtkArg * args);
+
+#define e_marshal_NONE__INT_INT_POINTER_INT_INT_POINTER_UINT_UINT e_marshal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT
+void e_marshal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data,
+ GtkArg * args);
#endif /* _E_UTIL_H_ */
diff --git a/e-util/e-util.h-29002 b/e-util/e-util.h-29002
index 25fd839e19..91856de1cc 100644
--- a/e-util/e-util.h-29002
+++ b/e-util/e-util.h-29002
@@ -46,8 +46,8 @@ gchar **e_strsplit (const gchar *string,
const gchar *delimiter,
gint max_tokens);
-gchar *e_strstrcase (const gchar *haystack,
- const gchar *needle);
+const gchar *e_strstrcase (const gchar *haystack,
+ const gchar *needle);
void e_marshal_INT__INT_INT_POINTER (GtkObject * object,
GtkSignalFunc func,
@@ -65,5 +65,27 @@ void e_marshal_BOOL__OBJECT_DOUBLE_DOUBLE_BOOL (GtkObject * object,
GtkSignalFunc func,
gpointer func_data, GtkArg * args);
+#define e_marshal_NONE__INT_INT_POINTER_POINTER_UINT_UINT e_marshal_NONE__INT_INT_POINTER_POINTER_INT_INT
+void e_marshal_NONE__INT_INT_POINTER_POINTER_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data,
+ GtkArg * args);
+
+#define e_marshal_NONE__INT_INT_POINTER_UINT e_marshal_NONE__INT_INT_POINTER_INT
+void e_marshal_NONE__INT_INT_POINTER_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data, GtkArg * args);
+
+#define e_marshal_BOOL__INT_INT_POINTER_INT_INT_UINT e_marshal_BOOL__INT_INT_POINTER_INT_INT_INT
+void e_marshal_BOOL__INT_INT_POINTER_INT_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data,
+ GtkArg * args);
+
+#define e_marshal_NONE__INT_INT_POINTER_INT_INT_POINTER_UINT_UINT e_marshal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT
+void e_marshal_NONE__INT_INT_POINTER_INT_INT_POINTER_INT_INT (GtkObject * object,
+ GtkSignalFunc func,
+ gpointer func_data,
+ GtkArg * args);
#endif /* _E_UTIL_H_ */