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

/* valasourcelocation.vala
 *
 * Copyright (C) 2008  Jürg Billeter
 *
 * 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>
 */

#include <glib.h>
#include <glib-object.h>
#include "vala.h"
#include <string.h>






void vala_source_location_init (ValaSourceLocation *self, gchar* _pos, gint _line, gint _column) {
	gchar* _tmp0_;
	gint _tmp1_;
	gint _tmp2_;
	memset (self, 0, sizeof (ValaSourceLocation));
	_tmp0_ = _pos;
	(*self).pos = _tmp0_;
	_tmp1_ = _line;
	(*self).line = _tmp1_;
	_tmp2_ = _column;
	(*self).column = _tmp2_;
}


ValaSourceLocation* vala_source_location_dup (const ValaSourceLocation* self) {
	ValaSourceLocation* dup;
	dup = g_new0 (ValaSourceLocation, 1);
	memcpy (dup, self, sizeof (ValaSourceLocation));
	return dup;
}


void vala_source_location_free (ValaSourceLocation* self) {
	g_free (self);
}


GType vala_source_location_get_type (void) {
	static volatile gsize vala_source_location_type_id__volatile = 0;
	if (g_once_init_enter (&vala_source_location_type_id__volatile)) {
		GType vala_source_location_type_id;
		vala_source_location_type_id = g_boxed_type_register_static ("ValaSourceLocation", (GBoxedCopyFunc) vala_source_location_dup, (GBoxedFreeFunc) vala_source_location_free);
		g_once_init_leave (&vala_source_location_type_id__volatile, vala_source_location_type_id);
	}
	return vala_source_location_type_id__volatile;
}



