/* valaccodestructmodule.c generated by valac, the Vala compiler
 * generated from valaccodestructmodule.vala, do not modify */

/* valaccodestructmodule.vala
 *
 * Copyright (C) 2006-2009  Jürg Billeter
 * Copyright (C) 2006-2008  Raffaele Sandrini
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.

 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.

 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 * Author:
 * 	Jürg Billeter <j@bitron.ch>
 *	Raffaele Sandrini <raffaele@sandrini.ch>
 */

#include <glib.h>
#include <glib-object.h>
#include <vala.h>
#include <valaccode.h>
#include <valagee.h>
#include <stdlib.h>
#include <string.h>


#define VALA_TYPE_CCODE_BASE_MODULE (vala_ccode_base_module_get_type ())
#define VALA_CCODE_BASE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModule))
#define VALA_CCODE_BASE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModuleClass))
#define VALA_IS_CCODE_BASE_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_BASE_MODULE))
#define VALA_IS_CCODE_BASE_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_BASE_MODULE))
#define VALA_CCODE_BASE_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_BASE_MODULE, ValaCCodeBaseModuleClass))

typedef struct _ValaCCodeBaseModule ValaCCodeBaseModule;
typedef struct _ValaCCodeBaseModuleClass ValaCCodeBaseModuleClass;
typedef struct _ValaCCodeBaseModulePrivate ValaCCodeBaseModulePrivate;

#define VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT (vala_ccode_base_module_emit_context_get_type ())
#define VALA_CCODE_BASE_MODULE_EMIT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT, ValaCCodeBaseModuleEmitContext))
#define VALA_CCODE_BASE_MODULE_EMIT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT, ValaCCodeBaseModuleEmitContextClass))
#define VALA_CCODE_BASE_MODULE_IS_EMIT_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT))
#define VALA_CCODE_BASE_MODULE_IS_EMIT_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT))
#define VALA_CCODE_BASE_MODULE_EMIT_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_CCODE_BASE_MODULE_TYPE_EMIT_CONTEXT, ValaCCodeBaseModuleEmitContextClass))

typedef struct _ValaCCodeBaseModuleEmitContext ValaCCodeBaseModuleEmitContext;
typedef struct _ValaCCodeBaseModuleEmitContextClass ValaCCodeBaseModuleEmitContextClass;

#define VALA_TYPE_CCODE_STRUCT_MODULE (vala_ccode_struct_module_get_type ())
#define VALA_CCODE_STRUCT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_CCODE_STRUCT_MODULE, ValaCCodeStructModule))
#define VALA_CCODE_STRUCT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_CCODE_STRUCT_MODULE, ValaCCodeStructModuleClass))
#define VALA_IS_CCODE_STRUCT_MODULE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_CCODE_STRUCT_MODULE))
#define VALA_IS_CCODE_STRUCT_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_CCODE_STRUCT_MODULE))
#define VALA_CCODE_STRUCT_MODULE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_CCODE_STRUCT_MODULE, ValaCCodeStructModuleClass))

typedef struct _ValaCCodeStructModule ValaCCodeStructModule;
typedef struct _ValaCCodeStructModuleClass ValaCCodeStructModuleClass;
typedef struct _ValaCCodeStructModulePrivate ValaCCodeStructModulePrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _vala_ccode_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_ccode_node_unref (var), NULL)))

#define VALA_TYPE_TYPEREGISTER_FUNCTION (vala_typeregister_function_get_type ())
#define VALA_TYPEREGISTER_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_TYPEREGISTER_FUNCTION, ValaTypeRegisterFunction))
#define VALA_TYPEREGISTER_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_TYPEREGISTER_FUNCTION, ValaTypeRegisterFunctionClass))
#define VALA_IS_TYPEREGISTER_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_TYPEREGISTER_FUNCTION))
#define VALA_IS_TYPEREGISTER_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_TYPEREGISTER_FUNCTION))
#define VALA_TYPEREGISTER_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_TYPEREGISTER_FUNCTION, ValaTypeRegisterFunctionClass))

typedef struct _ValaTypeRegisterFunction ValaTypeRegisterFunction;
typedef struct _ValaTypeRegisterFunctionClass ValaTypeRegisterFunctionClass;

#define VALA_TYPE_STRUCT_REGISTER_FUNCTION (vala_struct_register_function_get_type ())
#define VALA_STRUCT_REGISTER_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_STRUCT_REGISTER_FUNCTION, ValaStructRegisterFunction))
#define VALA_STRUCT_REGISTER_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_STRUCT_REGISTER_FUNCTION, ValaStructRegisterFunctionClass))
#define VALA_IS_STRUCT_REGISTER_FUNCTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_STRUCT_REGISTER_FUNCTION))
#define VALA_IS_STRUCT_REGISTER_FUNCTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_STRUCT_REGISTER_FUNCTION))
#define VALA_STRUCT_REGISTER_FUNCTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_STRUCT_REGISTER_FUNCTION, ValaStructRegisterFunctionClass))

typedef struct _ValaStructRegisterFunction ValaStructRegisterFunction;
typedef struct _ValaStructRegisterFunctionClass ValaStructRegisterFunctionClass;
#define _vala_typeregister_function_unref0(var) ((var == NULL) ? NULL : (var = (vala_typeregister_function_unref (var), NULL)))
#define _vala_ccode_declarator_suffix_unref0(var) ((var == NULL) ? NULL : (var = (vala_ccode_declarator_suffix_unref (var), NULL)))
#define _vala_code_node_unref0(var) ((var == NULL) ? NULL : (var = (vala_code_node_unref (var), NULL)))
#define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
#define _vala_ccode_base_module_emit_context_unref0(var) ((var == NULL) ? NULL : (var = (vala_ccode_base_module_emit_context_unref (var), NULL)))

#define VALA_TYPE_GLIB_VALUE (vala_glib_value_get_type ())
#define VALA_GLIB_VALUE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VALA_TYPE_GLIB_VALUE, ValaGLibValue))
#define VALA_GLIB_VALUE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VALA_TYPE_GLIB_VALUE, ValaGLibValueClass))
#define VALA_IS_GLIB_VALUE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VALA_TYPE_GLIB_VALUE))
#define VALA_IS_GLIB_VALUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VALA_TYPE_GLIB_VALUE))
#define VALA_GLIB_VALUE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VALA_TYPE_GLIB_VALUE, ValaGLibValueClass))

typedef struct _ValaGLibValue ValaGLibValue;
typedef struct _ValaGLibValueClass ValaGLibValueClass;
#define _vala_target_value_unref0(var) ((var == NULL) ? NULL : (var = (vala_target_value_unref (var), NULL)))
typedef struct _ValaCCodeBaseModuleEmitContextPrivate ValaCCodeBaseModuleEmitContextPrivate;

struct _ValaCCodeBaseModule {
	ValaCodeGenerator parent_instance;
	ValaCCodeBaseModulePrivate * priv;
	ValaSymbol* root_symbol;
	ValaCCodeBaseModuleEmitContext* emit_context;
	ValaCCodeLineDirective* current_line;
	ValaCCodeFile* header_file;
	ValaCCodeFile* internal_header_file;
	ValaCCodeFile* cfile;
	ValaCCodeBaseModuleEmitContext* class_init_context;
	ValaCCodeBaseModuleEmitContext* base_init_context;
	ValaCCodeBaseModuleEmitContext* class_finalize_context;
	ValaCCodeBaseModuleEmitContext* base_finalize_context;
	ValaCCodeBaseModuleEmitContext* instance_init_context;
	ValaCCodeBaseModuleEmitContext* instance_finalize_context;
	ValaCCodeStruct* param_spec_struct;
	ValaCCodeStruct* closure_struct;
	ValaCCodeEnum* prop_enum;
	ValaCCodeEnum* signal_enum;
	ValaSet* user_marshal_set;
	ValaSet* predefined_marshal_set;
	gint next_regex_id;
	gint next_coroutine_state G_GNUC_DEPRECATED;
	ValaDataType* void_type;
	ValaDataType* bool_type;
	ValaDataType* char_type;
	ValaDataType* uchar_type;
	ValaDataType* unichar_type;
	ValaDataType* short_type;
	ValaDataType* ushort_type;
	ValaDataType* int_type;
	ValaDataType* uint_type;
	ValaDataType* long_type;
	ValaDataType* ulong_type;
	ValaDataType* int8_type;
	ValaDataType* uint8_type;
	ValaDataType* int16_type;
	ValaDataType* uint16_type;
	ValaDataType* int32_type;
	ValaDataType* uint32_type;
	ValaDataType* int64_type;
	ValaDataType* uint64_type;
	ValaDataType* string_type;
	ValaDataType* regex_type;
	ValaDataType* float_type;
	ValaDataType* double_type;
	ValaTypeSymbol* gtype_type;
	ValaTypeSymbol* gobject_type;
	ValaErrorType* gerror_type;
	ValaClass* glist_type;
	ValaClass* gslist_type;
	ValaClass* gnode_type;
	ValaClass* gqueue_type;
	ValaClass* gvaluearray_type;
	ValaTypeSymbol* gstringbuilder_type;
	ValaTypeSymbol* garray_type;
	ValaTypeSymbol* gbytearray_type;
	ValaTypeSymbol* gptrarray_type;
	ValaTypeSymbol* gthreadpool_type;
	ValaDataType* gdestroynotify_type;
	ValaDataType* gquark_type;
	ValaStruct* gvalue_type;
	ValaClass* gvariant_type;
	ValaStruct* mutex_type;
	ValaStruct* gmutex_type;
	ValaStruct* grecmutex_type;
	ValaStruct* grwlock_type;
	ValaStruct* gcond_type;
	ValaClass* gsource_type;
	ValaTypeSymbol* type_module_type;
	ValaTypeSymbol* dbus_proxy_type;
	ValaClass* gtk_widget_type;
	gboolean in_plugin;
	gchar* module_init_param_name;
	gboolean gvaluecollector_h_needed;
	gboolean requires_assert;
	gboolean requires_array_free;
	gboolean requires_array_move;
	gboolean requires_array_length;
	gboolean requires_clear_mutex;
	ValaSet* wrappers;
};

struct _ValaCCodeBaseModuleClass {
	ValaCodeGeneratorClass parent_class;
	void (*append_vala_array_free) (ValaCCodeBaseModule* self);
	void (*append_vala_array_move) (ValaCCodeBaseModule* self);
	void (*append_vala_array_length) (ValaCCodeBaseModule* self);
	gboolean (*generate_enum_declaration) (ValaCCodeBaseModule* self, ValaEnum* en, ValaCCodeFile* decl_space);
	void (*generate_class_struct_declaration) (ValaCCodeBaseModule* self, ValaClass* cl, ValaCCodeFile* decl_space);
	void (*generate_struct_declaration) (ValaCCodeBaseModule* self, ValaStruct* st, ValaCCodeFile* decl_space);
	void (*generate_delegate_declaration) (ValaCCodeBaseModule* self, ValaDelegate* d, ValaCCodeFile* decl_space);
	void (*generate_cparameters) (ValaCCodeBaseModule* self, ValaMethod* m, ValaCCodeFile* decl_space, ValaMap* cparam_map, ValaCCodeFunction* func, ValaCCodeFunctionDeclarator* vdeclarator, ValaMap* carg_map, ValaCCodeFunctionCall* vcall, gint direction);
	ValaCCodeExpression* (*get_dup_func_expression) (ValaCCodeBaseModule* self, ValaDataType* type, ValaSourceReference* source_reference, gboolean is_chainup);
	gchar* (*append_struct_array_free) (ValaCCodeBaseModule* self, ValaStruct* st);
	ValaCCodeExpression* (*destroy_value) (ValaCCodeBaseModule* self, ValaTargetValue* value, gboolean is_macro_definition);
	void (*append_scope_free) (ValaCCodeBaseModule* self, ValaSymbol* sym, ValaCodeNode* stop_at);
	ValaTargetValue* (*get_local_cvalue) (ValaCCodeBaseModule* self, ValaLocalVariable* local);
	ValaTargetValue* (*get_parameter_cvalue) (ValaCCodeBaseModule* self, ValaParameter* param);
	ValaTargetValue* (*get_field_cvalue) (ValaCCodeBaseModule* self, ValaField* field, ValaTargetValue* instance);
	ValaTargetValue* (*load_variable) (ValaCCodeBaseModule* self, ValaVariable* variable, ValaTargetValue* value);
	ValaTargetValue* (*load_this_parameter) (ValaCCodeBaseModule* self, ValaTypeSymbol* sym);
	void (*store_value) (ValaCCodeBaseModule* self, ValaTargetValue* lvalue, ValaTargetValue* value);
	gchar* (*get_delegate_target_cname) (ValaCCodeBaseModule* self, const gchar* delegate_cname);
	ValaCCodeExpression* (*get_delegate_target_cexpression) (ValaCCodeBaseModule* self, ValaExpression* delegate_expr, ValaCCodeExpression* * delegate_target_destroy_notify);
	ValaCCodeExpression* (*get_delegate_target_cvalue) (ValaCCodeBaseModule* self, ValaTargetValue* value);
	ValaCCodeExpression* (*get_delegate_target_destroy_notify_cvalue) (ValaCCodeBaseModule* self, ValaTargetValue* value);
	gchar* (*get_delegate_target_destroy_notify_cname) (ValaCCodeBaseModule* self, const gchar* delegate_cname);
	ValaTargetValue* (*copy_value) (ValaCCodeBaseModule* self, ValaTargetValue* value, ValaCodeNode* node);
	void (*generate_class_declaration) (ValaCCodeBaseModule* self, ValaClass* cl, ValaCCodeFile* decl_space);
	void (*generate_interface_declaration) (ValaCCodeBaseModule* self, ValaInterface* iface, ValaCCodeFile* decl_space);
	void (*generate_method_declaration) (ValaCCodeBaseModule* self, ValaMethod* m, ValaCCodeFile* decl_space);
	void (*generate_error_domain_declaration) (ValaCCodeBaseModule* self, ValaErrorDomain* edomain, ValaCCodeFile* decl_space);
	ValaCCodeExpression* (*deserialize_expression) (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeExpression* variant_expr, ValaCCodeExpression* expr, ValaCCodeExpression* error_expr, gboolean* may_fail);
	ValaCCodeExpression* (*serialize_expression) (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeExpression* expr);
	ValaCCodeExpression* (*get_implicit_cast_expression) (ValaCCodeBaseModule* self, ValaCCodeExpression* source_cexpr, ValaDataType* expression_type, ValaDataType* target_type, ValaCodeNode* node);
	void (*create_type_check_statement) (ValaCCodeBaseModule* self, ValaCodeNode* method_node, ValaDataType* ret_type, ValaTypeSymbol* t, gboolean non_null, const gchar* var_name);
	gboolean (*is_gobject_property) (ValaCCodeBaseModule* self, ValaProperty* prop);
	void (*generate_dynamic_method_wrapper) (ValaCCodeBaseModule* self, ValaDynamicMethod* method);
	gboolean (*method_has_wrapper) (ValaCCodeBaseModule* self, ValaMethod* method);
	ValaCCodeFunctionCall* (*get_param_spec) (ValaCCodeBaseModule* self, ValaProperty* prop);
	ValaCCodeExpression* (*get_signal_creation) (ValaCCodeBaseModule* self, ValaSignal* sig, ValaTypeSymbol* type);
	void (*register_dbus_info) (ValaCCodeBaseModule* self, ValaCCodeBlock* block, ValaObjectTypeSymbol* bindable);
	gchar* (*get_dynamic_property_getter_cname) (ValaCCodeBaseModule* self, ValaDynamicProperty* node);
	gchar* (*get_dynamic_property_setter_cname) (ValaCCodeBaseModule* self, ValaDynamicProperty* node);
	gchar* (*get_dynamic_signal_cname) (ValaCCodeBaseModule* self, ValaDynamicSignal* node);
	gchar* (*get_dynamic_signal_connect_wrapper_name) (ValaCCodeBaseModule* self, ValaDynamicSignal* node);
	gchar* (*get_dynamic_signal_connect_after_wrapper_name) (ValaCCodeBaseModule* self, ValaDynamicSignal* node);
	gchar* (*get_dynamic_signal_disconnect_wrapper_name) (ValaCCodeBaseModule* self, ValaDynamicSignal* node);
	gchar* (*get_array_length_cname) (ValaCCodeBaseModule* self, const gchar* array_cname, gint dim);
	gchar* (*get_parameter_array_length_cname) (ValaCCodeBaseModule* self, ValaParameter* param, gint dim);
	ValaCCodeExpression* (*get_array_length_cexpression) (ValaCCodeBaseModule* self, ValaExpression* array_expr, gint dim);
	ValaCCodeExpression* (*get_array_length_cvalue) (ValaCCodeBaseModule* self, ValaTargetValue* value, gint dim);
	gchar* (*get_array_size_cname) (ValaCCodeBaseModule* self, const gchar* array_cname);
	void (*add_simple_check) (ValaCCodeBaseModule* self, ValaCodeNode* node, gboolean always_fails);
	gchar* (*generate_ready_function) (ValaCCodeBaseModule* self, ValaMethod* m);
};

