#include "run-time.h"

/* Typedefs for referenced classes */

#define  define__KLsimple_object_vectorGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    D vector_element_[nrepeated+1]; \
  } _KLsimple_object_vectorGVKd_##nrepeated;
define__KLsimple_object_vectorGVKd(10);
define__KLsimple_object_vectorGVKd(15);
define__KLsimple_object_vectorGVKd(3);
define__KLsimple_object_vectorGVKd(0);
define__KLsimple_object_vectorGVKd(1);

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

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

typedef struct {
  D wrapper;
  D xep_;
  D function_signature_;
  D mep_;
} _KLsimple_methodGVKe;

typedef struct {
  D wrapper;
  D instanceQ_iep_;
  D debug_name_;
  D class_implementation_class_;
  D class_subtype_bit_;
  D class_module_;
} _KLfunction_classGVKi;

typedef struct {
  D wrapper;
  D head_;
  D tail_;
} _KLempty_listGVKd;

typedef struct {
  D wrapper;
} _KLobjectGVKd;

typedef struct {
  D wrapper;
} _KLunboundGVKe;

typedef struct {
  D wrapper;
} _KLbooleanGVKd;

typedef struct {
  D wrapper;
  D namespace_name_;
  D home_library_;
} _KLmoduleGVKe;

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(5);
define__KLbyte_stringGVKd(8);
define__KLbyte_stringGVKd(23);
define__KLbyte_stringGVKd(12);

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

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

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

typedef struct {
  D wrapper;
} _KLserious_conditionGVKd;

typedef struct {
  D wrapper;
} _KLerrorGVKd;

typedef struct {
  D wrapper;
} _KLwarningGVKd;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
} _KLsimple_conditionGVKe;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
} _KLproject_warningGVprojects;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
} _KLproject_serious_warningGVprojects;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
} _KLproject_fatal_errorGVprojects;

typedef struct {
  D wrapper;
  D project_source_record_table_;
  D project_current_compilation_context_;
  D project_namespace_loaded_;
  D Pproject_owners_;
  D Pproject_top_levelQ_;
  D Pdatabase_in_memory_;
  D Pdatabase_in_memory_current_;
  D Pdatabase_saved_;
} _KLbase_projectGYprojects_implementationVprojects;

typedef struct {
  D wrapper;
  D project_source_record_table_;
  D project_current_compilation_context_;
  D project_namespace_loaded_;
  D Pproject_owners_;
  D Pproject_top_levelQ_;
  D Pdatabase_in_memory_;
  D Pdatabase_in_memory_current_;
  D Pdatabase_saved_;
} _KLprojectGVprojects;

typedef struct {
  D wrapper;
  D condition_format_string_;
  D condition_format_arguments_;
} _KLsystem_project_not_usableGVprojects;

typedef struct {
  D wrapper;
  D project_source_record_table_;
  D project_current_compilation_context_;
  D project_namespace_loaded_;
  D Pproject_owners_;
  D Pproject_top_levelQ_;
  D Pdatabase_in_memory_;
  D Pdatabase_in_memory_current_;
  D Pdatabase_saved_;
  D project_current_source_records_;
  D project_minor_version_;
  D project_major_version_;
  D project_read_onlyQ_;
  D project_library_name_;
  D project_compiler_source_location_;
  D project_personal_libraryQ_;
} _KLstring_template_projectGYprojects_implementationVprojects;

typedef struct {
  D wrapper;
  D source_record_contents_;
  D source_record_module_name_;
  D source_record_name_;
} _KLstring_template_source_recordGYprojects_implementationVprojects;

typedef struct {
  D wrapper;
  D project_source_record_table_;
  D project_current_compilation_context_;
  D project_namespace_loaded_;
  D Pproject_owners_;
  D Pproject_top_levelQ_;
  D Pdatabase_in_memory_;
  D Pdatabase_in_memory_current_;
  D Pdatabase_saved_;
  D project_major_version_;
  D project_minor_version_;
  D project_library_pack_;
  D project_library_loose_bindings_;
  D project_library_tight_bindings_;
  D project_lid_location_;
  D project_lid_date_;
  D project_lid_library_name_;
  D project_build_settings_slot_;
  D project_lid_file_info_;
  D project_source_files_;
  D project_source_record_class_;
  D project_compilation_mode_;
  D project_compiler_back_end_;
  D project_platform_name_;
  D project_target_type_;
} _KLlid_projectGYlid_projectsVprojects;

typedef struct {
  D wrapper;
  D project_source_record_table_;
  D project_current_compilation_context_;
  D project_namespace_loaded_;
  D Pproject_owners_;
  D Pproject_top_levelQ_;
  D Pdatabase_in_memory_;
  D Pdatabase_in_memory_current_;
  D Pdatabase_saved_;
  D project_build_location_;
  D project_database_location_;
  D project_profile_location_;
} _KLproject_layoutGYlid_projectsVprojects;


/* Typedefs for defined classes */


/* Referenced object declarations */

extern _KLclassGVKd KLsimple_object_vectorGVKd;
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
D Kinitialize_class_dispatch_keys_vectoredVKgI (D);
D KdoVKdMM0I (D, D, D);
extern _KLsimple_methodGVKe Kaugment_class_known_jointVKiMM0;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
D KPlibrary_version_checkVKeI (D, D);
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 KLmoduleGVKe;
extern _KLmm_wrapperGVKi_0 KLmoduleGVKeW;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLclassGVKd KLused_libraryGVKe;
extern _KLmm_wrapperGVKi_0 KLused_libraryGVKeW;
extern _KLlibraryGVKe Kdylan_libraryYdylan_userVdylan;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLlibraryGVKe Kcommon_dylan_libraryYdylan_userVcommon_dylan;
extern _KLlibraryGVKe Kmemory_manager_libraryYdylan_userVmemory_manager;
extern _KLlibraryGVKe Kbuild_system_libraryYdylan_userVbuild_system;
extern _KLlibraryGVKe Krelease_info_libraryYdylan_userVrelease_info;
extern _KLlibraryGVKe Kdood_libraryYdylan_userVdood;
extern _KLlibraryGVKe Kcollections_libraryYdylan_userVcollections;
extern _KLlibraryGVKe Kio_libraryYdylan_userVio;
extern _KLlibraryGVKe Ksystem_libraryYdylan_userVsystem;
extern _KLlibraryGVKe Ksource_records_libraryYdylan_userVsource_records;
extern _KLlibraryGVKe Kfile_source_records_libraryYdylan_userVfile_source_records;
extern _KLlibraryGVKe Kdfmc_common_libraryYdylan_userVdfmc_common;
extern _KLlibraryGVKe Kdfmc_browser_support_libraryYdylan_userVdfmc_browser_support;
extern _KLlibraryGVKe Kdfmc_macro_expander_libraryYdylan_userVdfmc_macro_expander;
extern _KLlibraryGVKe Kdfmc_namespace_libraryYdylan_userVdfmc_namespace;
extern _KLclassGVKd KLserious_conditionGVKd;
extern _KLmm_wrapperGVKi_0 KLserious_conditionGVKdW;
extern _KLclassGVKd KLerrorGVKd;
extern _KLmm_wrapperGVKi_0 KLerrorGVKdW;
extern _KLclassGVKd KLwarningGVKd;
extern _KLmm_wrapperGVKi_0 KLwarningGVKdW;
extern _KLclassGVKd KLsimple_conditionGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_conditionGVKeW;
extern _KLclassGVKd KLproject_warningGVprojects;
extern _KLclassGVKd KLproject_serious_warningGVprojects;
extern _KLclassGVKd KLproject_fatal_errorGVprojects;
extern _KLclassGVKd KLbase_projectGYprojects_implementationVprojects;
extern _KLclassGVKd KLprojectGVprojects;
extern _KLclassGVKd KLsystem_project_not_usableGVprojects;
extern _KLclassGVKd KLstring_template_projectGYprojects_implementationVprojects;
extern _KLclassGVKd KLstring_template_source_recordGYprojects_implementationVprojects;
extern _KLclassGVKd KLlid_projectGYlid_projectsVprojects;
extern _KLclassGVKd KLproject_layoutGYlid_projectsVprojects;

/* Defined object declarations */

