protobuf-c-text
Library to generate & parse text format protobufs in C.
 All Data Structures Files Functions Variables Enumerations Enumerator Macros Groups
Data Fields

Maintains state for successive calls to scan() . More...

Data Fields

unsigned char * cursor
 Where we are in the buffer. More...
 
unsigned char * marker
 Used for backtracking. More...
 
unsigned char * buffer
 The buffer holding the data being parsed. More...
 
unsigned char * limit
 Where the buffer ends. More...
 
unsigned char * token
 Pointer to the start of the current token. More...
 
FILE * f
 For file scanners, this is the input source. More...
 
int line
 Current line number being parsed. More...
 

Detailed Description

Maintains state for successive calls to scan() .

This structure is used by the scanner to maintain state.

Definition at line 182 of file parse.re.

Field Documentation

unsigned char* buffer

The buffer holding the data being parsed.

Definition at line 185 of file parse.re.

Referenced by fill(), scanner_free(), and scanner_init_string().

unsigned char* cursor

Where we are in the buffer.

Definition at line 183 of file parse.re.

Referenced by fill(), scan(), and scanner_init_string().

FILE* f

For file scanners, this is the input source.

Data read from it is put in buffer.

Definition at line 188 of file parse.re.

Referenced by fill(), scanner_free(), and scanner_init_file().

unsigned char* limit

Where the buffer ends.

Definition at line 186 of file parse.re.

Referenced by fill(), and scanner_init_string().

int line

Current line number being parsed.

Used for error reporting.

Definition at line 190 of file parse.re.

Referenced by scanner_init_file(), and scanner_init_string().

unsigned char* marker

Used for backtracking.

Definition at line 184 of file parse.re.

Referenced by fill(), and scanner_init_string().

unsigned char* token

Pointer to the start of the current token.

Definition at line 187 of file parse.re.

Referenced by fill(), and scan().


The documentation for this struct was generated from the following file: