Linux Kernel
3.7.1
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | srcfile_state |
struct | srcpos |
Macros | |
#define | YYLTYPE struct srcpos |
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
Functions | |
FILE * | srcfile_relative_open (const char *fname, char **fullnamep) |
void | srcfile_push (const char *fname) |
int | srcfile_pop (void) |
void | srcfile_add_search_path (const char *dirname) |
void | srcpos_update (struct srcpos *pos, const char *text, int len) |
struct srcpos * | srcpos_copy (struct srcpos *pos) |
char * | srcpos_string (struct srcpos *pos) |
void | srcpos_dump (struct srcpos *pos) |
void | srcpos_verror (struct srcpos *pos, char const *, va_list va) __attribute__((format(printf |
void void | srcpos_error (struct srcpos *pos, char const *,...) __attribute__((format(printf |
void void void | srcpos_warn (struct srcpos *pos, char const *,...) __attribute__((format(printf |
void void void void | srcpos_set_line (char *f, int l) |
Variables | |
FILE * | depfile |
struct srcfile_state * | current_srcfile |
struct srcpos | srcpos_empty |
#define YYLLOC_DEFAULT | ( | Current, | |
Rhs, | |||
N | |||
) |
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().
fname | Filename to search |
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. |
struct srcfile_state* current_srcfile |