/*
 * This file was generated automatically by ExtUtils::ParseXS version 3.28 from the
 * contents of GdkColor.xs. Do not edit this file, edit GdkColor.xs instead.
 *
 *    ANY CHANGES MADE HERE WILL BE LOST!
 *
 */

#line 1 "xs/GdkColor.xs"
/*
 * Copyright (c) 2003 by the gtk2-perl team (see the file AUTHORS)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library 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
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
 * Boston, MA  02111-1307  USA.
 *
 * $Id$
 */

#include "gtk2perl.h"

/*
GdkColormap is a direct GObject subclass; be sure to use GdkColormap_noinc
in the proper places.

GdkColor is a plain structure treated as a boxed type.  use GdkColor_own and
GdkColor_copy in all the right places.
*/

#line 42 "xs/GdkColor.c"
#ifndef PERL_UNUSED_VAR
#  define PERL_UNUSED_VAR(var) if (0) var = var
#endif

#ifndef dVAR
#  define dVAR		dNOOP
#endif


/* This stuff is not part of the API! You have been warned. */
#ifndef PERL_VERSION_DECIMAL
#  define PERL_VERSION_DECIMAL(r,v,s) (r*1000000 + v*1000 + s)
#endif
#ifndef PERL_DECIMAL_VERSION
#  define PERL_DECIMAL_VERSION \
	  PERL_VERSION_DECIMAL(PERL_REVISION,PERL_VERSION,PERL_SUBVERSION)
#endif
#ifndef PERL_VERSION_GE
#  define PERL_VERSION_GE(r,v,s) \
	  (PERL_DECIMAL_VERSION >= PERL_VERSION_DECIMAL(r,v,s))
#endif
#ifndef PERL_VERSION_LE
#  define PERL_VERSION_LE(r,v,s) \
	  (PERL_DECIMAL_VERSION <= PERL_VERSION_DECIMAL(r,v,s))
#endif

/* XS_INTERNAL is the explicit static-linkage variant of the default
 * XS macro.
 *
 * XS_EXTERNAL is the same as XS_INTERNAL except it does not include
 * "STATIC", ie. it exports XSUB symbols. You probably don't want that
 * for anything but the BOOT XSUB.
 *
 * See XSUB.h in core!
 */


/* TODO: This might be compatible further back than 5.10.0. */
#if PERL_VERSION_GE(5, 10, 0) && PERL_VERSION_LE(5, 15, 1)
#  undef XS_EXTERNAL
#  undef XS_INTERNAL
#  if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING)
#    define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name)
#    define XS_INTERNAL(name) STATIC XSPROTO(name)
#  endif
#  if defined(__SYMBIAN32__)
#    define XS_EXTERNAL(name) EXPORT_C XSPROTO(name)
#    define XS_INTERNAL(name) EXPORT_C STATIC XSPROTO(name)
#  endif
#  ifndef XS_EXTERNAL
#    if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus)
#      define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__)
#      define XS_INTERNAL(name) STATIC void name(pTHX_ CV* cv __attribute__unused__)
#    else
#      ifdef __cplusplus
#        define XS_EXTERNAL(name) extern "C" XSPROTO(name)
#        define XS_INTERNAL(name) static XSPROTO(name)
#      else
#        define XS_EXTERNAL(name) XSPROTO(name)
#        define XS_INTERNAL(name) STATIC XSPROTO(name)
#      endif
#    endif
#  endif
#endif

/* perl >= 5.10.0 && perl <= 5.15.1 */


/* The XS_EXTERNAL macro is used for functions that must not be static
 * like the boot XSUB of a module. If perl didn't have an XS_EXTERNAL
 * macro defined, the best we can do is assume XS is the same.
 * Dito for XS_INTERNAL.
 */
#ifndef XS_EXTERNAL
#  define XS_EXTERNAL(name) XS(name)
#endif
#ifndef XS_INTERNAL
#  define XS_INTERNAL(name) XS(name)
#endif

