Branch: refs/heads/master Author: Masatake YAMATO yamato@redhat.com Committer: Colomban Wendling ban@herbesfolles.org Date: Mon, 14 Mar 2016 18:27:21 UTC Commit: a71dbcbeca82a4368d24873fb2d3497c443ccc3b https://github.com/geany/geany/commit/a71dbcbeca82a4368d24873fb2d3497c443ccc...
Log Message: ----------- ruby: Use NULL for initialize an pointer variable
Suppress a warning reported by sparse.
Signed-off-by: Masatake YAMATO yamato@redhat.com
Modified Paths: -------------- tagmanager/ctags/ruby.c
Modified: tagmanager/ctags/ruby.c 8 lines changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -41,7 +41,7 @@ static kindOption RubyKinds [] = { { TRUE, 'C', "context", "contexts" } };
-static stringList* nesting = 0; +static stringList* nesting = NULL;
/* * FUNCTION DEFINITIONS @@ -113,10 +113,10 @@ static boolean parseRubyOperator (vString* name, const unsigned char** cp) "<=", "<", ">", ">=", "<=>", "==", "===", "!=", "=~", "!~", "`", - 0 + NULL }; int i; - for (i = 0; RUBY_OPERATORS[i] != 0; ++i) + for (i = 0; RUBY_OPERATORS[i] != NULL; ++i) { if (canMatch (cp, RUBY_OPERATORS[i])) { @@ -160,7 +160,7 @@ static void emitRubyTag (vString* name, rubyKind kind) /* Tests whether 'ch' is a character in 'list'. */ static boolean charIsIn (char ch, const char* list) { - return (strchr (list, ch) != 0); + return (strchr (list, ch) != NULL); }
/* Advances 'cp' over leading whitespace. */
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).