Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79587 - trunk/tools/build/v2/engine
From: jurko.gospodnetic_at_[hidden]
Date: 2012-07-18 11:06:46


Author: jurko
Date: 2012-07-18 11:06:44 EDT (Wed, 18 Jul 2012)
New Revision: 79587
URL: http://svn.boost.org/trac/boost/changeset/79587

Log:
Boost Jam code cleanup - minor stylistic changes (added missing spaces around some parameters inside brackets in C code).
Text files modified:
   trunk/tools/build/v2/engine/builtins.c | 4 ++--
   trunk/tools/build/v2/engine/compile.c | 2 +-
   trunk/tools/build/v2/engine/execnt.c | 2 +-
   trunk/tools/build/v2/engine/execunix.c | 2 +-
   trunk/tools/build/v2/engine/filesys.c | 2 +-
   trunk/tools/build/v2/engine/jam.c | 2 +-
   trunk/tools/build/v2/engine/rules.c | 2 +-
   trunk/tools/build/v2/engine/strings.h | 4 ++--
   8 files changed, 10 insertions(+), 10 deletions(-)

Modified: trunk/tools/build/v2/engine/builtins.c
==============================================================================
--- trunk/tools/build/v2/engine/builtins.c (original)
+++ trunk/tools/build/v2/engine/builtins.c 2012-07-18 11:06:44 EDT (Wed, 18 Jul 2012)
@@ -1789,8 +1789,8 @@
 
         strcpy( buffer, object_str( string ) );
         for ( i = current; i < desired; ++i )
- buffer[i] = ' ';
- buffer[desired] = '\0';
+ buffer[ i ] = ' ';
+ buffer[ desired ] = '\0';
         result = list_new( object_new( buffer ) );
         BJAM_FREE( buffer );
         return result;

Modified: trunk/tools/build/v2/engine/compile.c
==============================================================================
--- trunk/tools/build/v2/engine/compile.c (original)
+++ trunk/tools/build/v2/engine/compile.c 2012-07-18 11:06:44 EDT (Wed, 18 Jul 2012)
@@ -273,7 +273,7 @@
 static void debug_compile( int which, char const * s, FRAME * frame )
 {
     static int level = 0;
- static char indent[36] = ">>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|";
+ static char indent[ 36 ] = ">>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|";
 
     if ( which >= 0 )
     {

Modified: trunk/tools/build/v2/engine/execnt.c
==============================================================================
--- trunk/tools/build/v2/engine/execnt.c (original)
+++ trunk/tools/build/v2/engine/execnt.c 2012-07-18 11:06:44 EDT (Wed, 18 Jul 2012)
@@ -308,7 +308,7 @@
         char const * p = cmd_orig->value + cmd_orig->size;
         char const * end = p;
         while ( isspace( *start ) ) ++start;
- while ( p > start && isspace( p[-1] ) )
+ while ( p > start && isspace( p[ -1 ] ) )
             if ( *--p == '\n' )
                 end = p;
         string_new( cmd_local );

Modified: trunk/tools/build/v2/engine/execunix.c
==============================================================================
--- trunk/tools/build/v2/engine/execunix.c (original)
+++ trunk/tools/build/v2/engine/execunix.c 2012-07-18 11:06:44 EDT (Wed, 18 Jul 2012)
@@ -339,7 +339,7 @@
      * contains the command status at beginning of it own line instead of
      * appended to end of the previous output.
      */
- if ( globs.max_buf && globs.max_buf <= cmdtab[i].buf_size[s] )
+ if ( globs.max_buf && globs.max_buf <= cmdtab[ i ].buf_size[ s ] )
         cmdtab[ i ].buffer[ s ][ cmdtab[ i ].buf_size[ s ] - 2 ] = '\n';
 
     return feof( cmdtab[ i ].stream[ s ] );

Modified: trunk/tools/build/v2/engine/filesys.c
==============================================================================
--- trunk/tools/build/v2/engine/filesys.c (original)
+++ trunk/tools/build/v2/engine/filesys.c 2012-07-18 11:06:44 EDT (Wed, 18 Jul 2012)
@@ -78,7 +78,7 @@
      */
     if ( f->f_grist.len )
     {
- if ( f->f_grist.ptr[0] != '<' )
+ if ( f->f_grist.ptr[ 0 ] != '<' )
             string_push_back( file, '<' );
         string_append_range(
             file, f->f_grist.ptr, f->f_grist.ptr + f->f_grist.len );

Modified: trunk/tools/build/v2/engine/jam.c
==============================================================================
--- trunk/tools/build/v2/engine/jam.c (original)
+++ trunk/tools/build/v2/engine/jam.c 2012-07-18 11:06:44 EDT (Wed, 18 Jul 2012)
@@ -455,7 +455,7 @@
          */
         for ( n = 0; n < arg_c; ++n )
             var_set( root_module(), constant_ARGV, list_new( object_new(
- arg_v[n] ) ), VAR_APPEND );
+ arg_v[ n ] ) ), VAR_APPEND );
 
         /* Initialize built-in rules. */
         load_builtins();

Modified: trunk/tools/build/v2/engine/rules.c
==============================================================================
--- trunk/tools/build/v2/engine/rules.c (original)
+++ trunk/tools/build/v2/engine/rules.c 2012-07-18 11:06:44 EDT (Wed, 18 Jul 2012)
@@ -667,7 +667,7 @@
         char *p = strchr( object_str( rulename ), '.' ) ;
         if ( p )
         {
- string buf[1];
+ string buf[ 1 ];
             OBJECT * module_part;
             OBJECT * rule_part;
             string_new( buf );

Modified: trunk/tools/build/v2/engine/strings.h
==============================================================================
--- trunk/tools/build/v2/engine/strings.h (original)
+++ trunk/tools/build/v2/engine/strings.h 2012-07-18 11:06:44 EDT (Wed, 18 Jul 2012)
@@ -12,9 +12,9 @@
     char * value;
     unsigned long size;
     unsigned long capacity;
- char opt[32];
+ char opt[ 32 ];
 #ifndef NDEBUG
- char magic[4];
+ char magic[ 4 ];
 #endif
 } string;
 


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