Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Wed, 12 Oct 2016 11:26:39 UTC Commit: ca1622412fc87819b8c47609e4ef7f71d564a46e https://github.com/geany/geany/commit/ca1622412fc87819b8c47609e4ef7f71d564a4...
Log Message: ----------- lregex: replace regexBroken with regexAvailable
Modified Paths: -------------- ctags/main/lregex.c
Modified: ctags/main/lregex.c 10 lines changed, 5 insertions(+), 5 deletions(-) =================================================================== @@ -35,6 +35,8 @@ #include "read.h" #include "routines.h"
+static bool regexAvailable = true; + /* * MACROS */ @@ -75,8 +77,6 @@ typedef struct { * DATA DEFINITIONS */
-static bool regexBroken = false; - /* Array of pattern sets, indexed by language */ static patternSet* Sets = NULL; static int SetUpper = -1; /* upper language index in list */ @@ -526,7 +526,7 @@ extern void addTagRegex ( { Assert (regex != NULL); Assert (name != NULL); - if (! regexBroken) + if (regexAvailable) { GRegex* const cp = compileRegex (regex, flags); if (cp != NULL) @@ -548,7 +548,7 @@ extern void addCallbackRegex ( const regexCallback callback CTAGS_ATTR_UNUSED) { Assert (regex != NULL); - if (! regexBroken) + if (regexAvailable) { GRegex* const cp = compileRegex (regex, flags); if (cp != NULL) @@ -559,7 +559,7 @@ extern void addCallbackRegex ( extern void addLanguageRegex ( const langType language CTAGS_ATTR_UNUSED, const char* const regex CTAGS_ATTR_UNUSED) { - if (! regexBroken) + if (regexAvailable) { char *const regex_pat = eStrdup (regex); char *name, *kinds, *flags;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).