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

/* sourcelocation.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 "valadoc.h"
#include <string.h>






void valadoc_source_location_init (ValadocSourceLocation *self, gint _line, gint _column) {
	gint _tmp0_;
	gint _tmp1_;
	memset (self, 0, sizeof (ValadocSourceLocation));
	_tmp0_ = _line;
	(*self).line = _tmp0_;
	_tmp1_ = _column;
	(*self).column = _tmp1_;
}


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


void valadoc_source_location_free (ValadocSourceLocation* self) {
	g_free (self);
}


GType valadoc_source_location_get_type (void) {
	static volatile gsize valadoc_source_location_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_source_location_type_id__volatile)) {
		GType valadoc_source_location_type_id;
		valadoc_source_location_type_id = g_boxed_type_register_static ("ValadocSourceLocation", (GBoxedCopyFunc) valadoc_source_location_dup, (GBoxedFreeFunc) valadoc_source_location_free);
		g_once_init_leave (&valadoc_source_location_type_id__volatile, valadoc_source_location_type_id);
	}
	return valadoc_source_location_type_id__volatile;
}



