#include "opendylan/run-time.h"

/* Generated by Open Dylan 2014.1 for x86_64-linux */

/* Typedefs for referenced classes */

typedef struct {
  dylan_value wrapper;
  dylan_value instanceQ_iep_;
  dylan_value debug_name_;
  dylan_value class_implementation_class_;
  dylan_value class_subtype_bit_;
  dylan_value class_module_;
} _KLclassGVKd;

#define  define__KLmm_wrapperGVKi(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value mm_wrapper_implementation_class_; \
    dylan_value mm_wrapper_subtype_mask_; \
    DWORD mm_wrapper_fixed_part_; \
    DWORD mm_wrapper_variable_part_; \
    dylan_value mm_wrapper_number_patterns_; \
    DWORD mm_wrapper_pattern_element_[nrepeated+1]; \
  } _KLmm_wrapperGVKi_##nrepeated;
define__KLmm_wrapperGVKi(1);
define__KLmm_wrapperGVKi(0);

typedef struct {
  dylan_value wrapper;
} _KLobjectGVKd;

typedef struct {
  dylan_value wrapper;
} _KLunboundGVKe;

typedef struct {
  dylan_value wrapper;
} _KLbooleanGVKd;

typedef struct {
  dylan_value wrapper;
  dylan_value namespace_name_;
  dylan_value library_major_version_;
  dylan_value library_minor_version_;
  dylan_value library_build_count_;
  dylan_value used_libraries_;
  dylan_value all_used_libraries_;
  dylan_value runtime_module_;
  dylan_value library_defined_generics_;
  dylan_value library_number_static_dispatches_;
  dylan_value library_number_dynamic_dispatches_;
} _KLlibraryGVKe;

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    dylan_value vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(6);
define__KLsimple_object_vectorGVKd(12);
define__KLsimple_object_vectorGVKd(0);

typedef struct {
  dylan_value wrapper;
  dylan_value library_major_version_;
  dylan_value library_minor_version_;
  dylan_value library_build_count_;
  dylan_value used_library_;
  dylan_value used_library_binding_;
} _KLused_libraryGVKe;

typedef struct {
  dylan_value wrapper;
  dylan_value symbol_name_;
} _KLsymbolGVKd;

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    dylan_value wrapper; \
    dylan_value size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(5);
define__KLbyte_stringGVKd(29);

typedef struct {
  dylan_value wrapper;
  dylan_value command_info_name_;
  dylan_value command_info_title_;
  dylan_value command_info_summary_;
  dylan_value command_info_documentation_;
  dylan_value command_info_type_;
  dylan_value command_info_persistentQ_;
} _KLdebugger_propertyGVenvironment_internal_commands;

typedef struct {
  dylan_value wrapper;
  dylan_value command_info_name_;
  dylan_value command_info_title_;
  dylan_value command_info_summary_;
  dylan_value command_info_documentation_;
  dylan_value command_info_type_;
  dylan_value command_info_persistentQ_;
} _KLprofile_commands_propertyGVenvironment_internal_commands;

typedef struct {
  dylan_value wrapper;
  dylan_value command_info_name_;
  dylan_value command_info_title_;
  dylan_value command_info_summary_;
  dylan_value command_info_documentation_;
  dylan_value command_info_type_;
  dylan_value command_info_persistentQ_;
} _KLpersonal_root_propertyGVenvironment_internal_commands;

typedef struct {
  dylan_value wrapper;
  dylan_value command_info_name_;
  dylan_value command_info_title_;
  dylan_value command_info_summary_;
  dylan_value command_info_documentation_;
  dylan_value command_info_type_;
  dylan_value command_info_persistentQ_;
} _KLsystem_root_propertyGVenvironment_internal_commands;

typedef struct {
  dylan_value wrapper;
  dylan_value command_info_name_;
  dylan_value command_info_title_;
  dylan_value command_info_summary_;
  dylan_value command_info_documentation_;
  dylan_value command_info_type_;
  dylan_value command_info_persistentQ_;
} _KLbuild_root_propertyGVenvironment_internal_commands;

typedef struct {
  dylan_value wrapper;
  dylan_value command_info_name_;
  dylan_value command_info_title_;
  dylan_value command_info_summary_;
  dylan_value command_info_documentation_;
  dylan_value command_info_type_;
  dylan_value command_info_persistentQ_;
} _KLregistries_propertyGVenvironment_internal_commands;


/* Typedefs for defined classes */


/* Referenced object declarations */