struct _ValaCCodeStructModule {
	ValaCCodeBaseModule parent_instance;
	ValaCCodeStructModulePrivate * priv;
};

struct _ValaCCodeStructModuleClass {
	ValaCCodeBaseModuleClass parent_class;
};

struct _ValaCCodeBaseModuleEmitContext {
	GTypeInstance parent_instance;
	volatile int ref_count;
	ValaCCodeBaseModuleEmitContextPrivate * priv;
	ValaSymbol* current_symbol;
	ValaArrayList* symbol_stack;
	ValaTryStatement* current_try;
	ValaCatchClause* current_catch;
	ValaCCodeFunction* ccode;
	ValaArrayList* ccode_stack;
	ValaArrayList* temp_ref_values;
	gint next_temp_var_id;
	gboolean current_method_inner_error;
	gboolean current_method_return;
	ValaMap* variable_name_map;
	ValaMap* closure_variable_count_map;
	ValaMap* closure_variable_clash_map;
	gint next_coroutine_state;
};

struct _ValaCCodeBaseModuleEmitContextClass {
	GTypeClass parent_class;
	void (*finalize) (ValaCCodeBaseModuleEmitContext *self);
};


static gpointer vala_ccode_struct_module_parent_class = NULL;

GType vala_ccode_base_module_get_type (void) G_GNUC_CONST;
gpointer vala_ccode_base_module_emit_context_ref (gpointer instance);
void vala_ccode_base_module_emit_context_unref (gpointer instance);
GParamSpec* vala_ccode_base_module_param_spec_emit_context (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void vala_ccode_base_module_value_set_emit_context (GValue* value, gpointer v_object);
void vala_ccode_base_module_value_take_emit_context (GValue* value, gpointer v_object);
gpointer vala_ccode_base_module_value_get_emit_context (const GValue* value);
GType vala_ccode_base_module_emit_context_get_type (void) G_GNUC_CONST;
GType vala_ccode_struct_module_get_type (void) G_GNUC_CONST;
enum  {
	VALA_CCODE_STRUCT_MODULE_DUMMY_PROPERTY
};
static void vala_ccode_struct_module_real_generate_struct_declaration (ValaCCodeBaseModule* base, ValaStruct* st, ValaCCodeFile* decl_space);
gboolean vala_ccode_base_module_add_symbol_declaration (ValaCCodeBaseModule* self, ValaCCodeFile* decl_space, ValaSymbol* sym, const gchar* name);
gchar* vala_ccode_base_module_get_ccode_name (ValaCodeNode* node);
void vala_ccode_base_module_generate_struct_declaration (ValaCCodeBaseModule* self, ValaStruct* st, ValaCCodeFile* decl_space);
gboolean vala_ccode_base_module_get_ccode_has_type_id (ValaTypeSymbol* sym);
gchar* vala_ccode_base_module_get_ccode_lower_case_name (ValaCodeNode* node, const gchar* infix);
gchar* vala_ccode_base_module_get_ccode_type_id (ValaCodeNode* node);
gpointer vala_typeregister_function_ref (gpointer instance);
void vala_typeregister_function_unref (gpointer instance);
GParamSpec* vala_param_spec_typeregister_function (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void vala_value_set_typeregister_function (GValue* value, gpointer v_object);
void vala_value_take_typeregister_function (GValue* value, gpointer v_object);
gpointer vala_value_get_typeregister_function (const GValue* value);
GType vala_typeregister_function_get_type (void) G_GNUC_CONST;
GType vala_struct_register_function_get_type (void) G_GNUC_CONST;
ValaCodeContext* vala_ccode_base_module_get_context (ValaCCodeBaseModule* self);
ValaStructRegisterFunction* vala_struct_register_function_new (ValaStruct* st, ValaCodeContext* context);
ValaStructRegisterFunction* vala_struct_register_function_construct (GType object_type, ValaStruct* st, ValaCodeContext* context);
void vala_typeregister_function_init_from_type (ValaTypeRegisterFunction* self, gboolean plugin, gboolean declaration_only);
ValaCCodeFragment* vala_typeregister_function_get_declaration (ValaTypeRegisterFunction* self);
void vala_ccode_base_module_generate_type_declaration (ValaCCodeBaseModule* self, ValaDataType* type, ValaCCodeFile* decl_space);
ValaCCodeDeclaratorSuffix* vala_ccode_base_module_get_ccode_declarator_suffix (ValaCCodeBaseModule* self, ValaDataType* type);
gboolean vala_ccode_base_module_get_ccode_array_length (ValaCodeNode* node);
gchar* vala_ccode_base_module_get_ccode_array_length_name (ValaCodeNode* node);
gchar* vala_ccode_base_module_get_array_length_cname (ValaCCodeBaseModule* self, const gchar* array_cname, gint dim);
gchar* vala_ccode_base_module_get_array_size_cname (ValaCCodeBaseModule* self, const gchar* array_cname);
gchar* vala_ccode_base_module_get_ccode_delegate_target_name (ValaVariable* variable);
gchar* vala_ccode_base_module_get_delegate_target_destroy_notify_cname (ValaCCodeBaseModule* self, const gchar* delegate_cname);
gchar* vala_ccode_base_module_get_ccode_dup_function (ValaTypeSymbol* sym);
gchar* vala_ccode_base_module_get_ccode_free_function (ValaTypeSymbol* sym);
gchar* vala_ccode_base_module_get_ccode_copy_function (ValaTypeSymbol* sym);
gchar* vala_ccode_base_module_get_ccode_destroy_function (ValaTypeSymbol* sym);
static void vala_ccode_struct_module_real_visit_struct (ValaCodeVisitor* base, ValaStruct* st);
void vala_ccode_base_module_push_context (ValaCCodeBaseModule* self, ValaCCodeBaseModuleEmitContext* emit_context);
ValaCCodeBaseModuleEmitContext* vala_ccode_base_module_emit_context_new (ValaSymbol* symbol);
ValaCCodeBaseModuleEmitContext* vala_ccode_base_module_emit_context_construct (GType object_type, ValaSymbol* symbol);
void vala_ccode_base_module_push_line (ValaCCodeBaseModule* self, ValaSourceReference* source_reference);
static void vala_ccode_struct_module_begin_struct_destroy_function (ValaCCodeStructModule* self, ValaStruct* st);
static void vala_ccode_struct_module_add_struct_copy_function (ValaCCodeStructModule* self, ValaStruct* st);
static void vala_ccode_struct_module_add_struct_destroy_function (ValaCCodeStructModule* self, ValaStruct* st);
static void vala_ccode_struct_module_add_struct_dup_function (ValaCCodeStructModule* self, ValaStruct* st);
static void vala_ccode_struct_module_add_struct_free_function (ValaCCodeStructModule* self, ValaStruct* st);
void vala_ccode_base_module_pop_line (ValaCCodeBaseModule* self);
void vala_ccode_base_module_pop_context (ValaCCodeBaseModule* self);
void vala_ccode_base_module_push_function (ValaCCodeBaseModule* self, ValaCCodeFunction* func);
ValaCCodeFunction* vala_ccode_base_module_get_ccode (ValaCCodeBaseModule* self);
void vala_ccode_base_module_pop_function (ValaCCodeBaseModule* self);
G_GNUC_INTERNAL GType vala_glib_value_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
ValaDataType* vala_ccode_base_module_get_data_type_for_symbol (ValaTypeSymbol* sym);
G_GNUC_INTERNAL ValaGLibValue* vala_glib_value_new (ValaDataType* value_type, ValaCCodeExpression* cvalue, gboolean lvalue);
G_GNUC_INTERNAL ValaGLibValue* vala_glib_value_construct (GType object_type, ValaDataType* value_type, ValaCCodeExpression* cvalue, gboolean lvalue);
ValaTargetValue* vala_ccode_base_module_load_this_parameter (ValaCCodeBaseModule* self, ValaTypeSymbol* sym);
gboolean vala_ccode_base_module_requires_copy (ValaCCodeBaseModule* self, ValaDataType* type);
ValaTargetValue* vala_ccode_base_module_copy_value (ValaCCodeBaseModule* self, ValaTargetValue* value, ValaCodeNode* node);
ValaCCodeStructModule* vala_ccode_struct_module_construct (GType object_type);
ValaCCodeBaseModule* vala_ccode_base_module_construct (GType object_type);


static gpointer _vala_code_node_ref0 (gpointer self) {
	return self ? vala_code_node_ref (self) : NULL;
}


static void vala_ccode_struct_module_real_generate_struct_declaration (ValaCCodeBaseModule* base, ValaStruct* st, ValaCCodeFile* decl_space) {
	ValaCCodeStructModule * self;
	ValaCCodeFile* _tmp0_;
	ValaStruct* _tmp1_;
	ValaStruct* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gboolean _tmp5_;
	gboolean _tmp6_;
	gboolean _tmp7_ = FALSE;
	gboolean _tmp8_ = FALSE;
	ValaStruct* _tmp9_;
	gboolean _tmp10_;
	ValaStruct* _tmp66_;
	gboolean _tmp67_;
	ValaCCodeStruct* instance_struct = NULL;
	ValaStruct* _tmp92_;
	gchar* _tmp93_;
	gchar* _tmp94_;
	gchar* _tmp95_;
	gchar* _tmp96_;
	ValaCCodeStruct* _tmp97_;
	ValaCCodeStruct* _tmp98_;
	ValaCCodeModifiers _tmp99_ = 0;
	ValaStruct* _tmp100_;
	ValaVersionAttribute* _tmp101_;
	ValaVersionAttribute* _tmp102_;
	gboolean _tmp103_;
	gboolean _tmp104_;
	ValaCCodeStruct* _tmp105_;
	ValaCCodeStruct* _tmp106_;
	ValaCCodeModifiers _tmp107_;
	ValaCCodeModifiers _tmp108_;
	ValaStruct* _tmp228_;
	ValaStruct* _tmp229_;
	ValaStruct* _tmp230_;
	ValaCCodeFunction* function = NULL;
	ValaStruct* _tmp259_;
	gchar* _tmp260_;
	gchar* _tmp261_;
	ValaStruct* _tmp262_;
	gchar* _tmp263_;
	gchar* _tmp264_;
	gchar* _tmp265_;
	gchar* _tmp266_;
	ValaCCodeFunction* _tmp267_;
	ValaCCodeFunction* _tmp268_;
	ValaStruct* _tmp269_;
	gboolean _tmp270_;
	ValaCCodeFunction* _tmp280_;
	ValaStruct* _tmp281_;
	gchar* _tmp282_;
	gchar* _tmp283_;
	gchar* _tmp284_;
	gchar* _tmp285_;
	gchar* _tmp286_;
	gchar* _tmp287_;
	ValaCCodeParameter* _tmp288_;
	ValaCCodeParameter* _tmp289_;
	ValaCCodeFile* _tmp290_;
	ValaCCodeFunction* _tmp291_;
	ValaStruct* _tmp292_;
	gchar* _tmp293_;
	gchar* _tmp294_;
	ValaCCodeFunction* _tmp295_;
	ValaStruct* _tmp296_;
	gboolean _tmp297_;
	ValaCCodeFunction* _tmp307_;
	ValaStruct* _tmp308_;
	gchar* _tmp309_;
	gchar* _tmp310_;
	gchar* _tmp311_;
	gchar* _tmp312_;
	ValaCCodeParameter* _tmp313_;
	ValaCCodeParameter* _tmp314_;
	ValaCCodeFile* _tmp315_;
	ValaCCodeFunction* _tmp316_;
	ValaStruct* _tmp317_;
	gboolean _tmp318_;
	self = (ValaCCodeStructModule*) base;
	g_return_if_fail (st != NULL);
	g_return_if_fail (decl_space != NULL);
	_tmp0_ = decl_space;
	_tmp1_ = st;
	_tmp2_ = st;
	_tmp3_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp2_);
	_tmp4_ = _tmp3_;
	_tmp5_ = vala_ccode_base_module_add_symbol_declaration ((ValaCCodeBaseModule*) self, _tmp0_, (ValaSymbol*) _tmp1_, _tmp4_);
	_tmp6_ = _tmp5_;
	_g_free0 (_tmp4_);
	if (_tmp6_) {
		return;
	}
	_tmp9_ = st;
	_tmp10_ = vala_struct_is_boolean_type (_tmp9_);
	if (_tmp10_) {
		_tmp8_ = TRUE;
	} else {
		ValaStruct* _tmp11_;
		gboolean _tmp12_;
		_tmp11_ = st;
		_tmp12_ = vala_struct_is_integer_type (_tmp11_);
		_tmp8_ = _tmp12_;
	}
	if (_tmp8_) {
		_tmp7_ = TRUE;
	} else {
		ValaStruct* _tmp13_;
		gboolean _tmp14_;
		_tmp13_ = st;
		_tmp14_ = vala_struct_is_floating_type (_tmp13_);
		_tmp7_ = _tmp14_;
	}
	if (_tmp7_) {
		ValaStruct* _tmp15_;
		ValaStruct* _tmp16_;
		ValaStruct* _tmp17_;
		_tmp15_ = st;
		_tmp16_ = vala_struct_get_base_struct (_tmp15_);
		_tmp17_ = _tmp16_;
		if (_tmp17_ != NULL) {
			ValaStruct* _tmp18_;
			ValaStruct* _tmp19_;
			ValaStruct* _tmp20_;
			ValaCCodeFile* _tmp21_;
			ValaCCodeFile* _tmp22_;
			ValaStruct* _tmp23_;
			ValaStruct* _tmp24_;
			ValaStruct* _tmp25_;
			gchar* _tmp26_;
			gchar* _tmp27_;
			ValaStruct* _tmp28_;
			gchar* _tmp29_;
			gchar* _tmp30_;
			ValaCCodeVariableDeclarator* _tmp31_;
			ValaCCodeVariableDeclarator* _tmp32_;
			ValaCCodeTypeDefinition* _tmp33_;
			ValaCCodeTypeDefinition* _tmp34_;
			_tmp18_ = st;
			_tmp19_ = vala_struct_get_base_struct (_tmp18_);
			_tmp20_ = _tmp19_;
			_tmp21_ = decl_space;
			vala_ccode_base_module_generate_struct_declaration ((ValaCCodeBaseModule*) self, _tmp20_, _tmp21_);
			_tmp22_ = decl_space;
			_tmp23_ = st;
			_tmp24_ = vala_struct_get_base_struct (_tmp23_);
			_tmp25_ = _tmp24_;
			_tmp26_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp25_);
			_tmp27_ = _tmp26_;
			_tmp28_ = st;
			_tmp29_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp28_);
			_tmp30_ = _tmp29_;
			_tmp31_ = vala_ccode_variable_declarator_new (_tmp30_, NULL, NULL);
			_tmp32_ = _tmp31_;
			_tmp33_ = vala_ccode_type_definition_new (_tmp27_, (ValaCCodeDeclarator*) _tmp32_);
			_tmp34_ = _tmp33_;
			vala_ccode_file_add_type_declaration (_tmp22_, (ValaCCodeNode*) _tmp34_);
			_vala_ccode_node_unref0 (_tmp34_);
			_vala_ccode_node_unref0 (_tmp32_);
			_g_free0 (_tmp30_);
			_g_free0 (_tmp27_);
		} else {
			gchar* typename = NULL;
			ValaStruct* _tmp35_;
			gboolean _tmp36_;
			ValaCCodeFile* _tmp57_;
			const gchar* _tmp58_;
			ValaStruct* _tmp59_;
			gchar* _tmp60_;
			gchar* _tmp61_;
			ValaCCodeVariableDeclarator* _tmp62_;
			ValaCCodeVariableDeclarator* _tmp63_;
			ValaCCodeTypeDefinition* _tmp64_;
			ValaCCodeTypeDefinition* _tmp65_;
			typename = NULL;
			_tmp35_ = st;
			_tmp36_ = vala_struct_is_boolean_type (_tmp35_);
			if (_tmp36_) {
				ValaCCodeFile* _tmp37_;
				gchar* _tmp38_;
				_tmp37_ = decl_space;
				vala_ccode_file_add_include (_tmp37_, "stdbool.h", FALSE);
				_tmp38_ = g_strdup ("bool");
				_g_free0 (typename);
				typename = _tmp38_;
			} else {
				ValaStruct* _tmp39_;
				gboolean _tmp40_;
				_tmp39_ = st;
				_tmp40_ = vala_struct_is_integer_type (_tmp39_);
				if (_tmp40_) {
					ValaCCodeFile* _tmp41_;
					const gchar* _tmp42_ = NULL;
					ValaStruct* _tmp43_;
					gboolean _tmp44_;
					gboolean _tmp45_;
					ValaStruct* _tmp46_;
					gint _tmp47_;
					gint _tmp48_;
					gchar* _tmp49_;
					_tmp41_ = decl_space;
					vala_ccode_file_add_include (_tmp41_, "stdint.h", FALSE);
					_tmp43_ = st;
					_tmp44_ = vala_struct_get_signed (_tmp43_);
					_tmp45_ = _tmp44_;
					if (_tmp45_) {
						_tmp42_ = "";
					} else {
						_tmp42_ = "u";
					}
					_tmp46_ = st;
					_tmp47_ = vala_struct_get_width (_tmp46_);
					_tmp48_ = _tmp47_;
					_tmp49_ = g_strdup_printf ("%sint%d_t", _tmp42_, _tmp48_);
					_g_free0 (typename);
					typename = _tmp49_;
				} else {
					ValaStruct* _tmp50_;
					gboolean _tmp51_;
					_tmp50_ = st;
					_tmp51_ = vala_struct_is_floating_type (_tmp50_);
					if (_tmp51_) {
						const gchar* _tmp52_ = NULL;
						ValaStruct* _tmp53_;
						gint _tmp54_;
						gint _tmp55_;
						gchar* _tmp56_;
						_tmp53_ = st;
						_tmp54_ = vala_struct_get_width (_tmp53_);
						_tmp55_ = _tmp54_;
						if (_tmp55_ == 64) {
							_tmp52_ = "double";
						} else {
							_tmp52_ = "float";
						}
						_tmp56_ = g_strdup (_tmp52_);
						_g_free0 (typename);
						typename = _tmp56_;
					}
				}
			}
			_tmp57_ = decl_space;
			_tmp58_ = typename;
			_tmp59_ = st;
			_tmp60_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp59_);
			_tmp61_ = _tmp60_;
			_tmp62_ = vala_ccode_variable_declarator_new (_tmp61_, NULL, NULL);
			_tmp63_ = _tmp62_;
			_tmp64_ = vala_ccode_type_definition_new (_tmp58_, (ValaCCodeDeclarator*) _tmp63_);
			_tmp65_ = _tmp64_;
			vala_ccode_file_add_type_declaration (_tmp57_, (ValaCCodeNode*) _tmp65_);
			_vala_ccode_node_unref0 (_tmp65_);
			_vala_ccode_node_unref0 (_tmp63_);
			_g_free0 (_tmp61_);
			_g_free0 (typename);
		}
		return;
	}
	_tmp66_ = st;
	_tmp67_ = vala_ccode_base_module_get_ccode_has_type_id ((ValaTypeSymbol*) _tmp66_);
	if (_tmp67_) {
		ValaCCodeFile* _tmp68_;
		ValaCCodeNewline* _tmp69_;
		ValaCCodeNewline* _tmp70_;
		gchar* macro = NULL;
		ValaStruct* _tmp71_;
		gchar* _tmp72_;
		gchar* _tmp73_;
		gchar* _tmp74_;
		gchar* _tmp75_;
		ValaCCodeFile* _tmp76_;
		ValaStruct* _tmp77_;
		gchar* _tmp78_;
		gchar* _tmp79_;
		const gchar* _tmp80_;
		ValaCCodeMacroReplacement* _tmp81_;
		ValaCCodeMacroReplacement* _tmp82_;
		ValaStructRegisterFunction* type_fun = NULL;
		ValaStruct* _tmp83_;
		ValaCodeContext* _tmp84_;
		ValaCodeContext* _tmp85_;
		ValaStructRegisterFunction* _tmp86_;
		ValaStructRegisterFunction* _tmp87_;
		ValaCCodeFile* _tmp88_;
		ValaStructRegisterFunction* _tmp89_;
		ValaCCodeFragment* _tmp90_;
		ValaCCodeFragment* _tmp91_;
		_tmp68_ = decl_space;
		_tmp69_ = vala_ccode_newline_new ();
		_tmp70_ = _tmp69_;
		vala_ccode_file_add_type_declaration (_tmp68_, (ValaCCodeNode*) _tmp70_);
		_vala_ccode_node_unref0 (_tmp70_);
		_tmp71_ = st;
		_tmp72_ = vala_ccode_base_module_get_ccode_lower_case_name ((ValaCodeNode*) _tmp71_, NULL);
		_tmp73_ = _tmp72_;
		_tmp74_ = g_strdup_printf ("(%s_get_type ())", _tmp73_);
		_tmp75_ = _tmp74_;
		_g_free0 (_tmp73_);
		macro = _tmp75_;
		_tmp76_ = decl_space;
		_tmp77_ = st;
		_tmp78_ = vala_ccode_base_module_get_ccode_type_id ((ValaCodeNode*) _tmp77_);
		_tmp79_ = _tmp78_;
		_tmp80_ = macro;
		_tmp81_ = vala_ccode_macro_replacement_new (_tmp79_, _tmp80_);
		_tmp82_ = _tmp81_;
		vala_ccode_file_add_type_declaration (_tmp76_, (ValaCCodeNode*) _tmp82_);
		_vala_ccode_node_unref0 (_tmp82_);
		_g_free0 (_tmp79_);
		_tmp83_ = st;
		_tmp84_ = vala_ccode_base_module_get_context ((ValaCCodeBaseModule*) self);
		_tmp85_ = _tmp84_;
		_tmp86_ = vala_struct_register_function_new (_tmp83_, _tmp85_);
		type_fun = _tmp86_;
		_tmp87_ = type_fun;
		vala_typeregister_function_init_from_type ((ValaTypeRegisterFunction*) _tmp87_, FALSE, TRUE);
		_tmp88_ = decl_space;
		_tmp89_ = type_fun;
		_tmp90_ = vala_typeregister_function_get_declaration ((ValaTypeRegisterFunction*) _tmp89_);
		_tmp91_ = _tmp90_;
		vala_ccode_file_add_type_member_declaration (_tmp88_, (ValaCCodeNode*) _tmp91_);
		_vala_ccode_node_unref0 (_tmp91_);
		_vala_typeregister_function_unref0 (type_fun);
		_g_free0 (macro);
	}
	_tmp92_ = st;
	_tmp93_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp92_);
	_tmp94_ = _tmp93_;
	_tmp95_ = g_strdup_printf ("_%s", _tmp94_);
	_tmp96_ = _tmp95_;
	_tmp97_ = vala_ccode_struct_new (_tmp96_);
	_tmp98_ = _tmp97_;
	_g_free0 (_tmp96_);
	_g_free0 (_tmp94_);
	instance_struct = _tmp98_;
	_tmp100_ = st;
	_tmp101_ = vala_symbol_get_version ((ValaSymbol*) _tmp100_);
	_tmp102_ = _tmp101_;
	_tmp103_ = vala_version_attribute_get_deprecated (_tmp102_);
	_tmp104_ = _tmp103_;
	if (_tmp104_) {
		_tmp99_ = VALA_CCODE_MODIFIERS_DEPRECATED;
	} else {
		_tmp99_ = 0;
	}
	_tmp105_ = instance_struct;
	_tmp106_ = instance_struct;
	_tmp107_ = vala_ccode_node_get_modifiers ((ValaCCodeNode*) _tmp106_);
	_tmp108_ = _tmp107_;
	vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp106_, _tmp108_ | _tmp99_);
	{
		ValaList* _f_list = NULL;
		ValaStruct* _tmp109_;
		ValaList* _tmp110_;
		gint _f_size = 0;
		ValaList* _tmp111_;
		gint _tmp112_;
		gint _tmp113_;
		gint _f_index = 0;
		_tmp109_ = st;
		_tmp110_ = vala_struct_get_fields (_tmp109_);
		_f_list = _tmp110_;
		_tmp111_ = _f_list;
		_tmp112_ = vala_collection_get_size ((ValaCollection*) _tmp111_);
		_tmp113_ = _tmp112_;
		_f_size = _tmp113_;
		_f_index = -1;
		while (TRUE) {
			gint _tmp114_;
			gint _tmp115_;
			gint _tmp116_;
			ValaField* f = NULL;
			ValaList* _tmp117_;
			gint _tmp118_;
			gpointer _tmp119_;
			ValaField* _tmp120_;
			ValaMemberBinding _tmp121_;
			ValaMemberBinding _tmp122_;
			_tmp114_ = _f_index;
			_f_index = _tmp114_ + 1;
			_tmp115_ = _f_index;
			_tmp116_ = _f_size;
			if (!(_tmp115_ < _tmp116_)) {
				break;
			}
			_tmp117_ = _f_list;
			_tmp118_ = _f_index;
			_tmp119_ = vala_list_get (_tmp117_, _tmp118_);
			f = (ValaField*) _tmp119_;
			_tmp120_ = f;
			_tmp121_ = vala_field_get_binding (_tmp120_);
			_tmp122_ = _tmp121_;
			if (_tmp122_ == VALA_MEMBER_BINDING_INSTANCE) {
				ValaField* _tmp123_;
				ValaDataType* _tmp124_;
				ValaDataType* _tmp125_;
				ValaCCodeFile* _tmp126_;
				ValaCCodeModifiers _tmp127_ = 0;
				ValaField* _tmp128_;
				gboolean _tmp129_;
				gboolean _tmp130_;
				ValaCCodeModifiers _tmp131_ = 0;
				ValaField* _tmp132_;
				ValaVersionAttribute* _tmp133_;
				ValaVersionAttribute* _tmp134_;
				gboolean _tmp135_;
				gboolean _tmp136_;
				ValaCCodeModifiers modifiers = 0;
				ValaCCodeStruct* _tmp137_;
				ValaField* _tmp138_;
				ValaDataType* _tmp139_;
				ValaDataType* _tmp140_;
				gchar* _tmp141_;
				gchar* _tmp142_;
				ValaField* _tmp143_;
				gchar* _tmp144_;
				gchar* _tmp145_;
				ValaCCodeModifiers _tmp146_;
				ValaField* _tmp147_;
				ValaDataType* _tmp148_;
				ValaDataType* _tmp149_;
				ValaCCodeDeclaratorSuffix* _tmp150_;
				ValaCCodeDeclaratorSuffix* _tmp151_;
				gboolean _tmp152_ = FALSE;
				ValaField* _tmp153_;
				ValaDataType* _tmp154_;
				ValaDataType* _tmp155_;
				_tmp123_ = f;
				_tmp124_ = vala_variable_get_variable_type ((ValaVariable*) _tmp123_);
				_tmp125_ = _tmp124_;
				_tmp126_ = decl_space;
				vala_ccode_base_module_generate_type_declaration ((ValaCCodeBaseModule*) self, _tmp125_, _tmp126_);
				_tmp128_ = f;
				_tmp129_ = vala_field_get_is_volatile (_tmp128_);
				_tmp130_ = _tmp129_;
				if (_tmp130_) {
					_tmp127_ = VALA_CCODE_MODIFIERS_VOLATILE;
				} else {
					_tmp127_ = 0;
				}
				_tmp132_ = f;
				_tmp133_ = vala_symbol_get_version ((ValaSymbol*) _tmp132_);
				_tmp134_ = _tmp133_;
				_tmp135_ = vala_version_attribute_get_deprecated (_tmp134_);
				_tmp136_ = _tmp135_;
				if (_tmp136_) {
					_tmp131_ = VALA_CCODE_MODIFIERS_DEPRECATED;
				} else {
					_tmp131_ = 0;
				}
				modifiers = _tmp127_ | _tmp131_;
				_tmp137_ = instance_struct;
				_tmp138_ = f;
				_tmp139_ = vala_variable_get_variable_type ((ValaVariable*) _tmp138_);
				_tmp140_ = _tmp139_;
				_tmp141_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp140_);
				_tmp142_ = _tmp141_;
				_tmp143_ = f;
				_tmp144_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp143_);
				_tmp145_ = _tmp144_;
				_tmp146_ = modifiers;
				_tmp147_ = f;
				_tmp148_ = vala_variable_get_variable_type ((ValaVariable*) _tmp147_);
				_tmp149_ = _tmp148_;
				_tmp150_ = vala_ccode_base_module_get_ccode_declarator_suffix ((ValaCCodeBaseModule*) self, _tmp149_);
				_tmp151_ = _tmp150_;
				vala_ccode_struct_add_field (_tmp137_, _tmp142_, _tmp145_, _tmp146_, _tmp151_);
				_vala_ccode_declarator_suffix_unref0 (_tmp151_);
				_g_free0 (_tmp145_);
				_g_free0 (_tmp142_);
				_tmp153_ = f;
				_tmp154_ = vala_variable_get_variable_type ((ValaVariable*) _tmp153_);
				_tmp155_ = _tmp154_;
				if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp155_, VALA_TYPE_ARRAY_TYPE)) {
					ValaField* _tmp156_;
					gboolean _tmp157_;
					_tmp156_ = f;
					_tmp157_ = vala_ccode_base_module_get_ccode_array_length ((ValaCodeNode*) _tmp156_);
					_tmp152_ = _tmp157_;
				} else {
					_tmp152_ = FALSE;
				}
				if (_tmp152_) {
					ValaArrayType* array_type = NULL;
					ValaField* _tmp158_;
					ValaDataType* _tmp159_;
					ValaDataType* _tmp160_;
					ValaArrayType* _tmp161_;
					ValaArrayType* _tmp162_;
					gboolean _tmp163_;
					gboolean _tmp164_;
					_tmp158_ = f;
					_tmp159_ = vala_variable_get_variable_type ((ValaVariable*) _tmp158_);
					_tmp160_ = _tmp159_;
					_tmp161_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp160_, VALA_TYPE_ARRAY_TYPE, ValaArrayType));
					array_type = _tmp161_;
					_tmp162_ = array_type;
					_tmp163_ = vala_array_type_get_fixed_length (_tmp162_);
					_tmp164_ = _tmp163_;
					if (!_tmp164_) {
						ValaDataType* len_type = NULL;
						ValaDataType* _tmp165_;
						ValaDataType* _tmp166_;
						gboolean _tmp189_ = FALSE;
						ValaArrayType* _tmp190_;
						gint _tmp191_;
						gint _tmp192_;
						_tmp165_ = ((ValaCCodeBaseModule*) self)->int_type;
						_tmp166_ = vala_data_type_copy (_tmp165_);
						len_type = _tmp166_;
						{
							gint dim = 0;
							dim = 1;
							{
								gboolean _tmp167_ = FALSE;
								_tmp167_ = TRUE;
								while (TRUE) {
									gint _tmp169_;
									ValaArrayType* _tmp170_;
									gint _tmp171_;
									gint _tmp172_;
									gchar* length_cname = NULL;
									ValaField* _tmp173_;
									gchar* _tmp174_;
									gchar* _tmp175_;
									gboolean _tmp176_;
									ValaCCodeStruct* _tmp184_;
									ValaDataType* _tmp185_;
									gchar* _tmp186_;
									gchar* _tmp187_;
									const gchar* _tmp188_;
									if (!_tmp167_) {
										gint _tmp168_;
										_tmp168_ = dim;
										dim = _tmp168_ + 1;
									}
									_tmp167_ = FALSE;
									_tmp169_ = dim;
									_tmp170_ = array_type;
									_tmp171_ = vala_array_type_get_rank (_tmp170_);
									_tmp172_ = _tmp171_;
									if (!(_tmp169_ <= _tmp172_)) {
										break;
									}
									_tmp173_ = f;
									_tmp174_ = vala_ccode_base_module_get_ccode_array_length_name ((ValaCodeNode*) _tmp173_);
									_tmp175_ = _tmp174_;
									_tmp176_ = _tmp175_ != NULL;
									_g_free0 (_tmp175_);
									if (_tmp176_) {
										ValaField* _tmp177_;
										gchar* _tmp178_;
										_tmp177_ = f;
										_tmp178_ = vala_ccode_base_module_get_ccode_array_length_name ((ValaCodeNode*) _tmp177_);
										_g_free0 (length_cname);
										length_cname = _tmp178_;
									} else {
										ValaField* _tmp179_;
										gchar* _tmp180_;
										gchar* _tmp181_;
										gint _tmp182_;
										gchar* _tmp183_;
										_tmp179_ = f;
										_tmp180_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp179_);
										_tmp181_ = _tmp180_;
										_tmp182_ = dim;
										_tmp183_ = vala_ccode_base_module_get_array_length_cname ((ValaCCodeBaseModule*) self, _tmp181_, _tmp182_);
										_g_free0 (length_cname);
										length_cname = _tmp183_;
										_g_free0 (_tmp181_);
									}
									_tmp184_ = instance_struct;
									_tmp185_ = len_type;
									_tmp186_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp185_);
									_tmp187_ = _tmp186_;
									_tmp188_ = length_cname;
									vala_ccode_struct_add_field (_tmp184_, _tmp187_, _tmp188_, 0, NULL);
									_g_free0 (_tmp187_);
									_g_free0 (length_cname);
								}
							}
						}
						_tmp190_ = array_type;
						_tmp191_ = vala_array_type_get_rank (_tmp190_);
						_tmp192_ = _tmp191_;
						if (_tmp192_ == 1) {
							ValaField* _tmp193_;
							gboolean _tmp194_;
							_tmp193_ = f;
							_tmp194_ = vala_symbol_is_internal_symbol ((ValaSymbol*) _tmp193_);
							_tmp189_ = _tmp194_;
						} else {
							_tmp189_ = FALSE;
						}
						if (_tmp189_) {
							ValaCCodeStruct* _tmp195_;
							ValaDataType* _tmp196_;
							gchar* _tmp197_;
							gchar* _tmp198_;
							ValaField* _tmp199_;
							gchar* _tmp200_;
							gchar* _tmp201_;
							gchar* _tmp202_;
							gchar* _tmp203_;
							_tmp195_ = instance_struct;
							_tmp196_ = len_type;
							_tmp197_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp196_);
							_tmp198_ = _tmp197_;
							_tmp199_ = f;
							_tmp200_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp199_);
							_tmp201_ = _tmp200_;
							_tmp202_ = vala_ccode_base_module_get_array_size_cname ((ValaCCodeBaseModule*) self, _tmp201_);
							_tmp203_ = _tmp202_;
							vala_ccode_struct_add_field (_tmp195_, _tmp198_, _tmp203_, 0, NULL);
							_g_free0 (_tmp203_);
							_g_free0 (_tmp201_);
							_g_free0 (_tmp198_);
						}
						_vala_code_node_unref0 (len_type);
					}
					_vala_code_node_unref0 (array_type);
				} else {
					ValaField* _tmp204_;
					ValaDataType* _tmp205_;
					ValaDataType* _tmp206_;
					_tmp204_ = f;
					_tmp205_ = vala_variable_get_variable_type ((ValaVariable*) _tmp204_);
					_tmp206_ = _tmp205_;
					if (G_TYPE_CHECK_INSTANCE_TYPE (_tmp206_, VALA_TYPE_DELEGATE_TYPE)) {
						ValaDelegateType* delegate_type = NULL;
						ValaField* _tmp207_;
						ValaDataType* _tmp208_;
						ValaDataType* _tmp209_;
						ValaDelegateType* _tmp210_;
						ValaDelegateType* _tmp211_;
						ValaDelegate* _tmp212_;
						ValaDelegate* _tmp213_;
						gboolean _tmp214_;
						gboolean _tmp215_;
						_tmp207_ = f;
						_tmp208_ = vala_variable_get_variable_type ((ValaVariable*) _tmp207_);
						_tmp209_ = _tmp208_;
						_tmp210_ = _vala_code_node_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp209_, VALA_TYPE_DELEGATE_TYPE, ValaDelegateType));
						delegate_type = _tmp210_;
						_tmp211_ = delegate_type;
						_tmp212_ = vala_delegate_type_get_delegate_symbol (_tmp211_);
						_tmp213_ = _tmp212_;
						_tmp214_ = vala_delegate_get_has_target (_tmp213_);
						_tmp215_ = _tmp214_;
						if (_tmp215_) {
							ValaCCodeStruct* _tmp216_;
							ValaField* _tmp217_;
							gchar* _tmp218_;
							gchar* _tmp219_;
							ValaDelegateType* _tmp220_;
							gboolean _tmp221_;
							_tmp216_ = instance_struct;
							_tmp217_ = f;
							_tmp218_ = vala_ccode_base_module_get_ccode_delegate_target_name ((ValaVariable*) _tmp217_);
							_tmp219_ = _tmp218_;
							vala_ccode_struct_add_field (_tmp216_, "gpointer", _tmp219_, 0, NULL);
							_g_free0 (_tmp219_);
							_tmp220_ = delegate_type;
							_tmp221_ = vala_data_type_is_disposable ((ValaDataType*) _tmp220_);
							if (_tmp221_) {
								ValaCCodeStruct* _tmp222_;
								ValaField* _tmp223_;
								gchar* _tmp224_;
								gchar* _tmp225_;
								gchar* _tmp226_;
								gchar* _tmp227_;
								_tmp222_ = instance_struct;
								_tmp223_ = f;
								_tmp224_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp223_);
								_tmp225_ = _tmp224_;
								_tmp226_ = vala_ccode_base_module_get_delegate_target_destroy_notify_cname ((ValaCCodeBaseModule*) self, _tmp225_);
								_tmp227_ = _tmp226_;
								vala_ccode_struct_add_field (_tmp222_, "GDestroyNotify", _tmp227_, 0, NULL);
								_g_free0 (_tmp227_);
								_g_free0 (_tmp225_);
							}
						}
						_vala_code_node_unref0 (delegate_type);
					}
				}
			}
			_vala_code_node_unref0 (f);
		}
		_vala_iterable_unref0 (_f_list);
	}
	_tmp228_ = st;
	_tmp229_ = vala_struct_get_base_struct (_tmp228_);
	_tmp230_ = _tmp229_;
	if (_tmp230_ == NULL) {
		ValaCCodeFile* _tmp231_;
		ValaStruct* _tmp232_;
		gchar* _tmp233_;
		gchar* _tmp234_;
		gchar* _tmp235_;
		gchar* _tmp236_;
		ValaStruct* _tmp237_;
		gchar* _tmp238_;
		gchar* _tmp239_;
		ValaCCodeVariableDeclarator* _tmp240_;
		ValaCCodeVariableDeclarator* _tmp241_;
		ValaCCodeTypeDefinition* _tmp242_;
		ValaCCodeTypeDefinition* _tmp243_;
		ValaCCodeFile* _tmp244_;
		ValaCCodeStruct* _tmp245_;
		_tmp231_ = decl_space;
		_tmp232_ = st;
		_tmp233_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp232_);
		_tmp234_ = _tmp233_;
		_tmp235_ = g_strdup_printf ("struct _%s", _tmp234_);
		_tmp236_ = _tmp235_;
		_tmp237_ = st;
		_tmp238_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp237_);
		_tmp239_ = _tmp238_;
		_tmp240_ = vala_ccode_variable_declarator_new (_tmp239_, NULL, NULL);
		_tmp241_ = _tmp240_;
		_tmp242_ = vala_ccode_type_definition_new (_tmp236_, (ValaCCodeDeclarator*) _tmp241_);
		_tmp243_ = _tmp242_;
		vala_ccode_file_add_type_declaration (_tmp231_, (ValaCCodeNode*) _tmp243_);
		_vala_ccode_node_unref0 (_tmp243_);
		_vala_ccode_node_unref0 (_tmp241_);
		_g_free0 (_tmp239_);
		_g_free0 (_tmp236_);
		_g_free0 (_tmp234_);
		_tmp244_ = decl_space;
		_tmp245_ = instance_struct;
		vala_ccode_file_add_type_definition (_tmp244_, (ValaCCodeNode*) _tmp245_);
	} else {
		ValaCCodeFile* _tmp246_;
		ValaStruct* _tmp247_;
		ValaStruct* _tmp248_;
		ValaStruct* _tmp249_;
		gchar* _tmp250_;
		gchar* _tmp251_;
		ValaStruct* _tmp252_;
		gchar* _tmp253_;
		gchar* _tmp254_;
		ValaCCodeVariableDeclarator* _tmp255_;
		ValaCCodeVariableDeclarator* _tmp256_;
		ValaCCodeTypeDefinition* _tmp257_;
		ValaCCodeTypeDefinition* _tmp258_;
		_tmp246_ = decl_space;
		_tmp247_ = st;
		_tmp248_ = vala_struct_get_base_struct (_tmp247_);
		_tmp249_ = _tmp248_;
		_tmp250_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp249_);
		_tmp251_ = _tmp250_;
		_tmp252_ = st;
		_tmp253_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp252_);
		_tmp254_ = _tmp253_;
		_tmp255_ = vala_ccode_variable_declarator_new (_tmp254_, NULL, NULL);
		_tmp256_ = _tmp255_;
		_tmp257_ = vala_ccode_type_definition_new (_tmp251_, (ValaCCodeDeclarator*) _tmp256_);
		_tmp258_ = _tmp257_;
		vala_ccode_file_add_type_declaration (_tmp246_, (ValaCCodeNode*) _tmp258_);
		_vala_ccode_node_unref0 (_tmp258_);
		_vala_ccode_node_unref0 (_tmp256_);
		_g_free0 (_tmp254_);
		_g_free0 (_tmp251_);
	}
	_tmp259_ = st;
	_tmp260_ = vala_ccode_base_module_get_ccode_dup_function ((ValaTypeSymbol*) _tmp259_);
	_tmp261_ = _tmp260_;
	_tmp262_ = st;
	_tmp263_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp262_);
	_tmp264_ = _tmp263_;
	_tmp265_ = g_strconcat (_tmp264_, "*", NULL);
	_tmp266_ = _tmp265_;
	_tmp267_ = vala_ccode_function_new (_tmp261_, _tmp266_);
	_tmp268_ = _tmp267_;
	_g_free0 (_tmp266_);
	_g_free0 (_tmp264_);
	_g_free0 (_tmp261_);
	function = _tmp268_;
	_tmp269_ = st;
	_tmp270_ = vala_symbol_is_private_symbol ((ValaSymbol*) _tmp269_);
	if (_tmp270_) {
		ValaCCodeFunction* _tmp271_;
		_tmp271_ = function;
		vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp271_, VALA_CCODE_MODIFIERS_STATIC);
	} else {
		gboolean _tmp272_ = FALSE;
		ValaCodeContext* _tmp273_;
		ValaCodeContext* _tmp274_;
		gboolean _tmp275_;
		gboolean _tmp276_;
		_tmp273_ = vala_ccode_base_module_get_context ((ValaCCodeBaseModule*) self);
		_tmp274_ = _tmp273_;
		_tmp275_ = vala_code_context_get_hide_internal (_tmp274_);
		_tmp276_ = _tmp275_;
		if (_tmp276_) {
			ValaStruct* _tmp277_;
			gboolean _tmp278_;
			_tmp277_ = st;
			_tmp278_ = vala_symbol_is_internal_symbol ((ValaSymbol*) _tmp277_);
			_tmp272_ = _tmp278_;
		} else {
			_tmp272_ = FALSE;
		}
		if (_tmp272_) {
			ValaCCodeFunction* _tmp279_;
			_tmp279_ = function;
			vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp279_, VALA_CCODE_MODIFIERS_INTERNAL);
		}
	}
	_tmp280_ = function;
	_tmp281_ = st;
	_tmp282_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp281_);
	_tmp283_ = _tmp282_;
	_tmp284_ = g_strconcat ("const ", _tmp283_, NULL);
	_tmp285_ = _tmp284_;
	_tmp286_ = g_strconcat (_tmp285_, "*", NULL);
	_tmp287_ = _tmp286_;
	_tmp288_ = vala_ccode_parameter_new ("self", _tmp287_);
	_tmp289_ = _tmp288_;
	vala_ccode_function_add_parameter (_tmp280_, _tmp289_);
	_vala_ccode_node_unref0 (_tmp289_);
	_g_free0 (_tmp287_);
	_g_free0 (_tmp285_);
	_g_free0 (_tmp283_);
	_tmp290_ = decl_space;
	_tmp291_ = function;
	vala_ccode_file_add_function_declaration (_tmp290_, _tmp291_);
	_tmp292_ = st;
	_tmp293_ = vala_ccode_base_module_get_ccode_free_function ((ValaTypeSymbol*) _tmp292_);
	_tmp294_ = _tmp293_;
	_tmp295_ = vala_ccode_function_new (_tmp294_, "void");
	_vala_ccode_node_unref0 (function);
	function = _tmp295_;
	_g_free0 (_tmp294_);
	_tmp296_ = st;
	_tmp297_ = vala_symbol_is_private_symbol ((ValaSymbol*) _tmp296_);
	if (_tmp297_) {
		ValaCCodeFunction* _tmp298_;
		_tmp298_ = function;
		vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp298_, VALA_CCODE_MODIFIERS_STATIC);
	} else {
		gboolean _tmp299_ = FALSE;
		ValaCodeContext* _tmp300_;
		ValaCodeContext* _tmp301_;
		gboolean _tmp302_;
		gboolean _tmp303_;
		_tmp300_ = vala_ccode_base_module_get_context ((ValaCCodeBaseModule*) self);
		_tmp301_ = _tmp300_;
		_tmp302_ = vala_code_context_get_hide_internal (_tmp301_);
		_tmp303_ = _tmp302_;
		if (_tmp303_) {
			ValaStruct* _tmp304_;
			gboolean _tmp305_;
			_tmp304_ = st;
			_tmp305_ = vala_symbol_is_internal_symbol ((ValaSymbol*) _tmp304_);
			_tmp299_ = _tmp305_;
		} else {
			_tmp299_ = FALSE;
		}
		if (_tmp299_) {
			ValaCCodeFunction* _tmp306_;
			_tmp306_ = function;
			vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp306_, VALA_CCODE_MODIFIERS_INTERNAL);
		}
	}
	_tmp307_ = function;
	_tmp308_ = st;
	_tmp309_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp308_);
	_tmp310_ = _tmp309_;
	_tmp311_ = g_strconcat (_tmp310_, "*", NULL);
	_tmp312_ = _tmp311_;
	_tmp313_ = vala_ccode_parameter_new ("self", _tmp312_);
	_tmp314_ = _tmp313_;
	vala_ccode_function_add_parameter (_tmp307_, _tmp314_);
	_vala_ccode_node_unref0 (_tmp314_);
	_g_free0 (_tmp312_);
	_g_free0 (_tmp310_);
	_tmp315_ = decl_space;
	_tmp316_ = function;
	vala_ccode_file_add_function_declaration (_tmp315_, _tmp316_);
	_tmp317_ = st;
	_tmp318_ = vala_struct_is_disposable (_tmp317_);
	if (_tmp318_) {
		ValaStruct* _tmp319_;
		gchar* _tmp320_;
		gchar* _tmp321_;
		ValaCCodeFunction* _tmp322_;
		ValaStruct* _tmp323_;
		gboolean _tmp324_;
		ValaCCodeFunction* _tmp334_;
		ValaStruct* _tmp335_;
		gchar* _tmp336_;
		gchar* _tmp337_;
		gchar* _tmp338_;
		gchar* _tmp339_;
		gchar* _tmp340_;
		gchar* _tmp341_;
		ValaCCodeParameter* _tmp342_;
		ValaCCodeParameter* _tmp343_;
		ValaCCodeFunction* _tmp344_;
		ValaStruct* _tmp345_;
		gchar* _tmp346_;
		gchar* _tmp347_;
		gchar* _tmp348_;
		gchar* _tmp349_;
		ValaCCodeParameter* _tmp350_;
		ValaCCodeParameter* _tmp351_;
		ValaCCodeFile* _tmp352_;
		ValaCCodeFunction* _tmp353_;
		ValaStruct* _tmp354_;
		gchar* _tmp355_;
		gchar* _tmp356_;
		ValaCCodeFunction* _tmp357_;
		ValaStruct* _tmp358_;
		gboolean _tmp359_;
		ValaCCodeFunction* _tmp369_;
		ValaStruct* _tmp370_;
		gchar* _tmp371_;
		gchar* _tmp372_;
		gchar* _tmp373_;
		gchar* _tmp374_;
		ValaCCodeParameter* _tmp375_;
		ValaCCodeParameter* _tmp376_;
		ValaCCodeFile* _tmp377_;
		ValaCCodeFunction* _tmp378_;
		_tmp319_ = st;
		_tmp320_ = vala_ccode_base_module_get_ccode_copy_function ((ValaTypeSymbol*) _tmp319_);
		_tmp321_ = _tmp320_;
		_tmp322_ = vala_ccode_function_new (_tmp321_, "void");
		_vala_ccode_node_unref0 (function);
		function = _tmp322_;
		_g_free0 (_tmp321_);
		_tmp323_ = st;
		_tmp324_ = vala_symbol_is_private_symbol ((ValaSymbol*) _tmp323_);
		if (_tmp324_) {
			ValaCCodeFunction* _tmp325_;
			_tmp325_ = function;
			vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp325_, VALA_CCODE_MODIFIERS_STATIC);
		} else {
			gboolean _tmp326_ = FALSE;
			ValaCodeContext* _tmp327_;
			ValaCodeContext* _tmp328_;
			gboolean _tmp329_;
			gboolean _tmp330_;
			_tmp327_ = vala_ccode_base_module_get_context ((ValaCCodeBaseModule*) self);
			_tmp328_ = _tmp327_;
			_tmp329_ = vala_code_context_get_hide_internal (_tmp328_);
			_tmp330_ = _tmp329_;
			if (_tmp330_) {
				ValaStruct* _tmp331_;
				gboolean _tmp332_;
				_tmp331_ = st;
				_tmp332_ = vala_symbol_is_internal_symbol ((ValaSymbol*) _tmp331_);
				_tmp326_ = _tmp332_;
			} else {
				_tmp326_ = FALSE;
			}
			if (_tmp326_) {
				ValaCCodeFunction* _tmp333_;
				_tmp333_ = function;
				vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp333_, VALA_CCODE_MODIFIERS_INTERNAL);
			}
		}
		_tmp334_ = function;
		_tmp335_ = st;
		_tmp336_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp335_);
		_tmp337_ = _tmp336_;
		_tmp338_ = g_strconcat ("const ", _tmp337_, NULL);
		_tmp339_ = _tmp338_;
		_tmp340_ = g_strconcat (_tmp339_, "*", NULL);
		_tmp341_ = _tmp340_;
		_tmp342_ = vala_ccode_parameter_new ("self", _tmp341_);
		_tmp343_ = _tmp342_;
		vala_ccode_function_add_parameter (_tmp334_, _tmp343_);
		_vala_ccode_node_unref0 (_tmp343_);
		_g_free0 (_tmp341_);
		_g_free0 (_tmp339_);
		_g_free0 (_tmp337_);
		_tmp344_ = function;
		_tmp345_ = st;
		_tmp346_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp345_);
		_tmp347_ = _tmp346_;
		_tmp348_ = g_strconcat (_tmp347_, "*", NULL);
		_tmp349_ = _tmp348_;
		_tmp350_ = vala_ccode_parameter_new ("dest", _tmp349_);
		_tmp351_ = _tmp350_;
		vala_ccode_function_add_parameter (_tmp344_, _tmp351_);
		_vala_ccode_node_unref0 (_tmp351_);
		_g_free0 (_tmp349_);
		_g_free0 (_tmp347_);
		_tmp352_ = decl_space;
		_tmp353_ = function;
		vala_ccode_file_add_function_declaration (_tmp352_, _tmp353_);
		_tmp354_ = st;
		_tmp355_ = vala_ccode_base_module_get_ccode_destroy_function ((ValaTypeSymbol*) _tmp354_);
		_tmp356_ = _tmp355_;
		_tmp357_ = vala_ccode_function_new (_tmp356_, "void");
		_vala_ccode_node_unref0 (function);
		function = _tmp357_;
		_g_free0 (_tmp356_);
		_tmp358_ = st;
		_tmp359_ = vala_symbol_is_private_symbol ((ValaSymbol*) _tmp358_);
		if (_tmp359_) {
			ValaCCodeFunction* _tmp360_;
			_tmp360_ = function;
			vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp360_, VALA_CCODE_MODIFIERS_STATIC);
		} else {
			gboolean _tmp361_ = FALSE;
			ValaCodeContext* _tmp362_;
			ValaCodeContext* _tmp363_;
			gboolean _tmp364_;
			gboolean _tmp365_;
			_tmp362_ = vala_ccode_base_module_get_context ((ValaCCodeBaseModule*) self);
			_tmp363_ = _tmp362_;
			_tmp364_ = vala_code_context_get_hide_internal (_tmp363_);
			_tmp365_ = _tmp364_;
			if (_tmp365_) {
				ValaStruct* _tmp366_;
				gboolean _tmp367_;
				_tmp366_ = st;
				_tmp367_ = vala_symbol_is_internal_symbol ((ValaSymbol*) _tmp366_);
				_tmp361_ = _tmp367_;
			} else {
				_tmp361_ = FALSE;
			}
			if (_tmp361_) {
				ValaCCodeFunction* _tmp368_;
				_tmp368_ = function;
				vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp368_, VALA_CCODE_MODIFIERS_INTERNAL);
			}
		}
		_tmp369_ = function;
		_tmp370_ = st;
		_tmp371_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp370_);
		_tmp372_ = _tmp371_;
		_tmp373_ = g_strconcat (_tmp372_, "*", NULL);
		_tmp374_ = _tmp373_;
		_tmp375_ = vala_ccode_parameter_new ("self", _tmp374_);
		_tmp376_ = _tmp375_;
		vala_ccode_function_add_parameter (_tmp369_, _tmp376_);
		_vala_ccode_node_unref0 (_tmp376_);
		_g_free0 (_tmp374_);
		_g_free0 (_tmp372_);
		_tmp377_ = decl_space;
		_tmp378_ = function;
		vala_ccode_file_add_function_declaration (_tmp377_, _tmp378_);
	}
	_vala_ccode_node_unref0 (function);
	_vala_ccode_node_unref0 (instance_struct);
}


