Mercurial > dovecot > original-hg > dovecot-1.2
changeset 906:b176f913d092 HEAD
"ISO C forbids forward references to enum types"
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 05 Jan 2003 15:19:09 +0200 |
parents | 2d6db119ca9a |
children | 218e68ab290d |
files | src/lib-storage/mail-sort.h src/lib-storage/mail-storage.h |
diffstat | 2 files changed, 14 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mail-sort.h Sun Jan 05 15:13:07 2003 +0200 +++ b/src/lib-storage/mail-sort.h Sun Jan 05 15:19:09 2003 +0200 @@ -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,
--- a/src/lib-storage/mail-storage.h Sun Jan 05 15:13:07 2003 +0200 +++ b/src/lib-storage/mail-storage.h Sun Jan 05 15:19:09 2003 +0200 @@ -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);