[evolution-data-server] Use an enum instead of define
- From: Ross Burton <rburton src gnome org>
- To: svn-commits-list gnome org
- Subject: [evolution-data-server] Use an enum instead of define
- Date: Wed, 3 Jun 2009 02:47:52 -0400 (EDT)
commit 6757a57588fe504c3d72555b3d7b06ac8251871f
Author: Ross Burton <ross linux intel com>
Date: Tue Jun 2 11:15:58 2009 +0100
Use an enum instead of define
---
addressbook/libedata-book/e-book-backend-sexp.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/addressbook/libedata-book/e-book-backend-sexp.c b/addressbook/libedata-book/e-book-backend-sexp.c
index 08b5b66..b4e4e5f 100644
--- a/addressbook/libedata-book/e-book-backend-sexp.c
+++ b/addressbook/libedata-book/e-book-backend-sexp.c
@@ -234,12 +234,15 @@ compare_category (EContact *contact, const gchar *str,
return ret_val;
}
+enum prop_type {
+ PROP_TYPE_NORMAL,
+ PROP_TYPE_LIST
+};
+
static struct prop_info {
EContactField field_id;
const gchar *query_prop;
-#define PROP_TYPE_NORMAL 0x01
-#define PROP_TYPE_LIST 0x02
- gint prop_type;
+ enum prop_type prop_type;
gboolean (*list_compare)(EContact *contact, const gchar *str,
gchar *(*compare)(const gchar *, const gchar *));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]