/* Machine generated file, do not modify */
#include <stdlib.h>
#include "HsFFI.h"
#include "HsOpenGL.h"

static HugsAPI5 *hugs = 0;

static void hugsprim_v7908_7(HugsStackPtr);
static void hugsprim_v7908_7(HugsStackPtr hugs_root)
{
    void (*v7908)(HsWord32 arg1, HsWord32 arg2, HsPtr arg3);
    HsWord32 arg1;
    HsWord32 arg2;
    HsPtr arg3;
    v7908 = (void (*)(HsWord32, HsWord32, HsPtr))hugs->getFunPtr();
    arg1 = hugs->getWord32();
    arg2 = hugs->getWord32();
    arg3 = hugs->getPtr();
    v7908(arg1, arg2, arg3);
    
    hugs->returnIO(hugs_root,0);
}

static void hugsprim_v7909_6(HugsStackPtr);
static void hugsprim_v7909_6(HugsStackPtr hugs_root)
{
    void (*v7909)(HsWord32 arg1, HsWord32 arg2, HsPtr arg3);
    HsWord32 arg1;
    HsWord32 arg2;
    HsPtr arg3;
    v7909 = (void (*)(HsWord32, HsWord32, HsPtr))hugs->getFunPtr();
    arg1 = hugs->getWord32();
    arg2 = hugs->getWord32();
    arg3 = hugs->getPtr();
    v7909(arg1, arg2, arg3);
    
    hugs->returnIO(hugs_root,0);
}

static void hugsprim_v7910_5(HugsStackPtr);
static void hugsprim_v7910_5(HugsStackPtr hugs_root)
{
    void (*v7910)(HsWord32 arg1, HsWord32 arg2, HsPtr arg3);
    HsWord32 arg1;
    HsWord32 arg2;
    HsPtr arg3;
    v7910 = (void (*)(HsWord32, HsWord32, HsPtr))hugs->getFunPtr();
    arg1 = hugs->getWord32();
    arg2 = hugs->getWord32();
    arg3 = hugs->getPtr();
    v7910(arg1, arg2, arg3);
    
    hugs->returnIO(hugs_root,0);
}

static void hugsprim_v7911_4(HugsStackPtr);
static void hugsprim_v7911_4(HugsStackPtr hugs_root)
{
    void (*v7911)(HsWord32 arg1, HsInt32 arg2, HsInt32 arg3, HsInt32 arg4, HsInt32 arg5);
    HsWord32 arg1;
    HsInt32 arg2;
    HsInt32 arg3;
    HsInt32 arg4;
    HsInt32 arg5;
    v7911 = (void (*)(HsWord32, HsInt32, HsInt32, HsInt32, HsInt32))hugs->getFunPtr();
    arg1 = hugs->getWord32();
    arg2 = hugs->getInt32();
    arg3 = hugs->getInt32();
    arg4 = hugs->getInt32();
    arg5 = hugs->getInt32();
    v7911(arg1, arg2, arg3, arg4, arg5);
    
    hugs->returnIO(hugs_root,0);
}

static void hugsprim_v7912_3(HugsStackPtr);
static void hugsprim_v7912_3(HugsStackPtr hugs_root)
{
    void (*v7912)(HsWord32 arg1, HsInt32 arg2, HsInt32 arg3, HsWord32 arg4, HsWord32 arg5, HsPtr arg6);
    HsWord32 arg1;
    HsInt32 arg2;
    HsInt32 arg3;
    HsWord32 arg4;
    HsWord32 arg5;
    HsPtr arg6;
    v7912 = (void (*)(HsWord32, HsInt32, HsInt32, HsWord32, HsWord32, HsPtr))hugs->getFunPtr();
    arg1 = hugs->getWord32();
    arg2 = hugs->getInt32();
    arg3 = hugs->getInt32();
    arg4 = hugs->getWord32();
    arg5 = hugs->getWord32();
    arg6 = hugs->getPtr();
    v7912(arg1, arg2, arg3, arg4, arg5, arg6);
    
    hugs->returnIO(hugs_root,0);
}

