MCPcopy Create free account
hub / github.com/boostorg/build / make_absolute_path

Function make_absolute_path

src/engine/debugger.cpp:325–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325static OBJECT * make_absolute_path( OBJECT * filename )
326{
327 PATHNAME path1[ 1 ];
328 string buf[ 1 ];
329 OBJECT * result;
330 const char * root = object_str( cwd() );
331 path_parse( object_str( filename ), path1 );
332 path1->f_root.ptr = root;
333 path1->f_root.len = int32_t(strlen( root ));
334 string_new( buf );
335 path_build( path1, buf );
336 result = object_new( buf->value );
337 string_free( buf );
338 return result;
339}
340
341static OBJECT * get_filename( OBJECT * path )
342{

Callers 2

debug_frame_writeFunction · 0.85
is_same_fileFunction · 0.85

Calls 7

object_strFunction · 0.85
cwdFunction · 0.85
path_parseFunction · 0.85
string_newFunction · 0.85
path_buildFunction · 0.85
object_newFunction · 0.85
string_freeFunction · 0.85

Tested by

no test coverage detected