dovecot-2.0: imap-arg: Added IMAP_ARG_IS_NSTRING().

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 8 04:19:35 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/5ba59cc8b235
changeset: 11115:5ba59cc8b235
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 08 04:04:20 2010 +0300
description:
imap-arg: Added IMAP_ARG_IS_NSTRING().

diffstat:

 src/lib-imap/imap-arg.h |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 0fa195674d1a -r 5ba59cc8b235 src/lib-imap/imap-arg.h
--- a/src/lib-imap/imap-arg.h	Thu Apr 08 04:00:32 2010 +0300
+++ b/src/lib-imap/imap-arg.h	Thu Apr 08 04:04:20 2010 +0300
@@ -50,6 +50,8 @@
 	 (type) == IMAP_ARG_LITERAL)
 #define IMAP_ARG_IS_ASTRING(arg) \
 	IMAP_ARG_TYPE_IS_ASTRING((arg)->type)
+#define IMAP_ARG_IS_NSTRING(arg) \
+	(IMAP_ARG_IS_ASTRING(arg) || (arg)->type == IMAP_ARG_NIL)
 #define IMAP_ARG_IS_EOL(arg) \
 	((arg)->type == IMAP_ARG_EOL)
 


More information about the dovecot-cvs mailing list