The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

filesys.c File Reference

#include "jam.h"
#include "pathsys.h"
#include "strings.h"

Include dependency graph for filesys.c:

Include dependency graph

Go to the source code of this file.

Functions

void file_build1 (PATHNAME *f, string *file)


Function Documentation

void file_build1 PATHNAME f,
string file
 

Definition at line 6 of file filesys.c.

References f(), file, PATHNAME, string::size, string_append_range(), string_push_back(), and string::value.

Referenced by path_build().

00009 {
00010     if( DEBUG_SEARCH )
00011     {
00012         printf("build file: ");
00013         if( f->f_root.len )
00014             printf( "root = '%.*s' ", f->f_root.len, f->f_root.ptr );
00015         if( f->f_dir.len )
00016             printf( "dir = '%.*s' ", f->f_dir.len, f->f_dir.ptr );
00017         if( f->f_base.len )
00018             printf( "base = '%.*s' ", f->f_base.len, f->f_base.ptr );
00019     }
00020         
00021     /* Start with the grist.  If the current grist isn't */
00022     /* surrounded by <>'s, add them. */
00023 
00024     if( f->f_grist.len )
00025     {
00026         if( f->f_grist.ptr[0] != '<' )
00027             string_push_back( file, '<' );
00028         string_append_range(
00029             file, f->f_grist.ptr, f->f_grist.ptr + f->f_grist.len );
00030         if( file->value[file->size - 1] != '>' )
00031             string_push_back( file, '>' );
00032     }
00033 }

Here is the call graph for this function:


Generated on Mon Nov 8 17:07:59 2004 for MPT by  doxygen 1.3.9.1