static void hugsprim_v7913_2(HugsStackPtr);
static void hugsprim_v7913_2(HugsStackPtr hugs_root)
{
    void (*v7913)(HsWord32 arg1, HsWord32 arg2, HsInt32 arg3, HsInt32 arg4, HsInt32 arg5);
    HsWord32 arg1;
    HsWord32 arg2;
    HsInt32 arg3;
    HsInt32 arg4;
    HsInt32 arg5;
    v7913 = (void (*)(HsWord32, HsWord32, HsInt32, HsInt32, HsInt32))hugs->getFunPtr();
    arg1 = hugs->getWord32();
    arg2 = hugs->getWord32();
    arg3 = hugs->getInt32();
    arg4 = hugs->getInt32();
    arg5 = hugs->getInt32();
    v7913(arg1, arg2, arg3, arg4, arg5);
    
    hugs->returnIO(hugs_root,0);
}

static void hugsprim_v7914_1(HugsStackPtr);
static void hugsprim_v7914_1(HugsStackPtr hugs_root)
{
    void (*v7914)(HsWord32 arg1, HsWord32 arg2, HsWord32 arg3, HsPtr arg4);
    HsWord32 arg1;
    HsWord32 arg2;
    HsWord32 arg3;
    HsPtr arg4;
    v7914 = (void (*)(HsWord32, HsWord32, HsWord32, HsPtr))hugs->getFunPtr();
    arg1 = hugs->getWord32();
    arg2 = hugs->getWord32();
    arg3 = hugs->getWord32();
    arg4 = hugs->getPtr();
    v7914(arg1, arg2, arg3, arg4);
    
    hugs->returnIO(hugs_root,0);
}

static void hugsprim_v7915_0(HugsStackPtr);
static void hugsprim_v7915_0(HugsStackPtr hugs_root)
{
    void (*v7915)(HsWord32 arg1, HsWord32 arg2, HsInt32 arg3, HsWord32 arg4, HsWord32 arg5, HsPtr arg6);
    HsWord32 arg1;
    HsWord32 arg2;
    HsInt32 arg3;
    HsWord32 arg4;
    HsWord32 arg5;
    HsPtr arg6;
    v7915 = (void (*)(HsWord32, HsWord32, HsInt32, HsWord32, HsWord32, HsPtr))hugs->getFunPtr();
    arg1 = hugs->getWord32();
    arg2 = hugs->getWord32();
    arg3 = hugs->getInt32();
    arg4 = hugs->getWord32();
    arg5 = hugs->getWord32();
    arg6 = hugs->getPtr();
    v7915(arg1, arg2, arg3, arg4, arg5, arg6);
    
    hugs->returnIO(hugs_root,0);
}

static struct hugs_primitive hugs_primTable[] = {
    {"dyn_glGetColorTableParameteriv", 5, hugsprim_v7908_7},
    {"dyn_glColorTableParameterfv", 5, hugsprim_v7909_6},
    {"dyn_glGetColorTableParameterfv", 5, hugsprim_v7910_5},
    {"dyn_glCopyColorSubTable", 7, hugsprim_v7911_4},
    {"dyn_glColorSubTable", 8, hugsprim_v7912_3},
    {"dyn_glCopyColorTable", 7, hugsprim_v7913_2},
    {"dyn_glGetColorTable", 6, hugsprim_v7914_1},
    {"dyn_glColorTable", 8, hugsprim_v7915_0},
};

static void hugs_primControl(int);
static void hugs_primControl(what)
int what; {
}

#ifdef STATIC_LINKAGE
#define initModule initGROGPColorTable
#endif

static struct hugs_primInfo hugs_prims = { hugs_primControl, hugs_primTable, 0 };

#ifdef __cplusplus
extern "C" {
#endif
#ifndef __cplusplus
DLLEXPORT(int)  HugsAPIVersion(void);
#endif
DLLEXPORT(int)  HugsAPIVersion() {return (5);}
DLLEXPORT(void) initModule(HugsAPI5 *);
DLLEXPORT(void) initModule(HugsAPI5 *hugsAPI) {
    hugs = hugsAPI;
    hugs->registerPrims(&hugs_prims);
}
#ifdef __cplusplus
}
#endif

