grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v2.27-28-g1a45e78


From: Paul Eggert
Subject: grep branch, master, updated. v2.27-28-g1a45e78
Date: Mon, 26 Dec 2016 20:05:55 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  1a45e78b8759073c6f184039324d5b4bf8ef8f95 (commit)
      from  1d5679ea305370430538e9c1284db736c8433503 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=1a45e78b8759073c6f184039324d5b4bf8ef8f95


commit 1a45e78b8759073c6f184039324d5b4bf8ef8f95
Author: Paul Eggert <address@hidden>
Date:   Mon Dec 26 09:42:29 2016 -0800

    grep: minor performance tweak for pure functions
    
    * src/search.h (wordchars_size, wordchar_next, wordchar_prev):
    Declare to be pure.

diff --git a/src/search.h b/src/search.h
index 469fc9c..1aa2f94 100644
--- a/src/search.h
+++ b/src/search.h
@@ -48,9 +48,10 @@ typedef signed char mb_len_map_t;
 /* searchutils.c */
 extern void wordinit (void);
 extern kwset_t kwsinit (bool);
-extern size_t wordchars_size (char const *, char const *);
-extern size_t wordchar_next (char const *, char const *);
-extern size_t wordchar_prev (char const *, char const *, char const *);
+extern size_t wordchars_size (char const *, char const *) _GL_ATTRIBUTE_PURE;
+extern size_t wordchar_next (char const *, char const *) _GL_ATTRIBUTE_PURE;
+extern size_t wordchar_prev (char const *, char const *, char const *)
+  _GL_ATTRIBUTE_PURE;
 extern ptrdiff_t mb_goback (char const **, char const *, char const *);
 
 /* dfasearch.c */

-----------------------------------------------------------------------

Summary of changes:
 src/search.h |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

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