bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23712: [PATCH 1/6] maint: mark a couple of static variables const


From: Zev Weiss
Subject: bug#23712: [PATCH 1/6] maint: mark a couple of static variables const
Date: Tue, 7 Jun 2016 01:37:38 -0500

* src/dfa.c (parse_bracket_exp): mark zeroclass const.
* src/dfasearch.c: mark patterns0 const.
---
 src/dfa.c       | 2 +-
 src/dfasearch.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/dfa.c b/src/dfa.c
index 4e47b39..19363ce 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -1183,7 +1183,7 @@ parse_bracket_exp (void)
 
   if (dfa->multibyte)
     {
-      static charclass zeroclass;
+      static charclass const zeroclass;
       work_mbc->invert = invert;
       work_mbc->cset = equal (ccl, zeroclass) ? -1 : charclass_index (ccl);
       return MBCSET;
diff --git a/src/dfasearch.c b/src/dfasearch.c
index d3db824..8052ef0 100644
--- a/src/dfasearch.c
+++ b/src/dfasearch.c
@@ -38,7 +38,7 @@ static kwset_t kwset;
 static struct dfa *dfa;
 
 /* The Regex compiled patterns.  */
-static struct patterns
+static const struct patterns
 {
   /* Regex compiled regexp. */
   struct re_pattern_buffer regexbuf;
-- 
2.8.0.rc3






reply via email to

[Prev in Thread] Current Thread [Next in Thread]