Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r80155 - trunk/tools/build/v2/engine
From: jurko.gospodnetic_at_[hidden]
Date: 2012-08-23 08:56:42


Author: jurko
Date: 2012-08-23 08:56:39 EDT (Thu, 23 Aug 2012)
New Revision: 80155
URL: http://svn.boost.org/trac/boost/changeset/80155

Log:
Boost Jam cleanup - minor stylistic changes.
Text files modified:
   trunk/tools/build/v2/engine/pathunix.c | 2 +-
   trunk/tools/build/v2/engine/pwd.c | 13 ++++++++-----
   trunk/tools/build/v2/engine/pwd.h | 13 +++++++++----
   trunk/tools/build/v2/engine/search.c | 7 ++++---
   trunk/tools/build/v2/engine/timestamp.c | 9 +++++----
   trunk/tools/build/v2/engine/variable.h | 6 +++---
   6 files changed, 30 insertions(+), 20 deletions(-)

Modified: trunk/tools/build/v2/engine/pathunix.c
==============================================================================
--- trunk/tools/build/v2/engine/pathunix.c (original)
+++ trunk/tools/build/v2/engine/pathunix.c 2012-08-23 08:56:39 EDT (Thu, 23 Aug 2012)
@@ -471,7 +471,7 @@
 {
     if ( path_key_cache )
     {
- hashenumerate( path_key_cache, &free_path_key_entry, (void *)0 );
+ hashenumerate( path_key_cache, &free_path_key_entry, 0 );
         hashdone( path_key_cache );
     }
 }

Modified: trunk/tools/build/v2/engine/pwd.c
==============================================================================
--- trunk/tools/build/v2/engine/pwd.c (original)
+++ trunk/tools/build/v2/engine/pwd.c 2012-08-23 08:56:39 EDT (Thu, 23 Aug 2012)
@@ -1,11 +1,14 @@
-/* Copyright Vladimir Prus 2002, Rene Rivera 2005.
+/*
+ * Copyright 2002. Vladimir Prus
+ * Copyright 2005. Rene Rivera
  * 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 "jam.h"
-#include "lists.h"
+#include "pwd.h"
+
 #include "mem.h"
 #include "object.h"
 #include "pathsys.h"
@@ -13,8 +16,8 @@
 #include <errno.h>
 #include <limits.h>
 
-/* MinGW on windows declares PATH_MAX in limits.h */
-#if defined(NT) && ! defined(__GNUC__)
+/* MinGW on Windows declares PATH_MAX in limits.h */
+#if defined(NT) && !defined(__GNUC__)
 # include <direct.h>
 # define PATH_MAX _MAX_PATH
 #else
@@ -45,7 +48,7 @@
         {
             char * const buffer = BJAM_MALLOC_RAW( buffer_size );
             result_buffer = getcwd( buffer, buffer_size );
- error = errno ;
+ error = errno;
             if ( result_buffer )
             {
                 /* We return the path using its canonical/long/key format. */

Modified: trunk/tools/build/v2/engine/pwd.h
==============================================================================
--- trunk/tools/build/v2/engine/pwd.h (original)
+++ trunk/tools/build/v2/engine/pwd.h 2012-08-23 08:56:39 EDT (Thu, 23 Aug 2012)
@@ -1,11 +1,16 @@
-/* Copyright Vladimir Prus 2002. 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 2002. Vladimir Prus
+ * 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)
+ */
 
 #ifndef PWD_H
 #define PWD_H
 
+#include "lists.h"
+
 LIST * pwd( void );
-void pwd_done( void );
+void pwd_done( void );
 
 #endif

Modified: trunk/tools/build/v2/engine/search.c
==============================================================================
--- trunk/tools/build/v2/engine/search.c (original)
+++ trunk/tools/build/v2/engine/search.c 2012-08-23 08:56:39 EDT (Thu, 23 Aug 2012)
@@ -38,7 +38,7 @@
 
 void call_bind_rule( OBJECT * target_, OBJECT * boundname_ )
 {
- LIST * bind_rule = var_get( root_module(), constant_BINDRULE );
+ LIST * const bind_rule = var_get( root_module(), constant_BINDRULE );
     if ( !list_empty( bind_rule ) )
     {
         OBJECT * target = object_copy( target_ );
@@ -81,8 +81,9 @@
  * LOCATE setting, stop and return the location. In case of a previous target,
  * return its name via the 'another_target' argument.
  *
- * This bevahiour allows handling dependencies on generated files. If caller
- * does not expect that the target is generated, 0 can be passed as
+ * This behaviour allows handling dependencies on generated files.
+ *
+ * If caller does not expect that the target is generated, 0 can be passed as
  * 'another_target'.
  */
 

Modified: trunk/tools/build/v2/engine/timestamp.c
==============================================================================
--- trunk/tools/build/v2/engine/timestamp.c (original)
+++ trunk/tools/build/v2/engine/timestamp.c 2012-08-23 08:56:39 EDT (Thu, 23 Aug 2012)
@@ -4,10 +4,11 @@
  * This file is part of Jam - see jam.c for Copyright information.
  */
 
-/* This file is ALSO:
- * Copyright 2001-2004 David Abrahams.
- * Distributed under the Boost Software License, Version 1.0.
- * (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+/* This file is ALSO:
+ * Copyright 2001-2004 David Abrahams.
+ * Distributed under the Boost Software License, Version 1.0.
+ * (See accompanying file LICENSE_1_0.txt or
+ * http://www.boost.org/LICENSE_1_0.txt)
  */
 
 /*

Modified: trunk/tools/build/v2/engine/variable.h
==============================================================================
--- trunk/tools/build/v2/engine/variable.h (original)
+++ trunk/tools/build/v2/engine/variable.h 2012-08-23 08:56:39 EDT (Thu, 23 Aug 2012)
@@ -27,8 +27,8 @@
  * Defines for var_set().
  */
 
-#define VAR_SET 0 /* override previous value */
-#define VAR_APPEND 1 /* append to previous value */
-#define VAR_DEFAULT 2 /* set only if no previous value */
+#define VAR_SET 0 /* override previous value */
+#define VAR_APPEND 1 /* append to previous value */
+#define VAR_DEFAULT 2 /* set only if no previous value */
 
 #endif


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