[geany/geany] ca1622: lregex: replace regexBroken with regexAvailable
Jiří Techet
git-noreply at xxxxx
Mon Dec 17 21:05:53 UTC 2018
Branch: refs/heads/master
Author: Jiří Techet <techet at gmail.com>
Committer: Jiří Techet <techet at gmail.com>
Date: Wed, 12 Oct 2016 11:26:39 UTC
Commit: ca1622412fc87819b8c47609e4ef7f71d564a46e
https://github.com/geany/geany/commit/ca1622412fc87819b8c47609e4ef7f71d564a46e
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).
More information about the Commits
mailing list