1 /* valaccodestatement.c generated by valac, the Vala compiler
2 * generated from valaccodestatement.vala, do not modify */
3
4 /* valaccodestatement.vala
5 *
6 * Copyright (C) 2006 Jürg Billeter
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 *
22 * Author:
23 * Jürg Billeter <j@bitron.ch>
24 */
25
26 #include "valaccode.h"
27
28 static gpointer vala_ccode_statement_parent_class = NULL;
29
30 static GType vala_ccode_statement_get_type_once (void);
31
32 ValaCCodeStatement*
vala_ccode_statement_construct(GType object_type)33 vala_ccode_statement_construct (GType object_type)
34 {
35 ValaCCodeStatement* self = NULL;
36 self = (ValaCCodeStatement*) vala_ccode_node_construct (object_type);
37 return self;
38 }
39
40 static void
vala_ccode_statement_class_init(ValaCCodeStatementClass * klass,gpointer klass_data)41 vala_ccode_statement_class_init (ValaCCodeStatementClass * klass,
42 gpointer klass_data)
43 {
44 vala_ccode_statement_parent_class = g_type_class_peek_parent (klass);
45 }
46
47 static void
vala_ccode_statement_instance_init(ValaCCodeStatement * self,gpointer klass)48 vala_ccode_statement_instance_init (ValaCCodeStatement * self,
49 gpointer klass)
50 {
51 }
52
53 /**
54 * Represents a statement in the C code.
55 */
56 static GType
vala_ccode_statement_get_type_once(void)57 vala_ccode_statement_get_type_once (void)
58 {
59 static const GTypeInfo g_define_type_info = { sizeof (ValaCCodeStatementClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_ccode_statement_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaCCodeStatement), 0, (GInstanceInitFunc) vala_ccode_statement_instance_init, NULL };
60 GType vala_ccode_statement_type_id;
61 vala_ccode_statement_type_id = g_type_register_static (VALA_TYPE_CCODE_NODE, "ValaCCodeStatement", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
62 return vala_ccode_statement_type_id;
63 }
64
65 GType
vala_ccode_statement_get_type(void)66 vala_ccode_statement_get_type (void)
67 {
68 static volatile gsize vala_ccode_statement_type_id__volatile = 0;
69 if (g_once_init_enter (&vala_ccode_statement_type_id__volatile)) {
70 GType vala_ccode_statement_type_id;
71 vala_ccode_statement_type_id = vala_ccode_statement_get_type_once ();
72 g_once_init_leave (&vala_ccode_statement_type_id__volatile, vala_ccode_statement_type_id);
73 }
74 return vala_ccode_statement_type_id__volatile;
75 }
76
77