Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83821 - trunk/tools/build/v2/engine
From: steven_at_[hidden]
Date: 2013-04-09 15:25:12


Author: steven_watanabe
Date: 2013-04-09 15:25:12 EDT (Tue, 09 Apr 2013)
New Revision: 83821
URL: http://svn.boost.org/trac/boost/changeset/83821

Log:
Adjust regex to improve performance.
Text files modified:
   trunk/tools/build/v2/engine/headers.c | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/tools/build/v2/engine/headers.c
==============================================================================
--- trunk/tools/build/v2/engine/headers.c (original)
+++ trunk/tools/build/v2/engine/headers.c 2013-04-09 15:25:12 EDT (Tue, 09 Apr 2013)
@@ -137,7 +137,7 @@
     if ( re_macros == 0 )
     {
         OBJECT * const re_str = object_new(
- "^[ ]*#[ ]*include[ ]*([A-Za-z][A-Za-z0-9_]*).*$" );
+ "#[ \t]*include[ \t]*([A-Za-z][A-Za-z0-9_]*).*$" );
         re_macros = regex_compile( re_str );
         object_free( re_str );
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk