コード例 #1
0
static void vala_ccode_assignment_class_init (ValaCCodeAssignmentClass * klass) {
	vala_ccode_assignment_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->finalize = vala_ccode_assignment_finalize;
	g_type_class_add_private (klass, sizeof (ValaCCodeAssignmentPrivate));
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_assignment_real_write;
	VALA_CCODE_EXPRESSION_CLASS (klass)->write_inner = vala_ccode_assignment_real_write_inner;
}
コード例 #2
0
static void vala_ccode_cast_expression_class_init (ValaCCodeCastExpressionClass * klass) {
	vala_ccode_cast_expression_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->finalize = vala_ccode_cast_expression_finalize;
	g_type_class_add_private (klass, sizeof (ValaCCodeCastExpressionPrivate));
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_cast_expression_real_write;
	VALA_CCODE_EXPRESSION_CLASS (klass)->write_inner = vala_ccode_cast_expression_real_write_inner;
}
コード例 #3
0
static void vala_ccode_node_class_init (ValaCCodeNodeClass * klass) {
	vala_ccode_node_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->finalize = vala_ccode_node_finalize;
	g_type_class_add_private (klass, sizeof (ValaCCodeNodePrivate));
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_node_real_write;
	VALA_CCODE_NODE_CLASS (klass)->write_declaration = vala_ccode_node_real_write_declaration;
	VALA_CCODE_NODE_CLASS (klass)->write_combined = vala_ccode_node_real_write_combined;
}
コード例 #4
0
static void vala_ccode_switch_statement_real_write (ValaCCodeNode* base, ValaCCodeWriter* writer) {
	ValaCCodeSwitchStatement * self;
	ValaCCodeWriter* _tmp0_;
	ValaCCodeLineDirective* _tmp1_;
	ValaCCodeLineDirective* _tmp2_;
	ValaCCodeWriter* _tmp3_;
	ValaCCodeExpression* _tmp4_;
	ValaCCodeWriter* _tmp5_;
	ValaCCodeWriter* _tmp6_;
	ValaCCodeWriter* _tmp7_;
	self = (ValaCCodeSwitchStatement*) base;
	g_return_if_fail (writer != NULL);
	_tmp0_ = writer;
	_tmp1_ = vala_ccode_node_get_line ((ValaCCodeNode*) self);
	_tmp2_ = _tmp1_;
	vala_ccode_writer_write_indent (_tmp0_, _tmp2_);
	_tmp3_ = writer;
	vala_ccode_writer_write_string (_tmp3_, "switch (");
	_tmp4_ = self->priv->_expression;
	_tmp5_ = writer;
	vala_ccode_node_write ((ValaCCodeNode*) _tmp4_, _tmp5_);
	_tmp6_ = writer;
	vala_ccode_writer_write_string (_tmp6_, ")");
	_tmp7_ = writer;
	VALA_CCODE_NODE_CLASS (vala_ccode_switch_statement_parent_class)->write ((ValaCCodeNode*) VALA_CCODE_BLOCK (self), _tmp7_);
}
コード例 #5
0
static void vala_ccode_assignment_finalize (ValaCCodeNode* obj) {
	ValaCCodeAssignment * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_CCODE_ASSIGNMENT, ValaCCodeAssignment);
	_vala_ccode_node_unref0 (self->priv->_left);
	_vala_ccode_node_unref0 (self->priv->_right);
	VALA_CCODE_NODE_CLASS (vala_ccode_assignment_parent_class)->finalize (obj);
}
コード例 #6
0
static void vala_ccode_cast_expression_finalize (ValaCCodeNode* obj) {
	ValaCCodeCastExpression * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_CCODE_CAST_EXPRESSION, ValaCCodeCastExpression);
	_vala_ccode_node_unref0 (self->priv->_inner);
	_g_free0 (self->priv->_type_name);
	VALA_CCODE_NODE_CLASS (vala_ccode_cast_expression_parent_class)->finalize (obj);
}
コード例 #7
0
static void vala_ccode_enum_value_finalize (ValaCCodeNode* obj) {
	ValaCCodeEnumValue * self;
	self = VALA_CCODE_ENUM_VALUE (obj);
	_g_free0 (self->priv->_name);
	_vala_ccode_node_unref0 (self->priv->_value);
	VALA_CCODE_NODE_CLASS (vala_ccode_enum_value_parent_class)->finalize (obj);
}
コード例 #8
0
static void vala_ccode_do_statement_finalize (ValaCCodeNode* obj) {
	ValaCCodeDoStatement * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_CCODE_DO_STATEMENT, ValaCCodeDoStatement);
	_vala_ccode_node_unref0 (self->priv->_body);
	_vala_ccode_node_unref0 (self->priv->_condition);
	VALA_CCODE_NODE_CLASS (vala_ccode_do_statement_parent_class)->finalize (obj);
}
コード例 #9
0
static void vala_ccode_if_statement_finalize (ValaCCodeNode* obj) {
	ValaCCodeIfStatement * self;
	self = VALA_CCODE_IF_STATEMENT (obj);
	_vala_ccode_node_unref0 (self->priv->_condition);
	_vala_ccode_node_unref0 (self->priv->_true_statement);
	_vala_ccode_node_unref0 (self->priv->_false_statement);
	VALA_CCODE_NODE_CLASS (vala_ccode_if_statement_parent_class)->finalize (obj);
}
コード例 #10
0
static void vala_ccode_macro_replacement_finalize (ValaCCodeNode* obj) {
	ValaCCodeMacroReplacement * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_CCODE_MACRO_REPLACEMENT, ValaCCodeMacroReplacement);
	_g_free0 (self->priv->_name);
	_g_free0 (self->priv->_replacement);
	_vala_ccode_node_unref0 (self->priv->_replacement_expression);
	VALA_CCODE_NODE_CLASS (vala_ccode_macro_replacement_parent_class)->finalize (obj);
}
コード例 #11
0
static void vala_ccode_identifier_class_init (ValaCCodeIdentifierClass * klass) {
	vala_ccode_identifier_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->finalize = vala_ccode_identifier_finalize;
	g_type_class_add_private (klass, sizeof (ValaCCodeIdentifierPrivate));
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_identifier_real_write;
}
コード例 #12
0
static void vala_ccode_identifier_finalize (ValaCCodeNode* obj) {
	ValaCCodeIdentifier * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_CCODE_IDENTIFIER, ValaCCodeIdentifier);
	_g_free0 (self->priv->_name);
	VALA_CCODE_NODE_CLASS (vala_ccode_identifier_parent_class)->finalize (obj);
}
コード例 #13
0
static void vala_ccode_continue_statement_class_init (ValaCCodeContinueStatementClass * klass) {
	vala_ccode_continue_statement_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_continue_statement_real_write;
}
コード例 #14
0
static void vala_ccode_newline_class_init (ValaCCodeNewlineClass * klass) {
	vala_ccode_newline_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_newline_real_write;
}
コード例 #15
0
static void vala_ccode_label_finalize (ValaCCodeNode* obj) {
	ValaCCodeLabel * self;
	self = VALA_CCODE_LABEL (obj);
	_g_free0 (self->priv->_name);
	VALA_CCODE_NODE_CLASS (vala_ccode_label_parent_class)->finalize (obj);
}
コード例 #16
0
static void vala_ccode_label_class_init (ValaCCodeLabelClass * klass) {
	vala_ccode_label_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->finalize = vala_ccode_label_finalize;
	g_type_class_add_private (klass, sizeof (ValaCCodeLabelPrivate));
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_label_real_write;
}
コード例 #17
0
static void vala_ccode_return_statement_finalize (ValaCCodeNode* obj) {
	ValaCCodeReturnStatement * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_CCODE_RETURN_STATEMENT, ValaCCodeReturnStatement);
	_vala_ccode_node_unref0 (self->priv->_return_expression);
	VALA_CCODE_NODE_CLASS (vala_ccode_return_statement_parent_class)->finalize (obj);
}
コード例 #18
0
static void vala_ccode_switch_statement_finalize (ValaCCodeNode* obj) {
	ValaCCodeSwitchStatement * self;
	self = VALA_CCODE_SWITCH_STATEMENT (obj);
	_vala_ccode_node_unref0 (self->priv->_expression);
	VALA_CCODE_NODE_CLASS (vala_ccode_switch_statement_parent_class)->finalize (obj);
}
コード例 #19
0
static void vala_ccode_comment_finalize (ValaCCodeNode* obj) {
	ValaCCodeComment * self;
	self = VALA_CCODE_COMMENT (obj);
	_g_free0 (self->priv->_text);
	VALA_CCODE_NODE_CLASS (vala_ccode_comment_parent_class)->finalize (obj);
}
コード例 #20
0
static void vala_ccode_block_finalize (ValaCCodeNode* obj) {
	ValaCCodeBlock * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALA_TYPE_CCODE_BLOCK, ValaCCodeBlock);
	_vala_iterable_unref0 (self->priv->statements);
	VALA_CCODE_NODE_CLASS (vala_ccode_block_parent_class)->finalize (obj);
}
コード例 #21
0
static void vala_ccode_include_directive_class_init (ValaCCodeIncludeDirectiveClass * klass) {
	vala_ccode_include_directive_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->finalize = vala_ccode_include_directive_finalize;
	g_type_class_add_private (klass, sizeof (ValaCCodeIncludeDirectivePrivate));
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_include_directive_real_write;
}
コード例 #22
0
static void vala_ccode_macro_replacement_class_init (ValaCCodeMacroReplacementClass * klass) {
	vala_ccode_macro_replacement_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->finalize = vala_ccode_macro_replacement_finalize;
	g_type_class_add_private (klass, sizeof (ValaCCodeMacroReplacementPrivate));
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_macro_replacement_real_write;
}
コード例 #23
0
static void vala_ccode_include_directive_finalize (ValaCCodeNode* obj) {
	ValaCCodeIncludeDirective * self;
	self = VALA_CCODE_INCLUDE_DIRECTIVE (obj);
	_g_free0 (self->priv->_filename);
	VALA_CCODE_NODE_CLASS (vala_ccode_include_directive_parent_class)->finalize (obj);
}
コード例 #24
0
static void vala_ccode_invalid_expression_class_init (ValaCCodeInvalidExpressionClass * klass) {
	vala_ccode_invalid_expression_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_invalid_expression_real_write;
}
コード例 #25
0
static void vala_ccode_enum_value_class_init (ValaCCodeEnumValueClass * klass) {
	vala_ccode_enum_value_parent_class = g_type_class_peek_parent (klass);
	VALA_CCODE_NODE_CLASS (klass)->finalize = vala_ccode_enum_value_finalize;
	g_type_class_add_private (klass, sizeof (ValaCCodeEnumValuePrivate));
	VALA_CCODE_NODE_CLASS (klass)->write = vala_ccode_enum_value_real_write;
}