ReactOS 0.4.16-dev-838-g27bb510
|
Go to the source code of this file.
Classes | |
struct | parser |
Macros | |
#define | NDEBUG |
#define | CONTROL_Z '\x1a' |
#define | MAX_SECTION_NAME_LEN 255 |
#define | MAX_FIELD_LEN 511 /* larger fields get silently truncated */ |
#define | MAX_STRING_LEN (MAX_INF_STRING_LENGTH+1) |
Typedefs | |
typedef const WCHAR *(* | parser_state_func) (struct parser *parser, const WCHAR *pos) |
Enumerations | |
enum | parser_state { HEADER , PARSE_WIN31_LINE , LINE_START , KEY_NAME , DELETE_KEY , DEFAULT_VALUE_NAME , QUOTED_VALUE_NAME , DATA_START , DELETE_VALUE , DATA_TYPE , STRING_DATA , DWORD_DATA , HEX_DATA , EOL_BACKSLASH , HEX_MULTILINE , UNKNOWN_DATA , SET_VALUE , NB_PARSER_STATES , HEADER , PARSE_WIN31_LINE , LINE_START , KEY_NAME , DELETE_KEY , DEFAULT_VALUE_NAME , QUOTED_VALUE_NAME , DATA_START , DELETE_VALUE , DATA_TYPE , STRING_DATA , DWORD_DATA , HEX_DATA , EOL_BACKSLASH , HEX_MULTILINE , UNKNOWN_DATA , SET_VALUE , NB_PARSER_STATES , LINE_START , SECTION_NAME , KEY_NAME , VALUE_NAME , EOL_BACKSLASH , QUOTES , LEADING_SPACES , TRAILING_SPACES , COMMENT , NB_PARSER_STATES , LINE_START , SECTION_NAME , KEY_NAME , VALUE_NAME , EOL_BACKSLASH , QUOTES , LEADING_SPACES , TRAILING_SPACES , COMMENT , NB_PARSER_STATES , LINE_START , SECTION_NAME , KEY_NAME , VALUE_NAME , EOL_BACKSLASH , QUOTES , LEADING_SPACES , TRAILING_SPACES , COMMENT , NB_PARSER_STATES } |
Variables | |
static const parser_state_func | parser_funcs [NB_PARSER_STATES] |
#define MAX_STRING_LEN (MAX_INF_STRING_LENGTH+1) |
Definition at line 25 of file infcore.c.
Definition at line 517 of file infcore.c.
Referenced by key_name_state(), and value_name_state().
Definition at line 485 of file infcore.c.
Referenced by section_name_state().
Definition at line 739 of file infcore.c.
PVOID InfpAddFieldToLine | ( | PINFCACHELINE | Line, |
PCWSTR | Data | ||
) |
Definition at line 353 of file infcore.c.
Referenced by add_field_from_token().
PVOID InfpAddKeyToLine | ( | PINFCACHELINE | Line, |
PCWSTR | Key | ||
) |
Definition at line 324 of file infcore.c.
Referenced by add_field_from_token().
PINFCACHELINE InfpAddLine | ( | PINFCACHESECTION | Section | ) |
Definition at line 217 of file infcore.c.
Referenced by add_field_from_token(), and InfpAddLineWithKey().
PINFCACHESECTION InfpAddSection | ( | PINFCACHE | Cache, |
PCWSTR | Name | ||
) |
Definition at line 171 of file infcore.c.
Referenced by add_section_from_token(), and InfpFindOrAddSection().
PINFCACHELINE InfpFindKeyLine | ( | PINFCACHESECTION | Section, |
PCWSTR | Key | ||
) |
Definition at line 390 of file infcore.c.
Referenced by InfpFindFirstLine().
PINFCACHELINE InfpFindLineById | ( | PINFCACHESECTION | Section, |
UINT | Id | ||
) |
Definition at line 292 of file infcore.c.
Referenced by InfpGetLineForContext().
PINFCACHESECTION InfpFindSection | ( | PINFCACHE | Cache, |
PCWSTR | Name | ||
) |
Definition at line 143 of file infcore.c.
Referenced by add_section_from_token(), InfpFindFirstLine(), InfpFindOrAddSection(), and InfpParseBuffer().
PINFCACHESECTION InfpFindSectionById | ( | PINFCACHE | Cache, |
UINT | Id | ||
) |
Definition at line 255 of file infcore.c.
Referenced by InfpGetSectionForContext().
|
static |
Definition at line 86 of file infcore.c.
Referenced by InfpFreeSection().
PINFCACHESECTION InfpFreeSection | ( | PINFCACHESECTION | Section | ) |
Definition at line 119 of file infcore.c.
Referenced by InfCloseFile(), and InfHostCloseFile().
PINFCACHELINE InfpGetLineForContext | ( | PINFCONTEXT | Context | ) |
Definition at line 310 of file infcore.c.
Referenced by InfpAddField(), InfpFindNextLine(), InfpFindNextMatchLine(), InfpGetBinaryField(), InfpGetData(), InfpGetDataField(), InfpGetFieldCount(), InfpGetIntField(), InfpGetMultiSzField(), and InfpGetStringField().
PINFCACHESECTION InfpGetSectionForContext | ( | PINFCONTEXT | Context | ) |
Definition at line 273 of file infcore.c.
Referenced by InfpAddLineWithKey(), InfpFindFirstMatchLine(), InfpFindNextMatchLine(), and InfpGetLineForContext().
INFSTATUS InfpParseBuffer | ( | PINFCACHE | file, |
const WCHAR * | buffer, | ||
const WCHAR * | end, | ||
PULONG | error_line | ||
) |
Definition at line 436 of file infcore.c.
Referenced by eol_backslash_state(), and line_start_state().
Definition at line 443 of file infcore.c.
Referenced by comment_state(), key_name_state(), leading_spaces_state(), quotes_state(), section_name_state(), trailing_spaces_state(), and value_name_state().
Definition at line 632 of file infcore.c.
Definition at line 419 of file infcore.c.
Referenced by comment_state(), eol_backslash_state(), leading_spaces_state(), quotes_state(), and trailing_spaces_state().
Definition at line 411 of file infcore.c.
Referenced by eol_backslash_state(), key_name_state(), line_start_state(), section_name_state(), and value_name_state().
Definition at line 454 of file infcore.c.
Referenced by eol_backslash_state(), key_name_state(), quotes_state(), section_name_state(), and value_name_state().
Definition at line 610 of file infcore.c.
|
static |
Definition at line 427 of file infcore.c.
Referenced by eol_backslash_state(), key_name_state(), leading_spaces_state(), line_start_state(), section_name_state(), trailing_spaces_state(), and value_name_state().
|
static |
Definition at line 69 of file infcore.c.
Referenced by InfpParseBuffer().