From fd40e4aa547b4fb8027bd9a5a8946afc7c93fd8d Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Tue, 31 Jul 2012 00:32:53 +0200 Subject: [PATCH] Mark a few things as static Based on CTags r779: https://ctags.svn.sourceforge.net/svnroot/ctags@779 --- tagmanager/ctags/objc.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tagmanager/ctags/objc.c b/tagmanager/ctags/objc.c index d72c0208..a05eacba 100644 --- a/tagmanager/ctags/objc.c +++ b/tagmanager/ctags/objc.c @@ -431,16 +431,16 @@ typedef void (*parseNext) (vString * const ident, objcToken what); /********** Helpers */ /* This variable hold the 'parser' which is going to * handle the next token */ -parseNext toDoNext; +static parseNext toDoNext; /* Special variable used by parser eater to * determine which action to put after their * job is finished. */ -parseNext comeAfter; +static parseNext comeAfter; /* Used by some parsers detecting certain token * to revert to previous parser. */ -parseNext fallback; +static parseNext fallback; /********** Grammar */ @@ -466,13 +466,13 @@ static void prepareTag (tagEntryInfo * tag, vString const *name, objcKind kind) } } -void pushEnclosingContext (const vString * parent, objcKind type) +static void pushEnclosingContext (const vString * parent, objcKind type) { vStringCopy (parentName, parent); parentType = type; } -void popEnclosingContext (void) +static void popEnclosingContext (void) { vStringClear (parentName); } @@ -486,7 +486,7 @@ static void addTag (vString * const ident, int kind) makeTagEntry (&toCreate); } -objcToken waitedToken, fallBackToken; +static objcToken waitedToken, fallBackToken; /* Ignore everything till waitedToken and jump to comeAfter. * If the "end" keyword is encountered break, doesn't remember @@ -795,7 +795,8 @@ static void parseStructMembers (vString * const ident, objcToken what) break; /* some types are complex, the only one - * we will loose is the function type. */ + * we will loose is the function type. + */ case Tok_CurlL: /* '{' */ case Tok_PARL: /* '(' */ case Tok_SQUAREL: /* '[' */