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

#line 1 "xs/GnomeUIDefs.xs"
/*
 * Copyright (C) 2003, 2013 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 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 LICENSE file in the top level of this distribution
 * for the complete license terms.
 *
 */

#include "gnome2perl.h"

#line 30 "xs/GnomeUIDefs.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(pTHX_ const CV *const cv, const char *const params);

STATIC void
S_croak_xs_usage(pTHX_ 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(aTHX_ "Usage: %s::%s(%s)", hvname, gvname, params);
        else
            Perl_croak(aTHX_ "Usage: %s(%s)", gvname, params);
    } else {
        /* Pants. I don't think that it should be possible to get here. */
        Perl_croak(aTHX_ "Usage: CODE(0x%"UVxf")(%s)", PTR2UV(cv), params);
    }
}
#undef  PERL_ARGS_ASSERT_CROAK_XS_USAGE

#ifdef PERL_IMPLICIT_CONTEXT
#define croak_xs_usage(a,b)    S_croak_xs_usage(aTHX_ a,b)
#else
#define croak_xs_usage        S_croak_xs_usage
#endif

#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) */

#line 172 "xs/GnomeUIDefs.c"

XS_EUPXS(XS_Gnome2__UIDefs_pad); /* prototype to pass -Wmissing-prototypes */
XS_EUPXS(XS_Gnome2__UIDefs_pad)
{
    dVAR; dXSARGS;
    dXSI32;
    if (items != 1)
       croak_xs_usage(cv,  "class");
    {
#line 76 "xs/GnomeUIDefs.xs"
	char key[] = "_";
#line 184 "xs/GnomeUIDefs.c"
	SV *	RETVAL;
#line 78 "xs/GnomeUIDefs.xs"
	switch (ix) {
		case 0: RETVAL = newSViv (GNOME_PAD); break;
		case 1: RETVAL = newSViv (GNOME_PAD_SMALL); break;
		case 2: RETVAL = newSViv (GNOME_PAD_BIG); break;

		case 4: key[0] = GNOME_KEY_NAME_QUIT; RETVAL = newSVpv (key, 0); break;
		case 5: RETVAL = newSViv (GNOME_KEY_MOD_QUIT); break;

		case 8: key[0] = GNOME_KEY_NAME_CLOSE; RETVAL = newSVpv (key, 0); break;
		case 9: RETVAL = newSViv (GNOME_KEY_MOD_CLOSE); break;

		case 10: key[0] = GNOME_KEY_NAME_CUT; RETVAL = newSVpv (key, 0); break;
		case 11: RETVAL = newSViv (GNOME_KEY_MOD_CUT); break;

		case 12: key[0] = GNOME_KEY_NAME_COPY; RETVAL = newSVpv (key, 0); break;
		case 13: RETVAL = newSViv (GNOME_KEY_MOD_COPY); break;

		case 14: key[0] = GNOME_KEY_NAME_PASTE; RETVAL = newSVpv (key, 0); break;
		case 15: RETVAL = newSViv (GNOME_KEY_MOD_PASTE); break;

		case 16: key[0] = GNOME_KEY_NAME_SELECT_ALL; RETVAL = newSVpv (key, 0); break;
		case 17: RETVAL = newSViv (GNOME_KEY_MOD_SELECT_ALL); break;

		case 18: key[0] = GNOME_KEY_NAME_CLEAR; RETVAL = newSVpv (key, 0); break;
		case 19: RETVAL = newSViv (GNOME_KEY_MOD_CLEAR); break;

		case 20: key[0] = GNOME_KEY_NAME_UNDO; RETVAL = newSVpv (key, 0); break;
		case 21: RETVAL = newSViv (GNOME_KEY_MOD_UNDO); break;

		case 22: key[0] = GNOME_KEY_NAME_REDO; RETVAL = newSVpv (key, 0); break;
		case 23: RETVAL = newSViv (GNOME_KEY_MOD_REDO); break;

		case 24: key[0] = GNOME_KEY_NAME_SAVE; RETVAL = newSVpv (key, 0); break;
		case 25: RETVAL = newSViv (GNOME_KEY_MOD_SAVE); break;

		case 26: key[0] = GNOME_KEY_NAME_OPEN; RETVAL = newSVpv (key, 0); break;
		case 27: RETVAL = newSViv (GNOME_KEY_MOD_OPEN); break;

		case 28: key[0] = GNOME_KEY_NAME_SAVE_AS; RETVAL = newSVpv (key, 0); break;
		case 29: RETVAL = newSViv (GNOME_KEY_MOD_SAVE_AS); break;

		case 30: key[0] = GNOME_KEY_NAME_NEW; RETVAL = newSVpv (key, 0); break;
		case 31: RETVAL = newSViv (GNOME_KEY_MOD_NEW); break;

		case 32: key[0] = GNOME_KEY_NAME_PRINT; RETVAL = newSVpv (key, 0); break;
		case 33: RETVAL = newSViv (GNOME_KEY_MOD_PRINT); break;

		case 34: key[0] = GNOME_KEY_NAME_PRINT_SETUP; RETVAL = newSVpv (key, 0); break;
		case 35: RETVAL = newSViv (GNOME_KEY_MOD_PRINT_SETUP); break;

		case 36: key[0] = GNOME_KEY_NAME_FIND; RETVAL = newSVpv (key, 0); break;
		case 37: RETVAL = newSViv (GNOME_KEY_MOD_FIND); break;

		case 38: key[0] = GNOME_KEY_NAME_FIND_AGAIN; RETVAL = newSVpv (key, 0); break;
		case 39: RETVAL = newSViv (GNOME_KEY_MOD_FIND_AGAIN); break;

		case 40: key[0] = GNOME_KEY_NAME_REPLACE; RETVAL = newSVpv (key, 0); break;
		case 41: RETVAL = newSViv (GNOME_KEY_MOD_REPLACE); break;

		case 42: key[0] = GNOME_KEY_NAME_NEW_WINDOW; RETVAL = newSVpv (key, 0); break;
		case 43: RETVAL = newSViv (GNOME_KEY_MOD_NEW_WINDOW); break;

		case 44: key[0] = GNOME_KEY_NAME_CLOSE_WINDOW; RETVAL = newSVpv (key, 0); break;
		case 45: RETVAL = newSViv (GNOME_KEY_MOD_CLOSE_WINDOW); break;

		case 46: key[0] = GNOME_KEY_NAME_REDO_MOVE; RETVAL = newSVpv (key, 0); break;
		case 47: RETVAL = newSViv (GNOME_KEY_MOD_REDO_MOVE); break;

		case 48: key[0] = GNOME_KEY_NAME_UNDO_MOVE; RETVAL = newSVpv (key, 0); break;
		case 49: RETVAL = newSViv (GNOME_KEY_MOD_UNDO_MOVE); break;

		case 50: RETVAL = newSViv (GNOME_KEY_NAME_PAUSE_GAME); break;
		case 51: RETVAL = newSViv (GNOME_KEY_MOD_PAUSE_GAME); break;

		case 52: key[0] = GNOME_KEY_NAME_NEW_GAME; RETVAL = newSVpv (key, 0); break;
		case 53: RETVAL = newSViv (GNOME_KEY_MOD_NEW_GAME); break;

		default: RETVAL = &PL_sv_undef;
	}
#line 266 "xs/GnomeUIDefs.c"
	ST(0) = RETVAL;
	sv_2mortal(ST(0));
    }
    XSRETURN(1);
}

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

    PERL_UNUSED_VAR(cv); /* -W */
    PERL_UNUSED_VAR(items); /* -W */