static gpointer _vala_ccode_base_module_emit_context_ref0 (gpointer self) {
	return self ? vala_ccode_base_module_emit_context_ref (self) : NULL;
}


static void vala_ccode_struct_module_real_visit_struct (ValaCodeVisitor* base, ValaStruct* st) {
	ValaCCodeStructModule * self;
	ValaStruct* _tmp0_;
	ValaCCodeBaseModuleEmitContext* _tmp1_;
	ValaCCodeBaseModuleEmitContext* _tmp2_;
	ValaStruct* _tmp3_;
	ValaSourceReference* _tmp4_;
	ValaSourceReference* _tmp5_;
	ValaCCodeBaseModuleEmitContext* old_instance_finalize_context = NULL;
	ValaCCodeBaseModuleEmitContext* _tmp6_;
	ValaCCodeBaseModuleEmitContext* _tmp7_;
	ValaCCodeBaseModuleEmitContext* _tmp8_;
	ValaStruct* _tmp9_;
	ValaCCodeFile* _tmp10_;
	ValaStruct* _tmp11_;
	gboolean _tmp12_;
	ValaStruct* _tmp15_;
	gboolean _tmp16_;
	gboolean _tmp19_ = FALSE;
	gboolean _tmp20_ = FALSE;
	ValaStruct* _tmp21_;
	gboolean _tmp22_;
	ValaStruct* _tmp30_;
	gboolean _tmp31_ = FALSE;
	gboolean _tmp32_ = FALSE;
	ValaStruct* _tmp33_;
	gboolean _tmp34_;
	ValaCCodeBaseModuleEmitContext* _tmp45_;
	ValaCCodeBaseModuleEmitContext* _tmp46_;
	self = (ValaCCodeStructModule*) base;
	g_return_if_fail (st != NULL);
	_tmp0_ = st;
	_tmp1_ = vala_ccode_base_module_emit_context_new ((ValaSymbol*) _tmp0_);
	_tmp2_ = _tmp1_;
	vala_ccode_base_module_push_context ((ValaCCodeBaseModule*) self, _tmp2_);
	_vala_ccode_base_module_emit_context_unref0 (_tmp2_);
	_tmp3_ = st;
	_tmp4_ = vala_code_node_get_source_reference ((ValaCodeNode*) _tmp3_);
	_tmp5_ = _tmp4_;
	vala_ccode_base_module_push_line ((ValaCCodeBaseModule*) self, _tmp5_);
	_tmp6_ = ((ValaCCodeBaseModule*) self)->instance_finalize_context;
	_tmp7_ = _vala_ccode_base_module_emit_context_ref0 (_tmp6_);
	old_instance_finalize_context = _tmp7_;
	_tmp8_ = vala_ccode_base_module_emit_context_new (NULL);
	_vala_ccode_base_module_emit_context_unref0 (((ValaCCodeBaseModule*) self)->instance_finalize_context);
	((ValaCCodeBaseModule*) self)->instance_finalize_context = _tmp8_;
	_tmp9_ = st;
	_tmp10_ = ((ValaCCodeBaseModule*) self)->cfile;
	vala_ccode_base_module_generate_struct_declaration ((ValaCCodeBaseModule*) self, _tmp9_, _tmp10_);
	_tmp11_ = st;
	_tmp12_ = vala_symbol_is_internal_symbol ((ValaSymbol*) _tmp11_);
	if (!_tmp12_) {
		ValaStruct* _tmp13_;
		ValaCCodeFile* _tmp14_;
		_tmp13_ = st;
		_tmp14_ = ((ValaCCodeBaseModule*) self)->header_file;
		vala_ccode_base_module_generate_struct_declaration ((ValaCCodeBaseModule*) self, _tmp13_, _tmp14_);
	}
	_tmp15_ = st;
	_tmp16_ = vala_symbol_is_private_symbol ((ValaSymbol*) _tmp15_);
	if (!_tmp16_) {
		ValaStruct* _tmp17_;
		ValaCCodeFile* _tmp18_;
		_tmp17_ = st;
		_tmp18_ = ((ValaCCodeBaseModule*) self)->internal_header_file;
		vala_ccode_base_module_generate_struct_declaration ((ValaCCodeBaseModule*) self, _tmp17_, _tmp18_);
	}
	_tmp21_ = st;
	_tmp22_ = vala_struct_is_boolean_type (_tmp21_);
	if (!_tmp22_) {
		ValaStruct* _tmp23_;
		gboolean _tmp24_;
		_tmp23_ = st;
		_tmp24_ = vala_struct_is_integer_type (_tmp23_);
		_tmp20_ = !_tmp24_;
	} else {
		_tmp20_ = FALSE;
	}
	if (_tmp20_) {
		ValaStruct* _tmp25_;
		gboolean _tmp26_;
		_tmp25_ = st;
		_tmp26_ = vala_struct_is_floating_type (_tmp25_);
		_tmp19_ = !_tmp26_;
	} else {
		_tmp19_ = FALSE;
	}
	if (_tmp19_) {
		ValaStruct* _tmp27_;
		gboolean _tmp28_;
		_tmp27_ = st;
		_tmp28_ = vala_struct_is_disposable (_tmp27_);
		if (_tmp28_) {
			ValaStruct* _tmp29_;
			_tmp29_ = st;
			vala_ccode_struct_module_begin_struct_destroy_function (self, _tmp29_);
		}
	}
	_tmp30_ = st;
	vala_code_node_accept_children ((ValaCodeNode*) _tmp30_, (ValaCodeVisitor*) self);
	_tmp33_ = st;
	_tmp34_ = vala_struct_is_boolean_type (_tmp33_);
	if (!_tmp34_) {
		ValaStruct* _tmp35_;
		gboolean _tmp36_;
		_tmp35_ = st;
		_tmp36_ = vala_struct_is_integer_type (_tmp35_);
		_tmp32_ = !_tmp36_;
	} else {
		_tmp32_ = FALSE;
	}
	if (_tmp32_) {
		ValaStruct* _tmp37_;
		gboolean _tmp38_;
		_tmp37_ = st;
		_tmp38_ = vala_struct_is_floating_type (_tmp37_);
		_tmp31_ = !_tmp38_;
	} else {
		_tmp31_ = FALSE;
	}
	if (_tmp31_) {
		ValaStruct* _tmp39_;
		gboolean _tmp40_;
		ValaStruct* _tmp43_;
		ValaStruct* _tmp44_;
		_tmp39_ = st;
		_tmp40_ = vala_struct_is_disposable (_tmp39_);
		if (_tmp40_) {
			ValaStruct* _tmp41_;
			ValaStruct* _tmp42_;
			_tmp41_ = st;
			vala_ccode_struct_module_add_struct_copy_function (self, _tmp41_);
			_tmp42_ = st;
			vala_ccode_struct_module_add_struct_destroy_function (self, _tmp42_);
		}
		_tmp43_ = st;
		vala_ccode_struct_module_add_struct_dup_function (self, _tmp43_);
		_tmp44_ = st;
		vala_ccode_struct_module_add_struct_free_function (self, _tmp44_);
	}
	_tmp45_ = old_instance_finalize_context;
	_tmp46_ = _vala_ccode_base_module_emit_context_ref0 (_tmp45_);
	_vala_ccode_base_module_emit_context_unref0 (((ValaCCodeBaseModule*) self)->instance_finalize_context);
	((ValaCCodeBaseModule*) self)->instance_finalize_context = _tmp46_;
	vala_ccode_base_module_pop_line ((ValaCCodeBaseModule*) self);
	vala_ccode_base_module_pop_context ((ValaCCodeBaseModule*) self);
	_vala_ccode_base_module_emit_context_unref0 (old_instance_finalize_context);
}


