|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80063 - trunk/tools/build/v2/engine
From: jurko.gospodnetic_at_[hidden]
Date: 2012-08-17 03:15:22
Author: jurko
Date: 2012-08-17 03:15:18 EDT (Fri, 17 Aug 2012)
New Revision: 80063
URL: http://svn.boost.org/trac/boost/changeset/80063
Log:
Boost Build cleanup - minor stylistic changes.
Text files modified:
trunk/tools/build/v2/engine/lists.c | 19 +++++++------------
trunk/tools/build/v2/engine/lists.h | 17 ++++++-----------
trunk/tools/build/v2/engine/pathsys.h | 2 +-
3 files changed, 14 insertions(+), 24 deletions(-)
Modified: trunk/tools/build/v2/engine/lists.c
==============================================================================
--- trunk/tools/build/v2/engine/lists.c (original)
+++ trunk/tools/build/v2/engine/lists.c 2012-08-17 03:15:18 EDT (Fri, 17 Aug 2012)
@@ -4,21 +4,18 @@
* This file is part of Jam - see jam.c for Copyright information.
*/
-# include "jam.h"
-# include "object.h"
-# include "lists.h"
-# include "assert.h"
-
/*
* lists.c - maintain lists of objects
- *
- * 08/23/94 (seiwald) - new list_append()
- * 09/07/00 (seiwald) - documented lol_*() functions
*/
+#include "jam.h"
+#include "lists.h"
+
+#include "assert.h"
+
struct freelist_node { struct freelist_node * next; };
-static struct freelist_node *freelist[ 32 ]; /* junkpile for list_free() */
+static struct freelist_node * freelist[ 32 ]; /* junkpile for list_dealloc() */
static unsigned get_bucket( unsigned size )
{
@@ -27,7 +24,7 @@
return bucket;
}
-static LIST * list_alloc( unsigned size )
+static LIST * list_alloc( unsigned const size )
{
unsigned const bucket = get_bucket( size );
if ( freelist[ bucket ] )
@@ -117,7 +114,6 @@
head->impl.size = 1;
list_begin( head )[ 0 ] = value;
-
return head;
}
@@ -283,7 +279,6 @@
{
int size = list_length( l );
if ( size == 0 ) return L0;
- else
{
LIST * const result = list_alloc( size );
int i;
Modified: trunk/tools/build/v2/engine/lists.h
==============================================================================
--- trunk/tools/build/v2/engine/lists.h (original)
+++ trunk/tools/build/v2/engine/lists.h 2012-08-17 03:15:18 EDT (Fri, 17 Aug 2012)
@@ -51,14 +51,12 @@
* LIST - list of strings
*/
-typedef struct _list LIST;
-
-struct _list {
+typedef struct _list {
union {
int size;
OBJECT * align;
} impl;
-};
+} LIST;
typedef OBJECT * * LISTITER;
@@ -66,19 +64,16 @@
* LOL - list of LISTs
*/
-typedef struct _lol LOL;
-
#define LOL_MAX 19
-
-struct _lol {
+typedef struct _lol {
int count;
LIST * list[ LOL_MAX ];
-};
+} LOL;
LIST * list_new( OBJECT * value );
LIST * list_append( LIST * destination, LIST * source );
LIST * list_copy( LIST * );
-LIST * list_copy_range( LIST * destination , LISTITER first, LISTITER last );
+LIST * list_copy_range( LIST * destination, LISTITER first, LISTITER last );
void list_free( LIST * head );
LIST * list_push_back( LIST * head, OBJECT * value );
void list_print( LIST * );
@@ -87,7 +82,7 @@
LIST * list_pop_front( LIST * );
LIST * list_sort( LIST * );
LIST * list_unique( LIST * sorted_list );
-int list_in( LIST * l, OBJECT * value );
+int list_in( LIST *, OBJECT * value );
LIST * list_reverse( LIST * );
int list_cmp( LIST * lhs, LIST * rhs );
int list_is_sublist( LIST * sub, LIST * l );
Modified: trunk/tools/build/v2/engine/pathsys.h
==============================================================================
--- trunk/tools/build/v2/engine/pathsys.h (original)
+++ trunk/tools/build/v2/engine/pathsys.h 2012-08-17 03:15:18 EDT (Fri, 17 Aug 2012)
@@ -62,7 +62,7 @@
* call to do a potentially expensive path conversion requiring access to the
* actual underlying file system.
*/
-void path_register_key( OBJECT * long_path );
+void path_register_key( OBJECT * path );
#ifdef USE_PATHUNIX
/* Returns a static pointer to the system dependent path to the temporary
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