static _KLsimple_object_vectorGVKd_3 K1;
static _KLsimple_object_vectorGVKd_3 K2;
extern _KLlibraryGVKe Kprojects_libraryYdylan_userVprojects;
extern _KLmoduleGVKe Kprojects_moduleYdylan_userVprojects;
extern _KLmoduleGVKe Kprojects_implementation_moduleYdylan_userVprojects;
extern _KLmoduleGVKe Klid_projects_moduleYdylan_userVprojects;
static _KLbyte_stringGVKd_12 K9;
static _KLbyte_stringGVKd_23 K10;
static _KLbyte_stringGVKd_8 K11;
static _KLsimple_object_vectorGVKd_15 K12;
static _KLused_libraryGVKe K13;
static _KLused_libraryGVKe K14;
static _KLused_libraryGVKe K15;
static _KLused_libraryGVKe K16;
static _KLused_libraryGVKe K17;
static _KLused_libraryGVKe K18;
static _KLused_libraryGVKe K19;
static _KLused_libraryGVKe K20;
static _KLused_libraryGVKe K21;
static _KLused_libraryGVKe K22;
static _KLused_libraryGVKe K23;
static _KLused_libraryGVKe K24;
static _KLused_libraryGVKe K25;
static _KLused_libraryGVKe K26;
static _KLused_libraryGVKe K27;
static _KLsymbolGVKd KJtight_;
static _KLbyte_stringGVKd_5 K29;
static _KLsimple_object_vectorGVKd_1 K30;
static _KLsimple_object_vectorGVKd_10 K31;

/* Indirection variables */

static D IKJtight_ = &KJtight_;

/* Variables */

D lid_projects_moduleYdylan_userVprojects = &Klid_projects_moduleYdylan_userVprojects;
D projects_implementation_moduleYdylan_userVprojects = &Kprojects_implementation_moduleYdylan_userVprojects;
D projects_moduleYdylan_userVprojects = &Kprojects_moduleYdylan_userVprojects;
D projects_libraryYdylan_userVprojects = &Kprojects_libraryYdylan_userVprojects;

/* Objects */

static _KLsimple_object_vectorGVKd_3 K1 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 13,
  &K30,
  &K30,
  &K30
};

static _KLsimple_object_vectorGVKd_3 K2 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 13,
  &KLserious_conditionGVKd,
  &KLerrorGVKd,
  &KLwarningGVKd
};

_KLlibraryGVKe Kprojects_libraryYdylan_userVprojects = {
  &KLlibraryGVKeW /* wrapper */,
  &K11,
  (D) 1,
  (D) 1,
  (D) 129478517,
  &K12,
  &KPempty_vectorVKi,
  &KPfalseVKi,
  &KPempty_vectorVKi,
  (D) 741,
  (D) 2133
};

_KLmoduleGVKe Kprojects_moduleYdylan_userVprojects = {
  &KLmoduleGVKeW /* wrapper */,
  &K11,
  &Kprojects_libraryYdylan_userVprojects
};

_KLmoduleGVKe Kprojects_implementation_moduleYdylan_userVprojects = {
  &KLmoduleGVKeW /* wrapper */,
  &K10,
  &Kprojects_libraryYdylan_userVprojects
};

_KLmoduleGVKe Klid_projects_moduleYdylan_userVprojects = {
  &KLmoduleGVKeW /* wrapper */,
  &K9,
  &Kprojects_libraryYdylan_userVprojects
};

static _KLbyte_stringGVKd_12 K9 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 49,
  "lid-projects"
};

static _KLbyte_stringGVKd_23 K10 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 93,
  "projects-implementation"
};

static _KLbyte_stringGVKd_8 K11 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 33,
  "projects"
};

static _KLsimple_object_vectorGVKd_15 K12 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 61,
  &K13,
  &K14,
  &K15,
  &K16,
  &K17,
  &K18,
  &K19,
  &K20,
  &K21,
  &K22,
  &K23,
  &K24,
  &K25,
  &K26,
  &K27
};

static _KLused_libraryGVKe K13 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 1,
  (D) 1,
  (D) 128576373,
  &Kdfmc_namespace_libraryYdylan_userVdfmc_namespace,
  &KJtight_
};

static _KLused_libraryGVKe K14 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 1,
  (D) 1,
  (D) 128474645,
  &Kdfmc_macro_expander_libraryYdylan_userVdfmc_macro_expander,
  &KJtight_
};

static _KLused_libraryGVKe K15 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 1,
  (D) 1,
  (D) 129391765,
  &Kdfmc_browser_support_libraryYdylan_userVdfmc_browser_support,
  &KJtight_
};

static _KLused_libraryGVKe K16 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 1,
  (D) 1,
  (D) 128251253,
  &Kdfmc_common_libraryYdylan_userVdfmc_common,
  &KJtight_
};

static _KLused_libraryGVKe K17 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 1,
  (D) 1,
  (D) 128202741,
  &Kfile_source_records_libraryYdylan_userVfile_source_records,
  &KJtight_
};

