[Top][All Lists]

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

[SCM] GNU M4 source repository branch, master, updated. cvs-readonly-62-

From: Eric Blake
Subject: [SCM] GNU M4 source repository branch, master, updated. cvs-readonly-62-g7f0b47b
Date: Fri, 15 Feb 2008 23:53:35 +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 "GNU M4 source repository".


The branch, master has been updated
       via  7f0b47b96e8872513aae3a4e3819aef6d799e6bd (commit)
      from  e3dce8bbfdf9b917089814b081c80fb40958e1a9 (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 -----------------------------------------------------------------
commit 7f0b47b96e8872513aae3a4e3819aef6d799e6bd
Author: Eric Blake <address@hidden>
Date:   Fri Feb 15 16:46:50 2008 -0700

    * modules/gnu.c (regexp_compile): Use a fastmap for regex speed.
    Signed-off-by: Eric Blake <address@hidden>


Summary of changes:
 ChangeLog     |    4 ++++
 modules/gnu.c |    2 ++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f50ac37..0e3c93e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-02-15  Eric Blake  <address@hidden>
+       * modules/gnu.c (regexp_compile): Use a fastmap for regex speed.
 2008-02-13  Eric Blake  <address@hidden>
        Fix texinfo grammar.
diff --git a/modules/gnu.c b/modules/gnu.c
index 10fb0ac..f3b7fb7 100644
--- a/modules/gnu.c
+++ b/modules/gnu.c
@@ -175,6 +175,8 @@ regexp_compile (m4 *context, const char *caller, const char 
       free (pat);
       return NULL;
+  /* Use a fastmap for speed; it is freed by regfree.  */
+  pat->fastmap = xcharalloc (256);
   /* Now, find a victim slot.  Decrease the count of all entries, then
      prime the count of the victim slot at REGEX_CACHE_SIZE.  This

GNU M4 source repository

reply via email to

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