cr-parsing-location.c File Reference

#include <string.h>
#include "cr-parsing-location.h"

Go to the source code of this file.

Functions

CRParsingLocationcr_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.


Function Documentation

enum CRStatus cr_parsing_location_copy CRParsingLocation a_to,
CRParsingLocation a_from
 

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().

void cr_parsing_location_destroy CRParsingLocation a_this  ) 
 

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.

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.

: 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().

enum CRStatus cr_parsing_location_init CRParsingLocation a_this  ) 
 

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().

CRParsingLocation* cr_parsing_location_new void   ) 
 

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.

gchar* cr_parsing_location_to_string CRParsingLocation a_this,
enum CRParsingLocationSerialisationMask  a_mask
 

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().


Generated on Wed Mar 15 18:23:56 2006 for Libcroco by  doxygen 1.4.6