| Line | |
|---|
| 1 | # include "jam.h" |
|---|
| 2 | # include "pathsys.h" |
|---|
| 3 | # include "strings.h" |
|---|
| 4 | |
|---|
| 5 | void |
|---|
| 6 | file_build1( |
|---|
| 7 | PATHNAME *f, |
|---|
| 8 | string* file) |
|---|
| 9 | { |
|---|
| 10 | if( DEBUG_SEARCH ) |
|---|
| 11 | { |
|---|
| 12 | printf("build file: "); |
|---|
| 13 | if( f->f_root.len ) |
|---|
| 14 | printf( "root = '%.*s' ", f->f_root.len, f->f_root.ptr ); |
|---|
| 15 | if( f->f_dir.len ) |
|---|
| 16 | printf( "dir = '%.*s' ", f->f_dir.len, f->f_dir.ptr ); |
|---|
| 17 | if( f->f_base.len ) |
|---|
| 18 | printf( "base = '%.*s' ", f->f_base.len, f->f_base.ptr ); |
|---|
| 19 | } |
|---|
| 20 | |
|---|
| 21 | /* Start with the grist. If the current grist isn't */ |
|---|
| 22 | /* surrounded by <>'s, add them. */ |
|---|
| 23 | |
|---|
| 24 | if( f->f_grist.len ) |
|---|
| 25 | { |
|---|
| 26 | if( f->f_grist.ptr[0] != '<' ) |
|---|
| 27 | string_push_back( file, '<' ); |
|---|
| 28 | string_append_range( |
|---|
| 29 | file, f->f_grist.ptr, f->f_grist.ptr + f->f_grist.len ); |
|---|
| 30 | if( file->value[file->size - 1] != '>' ) |
|---|
| 31 | string_push_back( file, '>' ); |
|---|
| 32 | } |
|---|
| 33 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.