/* Now, finally, after all this mess, we want an ExtUtils::ParseXS
 * internal macro that we're free to redefine for varying linkage due
 * to the EXPORT_XSUB_SYMBOLS XS keyword. This is internal, use
 * XS_EXTERNAL(name) or XS_INTERNAL(name) in your code if you need to!
 */

#undef XS_EUPXS
#if defined(PERL_EUPXS_ALWAYS_EXPORT)
#  define XS_EUPXS(name) XS_EXTERNAL(name)
#else
   /* default to internal */
#  define XS_EUPXS(name) XS_INTERNAL(name)
#endif

#ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE
#define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params)

/* prototype to pass -Wmissing-prototypes */
STATIC void
S_croak_xs_usage(const CV *const cv, const char *const params);

STATIC void
S_croak_xs_usage(const CV *const cv, const char *const params)
{
    const GV *const gv = CvGV(cv);

    PERL_ARGS_ASSERT_CROAK_XS_USAGE;

    if (gv) {
        const char *const gvname = GvNAME(gv);
        const HV *const stash = GvSTASH(gv);
        const char *const hvname = stash ? HvNAME(stash) : NULL;

        if (hvname)
	    Perl_croak_nocontext("Usage: %s::%s(%s)", hvname, gvname, params);
        else
	    Perl_croak_nocontext("Usage: %s(%s)", gvname, params);
    } else {
        /* Pants. I don't think that it should be possible to get here. */
	Perl_croak_nocontext("Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
    }
}
#undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE

#define croak_xs_usage        S_croak_xs_usage

#endif

/* NOTE: the prototype of newXSproto() is different in versions of perls,
 * so we define a portable version of newXSproto()
 */
#ifdef newXS_flags
#define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0)
#else
#define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv)
#endif /* !defined(newXS_flags) */

#if PERL_VERSION_LE(5, 21, 5)
#  define newXS_deffile(a,b) Perl_newXS(aTHX_ a,b,file)
#else
#  define newXS_deffile(a,b) Perl_newXS_deffile(aTHX_ a,b)
#endif

#line 186 "xs/GdkColor.c"

XS_EUPXS(XS_Gtk2__Gdk__Colormap_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Colormap_new)
{
    dVAR; dXSARGS;
    if (items != 3)
       croak_xs_usage(cv,  "class, visual, allocate");
    {
	GdkVisual *	visual = SvGdkVisual (ST(1))
;
	gboolean	allocate = (bool)SvTRUE(ST(2))
;
	GdkColormap_noinc *	RETVAL;

	RETVAL = gdk_colormap_new(visual, allocate);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColormap_noinc (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Colormap_get_system); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Colormap_get_system)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
	GdkColormap *	RETVAL;

	RETVAL = gdk_colormap_get_system(/* void */);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColormap (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Colormap_alloc_colors); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Colormap_alloc_colors)
{
    dVAR; dXSARGS;
    if (items < 3)
       croak_xs_usage(cv,  "colormap, writeable, best_match, ...");
    PERL_UNUSED_VAR(ax); /* -Wall */
    SP -= items;
    {
	GdkColormap *	colormap = SvGdkColormap (ST(0))
;
	gboolean	writeable = (bool)SvTRUE(ST(1))
;
	gboolean	best_match = (bool)SvTRUE(ST(2))
;
#line 86 "xs/GdkColor.xs"
	gint ncolors, i;
	GdkColor *colors = NULL;
	GdkColor **argcolors = NULL; /* so we can modify the ones passed in */
	gboolean *success = NULL;
#line 254 "xs/GdkColor.c"
#line 91 "xs/GdkColor.xs"
#define first 3
	ncolors = items - first;
	if (ncolors < 1)
		XSRETURN_EMPTY;
	colors = g_new0 (GdkColor, ncolors);
	argcolors = g_new0 (GdkColor*, ncolors);
	success = g_new0 (gboolean, ncolors);
	for (i = 0 ; i < ncolors ; i++) {
		argcolors[i] = SvGdkColor (ST (first + i));
		colors[i] = *(argcolors[i]);
	}
	gdk_colormap_alloc_colors (colormap, colors, ncolors, writeable,
	                           best_match, success);
	EXTEND (SP, ncolors);
	for (i = 0 ; i < ncolors ; i++) {
		*(argcolors[i]) = colors[i];
		PUSHs (sv_2mortal (newSViv (success[i])));
	}
	g_free (argcolors);
	g_free (colors);
	g_free (success);
#undef first
#line 278 "xs/GdkColor.c"
	PUTBACK;
	return;
    }
}


XS_EUPXS(XS_Gtk2__Gdk__Colormap_alloc_color); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Colormap_alloc_color)
{
    dVAR; dXSARGS;
    if (items != 4)
       croak_xs_usage(cv,  "colormap, color, writeable, best_match");
    {
	GdkColormap *	colormap = SvGdkColormap (ST(0))
;
	GdkColor *	color = SvGdkColor (ST(1))
;
	gboolean	writeable = (bool)SvTRUE(ST(2))
;
	gboolean	best_match = (bool)SvTRUE(ST(3))
;
	gboolean	RETVAL;

	RETVAL = gdk_colormap_alloc_color(colormap, color, writeable, best_match);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Colormap_free_colors); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Colormap_free_colors)
{
    dVAR; dXSARGS;
    if (items < 1)
       croak_xs_usage(cv,  "colormap, ...");
    {
	GdkColormap *	colormap = SvGdkColormap (ST(0))
;
#line 132 "xs/GdkColor.xs"
	GdkColor *colors;
	gint ncolors, i;
#line 321 "xs/GdkColor.c"
#line 135 "xs/GdkColor.xs"
#define first 1
	ncolors = items - first;
	if (ncolors < 1)
		XSRETURN_EMPTY;
	colors = g_new (GdkColor, ncolors);
	for (i = 0; i < ncolors ; i++) {
		GdkColor * c = (GdkColor*) SvGdkColor (ST (i + first));
		colors[i] = *c;
	}
	gdk_colormap_free_colors (colormap, colors, ncolors);
	g_free (colors);
#undef first
#line 335 "xs/GdkColor.c"
    }
    XSRETURN_EMPTY;
}


