File: filesys.c

package info (click to toggle)
boost-jam 3.1.10-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,004 kB
  • ctags: 1,703
  • sloc: ansic: 11,378; yacc: 456; sh: 192; makefile: 43
file content (33 lines) | stat: -rw-r--r-- 861 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# include "jam.h"
# include "pathsys.h"
# include "strings.h"

void
file_build1(
    PATHNAME *f,
    string* file)
{
    if( DEBUG_SEARCH )
    {
	printf("build file: ");
	if( f->f_root.len )
            printf( "root = '%.*s' ", f->f_root.len, f->f_root.ptr );
	if( f->f_dir.len )
            printf( "dir = '%.*s' ", f->f_dir.len, f->f_dir.ptr );
	if( f->f_base.len )
            printf( "base = '%.*s' ", f->f_base.len, f->f_base.ptr );
    }
	
    /* Start with the grist.  If the current grist isn't */
    /* surrounded by <>'s, add them. */

    if( f->f_grist.len )
    {
        if( f->f_grist.ptr[0] != '<' )
            string_push_back( file, '<' );
        string_append_range(
            file, f->f_grist.ptr, f->f_grist.ptr + f->f_grist.len );
        if( file->value[file->size - 1] != '>' )
            string_push_back( file, '>' );
    }
}