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

/* markuptokentype.vala
 *
 * Copyright (C) 2008-2009  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 <stdlib.h>
#include <string.h>






gchar* valadoc_markup_token_type_to_string (ValadocMarkupTokenType self) {
	gchar* result = NULL;
	switch (self) {
		case VALADOC_MARKUP_TOKEN_TYPE_START_ELEMENT:
		{
			gchar* _tmp0_;
			_tmp0_ = g_strdup ("start element");
			result = _tmp0_;
			return result;
		}
		case VALADOC_MARKUP_TOKEN_TYPE_END_ELEMENT:
		{
			gchar* _tmp1_;
			_tmp1_ = g_strdup ("end element");
			result = _tmp1_;
			return result;
		}
		case VALADOC_MARKUP_TOKEN_TYPE_TEXT:
		{
			gchar* _tmp2_;
			_tmp2_ = g_strdup ("text");
			result = _tmp2_;
			return result;
		}
		case VALADOC_MARKUP_TOKEN_TYPE_EOF:
		{
			gchar* _tmp3_;
			_tmp3_ = g_strdup ("end of file");
			result = _tmp3_;
			return result;
		}
		default:
		{
			gchar* _tmp4_;
			_tmp4_ = g_strdup ("unknown token type");
			result = _tmp4_;
			return result;
		}
	}
}


GType valadoc_markup_token_type_get_type (void) {
	static volatile gsize valadoc_markup_token_type_type_id__volatile = 0;
	if (g_once_init_enter (&valadoc_markup_token_type_type_id__volatile)) {
		static const GEnumValue values[] = {{VALADOC_MARKUP_TOKEN_TYPE_NONE, "VALADOC_MARKUP_TOKEN_TYPE_NONE", "none"}, {VALADOC_MARKUP_TOKEN_TYPE_COMMENT, "VALADOC_MARKUP_TOKEN_TYPE_COMMENT", "comment"}, {VALADOC_MARKUP_TOKEN_TYPE_START_ELEMENT, "VALADOC_MARKUP_TOKEN_TYPE_START_ELEMENT", "start-element"}, {VALADOC_MARKUP_TOKEN_TYPE_END_ELEMENT, "VALADOC_MARKUP_TOKEN_TYPE_END_ELEMENT", "end-element"}, {VALADOC_MARKUP_TOKEN_TYPE_TEXT, "VALADOC_MARKUP_TOKEN_TYPE_TEXT", "text"}, {VALADOC_MARKUP_TOKEN_TYPE_EOF, "VALADOC_MARKUP_TOKEN_TYPE_EOF", "eof"}, {0, NULL, NULL}};
		GType valadoc_markup_token_type_type_id;
		valadoc_markup_token_type_type_id = g_enum_register_static ("ValadocMarkupTokenType", values);
		g_once_init_leave (&valadoc_markup_token_type_type_id__volatile, valadoc_markup_token_type_type_id);
	}
	return valadoc_markup_token_type_type_id__volatile;
}