static void vala_ccode_struct_module_add_struct_dup_function (ValaCCodeStructModule* self, ValaStruct* st) {
	ValaCCodeFunction* function = NULL;
	ValaStruct* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	ValaStruct* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	ValaCCodeFunction* _tmp8_;
	ValaCCodeFunction* _tmp9_;
	ValaStruct* _tmp10_;
	ValaSymbolAccessibility _tmp11_;
	ValaSymbolAccessibility _tmp12_;
	ValaCCodeFunction* _tmp14_;
	ValaStruct* _tmp15_;
	gchar* _tmp16_;
	gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	gchar* _tmp21_;
	ValaCCodeParameter* _tmp22_;
	ValaCCodeParameter* _tmp23_;
	ValaCCodeFunction* _tmp24_;
	ValaCCodeFunction* _tmp25_;
	ValaCCodeFunction* _tmp26_;
	ValaStruct* _tmp27_;
	gchar* _tmp28_;
	gchar* _tmp29_;
	gchar* _tmp30_;
	gchar* _tmp31_;
	ValaCCodeVariableDeclarator* _tmp32_;
	ValaCCodeVariableDeclarator* _tmp33_;
	ValaCCodeFunctionCall* creation_call = NULL;
	ValaCCodeIdentifier* _tmp34_;
	ValaCCodeIdentifier* _tmp35_;
	ValaCCodeFunctionCall* _tmp36_;
	ValaCCodeFunctionCall* _tmp37_;
	ValaCCodeFunctionCall* _tmp38_;
	ValaStruct* _tmp39_;
	gchar* _tmp40_;
	gchar* _tmp41_;
	ValaCCodeConstant* _tmp42_;
	ValaCCodeConstant* _tmp43_;
	ValaCCodeFunctionCall* _tmp44_;
	ValaCCodeConstant* _tmp45_;
	ValaCCodeConstant* _tmp46_;
	ValaCCodeFunction* _tmp47_;
	ValaCCodeFunction* _tmp48_;
	ValaCCodeIdentifier* _tmp49_;
	ValaCCodeIdentifier* _tmp50_;
	ValaCCodeFunctionCall* _tmp51_;
	ValaStruct* _tmp52_;
	gboolean _tmp53_;
	ValaCCodeFunction* _tmp96_;
	ValaCCodeFunction* _tmp97_;
	ValaCCodeIdentifier* _tmp98_;
	ValaCCodeIdentifier* _tmp99_;
	ValaCCodeFile* _tmp100_;
	ValaCCodeFunction* _tmp101_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (st != NULL);
	_tmp0_ = st;
	_tmp1_ = vala_ccode_base_module_get_ccode_dup_function ((ValaTypeSymbol*) _tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = st;
	_tmp4_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp3_);
	_tmp5_ = _tmp4_;
	_tmp6_ = g_strconcat (_tmp5_, "*", NULL);
	_tmp7_ = _tmp6_;
	_tmp8_ = vala_ccode_function_new (_tmp2_, _tmp7_);
	_tmp9_ = _tmp8_;
	_g_free0 (_tmp7_);
	_g_free0 (_tmp5_);
	_g_free0 (_tmp2_);
	function = _tmp9_;
	_tmp10_ = st;
	_tmp11_ = vala_symbol_get_access ((ValaSymbol*) _tmp10_);
	_tmp12_ = _tmp11_;
	if (_tmp12_ == VALA_SYMBOL_ACCESSIBILITY_PRIVATE) {
		ValaCCodeFunction* _tmp13_;
		_tmp13_ = function;
		vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp13_, VALA_CCODE_MODIFIERS_STATIC);
	}
	_tmp14_ = function;
	_tmp15_ = st;
	_tmp16_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp15_);
	_tmp17_ = _tmp16_;
	_tmp18_ = g_strconcat ("const ", _tmp17_, NULL);
	_tmp19_ = _tmp18_;
	_tmp20_ = g_strconcat (_tmp19_, "*", NULL);
	_tmp21_ = _tmp20_;
	_tmp22_ = vala_ccode_parameter_new ("self", _tmp21_);
	_tmp23_ = _tmp22_;
	vala_ccode_function_add_parameter (_tmp14_, _tmp23_);
	_vala_ccode_node_unref0 (_tmp23_);
	_g_free0 (_tmp21_);
	_g_free0 (_tmp19_);
	_g_free0 (_tmp17_);
	_tmp24_ = function;
	vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp24_);
	_tmp25_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
	_tmp26_ = _tmp25_;
	_tmp27_ = st;
	_tmp28_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp27_);
	_tmp29_ = _tmp28_;
	_tmp30_ = g_strconcat (_tmp29_, "*", NULL);
	_tmp31_ = _tmp30_;
	_tmp32_ = vala_ccode_variable_declarator_new ("dup", NULL, NULL);
	_tmp33_ = _tmp32_;
	vala_ccode_function_add_declaration (_tmp26_, _tmp31_, (ValaCCodeDeclarator*) _tmp33_, 0);
	_vala_ccode_node_unref0 (_tmp33_);
	_g_free0 (_tmp31_);
	_g_free0 (_tmp29_);
	_tmp34_ = vala_ccode_identifier_new ("g_new0");
	_tmp35_ = _tmp34_;
	_tmp36_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp35_);
	_tmp37_ = _tmp36_;
	_vala_ccode_node_unref0 (_tmp35_);
	creation_call = _tmp37_;
	_tmp38_ = creation_call;
	_tmp39_ = st;
	_tmp40_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp39_);
	_tmp41_ = _tmp40_;
	_tmp42_ = vala_ccode_constant_new (_tmp41_);
	_tmp43_ = _tmp42_;
	vala_ccode_function_call_add_argument (_tmp38_, (ValaCCodeExpression*) _tmp43_);
	_vala_ccode_node_unref0 (_tmp43_);
	_g_free0 (_tmp41_);
	_tmp44_ = creation_call;
	_tmp45_ = vala_ccode_constant_new ("1");
	_tmp46_ = _tmp45_;
	vala_ccode_function_call_add_argument (_tmp44_, (ValaCCodeExpression*) _tmp46_);
	_vala_ccode_node_unref0 (_tmp46_);
	_tmp47_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
	_tmp48_ = _tmp47_;
	_tmp49_ = vala_ccode_identifier_new ("dup");
	_tmp50_ = _tmp49_;
	_tmp51_ = creation_call;
	vala_ccode_function_add_assignment (_tmp48_, (ValaCCodeExpression*) _tmp50_, (ValaCCodeExpression*) _tmp51_);
	_vala_ccode_node_unref0 (_tmp50_);
	_tmp52_ = st;
	_tmp53_ = vala_struct_is_disposable (_tmp52_);
	if (_tmp53_) {
		ValaCCodeFunctionCall* copy_call = NULL;
		ValaStruct* _tmp54_;
		gchar* _tmp55_;
		gchar* _tmp56_;
		ValaCCodeIdentifier* _tmp57_;
		ValaCCodeIdentifier* _tmp58_;
		ValaCCodeFunctionCall* _tmp59_;
		ValaCCodeFunctionCall* _tmp60_;
		ValaCCodeFunctionCall* _tmp61_;
		ValaCCodeIdentifier* _tmp62_;
		ValaCCodeIdentifier* _tmp63_;
		ValaCCodeFunctionCall* _tmp64_;
		ValaCCodeIdentifier* _tmp65_;
		ValaCCodeIdentifier* _tmp66_;
		ValaCCodeFunction* _tmp67_;
		ValaCCodeFunction* _tmp68_;
		ValaCCodeFunctionCall* _tmp69_;
		_tmp54_ = st;
		_tmp55_ = vala_ccode_base_module_get_ccode_copy_function ((ValaTypeSymbol*) _tmp54_);
		_tmp56_ = _tmp55_;
		_tmp57_ = vala_ccode_identifier_new (_tmp56_);
		_tmp58_ = _tmp57_;
		_tmp59_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp58_);
		_tmp60_ = _tmp59_;
		_vala_ccode_node_unref0 (_tmp58_);
		_g_free0 (_tmp56_);
		copy_call = _tmp60_;
		_tmp61_ = copy_call;
		_tmp62_ = vala_ccode_identifier_new ("self");
		_tmp63_ = _tmp62_;
		vala_ccode_function_call_add_argument (_tmp61_, (ValaCCodeExpression*) _tmp63_);
		_vala_ccode_node_unref0 (_tmp63_);
		_tmp64_ = copy_call;
		_tmp65_ = vala_ccode_identifier_new ("dup");
		_tmp66_ = _tmp65_;
		vala_ccode_function_call_add_argument (_tmp64_, (ValaCCodeExpression*) _tmp66_);
		_vala_ccode_node_unref0 (_tmp66_);
		_tmp67_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
		_tmp68_ = _tmp67_;
		_tmp69_ = copy_call;
		vala_ccode_function_add_expression (_tmp68_, (ValaCCodeExpression*) _tmp69_);
		_vala_ccode_node_unref0 (copy_call);
	} else {
		ValaCCodeFile* _tmp70_;
		ValaCCodeFunctionCall* sizeof_call = NULL;
		ValaCCodeIdentifier* _tmp71_;
		ValaCCodeIdentifier* _tmp72_;
		ValaCCodeFunctionCall* _tmp73_;
		ValaCCodeFunctionCall* _tmp74_;
		ValaCCodeFunctionCall* _tmp75_;
		ValaStruct* _tmp76_;
		gchar* _tmp77_;
		gchar* _tmp78_;
		ValaCCodeConstant* _tmp79_;
		ValaCCodeConstant* _tmp80_;
		ValaCCodeFunctionCall* copy_call = NULL;
		ValaCCodeIdentifier* _tmp81_;
		ValaCCodeIdentifier* _tmp82_;
		ValaCCodeFunctionCall* _tmp83_;
		ValaCCodeFunctionCall* _tmp84_;
		ValaCCodeFunctionCall* _tmp85_;
		ValaCCodeIdentifier* _tmp86_;
		ValaCCodeIdentifier* _tmp87_;
		ValaCCodeFunctionCall* _tmp88_;
		ValaCCodeIdentifier* _tmp89_;
		ValaCCodeIdentifier* _tmp90_;
		ValaCCodeFunctionCall* _tmp91_;
		ValaCCodeFunctionCall* _tmp92_;
		ValaCCodeFunction* _tmp93_;
		ValaCCodeFunction* _tmp94_;
		ValaCCodeFunctionCall* _tmp95_;
		_tmp70_ = ((ValaCCodeBaseModule*) self)->cfile;
		vala_ccode_file_add_include (_tmp70_, "string.h", FALSE);
		_tmp71_ = vala_ccode_identifier_new ("sizeof");
		_tmp72_ = _tmp71_;
		_tmp73_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp72_);
		_tmp74_ = _tmp73_;
		_vala_ccode_node_unref0 (_tmp72_);
		sizeof_call = _tmp74_;
		_tmp75_ = sizeof_call;
		_tmp76_ = st;
		_tmp77_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp76_);
		_tmp78_ = _tmp77_;
		_tmp79_ = vala_ccode_constant_new (_tmp78_);
		_tmp80_ = _tmp79_;
		vala_ccode_function_call_add_argument (_tmp75_, (ValaCCodeExpression*) _tmp80_);
		_vala_ccode_node_unref0 (_tmp80_);
		_g_free0 (_tmp78_);
		_tmp81_ = vala_ccode_identifier_new ("memcpy");
		_tmp82_ = _tmp81_;
		_tmp83_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp82_);
		_tmp84_ = _tmp83_;
		_vala_ccode_node_unref0 (_tmp82_);
		copy_call = _tmp84_;
		_tmp85_ = copy_call;
		_tmp86_ = vala_ccode_identifier_new ("dup");
		_tmp87_ = _tmp86_;
		vala_ccode_function_call_add_argument (_tmp85_, (ValaCCodeExpression*) _tmp87_);
		_vala_ccode_node_unref0 (_tmp87_);
		_tmp88_ = copy_call;
		_tmp89_ = vala_ccode_identifier_new ("self");
		_tmp90_ = _tmp89_;
		vala_ccode_function_call_add_argument (_tmp88_, (ValaCCodeExpression*) _tmp90_);
		_vala_ccode_node_unref0 (_tmp90_);
		_tmp91_ = copy_call;
		_tmp92_ = sizeof_call;
		vala_ccode_function_call_add_argument (_tmp91_, (ValaCCodeExpression*) _tmp92_);
		_tmp93_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
		_tmp94_ = _tmp93_;
		_tmp95_ = copy_call;
		vala_ccode_function_add_expression (_tmp94_, (ValaCCodeExpression*) _tmp95_);
		_vala_ccode_node_unref0 (copy_call);
		_vala_ccode_node_unref0 (sizeof_call);
	}
	_tmp96_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
	_tmp97_ = _tmp96_;
	_tmp98_ = vala_ccode_identifier_new ("dup");
	_tmp99_ = _tmp98_;
	vala_ccode_function_add_return (_tmp97_, (ValaCCodeExpression*) _tmp99_);
	_vala_ccode_node_unref0 (_tmp99_);
	vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self);
	_tmp100_ = ((ValaCCodeBaseModule*) self)->cfile;
	_tmp101_ = function;
	vala_ccode_file_add_function (_tmp100_, _tmp101_);
	_vala_ccode_node_unref0 (creation_call);
	_vala_ccode_node_unref0 (function);
}


