|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80031 - in trunk/tools/build/v2/engine: . modules
From: jurko.gospodnetic_at_[hidden]
Date: 2012-08-14 08:56:10
Author: jurko
Date: 2012-08-14 08:56:10 EDT (Tue, 14 Aug 2012)
New Revision: 80031
URL: http://svn.boost.org/trac/boost/changeset/80031
Log:
Boost Jam cleanup - minor stylistic changes.
Text files modified:
trunk/tools/build/v2/engine/builtins.c | 14 +++++++-------
trunk/tools/build/v2/engine/modules/path.c | 11 +++++++----
2 files changed, 14 insertions(+), 11 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-08-14 08:56:10 EDT (Tue, 14 Aug 2012)
@@ -1504,8 +1504,7 @@
LIST * builtin_sort( FRAME * frame, int flags )
{
- LIST * arg1 = lol_get( frame->args, 0 );
- return list_sort( arg1 );
+ return list_sort( lol_get( frame->args, 0 ) );
}
@@ -1514,10 +1513,10 @@
LIST * arg = lol_get( frame->args, 0 );
/* First, we iterate over all '/'-separated elements, starting from the end
- * of string. If we see a '..', we remove a previous path elements. If we
- * see '.', we remove it. The removal is done by overwriting data using '\1'
- * in the string. After the whole string has been processed, we do a second
- * pass, removing all the entered '\1' characters.
+ * of string. If we see a '..', we remove a preceeding path element. If we
+ * see '.', we remove it. Removal is done by overwriting data using '\1'
+ * characters. After the whole string has been processed, we do a second
+ * pass, removing any entered '\1' characters.
*/
string in[ 1 ];
@@ -1530,7 +1529,8 @@
int dotdots = 0;
int rooted = 0;
OBJECT * result = 0;
- LISTITER arg_iter = list_begin( arg ), arg_end = list_end( arg );
+ LISTITER arg_iter = list_begin( arg );
+ LISTITER arg_end = list_end( arg );
/* Make a copy of input: we should not change it. Prepend a '/' before it as
* a guard for the algorithm later on and remember whether it was originally
Modified: trunk/tools/build/v2/engine/modules/path.c
==============================================================================
--- trunk/tools/build/v2/engine/modules/path.c (original)
+++ trunk/tools/build/v2/engine/modules/path.c 2012-08-14 08:56:10 EDT (Tue, 14 Aug 2012)
@@ -1,7 +1,10 @@
-/* Copyright Vladimir Prus 2003. Distributed under the Boost */
-/* Software License, Version 1.0. (See accompanying */
-/* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */
+/* Copyright Vladimir Prus 2003.
+ * Distributed under the Boost Software License, Version 1.0.
+ * (See accompanying file LICENSE_1_0.txt or copy at
+ * http://www.boost.org/LICENSE_1_0.txt)
+ */
+#include "../constants.h"
#include "../native.h"
#include "../object.h"
#include "../timestamp.h"
@@ -11,7 +14,7 @@
{
timestamp time;
timestamp_from_path( &time, list_front( lol_get( frame->args, 0 ) ) );
- return timestamp_empty( &time ) ? L0 : list_new( object_new( "true" ) );
+ return timestamp_empty( &time ) ? L0 : list_new( constant_true );
}
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