dylan_value Kinitialize_class_dispatch_keys_vectoredVKgI (dylan_value);
dylan_value KPlibrary_version_checkVKeI (dylan_value, dylan_value);
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLclassGVKd KLobjectGVKd;
extern _KLmm_wrapperGVKi_0 KLobjectGVKdW;
extern _KLunboundGVKe KPunboundVKi;
extern _KLclassGVKd KLunboundGVKe;
extern _KLmm_wrapperGVKi_0 KLunboundGVKeW;
extern _KLbooleanGVKd KPtrueVKi;
extern _KLclassGVKd KLbooleanGVKd;
extern _KLmm_wrapperGVKi_0 KLbooleanGVKdW;
extern _KLbooleanGVKd KPfalseVKi;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLclassGVKd KLused_libraryGVKe;
extern _KLmm_wrapperGVKi_0 KLused_libraryGVKeW;
extern _KLlibraryGVKe Kcommon_dylan_libraryYdylan_userVcommon_dylan;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLlibraryGVKe Ksystem_libraryYdylan_userVsystem;
extern _KLlibraryGVKe Kio_libraryYdylan_userVio;
extern _KLlibraryGVKe Kcommands_libraryYdylan_userVcommands;
extern _KLlibraryGVKe Kenvironment_protocols_libraryYdylan_userVenvironment_protocols;
extern _KLlibraryGVKe Kenvironment_commands_libraryYdylan_userVenvironment_commands;
extern _KLlibraryGVKe Kprojects_libraryYdylan_userVprojects;
extern _KLlibraryGVKe Kregistry_projects_libraryYdylan_userVregistry_projects;
extern _KLlibraryGVKe Kuser_projects_libraryYdylan_userVuser_projects;
extern _KLlibraryGVKe Kdood_libraryYdylan_userVdood;
extern _KLlibraryGVKe Kbuild_system_libraryYdylan_userVbuild_system;
extern _KLlibraryGVKe Kdfmc_browser_support_libraryYdylan_userVdfmc_browser_support;
extern _KLclassGVKd KLdebugger_propertyGVenvironment_internal_commands;
extern _KLclassGVKd KLprofile_commands_propertyGVenvironment_internal_commands;
extern _KLclassGVKd KLpersonal_root_propertyGVenvironment_internal_commands;
extern _KLclassGVKd KLsystem_root_propertyGVenvironment_internal_commands;
extern _KLclassGVKd KLbuild_root_propertyGVenvironment_internal_commands;
extern _KLclassGVKd KLregistries_propertyGVenvironment_internal_commands;

/* Defined object declarations */

extern _KLlibraryGVKe Kenvironment_internal_commands_libraryYdylan_userVenvironment_internal_commands;
static _KLbyte_stringGVKd_29 K4;
static _KLsimple_object_vectorGVKd_12 K5;
static _KLused_libraryGVKe K6;
static _KLused_libraryGVKe K7;
static _KLused_libraryGVKe K8;
static _KLused_libraryGVKe K9;
static _KLused_libraryGVKe K10;
static _KLused_libraryGVKe K11;
static _KLused_libraryGVKe K12;
static _KLused_libraryGVKe K13;
static _KLused_libraryGVKe K14;
static _KLused_libraryGVKe K15;
static _KLused_libraryGVKe K16;
static _KLused_libraryGVKe K17;
static _KLsymbolGVKd KJtight_;
static _KLbyte_stringGVKd_5 K19;
static _KLsimple_object_vectorGVKd_6 K20;

/* Indirection variables */

static dylan_value IKJtight_ = &KJtight_;

/* Variables */

dylan_value environment_internal_commands_libraryYdylan_userVenvironment_internal_commands = &Kenvironment_internal_commands_libraryYdylan_userVenvironment_internal_commands;

/* Objects */

_KLlibraryGVKe Kenvironment_internal_commands_libraryYdylan_userVenvironment_internal_commands = {
  &KLlibraryGVKeW /* wrapper */,
  &K4,
  (dylan_value) 9,
  (dylan_value) 5,
  (dylan_value) 239088329,
  &K5,
  &KPempty_vectorVKi,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (dylan_value) 177,
  (dylan_value) 273
};

static _KLbyte_stringGVKd_29 K4 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 117,
  "environment-internal-commands"
};

static _KLsimple_object_vectorGVKd_12 K5 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 49,
  &K6,
  &K7,
  &K8,
  &K9,
  &K10,
  &K11,
  &K12,
  &K13,
  &K14,
  &K15,
  &K16,
  &K17
};

static _KLused_libraryGVKe K6 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 238917865,
  &Kdfmc_browser_support_libraryYdylan_userVdfmc_browser_support,
  &KJtight_
};