static void vala_ccode_struct_module_add_struct_free_function (ValaCCodeStructModule* self, ValaStruct* st) {
	ValaCCodeFunction* function = NULL;
	ValaStruct* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	ValaCCodeFunction* _tmp3_;
	ValaCCodeFunction* _tmp4_;
	ValaStruct* _tmp5_;
	gboolean _tmp6_;
	ValaCCodeFunction* _tmp16_;
	ValaStruct* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	gchar* _tmp21_;
	ValaCCodeParameter* _tmp22_;
	ValaCCodeParameter* _tmp23_;
	ValaCCodeFunction* _tmp24_;
	ValaStruct* _tmp25_;
	gboolean _tmp26_;
	ValaCCodeFunctionCall* free_call = NULL;
	ValaCCodeIdentifier* _tmp40_;
	ValaCCodeIdentifier* _tmp41_;
	ValaCCodeFunctionCall* _tmp42_;
	ValaCCodeFunctionCall* _tmp43_;
	ValaCCodeIdentifier* _tmp44_;
	ValaCCodeIdentifier* _tmp45_;
	ValaCCodeFunction* _tmp46_;
	ValaCCodeFunction* _tmp47_;
	ValaCCodeFile* _tmp48_;
	ValaCCodeFunction* _tmp49_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (st != NULL);
	_tmp0_ = st;
	_tmp1_ = vala_ccode_base_module_get_ccode_free_function ((ValaTypeSymbol*) _tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = vala_ccode_function_new (_tmp2_, "void");
	_tmp4_ = _tmp3_;
	_g_free0 (_tmp2_);
	function = _tmp4_;
	_tmp5_ = st;
	_tmp6_ = vala_symbol_is_private_symbol ((ValaSymbol*) _tmp5_);
	if (_tmp6_) {
		ValaCCodeFunction* _tmp7_;
		_tmp7_ = function;
		vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp7_, VALA_CCODE_MODIFIERS_STATIC);
	} else {
		gboolean _tmp8_ = FALSE;
		ValaCodeContext* _tmp9_;
		ValaCodeContext* _tmp10_;
		gboolean _tmp11_;
		gboolean _tmp12_;
		_tmp9_ = vala_ccode_base_module_get_context ((ValaCCodeBaseModule*) self);
		_tmp10_ = _tmp9_;
		_tmp11_ = vala_code_context_get_hide_internal (_tmp10_);
		_tmp12_ = _tmp11_;
		if (_tmp12_) {
			ValaStruct* _tmp13_;
			gboolean _tmp14_;
			_tmp13_ = st;
			_tmp14_ = vala_symbol_is_internal_symbol ((ValaSymbol*) _tmp13_);
			_tmp8_ = _tmp14_;
		} else {
			_tmp8_ = FALSE;
		}
		if (_tmp8_) {
			ValaCCodeFunction* _tmp15_;
			_tmp15_ = function;
			vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp15_, VALA_CCODE_MODIFIERS_INTERNAL);
		}
	}
	_tmp16_ = function;
	_tmp17_ = st;
	_tmp18_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp17_);
	_tmp19_ = _tmp18_;
	_tmp20_ = g_strconcat (_tmp19_, "*", NULL);
	_tmp21_ = _tmp20_;
	_tmp22_ = vala_ccode_parameter_new ("self", _tmp21_);
	_tmp23_ = _tmp22_;
	vala_ccode_function_add_parameter (_tmp16_, _tmp23_);
	_vala_ccode_node_unref0 (_tmp23_);
	_g_free0 (_tmp21_);
	_g_free0 (_tmp19_);
	_tmp24_ = function;
	vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp24_);
	_tmp25_ = st;
	_tmp26_ = vala_struct_is_disposable (_tmp25_);
	if (_tmp26_) {
		ValaCCodeFunctionCall* destroy_call = NULL;
		ValaStruct* _tmp27_;
		gchar* _tmp28_;
		gchar* _tmp29_;
		ValaCCodeIdentifier* _tmp30_;
		ValaCCodeIdentifier* _tmp31_;
		ValaCCodeFunctionCall* _tmp32_;
		ValaCCodeFunctionCall* _tmp33_;
		ValaCCodeFunctionCall* _tmp34_;
		ValaCCodeIdentifier* _tmp35_;
		ValaCCodeIdentifier* _tmp36_;
		ValaCCodeFunction* _tmp37_;
		ValaCCodeFunction* _tmp38_;
		ValaCCodeFunctionCall* _tmp39_;
		_tmp27_ = st;
		_tmp28_ = vala_ccode_base_module_get_ccode_destroy_function ((ValaTypeSymbol*) _tmp27_);
		_tmp29_ = _tmp28_;
		_tmp30_ = vala_ccode_identifier_new (_tmp29_);
		_tmp31_ = _tmp30_;
		_tmp32_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp31_);
		_tmp33_ = _tmp32_;
		_vala_ccode_node_unref0 (_tmp31_);
		_g_free0 (_tmp29_);
		destroy_call = _tmp33_;
		_tmp34_ = destroy_call;
		_tmp35_ = vala_ccode_identifier_new ("self");
		_tmp36_ = _tmp35_;
		vala_ccode_function_call_add_argument (_tmp34_, (ValaCCodeExpression*) _tmp36_);
		_vala_ccode_node_unref0 (_tmp36_);
		_tmp37_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
		_tmp38_ = _tmp37_;
		_tmp39_ = destroy_call;
		vala_ccode_function_add_expression (_tmp38_, (ValaCCodeExpression*) _tmp39_);
		_vala_ccode_node_unref0 (destroy_call);
	}
	_tmp40_ = vala_ccode_identifier_new ("g_free");
	_tmp41_ = _tmp40_;
	_tmp42_ = vala_ccode_function_call_new ((ValaCCodeExpression*) _tmp41_);
	_tmp43_ = _tmp42_;
	_vala_ccode_node_unref0 (_tmp41_);
	free_call = _tmp43_;
	_tmp44_ = vala_ccode_identifier_new ("self");
	_tmp45_ = _tmp44_;
	vala_ccode_function_call_add_argument (free_call, (ValaCCodeExpression*) _tmp45_);
	_vala_ccode_node_unref0 (_tmp45_);
	_tmp46_ = vala_ccode_base_module_get_ccode ((ValaCCodeBaseModule*) self);
	_tmp47_ = _tmp46_;
	vala_ccode_function_add_expression (_tmp47_, (ValaCCodeExpression*) free_call);
	vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self);
	_tmp48_ = ((ValaCCodeBaseModule*) self)->cfile;
	_tmp49_ = function;
	vala_ccode_file_add_function (_tmp48_, _tmp49_);
	_vala_ccode_node_unref0 (free_call);
	_vala_ccode_node_unref0 (function);
}


