mirror of
https://github.com/boostorg/build.git
synced 2026-02-21 02:52:12 +00:00
Fix windows & vms engine compile.
This commit is contained in:
@@ -185,7 +185,7 @@ void file_dirscan_( file_info_t * const d, scanback func, void * closure )
|
||||
* There will be no trailing slash in $(p), but there will be one in
|
||||
* $(p2). But, that seems rather fragile.
|
||||
*/
|
||||
OBJECT * const dir_no_slash = object_new_range( name, 2 );
|
||||
OBJECT * dir_no_slash = object_new_range( name, 2 );
|
||||
(*func)( closure, d->name, 1 /* stat()'ed */, &d->time );
|
||||
(*func)( closure, dir_no_slash, 1 /* stat()'ed */, &d->time );
|
||||
object_free( dir_no_slash );
|
||||
@@ -379,7 +379,7 @@ void file_archscan( char const * arch, scanback func, void * closure )
|
||||
object_str( archive->file->name ),
|
||||
object_str( member_file->name ) );
|
||||
{
|
||||
OBJECT * const member = object_new( buf );
|
||||
OBJECT * member = object_new( buf );
|
||||
(*func)( closure, member, 1 /* time valid */, &member_file->time );
|
||||
object_free( member );
|
||||
}
|
||||
|
||||
@@ -363,7 +363,7 @@ void file_archscan( char const * arch, scanback func, void * closure )
|
||||
object_str( archive->file->name ),
|
||||
object_str( member_file->name ) );
|
||||
{
|
||||
OBJECT * const member = object_new( buf );
|
||||
OBJECT * member = object_new( buf );
|
||||
(*func)( closure, member, 1 /* time valid */, &member_file->time );
|
||||
object_free( member );
|
||||
}
|
||||
|
||||
@@ -141,7 +141,7 @@ static int canonicWindowsPath( char const * const path, int32_t path_length,
|
||||
{
|
||||
char const * const dir = path;
|
||||
const int32_t dir_length = int32_t(p - path);
|
||||
OBJECT * const dir_obj = object_new_range( dir, dir_length );
|
||||
OBJECT * dir_obj = object_new_range( dir, dir_length );
|
||||
int found;
|
||||
path_key_entry * const result = (path_key_entry *)hash_insert(
|
||||
path_key_cache, dir_obj, &found );
|
||||
@@ -395,7 +395,7 @@ OBJECT * path_as_key( OBJECT * path )
|
||||
|
||||
static void free_path_key_entry( void * xentry, void * const data )
|
||||
{
|
||||
path_key_entry * const entry = (path_key_entry *)xentry;
|
||||
path_key_entry * entry = (path_key_entry *)xentry;
|
||||
if (entry->path) object_free( entry->path );
|
||||
if (entry->key) object_free( entry->key );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user