static _KLused_libraryGVKe K18 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 1,
  (D) 1,
  (D) 128240373,
  &Ksource_records_libraryYdylan_userVsource_records,
  &KJtight_
};

static _KLused_libraryGVKe K19 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 9,
  (D) 5,
  (D) 128323797,
  &Ksystem_libraryYdylan_userVsystem,
  &KJtight_
};

static _KLused_libraryGVKe K20 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 9,
  (D) 5,
  (D) 128021525,
  &Kio_libraryYdylan_userVio,
  &KJtight_
};

static _KLused_libraryGVKe K21 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 9,
  (D) 5,
  (D) 128429365,
  &Kcollections_libraryYdylan_userVcollections,
  &KJtight_
};

static _KLused_libraryGVKe K22 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 9,
  (D) 5,
  (D) 128399765,
  &Kdood_libraryYdylan_userVdood,
  &KJtight_
};

static _KLused_libraryGVKe K23 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 9,
  (D) 5,
  (D) 128210613,
  &Krelease_info_libraryYdylan_userVrelease_info,
  &KJtight_
};

static _KLused_libraryGVKe K24 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 1,
  (D) 1,
  (D) 128587829,
  &Kbuild_system_libraryYdylan_userVbuild_system,
  &KJtight_
};

static _KLused_libraryGVKe K25 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 1,
  (D) 1,
  (D) 128291125,
  &Kmemory_manager_libraryYdylan_userVmemory_manager,
  &KJtight_
};

static _KLused_libraryGVKe K26 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 1,
  (D) 1,
  (D) 128002773,
  &Kcommon_dylan_libraryYdylan_userVcommon_dylan,
  &KJtight_
};

static _KLused_libraryGVKe K27 = {
  &KLused_libraryGVKeW /* wrapper */,
  (D) 9,
  (D) 5,
  (D) 128132821,
  &Kdylan_libraryYdylan_userVdylan,
  &KJtight_
};

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

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

static _KLsimple_object_vectorGVKd_1 K30 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 5,
  &KLsimple_conditionGVKe
};

static _KLsimple_object_vectorGVKd_10 K31 = {
  &KLsimple_object_vectorGVKdW /* wrapper */,
  (D) 41,
  &KLproject_warningGVprojects,
  &KLproject_serious_warningGVprojects,
  &KLproject_fatal_errorGVprojects,
  &KLbase_projectGYprojects_implementationVprojects,
  &KLprojectGVprojects,
  &KLsystem_project_not_usableGVprojects,
  &KLstring_template_projectGYprojects_implementationVprojects,
  &KLstring_template_source_recordGYprojects_implementationVprojects,
  &KLlid_projectGYlid_projectsVprojects,
  &KLproject_layoutGYlid_projectsVprojects
};

/* Code */


/* SYSTEM INIT CODE */

void _Init_projects__X_projects_library_for_system () {
  extern D KPresolve_symbolVKiI(D);
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJtight_);
    if (T0 != &KJtight_) {
      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);
      primitive_slot_value_setter(T0, &K18, 4);
      primitive_slot_value_setter(T0, &K19, 4);
      primitive_slot_value_setter(T0, &K20, 4);
      primitive_slot_value_setter(T0, &K21, 4);
      primitive_slot_value_setter(T0, &K22, 4);
      primitive_slot_value_setter(T0, &K23, 4);
      primitive_slot_value_setter(T0, &K24, 4);
      primitive_slot_value_setter(T0, &K25, 4);
      primitive_slot_value_setter(T0, &K26, 4);
      primitive_slot_value_setter(T0, &K27, 4);
    }
  }
  return;
}

/* USER INIT CODE */

void _Init_projects__X_projects_library_for_user () {
{
  _KLsimple_object_vectorGVKd_1 T0 = {&KLsimple_object_vectorGVKdW, (D) 5};
  D T1;

  Kinitialize_class_dispatch_keys_vectoredVKgI(&K31);
  T0.vector_element_[0] = &K1;
  T1 = KdoVKdMM0I(&Kaugment_class_known_jointVKiMM0, &K2, &T0);
  goto I0;
}
I0:

{
  D T0;

  T0 = &KPfalseVKi;
  goto I3;
}
I3:

{
  D T0;
  D T1;

  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/projects/projects-library.dylan:8
  T0 = primitive_runtime_module_handle();
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/projects/projects-library.dylan:8
  T1 = KPlibrary_version_checkVKeI(&Kprojects_libraryYdylan_userVprojects, T0);
  goto I4;
}
I4:

  return;
}


/* eof */
