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 ee9c7844147c001004f4b87171c26238d24f8194 (commit)
via 15eaeefe3a140ef496ebd7d3234041bcba0c462f (commit)
from 5226ec4d60af5e8659345ac6f18efcc966b65987 (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=ee9c7844147c001004f4b87171c26238d24f8194
commit ee9c7844147c001004f4b87171c26238d24f8194
Author: Paolo Bonzini <[email protected]>
Date: Tue Jun 28 09:44:02 2011 +0200
dfa: use memcpy to copy position_sets
* src/dfa.c (copy): Use memcpy.
diff --git a/src/dfa.c b/src/dfa.c
index 0bb810d..a36b80a 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -1831,10 +1831,7 @@ dfaparse (char const *s, size_t len, struct dfa *d)
static void
copy (position_set const *src, position_set *dst)
{
- int i;
-
- for (i = 0; i < src->nelem; ++i)
- dst->elems[i] = src->elems[i];
+ memcpy(dst->elems, src->elems, sizeof(dst->elems[0]) * src->nelem);
dst->nelem = src->nelem;
}
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=15eaeefe3a140ef496ebd7d3234041bcba0c462f
commit ee9c7844147c001004f4b87171c26238d24f8194
Author: Paolo Bonzini <[email protected]>
Date: Tue Jun 28 09:44:02 2011 +0200
dfa: use memcpy to copy position_sets
* src/dfa.c (copy): Use memcpy.
diff --git a/src/dfa.c b/src/dfa.c
index 0bb810d..a36b80a 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -1831,10 +1831,7 @@ dfaparse (char const *s, size_t len, struct dfa *d)
static void
copy (position_set const *src, position_set *dst)
{
- int i;
-
- for (i = 0; i < src->nelem; ++i)
- dst->elems[i] = src->elems[i];
+ memcpy(dst->elems, src->elems, sizeof(dst->elems[0]) * src->nelem);
dst->nelem = src->nelem;
}
-----------------------------------------------------------------------
Summary of changes:
src/dfa.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
hooks/post-receive
--
grep