[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.18-58-gd9869ef
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v2.18-58-gd9869ef |
Date: |
Tue, 08 Apr 2014 20:15:58 +0000 |
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 d9869ef79c2e1c549c2b2100b2115b0cdb1d3297 (commit)
from 06d479820ac1a80a1c75fc8f4afe83b75f6fe64d (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=d9869ef79c2e1c549c2b2100b2115b0cdb1d3297
commit d9869ef79c2e1c549c2b2100b2115b0cdb1d3297
Author: Paul Eggert <address@hidden>
Date: Tue Apr 8 13:15:24 2014 -0700
grep: remove bool_bf
The extra complexity of this microoptimization wasn't ever much help,
and currently it generated bigger code with gcc -O2 (x86-64).
* src/dfa.c (bool_bf): Remove. All uses replaced by plain 'bool',
without a bitfield.
diff --git a/src/dfa.c b/src/dfa.c
index 34f230e..a3cfa8d 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -34,13 +34,6 @@
#include <locale.h>
#include <stdbool.h>
-/* The pre-C99 <stdbool.h> emulation doesn't work for bool bitfields. */
-#if __STDC_VERSION__ < 199901
-typedef unsigned int bool_bf;
-#else
-typedef bool bool_bf;
-#endif
-
#define STREQ(a, b) (strcmp (a, b) == 0)
/* ISASCIIDIGIT differs from isdigit, as follows:
@@ -291,8 +284,8 @@ typedef struct
size_t hash; /* Hash of the positions of this state. */
position_set elems; /* Positions this state could match. */
unsigned char context; /* Context from previous state. */
- bool_bf has_backref : 1; /* True if this state matches a \<digit>. */
- bool_bf has_mbcset : 1; /* True if this state matches a MBCSET. */
+ bool has_backref; /* True if this state matches a \<digit>. */
+ bool has_mbcset; /* True if this state matches a MBCSET. */
unsigned short constraint; /* Constraint for this state to accept. */
token first_end; /* Token value of the first END in elems. */
position_set mbps; /* Positions which can match multibyte
-----------------------------------------------------------------------
Summary of changes:
src/dfa.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
hooks/post-receive
--
grep
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.18-58-gd9869ef,
Paul Eggert <=