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

Go to the documentation of this file.
00001 # include "jam.h"
00002 # include "pathsys.h"
00003 # include "strings.h"
00004 
00005 void
00006 file_build1(
00007     PATHNAME *f,
00008     string* file)
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 }

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