Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/tools/build/jam_src/filesys.c @ 12

Last change on this file since 12 was 12, checked in by landauf, 18 years ago

added boost

File size: 861 bytes
Line 
1# include "jam.h"
2# include "pathsys.h"
3# include "strings.h"
4
5void
6file_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.