]> git.notmuchmail.org Git - notmuch/blobdiff - lib/notmuch-private.h
notmuch_message_tags_to_maildir_flags: Do nothing outside of "new" and "cur"
[notmuch] / lib / notmuch-private.h
index 37ccbb315fab19c6e8c78ba98be2c6a7e39daf23..592cfb2b40d029aa19597b1a659efac436adb6ca 100644 (file)
@@ -57,6 +57,9 @@ NOTMUCH_BEGIN_DECLS
 
 #define COMPILE_TIME_ASSERT(pred) ((void)sizeof(char[1 - 2*!(pred)]))
 
+#define STRNCMP_LITERAL(var, literal) \
+    strncmp ((var), (literal), sizeof (literal) - 1)
+
 /* There's no point in continuing when we've detected that we've done
  * something wrong internally (as opposed to the user passing in a
  * bogus value).