Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

cr-parsing-location.c File Reference

Definition of the #CRparsingLocation class. More...

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

Go to the source code of this file.

Functions

CRParsingLocationcr_parsing_location_new (void)
 Instanciates a new parsing location.
enum CRStatus cr_parsing_location_init (CRParsingLocation *a_this)
 Initializes the an instance of #CRparsingLocation.
enum CRStatus cr_parsing_location_copy (CRParsingLocation *a_to, CRParsingLocation *a_from)
 Copies an instance of CRParsingLocation into another one.
gchar * cr_parsing_location_to_string (CRParsingLocation *a_this, enum CRParsingLocationSerialisationMask a_mask)
void cr_parsing_location_dump (CRParsingLocation *a_this, enum CRParsingLocationSerialisationMask a_mask, FILE *a_fp)
void cr_parsing_location_destroy (CRParsingLocation *a_this)
 Destroys the current instance of CRParsingLocation.


Detailed Description

Definition of the #CRparsingLocation class.

Definition in file cr-parsing-location.c.


Function Documentation

enum CRStatus cr_parsing_location_copy CRParsingLocation a_to,
CRParsingLocation a_from
 

Copies an instance of CRParsingLocation into another one.

Parameters:
a_to the destination of the copy. Must be allocated by the caller.
a_from the source of the copy.
Returns:
CR_OK upon succesful completion, an error code otherwise.

Definition at line 75 of file cr-parsing-location.c.

References CR_BAD_PARAM_ERROR, and CRParsingLocation.

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  ) 
 

Destroys the current instance of CRParsingLocation.

Parameters:
a_this the current instance of CRParsingLocation. Must have been allocated with cr_parsing_location_new().

Definition at line 148 of file cr-parsing-location.c.

References CRParsingLocation.

void cr_parsing_location_dump CRParsingLocation a_this,
enum CRParsingLocationSerialisationMask  a_mask,
FILE *  a_fp
 

Definition at line 127 of file cr-parsing-location.c.

References cr_parsing_location_to_string(), and CRParsingLocation.

enum CRStatus cr_parsing_location_init CRParsingLocation a_this  ) 
 

Initializes the an instance of #CRparsingLocation.

Parameters:
a_this the current instance of CRParsingLocation.
Returns:
CR_OK upon

Definition at line 58 of file cr-parsing-location.c.

References CR_BAD_PARAM_ERROR, and CRParsingLocation.

Referenced by cr_parsing_location_new().

CRParsingLocation* cr_parsing_location_new void   ) 
 

Instanciates a new parsing location.

Returns:
the newly instanciated CRParsingLocation. Must be freed by cr_parsing_location_destroy()

Definition at line 39 of file cr-parsing-location.c.

References cr_parsing_location_init(), cr_utils_trace_info, and CRParsingLocation.

gchar* cr_parsing_location_to_string CRParsingLocation a_this,
enum CRParsingLocationSerialisationMask  a_mask
 

Parameters:
a_this the current instance of CRParsingLocation.
a_mask 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 91 of file cr-parsing-location.c.

References _CRParsingLocation::byte_offset, _CRParsingLocation::column, CRParsingLocation, DUMP_COLUMN, DUMP_LINE, and _CRParsingLocation::line.

Referenced by cr_parsing_location_dump().


Generated on Fri Oct 29 08:29:13 2004 for Libcroco by  doxygen 1.3.9.1