]> granicus.if.org Git - neomutt/commitdiff
Replace `class` member with `flags`
authorFederico Kircheis <federico.kircheis@gmail.com>
Sun, 30 Jun 2019 03:30:19 +0000 (05:30 +0200)
committerRichard Russon <rich@flatcap.org>
Fri, 5 Jul 2019 09:34:32 +0000 (10:34 +0100)
As it's reserved in C++

pattern.c

index 498bde30aa3dc02525860c5d136a81abb942cee5..8f39c353833559fc088e42d88c2e6777adb256c2 100644 (file)
--- a/pattern.c
+++ b/pattern.c
@@ -179,7 +179,7 @@ struct PatternFlags
 {
   int tag;                ///< character used to represent this op
   int op;                 ///< operation to perform
-  int class;              ///< Pattern class, e.g. #MUTT_FULL_MSG
+  int flags;              ///< Pattern flags, e.g. #MUTT_FULL_MSG
   pattern_eat_t *eat_arg; ///< Callback function to parse the argument
 };
 
@@ -1549,7 +1549,7 @@ struct PatternHead *mutt_pattern_comp(const char *s, int flags, struct Buffer *e
           mutt_buffer_printf(err, _("%c: invalid pattern modifier"), *ps.dptr);
           goto cleanup;
         }
-        if (entry->class && ((flags & entry->class) == 0))
+        if (entry->flags && ((flags & entry->flags) == 0))
         {
           mutt_buffer_printf(err, _("%c: not supported in this mode"), *ps.dptr);
           goto cleanup;