Main Page | Class List | Directories | File List | Class Members | File Members

cpp_path.h File Reference

CKPM C pre-processor include path definitions. More...


Defines

#define MAX_INCLUDE_PATH   30

Functions

_include_path * Path_Create ()
 create and initialize a new path list
void Path_Destroy (struct _include_path *l)
 destroy the path list
void Path_Dump (struct _include_path *l, int fd)
 dump the path list
int Path_Add (struct _include_path *l, char *dir)
 add an entry to the path list
int Path_Remove (struct _include_path *l, char *id)
 remove an entry from the path list
int Path_Search_And_Open (struct _include_path *l, char *name, int loc)
 search a file's path name and open it
int Path_Index (struct _include_path *l, char *dir)
 get an entry index from the path list


Detailed Description

CKPM C pre-processor include path definitions.


Define Documentation

#define MAX_INCLUDE_PATH   30
 

maximum number of directory entries


Function Documentation

int Path_Add struct _include_path *  l,
char *  dir
 

add an entry to the path list

Parameters:
l the path list
dir the new path name
Returns:
new lenght of the path list on success, otherwise -1

struct _include_path* Path_Create  ) 
 

create and initialize a new path list

Returns:
the path list

void Path_Destroy struct _include_path *  l  ) 
 

destroy the path list

Parameters:
l the path list

void Path_Dump struct _include_path *  l,
int  fd
 

dump the path list

Parameters:
l the path list
fd the filedesciptor index of the output file
Returns:
index of the found path on success, otherwise -1

int Path_Index struct _include_path *  l,
char *  dir
 

get an entry index from the path list

Parameters:
l the path list
dir the requested path identification
Returns:
index of the found path on success, otherwise -1

int Path_Remove struct _include_path *  l,
char *  dir
 

remove an entry from the path list

Parameters:
l the path list
dir the requested path name
Returns:
new lenght of the path list on success, otherwise -1

int Path_Search_And_Open struct _include_path *  l,
char *  name,
int  loc
 

search a file's path name and open it

Parameters:
l the path list
name the name of the file who's path is required
loc additionally search the local directory first
Returns:
file descriptor index of the found file on success, otherwise -1


Generated on Thu Jul 13 03:56:36 2006 for CKPMcc by  doxygen 1.4.4