static void vala_ccode_struct_module_add_struct_copy_function (ValaCCodeStructModule* self, ValaStruct* st) {
	ValaCCodeFunction* function = NULL;
	ValaStruct* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	ValaCCodeFunction* _tmp3_;
	ValaCCodeFunction* _tmp4_;
	ValaStruct* _tmp5_;
	gboolean _tmp6_;
	ValaCCodeFunction* _tmp16_;
	ValaStruct* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	gchar* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	ValaCCodeParameter* _tmp24_;
	ValaCCodeParameter* _tmp25_;
	ValaCCodeFunction* _tmp26_;
	ValaStruct* _tmp27_;
	gchar* _tmp28_;
	gchar* _tmp29_;
	gchar* _tmp30_;
	gchar* _tmp31_;
	ValaCCodeParameter* _tmp32_;
	ValaCCodeParameter* _tmp33_;
	ValaCCodeFunction* _tmp34_;
	ValaGLibValue* dest_struct = NULL;
	ValaStruct* _tmp35_;
	ValaDataType* _tmp36_;
	ValaDataType* _tmp37_;
	ValaCCodeIdentifier* _tmp38_;
	ValaCCodeIdentifier* _tmp39_;
	ValaGLibValue* _tmp40_;
	ValaGLibValue* _tmp41_;
	ValaCCodeFile* _tmp73_;
	ValaCCodeFunction* _tmp74_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (st != NULL);
	_tmp0_ = st;
	_tmp1_ = vala_ccode_base_module_get_ccode_copy_function ((ValaTypeSymbol*) _tmp0_);
	_tmp2_ = _tmp1_;
	_tmp3_ = vala_ccode_function_new (_tmp2_, "void");
	_tmp4_ = _tmp3_;
	_g_free0 (_tmp2_);
	function = _tmp4_;
	_tmp5_ = st;
	_tmp6_ = vala_symbol_is_private_symbol ((ValaSymbol*) _tmp5_);
	if (_tmp6_) {
		ValaCCodeFunction* _tmp7_;
		_tmp7_ = function;
		vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp7_, VALA_CCODE_MODIFIERS_STATIC);
	} else {
		gboolean _tmp8_ = FALSE;
		ValaCodeContext* _tmp9_;
		ValaCodeContext* _tmp10_;
		gboolean _tmp11_;
		gboolean _tmp12_;
		_tmp9_ = vala_ccode_base_module_get_context ((ValaCCodeBaseModule*) self);
		_tmp10_ = _tmp9_;
		_tmp11_ = vala_code_context_get_hide_internal (_tmp10_);
		_tmp12_ = _tmp11_;
		if (_tmp12_) {
			ValaStruct* _tmp13_;
			gboolean _tmp14_;
			_tmp13_ = st;
			_tmp14_ = vala_symbol_is_internal_symbol ((ValaSymbol*) _tmp13_);
			_tmp8_ = _tmp14_;
		} else {
			_tmp8_ = FALSE;
		}
		if (_tmp8_) {
			ValaCCodeFunction* _tmp15_;
			_tmp15_ = function;
			vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp15_, VALA_CCODE_MODIFIERS_INTERNAL);
		}
	}
	_tmp16_ = function;
	_tmp17_ = st;
	_tmp18_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp17_);
	_tmp19_ = _tmp18_;
	_tmp20_ = g_strconcat ("const ", _tmp19_, NULL);
	_tmp21_ = _tmp20_;
	_tmp22_ = g_strconcat (_tmp21_, "*", NULL);
	_tmp23_ = _tmp22_;
	_tmp24_ = vala_ccode_parameter_new ("self", _tmp23_);
	_tmp25_ = _tmp24_;
	vala_ccode_function_add_parameter (_tmp16_, _tmp25_);
	_vala_ccode_node_unref0 (_tmp25_);
	_g_free0 (_tmp23_);
	_g_free0 (_tmp21_);
	_g_free0 (_tmp19_);
	_tmp26_ = function;
	_tmp27_ = st;
	_tmp28_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp27_);
	_tmp29_ = _tmp28_;
	_tmp30_ = g_strconcat (_tmp29_, "*", NULL);
	_tmp31_ = _tmp30_;
	_tmp32_ = vala_ccode_parameter_new ("dest", _tmp31_);
	_tmp33_ = _tmp32_;
	vala_ccode_function_add_parameter (_tmp26_, _tmp33_);
	_vala_ccode_node_unref0 (_tmp33_);
	_g_free0 (_tmp31_);
	_g_free0 (_tmp29_);
	_tmp34_ = function;
	vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp34_);
	_tmp35_ = st;
	_tmp36_ = vala_ccode_base_module_get_data_type_for_symbol ((ValaTypeSymbol*) _tmp35_);
	_tmp37_ = _tmp36_;
	_tmp38_ = vala_ccode_identifier_new ("(*dest)");
	_tmp39_ = _tmp38_;
	_tmp40_ = vala_glib_value_new (_tmp37_, (ValaCCodeExpression*) _tmp39_, TRUE);
	_tmp41_ = _tmp40_;
	_vala_ccode_node_unref0 (_tmp39_);
	_vala_code_node_unref0 (_tmp37_);
	dest_struct = _tmp41_;
	{
		ValaList* _f_list = NULL;
		ValaStruct* _tmp42_;
		ValaList* _tmp43_;
		gint _f_size = 0;
		ValaList* _tmp44_;
		gint _tmp45_;
		gint _tmp46_;
		gint _f_index = 0;
		_tmp42_ = st;
		_tmp43_ = vala_struct_get_fields (_tmp42_);
		_f_list = _tmp43_;
		_tmp44_ = _f_list;
		_tmp45_ = vala_collection_get_size ((ValaCollection*) _tmp44_);
		_tmp46_ = _tmp45_;
		_f_size = _tmp46_;
		_f_index = -1;
		while (TRUE) {
			gint _tmp47_;
			gint _tmp48_;
			gint _tmp49_;
			ValaField* f = NULL;
			ValaList* _tmp50_;
			gint _tmp51_;
			gpointer _tmp52_;
			ValaField* _tmp53_;
			ValaMemberBinding _tmp54_;
			ValaMemberBinding _tmp55_;
			_tmp47_ = _f_index;
			_f_index = _tmp47_ + 1;
			_tmp48_ = _f_index;
			_tmp49_ = _f_size;
			if (!(_tmp48_ < _tmp49_)) {
				break;
			}
			_tmp50_ = _f_list;
			_tmp51_ = _f_index;
			_tmp52_ = vala_list_get (_tmp50_, _tmp51_);
			f = (ValaField*) _tmp52_;
			_tmp53_ = f;
			_tmp54_ = vala_field_get_binding (_tmp53_);
			_tmp55_ = _tmp54_;
			if (_tmp55_ == VALA_MEMBER_BINDING_INSTANCE) {
				ValaTargetValue* value = NULL;
				ValaField* _tmp56_;
				ValaStruct* _tmp57_;
				ValaTargetValue* _tmp58_;
				ValaTargetValue* _tmp59_;
				ValaTargetValue* _tmp60_;
				ValaTargetValue* _tmp61_;
				ValaField* _tmp62_;
				ValaDataType* _tmp63_;
				ValaDataType* _tmp64_;
				gboolean _tmp65_;
				ValaField* _tmp70_;
				ValaGLibValue* _tmp71_;
				ValaTargetValue* _tmp72_;
				_tmp56_ = f;
				_tmp57_ = st;
				_tmp58_ = vala_ccode_base_module_load_this_parameter ((ValaCCodeBaseModule*) self, G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, VALA_TYPE_TYPESYMBOL, ValaTypeSymbol));
				_tmp59_ = _tmp58_;
				_tmp60_ = vala_code_generator_load_field ((ValaCodeGenerator*) self, _tmp56_, _tmp59_);
				_tmp61_ = _tmp60_;
				_vala_target_value_unref0 (_tmp59_);
				value = _tmp61_;
				_tmp62_ = f;
				_tmp63_ = vala_variable_get_variable_type ((ValaVariable*) _tmp62_);
				_tmp64_ = _tmp63_;
				_tmp65_ = vala_ccode_base_module_requires_copy ((ValaCCodeBaseModule*) self, _tmp64_);
				if (_tmp65_) {
					ValaTargetValue* _tmp66_;
					ValaField* _tmp67_;
					ValaTargetValue* _tmp68_;
					ValaTargetValue* _tmp69_;
					_tmp66_ = value;
					_tmp67_ = f;
					_tmp68_ = vala_ccode_base_module_copy_value ((ValaCCodeBaseModule*) self, _tmp66_, (ValaCodeNode*) _tmp67_);
					_vala_target_value_unref0 (value);
					value = _tmp68_;
					_tmp69_ = value;
					if (_tmp69_ == NULL) {
						_vala_target_value_unref0 (value);
						_vala_code_node_unref0 (f);
						continue;
					}
				}
				_tmp70_ = f;
				_tmp71_ = dest_struct;
				_tmp72_ = value;
				vala_code_generator_store_field ((ValaCodeGenerator*) self, _tmp70_, (ValaTargetValue*) _tmp71_, _tmp72_);
				_vala_target_value_unref0 (value);
			}
			_vala_code_node_unref0 (f);
		}
		_vala_iterable_unref0 (_f_list);
	}
	vala_ccode_base_module_pop_function ((ValaCCodeBaseModule*) self);
	_tmp73_ = ((ValaCCodeBaseModule*) self)->cfile;
	_tmp74_ = function;
	vala_ccode_file_add_function (_tmp73_, _tmp74_);
	_vala_target_value_unref0 (dest_struct);
	_vala_ccode_node_unref0 (function);
}


