[dovecot-cvs] dovecot/src/lib-storage mail-sort.h,1.4,1.5 mail-storage.h,1.27,1.28

cras at procontrol.fi cras at procontrol.fi
Sun Jan 5 15:19:11 EET 2003


Update of /home/cvs/dovecot/src/lib-storage
In directory danu:/tmp/cvs-serv24438

Modified Files:
	mail-sort.h mail-storage.h 
Log Message:
"ISO C forbids forward references to enum types"



Index: mail-sort.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-sort.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mail-sort.h	5 Jan 2003 13:09:52 -0000	1.4
+++ mail-sort.h	5 Jan 2003 13:19:09 -0000	1.5
@@ -6,20 +6,6 @@
 /* Maximum size for sort program, 2x for reverse + END */
 #define MAX_SORT_PROGRAM_SIZE (2*7 + 1)
 
-enum mail_sort_type {
-	MAIL_SORT_ARRIVAL	= 0x0010,
-	MAIL_SORT_CC		= 0x0020,
-	MAIL_SORT_DATE		= 0x0040,
-	MAIL_SORT_FROM		= 0x0080,
-	MAIL_SORT_SIZE		= 0x0100,
-	MAIL_SORT_SUBJECT	= 0x0200,
-	MAIL_SORT_TO		= 0x0400,
-
-	MAIL_SORT_REVERSE	= 0x0001, /* reverse the next type */
-
-	MAIL_SORT_END		= 0x0000 /* ends sort program */
-};
-
 struct mail_sort_funcs {
 	/* arrival, date */
 	time_t (*input_time)(enum mail_sort_type type, unsigned int id,

Index: mail-storage.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/mail-storage.h,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- mail-storage.h	5 Jan 2003 13:09:52 -0000	1.27
+++ mail-storage.h	5 Jan 2003 13:19:09 -0000	1.28
@@ -37,12 +37,25 @@
 	MODIFY_REPLACE
 };
 
+enum mail_sort_type {
+	MAIL_SORT_ARRIVAL	= 0x0010,
+	MAIL_SORT_CC		= 0x0020,
+	MAIL_SORT_DATE		= 0x0040,
+	MAIL_SORT_FROM		= 0x0080,
+	MAIL_SORT_SIZE		= 0x0100,
+	MAIL_SORT_SUBJECT	= 0x0200,
+	MAIL_SORT_TO		= 0x0400,
+
+	MAIL_SORT_REVERSE	= 0x0001, /* reverse the next type */
+
+	MAIL_SORT_END		= 0x0000 /* ends sort program */
+};
+
 struct mail_storage;
 struct mail_storage_callbacks;
 struct mailbox_status;
 struct mail_fetch_data;
 struct mail_search_arg;
-enum mail_sort_type;
 
 typedef void (*MailboxFunc)(struct mail_storage *storage, const char *name,
 			    enum mailbox_flags flags, void *context);




More information about the dovecot-cvs mailing list