Libcroco
cr-parsing-location.h
Go to the documentation of this file.
1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 8 -*- */
2 
3 /*
4  * This file is part of The Croco Library
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of version 2.1 of the GNU Lesser General Public
8  * License as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18  * USA
19  *
20  * Author: Dodji Seketeli.
21  * See the COPYRIGHTS file for copyright information.
22  */
23 
24 #ifndef __CR_PARSING_LOCATION_H__
25 #define __CR_PARSING_LOCATION_H__
26 
27 #include "cr-utils.h"
28 
29 G_BEGIN_DECLS
30 
31 /**
32  *@file
33  *The declaration of the CRParsingLocation
34  *object. This object keeps track of line/column/byte offset/
35  *at which the parsing of a given CSS construction appears.
36  */
37 
40  guint line ;
41  guint column ;
42  guint byte_offset ;
43 } ;
44 
45 
47  DUMP_LINE = 1,
48  DUMP_COLUMN = 1 << 1,
50 } ;
51 
53 
55 
57  CRParsingLocation const *a_from) ;
58 
63  FILE *a_fp) ;
64 
66 
67 
68 
69 G_END_DECLS
70 #endif
The Croco library basic types definitions And global definitions.
enum CRStatus cr_parsing_location_init(CRParsingLocation *a_this)
cr_parsing_location_init: @a_this: the current instance of CRParsingLocation.
CRParsingLocationSerialisationMask
CRStatus
The status type returned by the methods of the croco library.
Definition: cr-utils.h:43
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...
void cr_parsing_location_destroy(CRParsingLocation *a_this)
cr_parsing_location_destroy: @a_this: the current instance of CRParsingLocation.
enum CRStatus cr_parsing_location_copy(CRParsingLocation *a_to, CRParsingLocation const *a_from)
cr_parsing_location_copy: @a_to: the destination of the copy.
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.
CRParsingLocation * cr_parsing_location_new(void)
@CRParsingLocation: