Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79472 - trunk/tools/build/v2/engine
From: jurko.gospodnetic_at_[hidden]
Date: 2012-07-13 12:42:26


Author: jurko
Date: 2012-07-13 12:42:25 EDT (Fri, 13 Jul 2012)
New Revision: 79472
URL: http://svn.boost.org/trac/boost/changeset/79472

Log:
Minor stylistic changes.
Text files modified:
   trunk/tools/build/v2/engine/hcache.c | 22 ++++++++++------------
   1 files changed, 10 insertions(+), 12 deletions(-)

Modified: trunk/tools/build/v2/engine/hcache.c
==============================================================================
--- trunk/tools/build/v2/engine/hcache.c (original)
+++ trunk/tools/build/v2/engine/hcache.c 2012-07-13 12:42:25 EDT (Fri, 13 Jul 2012)
@@ -249,7 +249,7 @@
         count = atoi( object_str( includes_count_str ) );
         for ( l = L0, i = 0; i < count; ++i )
         {
- OBJECT * s = read_netstring( f );
+ OBJECT * const s = read_netstring( f );
             if ( !s )
             {
                 fprintf( stderr, "invalid %s\n", hcachename );
@@ -419,8 +419,6 @@
 {
     HCACHEDATA * c;
 
- LIST * l = 0;
-
     ++queries;
 
     if ( ( c = (HCACHEDATA *)hash_find( hcachehash, t->boundname ) ) )
@@ -468,8 +466,7 @@
                         t->boundname ) );
                 c->age = 0;
                 ++hits;
- l = list_copy( c->includes );
- return l;
+ return list_copy( c->includes );
             }
         }
         else
@@ -496,15 +493,16 @@
     }
 
     /* 'c' points at the cache entry. Its out of date. */
+ {
+ LIST * const l = headers1( L0, t->boundname, rec, re );
 
- l = headers1( L0, t->boundname, rec, re );
-
- c->time = t->time;
- c->age = 0;
- c->includes = list_copy( l );
- c->hdrscan = list_copy( hdrscan );
+ c->time = t->time;
+ c->age = 0;
+ c->includes = list_copy( l );
+ c->hdrscan = list_copy( hdrscan );
 
- return l;
+ return l;
+ }
 }
 
 #endif /* OPT_HEADER_CACHE_EXT */


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