[dovecot-cvs] dovecot/src/imap imap-fetch.c, 1.48, 1.49 imap-fetch.h, 1.20, 1.21

tss at dovecot.org tss at dovecot.org
Fri Dec 15 18:10:55 UTC 2006


Update of /var/lib/cvs/dovecot/src/imap
In directory talvi:/tmp/cvs-serv2752/imap

Modified Files:
	imap-fetch.c imap-fetch.h 
Log Message:
Type safe callbacks weren't as easy as I thought. Only callback(void
*context) can be handled generically. Others can be handled specially, but
only if all the parameters are pointers, otherwise eg. int parameter can be
replaced with long without compiler giving any warnings.



Index: imap-fetch.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-fetch.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- imap-fetch.c	15 Dec 2006 16:55:31 -0000	1.48
+++ imap-fetch.c	15 Dec 2006 18:10:53 -0000	1.49
@@ -100,7 +100,6 @@
 	return ctx;
 }
 
-#undef imap_fetch_add_handler
 void imap_fetch_add_handler(struct imap_fetch_context *ctx,
 			    bool buffered, bool want_deinit,
 			    imap_fetch_handler_t *handler, void *context)

Index: imap-fetch.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap/imap-fetch.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- imap-fetch.h	15 Dec 2006 16:55:31 -0000	1.20
+++ imap-fetch.h	15 Dec 2006 18:10:53 -0000	1.21
@@ -68,9 +68,6 @@
 void imap_fetch_add_handler(struct imap_fetch_context *ctx,
 			    bool buffered, bool want_deinit,
 			    imap_fetch_handler_t *handler, void *context);
-#define imap_fetch_add_handler(ctx, buffered, want_deinit, handler, context) \
-	CONTEXT_CALLBACK3(imap_fetch_add_handler, imap_fetch_handler_t, \
-			  handler, context, ctx, buffered, want_deinit)
 
 struct imap_fetch_context *imap_fetch_init(struct client_command_context *cmd);
 int imap_fetch_deinit(struct imap_fetch_context *ctx);



More information about the dovecot-cvs mailing list