static void vala_ccode_struct_module_begin_struct_destroy_function (ValaCCodeStructModule* self, ValaStruct* st) {
	ValaCCodeBaseModuleEmitContext* _tmp0_;
	ValaCCodeFunction* function = NULL;
	ValaStruct* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	ValaCCodeFunction* _tmp4_;
	ValaCCodeFunction* _tmp5_;
	ValaStruct* _tmp6_;
	gboolean _tmp7_;
	ValaCCodeFunction* _tmp17_;
	ValaStruct* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	gchar* _tmp21_;
	gchar* _tmp22_;
	ValaCCodeParameter* _tmp23_;
	ValaCCodeParameter* _tmp24_;
	ValaCCodeFunction* _tmp25_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (st != NULL);
	_tmp0_ = ((ValaCCodeBaseModule*) self)->instance_finalize_context;
	vala_ccode_base_module_push_context ((ValaCCodeBaseModule*) self, _tmp0_);
	_tmp1_ = st;
	_tmp2_ = vala_ccode_base_module_get_ccode_destroy_function ((ValaTypeSymbol*) _tmp1_);
	_tmp3_ = _tmp2_;
	_tmp4_ = vala_ccode_function_new (_tmp3_, "void");
	_tmp5_ = _tmp4_;
	_g_free0 (_tmp3_);
	function = _tmp5_;
	_tmp6_ = st;
	_tmp7_ = vala_symbol_is_private_symbol ((ValaSymbol*) _tmp6_);
	if (_tmp7_) {
		ValaCCodeFunction* _tmp8_;
		_tmp8_ = function;
		vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp8_, VALA_CCODE_MODIFIERS_STATIC);
	} else {
		gboolean _tmp9_ = FALSE;
		ValaCodeContext* _tmp10_;
		ValaCodeContext* _tmp11_;
		gboolean _tmp12_;
		gboolean _tmp13_;
		_tmp10_ = vala_ccode_base_module_get_context ((ValaCCodeBaseModule*) self);
		_tmp11_ = _tmp10_;
		_tmp12_ = vala_code_context_get_hide_internal (_tmp11_);
		_tmp13_ = _tmp12_;
		if (_tmp13_) {
			ValaStruct* _tmp14_;
			gboolean _tmp15_;
			_tmp14_ = st;
			_tmp15_ = vala_symbol_is_internal_symbol ((ValaSymbol*) _tmp14_);
			_tmp9_ = _tmp15_;
		} else {
			_tmp9_ = FALSE;
		}
		if (_tmp9_) {
			ValaCCodeFunction* _tmp16_;
			_tmp16_ = function;
			vala_ccode_node_set_modifiers ((ValaCCodeNode*) _tmp16_, VALA_CCODE_MODIFIERS_INTERNAL);
		}
	}
	_tmp17_ = function;
	_tmp18_ = st;
	_tmp19_ = vala_ccode_base_module_get_ccode_name ((ValaCodeNode*) _tmp18_);
	_tmp20_ = _tmp19_;
	_tmp21_ = g_strconcat (_tmp20_, "*", NULL);
	_tmp22_ = _tmp21_;
	_tmp23_ = vala_ccode_parameter_new ("self", _tmp22_);
	_tmp24_ = _tmp23_;
	vala_ccode_function_add_parameter (_tmp17_, _tmp24_);
	_vala_ccode_node_unref0 (_tmp24_);
	_g_free0 (_tmp22_);
	_g_free0 (_tmp20_);
	_tmp25_ = function;
	vala_ccode_base_module_push_function ((ValaCCodeBaseModule*) self, _tmp25_);
	vala_ccode_base_module_pop_context ((ValaCCodeBaseModule*) self);
	_vala_ccode_node_unref0 (function);
}


