#include "cr-utils.h"
Go to the source code of this file.
Data Structures | |
struct | _CRParsingLocation |
Typedefs | |
typedef _CRParsingLocation | CRParsingLocation |
Enumerations | |
enum | CRParsingLocationSerialisationMask { DUMP_LINE = 1, DUMP_COLUMN = 1 << 1, DUMP_BYTE_OFFSET = 1 << 2 } |
Functions | |
CRParsingLocation * | cr_parsing_location_new (void) |
cr_parsing_location_new: Instanciates a new parsing location. | |
enum CRStatus | cr_parsing_location_init (CRParsingLocation *a_this) |
cr_parsing_location_init: : the current instance of CRParsingLocation. | |
enum CRStatus | cr_parsing_location_copy (CRParsingLocation *a_to, CRParsingLocation *a_from) |
cr_parsing_location_copy: : the destination of the copy. | |
gchar * | cr_parsing_location_to_string (CRParsingLocation *a_this, enum CRParsingLocationSerialisationMask a_mask) |
cr_parsing_location_to_string: : the current instance of CRParsingLocation. | |
void | cr_parsing_location_dump (CRParsingLocation *a_this, enum CRParsingLocationSerialisationMask a_mask, FILE *a_fp) |
cr_parsing_location_dump: : current instance of CRParsingLocation : the serialization mask. | |
void | cr_parsing_location_destroy (CRParsingLocation *a_this) |
cr_parsing_location_destroy: : the current instance of CRParsingLocation. |
This object keeps track of line/column/byte offset/ at which the parsing of a given CSS construction appears.
Definition in file cr-parsing-location.h.
|
Definition at line 38 of file cr-parsing-location.h. |
|
Definition at line 46 of file cr-parsing-location.h. |
|
cr_parsing_location_copy: : the destination of the copy. Must be allocated by the caller. : the source of the copy. Copies an instance of CRParsingLocation into another one. Returns CR_OK upon succesful completion, an error code otherwise. Definition at line 84 of file cr-parsing-location.c. References CR_BAD_PARAM_ERROR, and CR_OK. Referenced by cr_parser_parse_charset(), cr_parser_parse_font_face(), cr_parser_parse_media(), cr_parser_parse_page(), cr_parser_parse_term(), cr_statement_at_import_rule_parse_from_buf(), cr_string_dup(), and cr_tknzr_get_next_token(). |
|
cr_parsing_location_destroy: : the current instance of CRParsingLocation. Must have been allocated with cr_parsing_location_new(). Destroys the current instance of CRParsingLocation Definition at line 167 of file cr-parsing-location.c. |
|
cr_parsing_location_dump: : current instance of CRParsingLocation : the serialization mask. : the file pointer to dump the parsing location to. Definition at line 144 of file cr-parsing-location.c. References cr_parsing_location_to_string(). |
|
cr_parsing_location_init: : the current instance of CRParsingLocation. Initializes the an instance of CRparsingLocation. Returns CR_OK upon succesful completion, an error code otherwise. Definition at line 64 of file cr-parsing-location.c. References CR_BAD_PARAM_ERROR, and CR_OK. Referenced by cr_parsing_location_new(). |
|
cr_parsing_location_new: Instanciates a new parsing location. Returns the newly instanciated CRParsingLocation. Must be freed by cr_parsing_location_destroy() Definition at line 42 of file cr-parsing-location.c. References cr_parsing_location_init(), and cr_utils_trace_info. |
|
cr_parsing_location_to_string: : the current instance of CRParsingLocation. : a bitmap that defines which parts of the parsing location are to be serialized (line, column or byte offset) Returns the serialized string or NULL in case of an error. Definition at line 102 of file cr-parsing-location.c. References _CRParsingLocation::byte_offset, _CRParsingLocation::column, DUMP_BYTE_OFFSET, DUMP_COLUMN, DUMP_LINE, and _CRParsingLocation::line. Referenced by cr_parsing_location_dump(). |