ACT Library
Loading...
Searching...
No Matches
Functions
path.h File Reference

Go to the source code of this file.

Functions

char * act_path_open (char *name)
 
int act_pending_import (char *file)
 
void act_print_import_stack (FILE *fp)
 
void act_pop_import (char *file)
 
void act_push_import (char *file)
 
int act_isimported (const char *file)
 

Function Documentation

◆ act_isimported()

int act_isimported ( const char *  file)

Determines if a file has already been imported. Used to avoid duplicate imports of the same import specifier

Parameters
fileis the specified import
Returns
1 if the specified import has been previously procsssed, 0 otherwise

◆ act_path_open()

char * act_path_open ( char *  name)

Returns a string corresponding to the path name

Parameters
nameis the raw name of the import file
Returns
string corresponded to the fully expanded path name

◆ act_pending_import()

int act_pending_import ( char *  file)

Determines if we are importing the specified file at the moment.

Parameters
fileis the name of the import file
Returns
1 if there is an import pending on the specified file, and 0 otherwise

◆ act_pop_import()

void act_pop_import ( char *  file)

Indicates that the file import is completed, and pops the imported file of the current import stack

Parameters
fileis the name of the import

◆ act_print_import_stack()

void act_print_import_stack ( FILE *  fp)

Error reporting: shows the history of imports

Parameters
fpis the output file pointer to which the error message is displayed

◆ act_push_import()

void act_push_import ( char *  file)

Adds the specified file to the import list

Parameters
fileis the name of the import file