static void vala_ccode_struct_module_add_struct_destroy_function (ValaCCodeStructModule* self, ValaStruct* st) {
	ValaCCodeFile* _tmp0_;
	ValaCCodeBaseModuleEmitContext* _tmp1_;
	ValaCCodeFunction* _tmp2_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (st != NULL);
	_tmp0_ = ((ValaCCodeBaseModule*) self)->cfile;
	_tmp1_ = ((ValaCCodeBaseModule*) self)->instance_finalize_context;
	_tmp2_ = _tmp1_->ccode;
	vala_ccode_file_add_function (_tmp0_, _tmp2_);
}


ValaCCodeStructModule* vala_ccode_struct_module_construct (GType object_type) {
	ValaCCodeStructModule* self = NULL;
	self = (ValaCCodeStructModule*) vala_ccode_base_module_construct (object_type);
	return self;
}


static void vala_ccode_struct_module_class_init (ValaCCodeStructModuleClass * klass) {
	vala_ccode_struct_module_parent_class = g_type_class_peek_parent (klass);
	((ValaCCodeBaseModuleClass *) klass)->generate_struct_declaration = (void (*) (ValaCCodeBaseModule *, ValaStruct*, ValaCCodeFile*)) vala_ccode_struct_module_real_generate_struct_declaration;
	((ValaCodeVisitorClass *) klass)->visit_struct = (void (*) (ValaCodeVisitor *, ValaStruct*)) vala_ccode_struct_module_real_visit_struct;
}


static void vala_ccode_struct_module_instance_init (ValaCCodeStructModule * self) {
}


GType vala_ccode_struct_module_get_type (void) {
	static volatile gsize vala_ccode_struct_module_type_id__volatile = 0;
	if (g_once_init_enter (&vala_ccode_struct_module_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ValaCCodeStructModuleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) vala_ccode_struct_module_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValaCCodeStructModule), 0, (GInstanceInitFunc) vala_ccode_struct_module_instance_init, NULL };
		GType vala_ccode_struct_module_type_id;
		vala_ccode_struct_module_type_id = g_type_register_static (VALA_TYPE_CCODE_BASE_MODULE, "ValaCCodeStructModule", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
		g_once_init_leave (&vala_ccode_struct_module_type_id__volatile, vala_ccode_struct_module_type_id);
	}
	return vala_ccode_struct_module_type_id__volatile;
}



