/** * Open a source file. * * If the source file is a relative pathname, then it is searched for in the * current directory (the directory of the last source file read) and after * that in the search path. * * We work through the search path in order from the first path specified to * the last. * * If the file is not found, then this function does not return, but calls * die(). * * @param fname Filename to search * @param fullnamep If non-NULL, it is set to the allocated filename of the * file that was opened. The caller is then responsible * for freeing the pointer. * @return pointer to opened FILE
*/
FILE *srcfile_relative_open(constchar *fname, char **fullnamep);
/** * Add a new directory to the search path for input files * * The new path is added at the end of the list. * * @param dirname Directory to add
*/ void srcfile_add_search_path(constchar *dirname);
struct srcpos { int first_line; int first_column; int last_line; int last_column; struct srcfile_state *file; struct srcpos *next;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.