static _KLused_libraryGVKe K7 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 238166153,
  &Kbuild_system_libraryYdylan_userVbuild_system,
  &KJtight_
};

static _KLused_libraryGVKe K8 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 237966345,
  &Kdood_libraryYdylan_userVdood,
  &KJtight_
};

static _KLused_libraryGVKe K9 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 239247817,
  &Kuser_projects_libraryYdylan_userVuser_projects,
  &KJtight_
};

static _KLused_libraryGVKe K10 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 238900329,
  &Kregistry_projects_libraryYdylan_userVregistry_projects,
  &KJtight_
};

static _KLused_libraryGVKe K11 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 238929545,
  &Kprojects_libraryYdylan_userVprojects,
  &KJtight_
};

static _KLused_libraryGVKe K12 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 9,
  (dylan_value) 5,
  (dylan_value) 239298281,
  &Kenvironment_commands_libraryYdylan_userVenvironment_commands,
  &KJtight_
};

static _KLused_libraryGVKe K13 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 9,
  (dylan_value) 5,
  (dylan_value) 237881673,
  &Kenvironment_protocols_libraryYdylan_userVenvironment_protocols,
  &KJtight_
};

static _KLused_libraryGVKe K14 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 9,
  (dylan_value) 5,
  (dylan_value) 237914153,
  &Kcommands_libraryYdylan_userVcommands,
  &KJtight_
};

static _KLused_libraryGVKe K15 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 9,
  (dylan_value) 5,
  (dylan_value) 237568009,
  &Kio_libraryYdylan_userVio,
  &KJtight_
};

static _KLused_libraryGVKe K16 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 9,
  (dylan_value) 5,
  (dylan_value) 237939817,
  &Ksystem_libraryYdylan_userVsystem,
  &KJtight_
};

static _KLused_libraryGVKe K17 = {
  &KLused_libraryGVKeW /* wrapper */,
  (dylan_value) 1,
  (dylan_value) 1,
  (dylan_value) 237613737,
  &Kcommon_dylan_libraryYdylan_userVcommon_dylan,
  &KJtight_
};

static _KLsymbolGVKd KJtight_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K19
};

static _KLbyte_stringGVKd_5 K19 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (dylan_value) 21,
  "tight"
};

static _KLsimple_object_vectorGVKd_6 K20 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (dylan_value) 25,
  &KLdebugger_propertyGVenvironment_internal_commands,
  &KLprofile_commands_propertyGVenvironment_internal_commands,
  &KLpersonal_root_propertyGVenvironment_internal_commands,
  &KLsystem_root_propertyGVenvironment_internal_commands,
  &KLbuild_root_propertyGVenvironment_internal_commands,
  &KLregistries_propertyGVenvironment_internal_commands
};

/* Code */


/* SYSTEM INIT CODE */

void _Init_environment_internal_commands__X_library_for_system () {
  extern dylan_value KPresolve_symbolVKiI(dylan_value);
  {
    dylan_value T0;

    T0 = KPresolve_symbolVKiI(&KJtight_);
    if (T0 != &KJtight_) {
      primitive_slot_value_setter(T0, &K6, 4);
      primitive_slot_value_setter(T0, &K7, 4);
      primitive_slot_value_setter(T0, &K8, 4);
      primitive_slot_value_setter(T0, &K9, 4);
      primitive_slot_value_setter(T0, &K10, 4);
      primitive_slot_value_setter(T0, &K11, 4);
      primitive_slot_value_setter(T0, &K12, 4);
      primitive_slot_value_setter(T0, &K13, 4);
      primitive_slot_value_setter(T0, &K14, 4);
      primitive_slot_value_setter(T0, &K15, 4);
      primitive_slot_value_setter(T0, &K16, 4);
      primitive_slot_value_setter(T0, &K17, 4);
    }
  }
  return;
}

/* USER INIT CODE */

void _Init_environment_internal_commands__X_library_for_user () {
{
  dylan_value T0;

  T0 = Kinitialize_class_dispatch_keys_vectoredVKgI(&K20);
  goto I0;
}
I0:

{
  dylan_value T0;

  T0 = &KPfalseVKi;
  goto I1;
}
I1:

{
  dylan_value T0;
  dylan_value T1;

  // /home/bruce/Development/dylan/opendylan/sources/environment/commands/internal/library.dylan:9
  T0 = primitive_runtime_module_handle();
  // /home/bruce/Development/dylan/opendylan/sources/environment/commands/internal/library.dylan:9
  T1 = KPlibrary_version_checkVKeI(&Kenvironment_internal_commands_libraryYdylan_userVenvironment_internal_commands, T0);
  goto I2;
}
I2:

  return;
}


/* eof */
