Boost logo

Boost-Build :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2007-08-06 16:05:10


Rene Rivera schrieb:

> Functionally it looks fine. But I think it could be made simpler, I know
> three lines seems simple, by:

ok, two lines. ;-)

Roland aka speedsnail

Index: tools/jam/src/execnt.c
===================================================================
--- tools/jam/src/execnt.c (revision 38436)
+++ tools/jam/src/execnt.c (working copy)
@@ -199,7 +199,8 @@
     char *argv_static[ MAXARGC + 1 ]; /* +1 for NULL */
     char **argv = argv_static;
     char *p;
-
+ char* command_orig = command;
+
     /* Check to see if we need to hack around the line-length limitation. */
     /* Look for a JAMSHELL setting of "%", indicating that the command
      * should be invoked directly */
@@ -401,7 +402,7 @@
             string_free( &cmdtab[ slot ].target );
             string_new( &cmdtab[ slot ].target );
         }
- string_copy( &cmdtab[ slot ].command, command );
+ string_copy( &cmdtab[ slot ].command, command_orig );
         
         /* put together the comman we run */
         {


Boost-Build 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