XS_EUPXS(XS_Gtk2__Gdk__Colormap_query_color); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Colormap_query_color)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "colormap, pixel");
    {
	GdkColormap *	colormap = SvGdkColormap (ST(0))
;
	gulong	pixel = (gulong)SvUV(ST(1))
;
#line 154 "xs/GdkColor.xs"
	GdkColor result;
#line 354 "xs/GdkColor.c"
	GdkColor_copy *	RETVAL;
#line 156 "xs/GdkColor.xs"
	gdk_colormap_query_color (colormap, pixel, &result);	
	RETVAL = &result;
#line 359 "xs/GdkColor.c"
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColor_copy (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Colormap_get_visual); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Colormap_get_visual)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "colormap");
    {
	GdkColormap *	colormap = SvGdkColormap (ST(0))
;
	GdkVisual *	RETVAL;

	RETVAL = gdk_colormap_get_visual(colormap);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkVisual (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#if GTK_CHECK_VERSION(2,2,0)
#define XSubPPtmpAAAA 1


XS_EUPXS(XS_Gtk2__Gdk__Colormap_get_screen); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Colormap_get_screen)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "cmap");
    {
	GdkColormap *	cmap = SvGdkColormap (ST(0))
;
	GdkScreen *	RETVAL;

	RETVAL = gdk_colormap_get_screen(cmap);
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkScreen (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#endif

XS_EUPXS(XS_Gtk2__Gdk__Color_new); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Color_new)
{
    dVAR; dXSARGS;
    if (items < 4 || items > 5)
       croak_xs_usage(cv,  "class, red, green, blue, pixel=0");
    {
	guint16	red = (guint16)SvUV(ST(1))
;
	guint16	green = (guint16)SvUV(ST(2))
;
	guint16	blue = (guint16)SvUV(ST(3))
;
	guint32	pixel;
#line 195 "xs/GdkColor.xs"
	GdkColor c;
#line 437 "xs/GdkColor.c"
	GdkColor_own *	RETVAL;

	if (items < 5)
	    pixel = 0;
	else {
	    pixel = (guint32)SvUV(ST(4))
;
	}
#line 197 "xs/GdkColor.xs"
	c.red = red;
	c.green = green;
	c.blue = blue;
	c.pixel = pixel;
	RETVAL = gdk_color_copy (&c);
#line 452 "xs/GdkColor.c"
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColor_own (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Color_parse); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Color_parse)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "class, spec");
    {
	const gchar *	spec;
#line 214 "xs/GdkColor.xs"
	GdkColor c = {0, 0, 0, 0}; /* initializers to hush valgrind */
#line 474 "xs/GdkColor.c"
	GdkColor_own *	RETVAL;

	/* same as SvGChar(), but not in a function */
	sv_utf8_upgrade (ST(1));
	spec = (const gchar *)SvPV_nolen (ST(1))
;
#line 216 "xs/GdkColor.xs"
	RETVAL = gdk_color_copy (&c);
	if (!gdk_color_parse (spec, RETVAL)) {
		gdk_color_free (RETVAL);
		XSRETURN_UNDEF;
	}
#line 487 "xs/GdkColor.c"
	{
	    SV * RETVALSV;
	    RETVALSV = newSVGdkColor_own (RETVAL);
	    RETVALSV = sv_2mortal(RETVALSV);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Color_hash); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Color_hash)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "colora");
    {
	GdkColor *	colora = SvGdkColor (ST(0))
;
	guint	RETVAL;
	dXSTARG;

	RETVAL = gdk_color_hash(colora);
	XSprePUSH; PUSHu((UV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Color_equal); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Color_equal)
{
    dVAR; dXSARGS;
    if (items != 2)
       croak_xs_usage(cv,  "colora, colorb");
    {
	GdkColor *	colora = SvGdkColor (ST(0))
;
	GdkColor *	colorb = SvGdkColor (ST(1))
;
	gboolean	RETVAL;

	RETVAL = gdk_color_equal(colora, colorb);
	ST(0) = boolSV(RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Color_pixel); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Color_pixel)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "color");
    {
	GdkColor *	color = SvGdkColor (ST(0))
;
	guint32	RETVAL;
	dXSTARG;
#line 253 "xs/GdkColor.xs"
	RETVAL = color->pixel;
#line 551 "xs/GdkColor.c"
	XSprePUSH; PUSHu((UV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Color_red); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Color_red)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "color");
    {
	GdkColor *	color = SvGdkColor (ST(0))
;
	guint16	RETVAL;
	dXSTARG;
#line 261 "xs/GdkColor.xs"
	RETVAL = color->red;
#line 571 "xs/GdkColor.c"
	XSprePUSH; PUSHu((UV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Color_green); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Color_green)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "color");
    {
	GdkColor *	color = SvGdkColor (ST(0))
;
	guint16	RETVAL;
	dXSTARG;
#line 269 "xs/GdkColor.xs"
	RETVAL = color->green;
#line 591 "xs/GdkColor.c"
	XSprePUSH; PUSHu((UV)RETVAL);
    }
    XSRETURN(1);
}


