[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
- bug#23712: [PATCH 1/6] maint: mark a couple of static variables const,
Zev Weiss <=
- bug#23713: [PATCH 2/6] maint: replace bitwise with logical OR, Zev Weiss, 2016/06/07
- bug#23714: [PATCH 3/6] grep: correct a stale comment and remove dead code, Zev Weiss, 2016/06/07
- bug#23716: [PATCH 5/6] grep: remove unnecessary dirdesc variable., Zev Weiss, 2016/06/07
- bug#23715: [PATCH 4/6] grep: convert list_files to an enum, Zev Weiss, 2016/06/07
- bug#23717: [PATCH 6/6] grep: do pagesize initialization and buffer allocation earlier, Zev Weiss, 2016/06/07