Skip to content

Commit

Permalink
Define KEYWORD_NONE in keyword.h so it doesn't have to be defined by …
Browse files Browse the repository at this point in the history
…parsers
  • Loading branch information
techee committed Aug 16, 2016
1 parent d0cc3dc commit a974f35
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ctags/main/keyword.h
Expand Up @@ -16,6 +16,8 @@

#include "parse.h"

#define KEYWORD_NONE -1

/*
* FUNCTION PROTOTYPES
*/
Expand Down
1 change: 0 additions & 1 deletion ctags/parsers/c.c
Expand Up @@ -59,7 +59,6 @@ typedef enum eException
*/
typedef enum eKeywordId
{
KEYWORD_NONE = -1,
KEYWORD_ATTRIBUTE, KEYWORD_ABSTRACT, KEYWORD_ALIAS,
KEYWORD_BOOLEAN, KEYWORD_BYTE, KEYWORD_BAD_STATE, KEYWORD_BAD_TRANS,
KEYWORD_BIND, KEYWORD_BIND_VAR, KEYWORD_BIT, KEYWORD_BODY,
Expand Down
1 change: 0 additions & 1 deletion ctags/parsers/fortran.c
Expand Up @@ -62,7 +62,6 @@ typedef enum eFortranLineType {
/* Used to specify type of keyword.
*/
typedef enum eKeywordId {
KEYWORD_NONE = -1,
KEYWORD_allocatable,
KEYWORD_assignment,
KEYWORD_associate,
Expand Down
1 change: 0 additions & 1 deletion ctags/parsers/go.c
Expand Up @@ -28,7 +28,6 @@
*/

typedef enum eKeywordId {
KEYWORD_NONE = -1,
KEYWORD_package,
KEYWORD_import,
KEYWORD_const,
Expand Down
1 change: 0 additions & 1 deletion ctags/parsers/jscript.c
Expand Up @@ -52,7 +52,6 @@ static stringList *FunctionNames;
/* Used to specify type of keyword.
*/
typedef enum eKeywordId {
KEYWORD_NONE = -1,
KEYWORD_function,
KEYWORD_capital_function,
KEYWORD_capital_object,
Expand Down
1 change: 0 additions & 1 deletion ctags/parsers/php.c
Expand Up @@ -25,7 +25,6 @@


typedef enum {
KEYWORD_NONE = -1,
KEYWORD_abstract,
KEYWORD_and,
KEYWORD_as,
Expand Down
1 change: 0 additions & 1 deletion ctags/parsers/sql.c
Expand Up @@ -54,7 +54,6 @@ typedef enum eException { ExceptionNone, ExceptionEOF } exception_t;
* Used to specify type of keyword.
*/
typedef enum eKeywordId {
KEYWORD_NONE = -1,
KEYWORD_is,
KEYWORD_begin,
KEYWORD_body,
Expand Down

0 comments on commit a974f35

Please sign in to comment.