| 323 | } |
| 324 | |
| 325 | static 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 | |
| 341 | static OBJECT * get_filename( OBJECT * path ) |
| 342 | { |
no test coverage detected