|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80170 - trunk/tools/build/v2/engine
From: jurko.gospodnetic_at_[hidden]
Date: 2012-08-24 10:41:16
Author: jurko
Date: 2012-08-24 10:41:15 EDT (Fri, 24 Aug 2012)
New Revision: 80170
URL: http://svn.boost.org/trac/boost/changeset/80170
Log:
Boost Jam cleanup - pathsys.h had some temporary file/folder related functions #ifdef-ed for the USE_PATHUNIX implementation but that seems redundant now that this is actually the only implementation in Boots Jam. Plus some minor stylistic changes.
Text files modified:
trunk/tools/build/v2/engine/pathsys.h | 22 ++++++++--------------
trunk/tools/build/v2/engine/pathunix.c | 3 ---
2 files changed, 8 insertions(+), 17 deletions(-)
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-24 10:41:15 EDT (Fri, 24 Aug 2012)
@@ -21,21 +21,17 @@
#ifndef PATHSYS_VP_20020211_H
#define PATHSYS_VP_20020211_H
-#include "jam.h"
#include "object.h"
#include "strings.h"
-typedef struct _pathname PATHNAME;
-typedef struct _pathpart PATHPART;
-
-struct _pathpart
+typedef struct _pathpart
{
char const * ptr;
- int len;
-};
+ int len;
+} PATHPART;
-struct _pathname
+typedef struct _pathname
{
PATHPART part[ 6 ];
@@ -45,11 +41,11 @@
#define f_base part[ 3 ]
#define f_suffix part[ 4 ]
#define f_member part[ 5 ]
-};
+} PATHNAME;
-void path_build( PATHNAME * f, string * file );
-void path_parse( char const * file, PATHNAME * f );
-void path_parent( PATHNAME * f );
+void path_build( PATHNAME *, string * file );
+void path_parse( char const * file, PATHNAME * );
+void path_parent( PATHNAME * );
/* Given a path, returns an object containing an equivalent path in canonical
* format that can be used as a unique key for that path. Equivalent paths such
@@ -64,7 +60,6 @@
*/
void path_register_key( OBJECT * canonic_path );
-#ifdef USE_PATHUNIX
/* Returns a static pointer to the system dependent path to the temporary
* directory. NOTE: Does *not* include a trailing path separator.
*/
@@ -75,7 +70,6 @@
/* Returns a new temporary path. */
OBJECT * path_tmpfile( void );
-#endif
/* Give the first argument to 'main', return a full path to our executable.
* Returns null in the unlikely case it cannot be determined. Caller is
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-24 10:41:15 EDT (Fri, 24 Aug 2012)
@@ -25,14 +25,11 @@
*/
#include "jam.h"
-
#ifdef USE_PATHUNIX
#include "pathsys.h"
#include "filesys.h"
-#include "object.h"
-#include "strings.h"
#include <assert.h>
#include <stdlib.h>
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