vim-patch:8.0.1729: no comma after last enum item

Problem:    No comma after last enum item.
Solution:   Add a few commas to check if this works for all compilers.  Also
            add a few // comments.
ea3ece405a
This commit is contained in:
Jan Edmund Lazo
2019-09-02 12:11:45 -04:00
parent 55c66d6c19
commit 4a60818071
2 changed files with 10 additions and 10 deletions

View File

@@ -3366,15 +3366,15 @@ static int pattern_match(char_u *pat, char_u *text, int ic)
* types for expressions. * types for expressions.
*/ */
typedef enum { typedef enum {
TYPE_UNKNOWN = 0 TYPE_UNKNOWN = 0,
, TYPE_EQUAL /* == */ TYPE_EQUAL, // ==
, TYPE_NEQUAL /* != */ TYPE_NEQUAL, // !=
, TYPE_GREATER /* > */ TYPE_GREATER, // >
, TYPE_GEQUAL /* >= */ TYPE_GEQUAL, // >=
, TYPE_SMALLER /* < */ TYPE_SMALLER, // <
, TYPE_SEQUAL /* <= */ TYPE_SEQUAL, // <=
, TYPE_MATCH /* =~ */ TYPE_MATCH, // =~
, TYPE_NOMATCH /* !~ */ TYPE_NOMATCH, // !~
} exptype_T; } exptype_T;
// TODO(ZyX-I): move to eval/expressions // TODO(ZyX-I): move to eval/expressions

View File

@@ -94,7 +94,7 @@ typedef enum
{ {
ET_USER, // exception caused by ":throw" command ET_USER, // exception caused by ":throw" command
ET_ERROR, // error exception ET_ERROR, // error exception
ET_INTERRUPT // interrupt exception triggered by Ctrl-C ET_INTERRUPT, // interrupt exception triggered by Ctrl-C
} except_type_T; } except_type_T;
/* /*