XS_EUPXS(XS_Gtk2__Gdk__Color_blue); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Color_blue)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "color");
    {
	GdkColor *	color = SvGdkColor (ST(0))
;
	guint16	RETVAL;
	dXSTARG;
#line 277 "xs/GdkColor.xs"
	RETVAL = color->blue;
#line 611 "xs/GdkColor.c"
	XSprePUSH; PUSHu((UV)RETVAL);
    }
    XSRETURN(1);
}

#if GTK_CHECK_VERSION (2, 12, 0)
#define XSubPPtmpAAAB 1


XS_EUPXS(XS_Gtk2__Gdk__Color_to_string); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gtk2__Gdk__Color_to_string)
{
    dVAR; dXSARGS;
    if (items != 1)
       croak_xs_usage(cv,  "color");
    {
	gchar_own *	RETVAL;
	const GdkColor *	color = SvGdkColor (ST(0))
;

	RETVAL = gdk_color_to_string(color);
	{
	    SV * RETVALSV;
	    RETVALSV = sv_newmortal();
	    /* used when we can directly own the returned string. */
	    /* we have to copy in the case when perl's malloc != gtk's malloc,
	     * so best copy all the time. */
	    sv_setpv ((SV*)RETVALSV, RETVAL);
	    SvUTF8_on (RETVALSV);
	    g_free (RETVAL);
	    ST(0) = RETVALSV;
	}
    }
    XSRETURN(1);
}

