[evolution-patches] 64bit type fixes for filter code
- From: Jeremy Katz <katzj redhat com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] 64bit type fixes for filter code
- Date: Tue, 16 Sep 2003 16:58:06 -0400
The filter code used ints in a few places instead of GTypes. Attached
patch against 1.4.x fixes.
Jeremy
--- evolution-1.4.4/filter/rule-context.c 2003-06-12 13:04:20.000000000 -0400
+++ evolution-1.4.4.good/filter/rule-context.c 2003-09-11 23:38:24.000000000 -0400
@@ -209,7 +209,7 @@
}
void
-rule_context_add_part_set(RuleContext *rc, const char *setname, int part_type, RCPartFunc append, RCNextPartFunc next)
+rule_context_add_part_set(RuleContext *rc, const char *setname, GType part_type, RCPartFunc append, RCNextPartFunc next)
{
struct _part_set_map *map;
@@ -226,7 +226,7 @@
}
void
-rule_context_add_rule_set(RuleContext *rc, const char *setname, int rule_type, RCRuleFunc append, RCNextRuleFunc next)
+rule_context_add_rule_set(RuleContext *rc, const char *setname, GType rule_type, RCRuleFunc append, RCNextRuleFunc next)
{
struct _rule_set_map *map;
--- evolution-1.4.4/filter/rule-context.h 2003-04-29 14:14:08.000000000 -0400
+++ evolution-1.4.4.good/filter/rule-context.h 2003-09-11 23:28:05.000000000 -0400
@@ -85,14 +85,14 @@
struct _part_set_map {
char *name;
- int type;
+ GType type;
RCPartFunc append;
RCNextPartFunc next;
};
struct _rule_set_map {
char *name;
- int type;
+ GType type;
RCRuleFunc append;
RCNextRuleFunc next;
};
@@ -122,9 +122,9 @@
int rule_context_get_rank_rule (RuleContext *rc, FilterRule *rule, const char *source);
/* setup type for set parts */
-void rule_context_add_part_set (RuleContext *rc, const char *setname, int part_type,
+void rule_context_add_part_set (RuleContext *rc, const char *setname, GType part_type,
RCPartFunc append, RCNextPartFunc next);
-void rule_context_add_rule_set (RuleContext *rc, const char *setname, int rule_type,
+void rule_context_add_rule_set (RuleContext *rc, const char *setname, GType rule_type,
RCRuleFunc append, RCNextRuleFunc next);
/* uri's disappear/renamed externally */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]