#ifdef XS_APIVERSION_BOOTCHECK
    XS_APIVERSION_BOOTCHECK;
#endif
    XS_VERSION_BOOTCHECK;

    {
        CV * cv;

        cv = newXS("Gnome2::UIDefs::key_mod_clear", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 19;
        cv = newXS("Gnome2::UIDefs::key_mod_close", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 9;
        cv = newXS("Gnome2::UIDefs::key_mod_close_window", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 45;
        cv = newXS("Gnome2::UIDefs::key_mod_copy", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 13;
        cv = newXS("Gnome2::UIDefs::key_mod_cut", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 11;
        cv = newXS("Gnome2::UIDefs::key_mod_find", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 37;
        cv = newXS("Gnome2::UIDefs::key_mod_find_again", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 39;
        cv = newXS("Gnome2::UIDefs::key_mod_new", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 31;
        cv = newXS("Gnome2::UIDefs::key_mod_new_game", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 53;
        cv = newXS("Gnome2::UIDefs::key_mod_new_window", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 43;
        cv = newXS("Gnome2::UIDefs::key_mod_open", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 27;
        cv = newXS("Gnome2::UIDefs::key_mod_paste", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 15;
        cv = newXS("Gnome2::UIDefs::key_mod_pause_game", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 51;
        cv = newXS("Gnome2::UIDefs::key_mod_print", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 33;
        cv = newXS("Gnome2::UIDefs::key_mod_print_setup", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 35;
        cv = newXS("Gnome2::UIDefs::key_mod_quit", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 5;
        cv = newXS("Gnome2::UIDefs::key_mod_redo", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 23;
        cv = newXS("Gnome2::UIDefs::key_mod_redo_move", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 47;
        cv = newXS("Gnome2::UIDefs::key_mod_replace", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 41;
        cv = newXS("Gnome2::UIDefs::key_mod_save", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 25;
        cv = newXS("Gnome2::UIDefs::key_mod_save_as", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 29;
        cv = newXS("Gnome2::UIDefs::key_mod_select_all", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 17;
        cv = newXS("Gnome2::UIDefs::key_mod_undo", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 21;
        cv = newXS("Gnome2::UIDefs::key_mod_undo_move", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 49;
        cv = newXS("Gnome2::UIDefs::key_name_clear", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 18;
        cv = newXS("Gnome2::UIDefs::key_name_close", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 8;
        cv = newXS("Gnome2::UIDefs::key_name_close_window", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 44;
        cv = newXS("Gnome2::UIDefs::key_name_copy", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 12;
        cv = newXS("Gnome2::UIDefs::key_name_cut", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 10;
        cv = newXS("Gnome2::UIDefs::key_name_find", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 36;
        cv = newXS("Gnome2::UIDefs::key_name_find_again", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 38;
        cv = newXS("Gnome2::UIDefs::key_name_new", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 30;
        cv = newXS("Gnome2::UIDefs::key_name_new_game", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 52;
        cv = newXS("Gnome2::UIDefs::key_name_new_window", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 42;
        cv = newXS("Gnome2::UIDefs::key_name_open", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 26;
        cv = newXS("Gnome2::UIDefs::key_name_paste", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 14;
        cv = newXS("Gnome2::UIDefs::key_name_pause_game", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 50;
        cv = newXS("Gnome2::UIDefs::key_name_print", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 32;
        cv = newXS("Gnome2::UIDefs::key_name_print_setup", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 34;
        cv = newXS("Gnome2::UIDefs::key_name_quit", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 4;
        cv = newXS("Gnome2::UIDefs::key_name_redo", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 22;
        cv = newXS("Gnome2::UIDefs::key_name_redo_move", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 46;
        cv = newXS("Gnome2::UIDefs::key_name_replace", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 40;
        cv = newXS("Gnome2::UIDefs::key_name_save", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 24;
        cv = newXS("Gnome2::UIDefs::key_name_save_as", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 28;
        cv = newXS("Gnome2::UIDefs::key_name_select_all", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 16;
        cv = newXS("Gnome2::UIDefs::key_name_undo", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 20;
        cv = newXS("Gnome2::UIDefs::key_name_undo_move", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 48;
        cv = newXS("Gnome2::UIDefs::pad", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 0;
        cv = newXS("Gnome2::UIDefs::pad_big", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 2;
        cv = newXS("Gnome2::UIDefs::pad_small", XS_Gnome2__UIDefs_pad, file);
        XSANY.any_i32 = 1;
    }
#if (PERL_REVISION == 5 && PERL_VERSION >= 9)
  if (PL_unitcheckav)
       call_list(PL_scopestack_ix, PL_unitcheckav);
#endif
    XSRETURN_YES;
}