#endif
#ifdef __cplusplus
extern "C"
#endif
XS_EXTERNAL(boot_Gtk2__Gdk__Color); /* prototype to pass -Wmissing-prototypes */
XS_EXTERNAL(boot_Gtk2__Gdk__Color)
{
#if PERL_VERSION_LE(5, 21, 5)
    dVAR; dXSARGS;
#else
    dVAR; dXSBOOTARGSXSAPIVERCHK;
#endif
#if (PERL_REVISION == 5 && PERL_VERSION < 9)
    char* file = __FILE__;
#else
    const char* file = __FILE__;
#endif

    PERL_UNUSED_VAR(file);

    PERL_UNUSED_VAR(cv); /* -W */
    PERL_UNUSED_VAR(items); /* -W */
#if PERL_VERSION_LE(5, 21, 5)
    XS_VERSION_BOOTCHECK;
#  ifdef XS_APIVERSION_BOOTCHECK
    XS_APIVERSION_BOOTCHECK;
#  endif
#endif

        newXS_deffile("Gtk2::Gdk::Colormap::new", XS_Gtk2__Gdk__Colormap_new);
        newXS_deffile("Gtk2::Gdk::Colormap::get_system", XS_Gtk2__Gdk__Colormap_get_system);
        newXS_deffile("Gtk2::Gdk::Colormap::alloc_colors", XS_Gtk2__Gdk__Colormap_alloc_colors);
        newXS_deffile("Gtk2::Gdk::Colormap::alloc_color", XS_Gtk2__Gdk__Colormap_alloc_color);
        newXS_deffile("Gtk2::Gdk::Colormap::free_colors", XS_Gtk2__Gdk__Colormap_free_colors);
        newXS_deffile("Gtk2::Gdk::Colormap::query_color", XS_Gtk2__Gdk__Colormap_query_color);
        newXS_deffile("Gtk2::Gdk::Colormap::get_visual", XS_Gtk2__Gdk__Colormap_get_visual);
#if XSubPPtmpAAAA
        newXS_deffile("Gtk2::Gdk::Colormap::get_screen", XS_Gtk2__Gdk__Colormap_get_screen);
#endif
        newXS_deffile("Gtk2::Gdk::Color::new", XS_Gtk2__Gdk__Color_new);
        newXS_deffile("Gtk2::Gdk::Color::parse", XS_Gtk2__Gdk__Color_parse);
        newXS_deffile("Gtk2::Gdk::Color::hash", XS_Gtk2__Gdk__Color_hash);
        newXS_deffile("Gtk2::Gdk::Color::equal", XS_Gtk2__Gdk__Color_equal);
        newXS_deffile("Gtk2::Gdk::Color::pixel", XS_Gtk2__Gdk__Color_pixel);
        newXS_deffile("Gtk2::Gdk::Color::red", XS_Gtk2__Gdk__Color_red);
        newXS_deffile("Gtk2::Gdk::Color::green", XS_Gtk2__Gdk__Color_green);
        newXS_deffile("Gtk2::Gdk::Color::blue", XS_Gtk2__Gdk__Color_blue);
#if XSubPPtmpAAAB
        newXS_deffile("Gtk2::Gdk::Color::to_string", XS_Gtk2__Gdk__Color_to_string);
#endif

    /* Initialisation Section */

#if XSubPPtmpAAAA
#endif
#if XSubPPtmpAAAB
#endif
#line 705 "xs/GdkColor.c"

    /* End of Initialisation Section */

#if PERL_VERSION_LE(5, 21, 5)
#  if PERL_VERSION_GE(5, 9, 0)
    if (PL_unitcheckav)
        call_list(PL_scopestack_ix, PL_unitcheckav);
#  endif
    XSRETURN_YES;
#else
    Perl_xs_boot_epilog(aTHX_ ax);
#endif
}

