From ca1622412fc87819b8c47609e4ef7f71d564a46e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Techet?= Date: Wed, 12 Oct 2016 13:26:39 +0200 Subject: [PATCH] lregex: replace regexBroken with regexAvailable --- ctags/main/lregex.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ctags/main/lregex.c b/ctags/main/lregex.c index 134d3083..80c6a0af 100644 --- a/ctags/main/lregex.c +++ b/ctags/main/lregex.c @@ -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;