105 GString *result = NULL ;
108 g_return_val_if_fail (a_this, NULL) ;
113 result =g_string_new (NULL) ;
117 g_string_append_printf (result,
"line:%d ",
121 g_string_append_printf (result,
"column:%d ",
125 g_string_append_printf (result,
"byte offset:%d ",
130 g_string_free (result, FALSE) ;
132 g_string_free (result, TRUE) ;
150 g_return_if_fail (a_this && a_fp) ;
153 fprintf (a_fp,
"%s", str) ;
169 g_return_if_fail (a_this) ;
CRParsingLocation * cr_parsing_location_new(void)
@CRParsingLocation:
gchar * cr_parsing_location_to_string(CRParsingLocation const *a_this, enum CRParsingLocationSerialisationMask a_mask)
cr_parsing_location_to_string: @a_this: the current instance of CRParsingLocation.
The declaration of the CRParsingLocation object.
CRParsingLocationSerialisationMask
CRStatus
The status type returned by the methods of the croco library.
enum CRStatus cr_parsing_location_init(CRParsingLocation *a_this)
cr_parsing_location_init: @a_this: the current instance of CRParsingLocation.
void cr_parsing_location_destroy(CRParsingLocation *a_this)
cr_parsing_location_destroy: @a_this: the current instance of CRParsingLocation.
void cr_parsing_location_dump(CRParsingLocation const *a_this, enum CRParsingLocationSerialisationMask a_mask, FILE *a_fp)
cr_parsing_location_dump: @a_this: current instance of CRParsingLocation @a_mask: the serialization m...
enum CRStatus cr_parsing_location_copy(CRParsingLocation *a_to, CRParsingLocation const *a_from)
cr_parsing_location_copy: @a_to: the destination of the copy.
#define cr_utils_trace_info(a_msg)
Traces an info message.