#include "run-time.h"

/* Typedefs for referenced classes */

typedef struct {
  D wrapper;
  D xep_;
  D function_signature_;
  D Pgf_cache_;
  D debug_name_;
  D generic_function_methods_;
  D discriminator_;
  D incremental_gf_module_;
  D incremental_gf_domain_info_;
  D incremental_gf_method_libraries_;
  D incremental_gf_properties_;
} _KLincremental_generic_functionGVKe;

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 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 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;
} _KLobjectGVKd;

typedef struct {
  D wrapper;
} _KLunboundGVKe;

typedef struct {
  D wrapper;
} _KLbooleanGVKd;

#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(1);
define__KLsimple_object_vectorGVKd(16);
define__KLsimple_object_vectorGVKd(2);
define__KLsimple_object_vectorGVKd(4);
define__KLsimple_object_vectorGVKd(0);

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

typedef struct {
  D wrapper;
  D xep_;
  D function_signature_;
  D Pgf_cache_;
  D debug_name_;
  D generic_function_methods_;
  D discriminator_;
} _KLsealed_generic_functionGVKe;

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

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

typedef struct {
  D wrapper;
} _KLfile_locatorGYlocatorsVsystem;

typedef struct {
  D wrapper;
  D outer_stream_;
  D private_stream_element_type_value_;
  D private_stream_direction_value_;
  D private_stream_lock_value_;
  D actual_stream_input_buffer_;
  D actual_stream_output_buffer_;
  D stream_shared_buffer_;
  D initial_position_;
  D current_position_;
  D final_position_;
  D stream_locator_;
  D accessor_;
} _KLfile_streamGYstreams_internalsVio;

#define  define__KLbyte_stringGVKd(nrepeated) \
  typedef struct { \
    D wrapper; \
    D size_; \
    char string_element_[nrepeated+1]; \
  } _KLbyte_stringGVKd_##nrepeated;
define__KLbyte_stringGVKd(6);
define__KLbyte_stringGVKd(9);
define__KLbyte_stringGVKd(7);
define__KLbyte_stringGVKd(13);
define__KLbyte_stringGVKd(15);
define__KLbyte_stringGVKd(47);
define__KLbyte_stringGVKd(5);

typedef struct {
  D wrapper;
  D signature_properties_;
  D signature_required_;
} _KLsignatureGVKe;

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 signature_properties_;
  D signature_required_;
  D signature_values_;
} _KLsignatureAvaluesGVKi;


/* Typedefs for defined classes */


/* Referenced object declarations */

D KPadd_methodVKnI (D, D, D);
extern _KLincremental_generic_functionGVKe Kmakefile_existsQYprojects_implementationVprojects;
extern _KLfunction_classGVKi KLincremental_generic_functionGVKe;
extern _KLclassGVKd KLfunction_classGVKi;
extern _KLclassGVKd KLclassGVKd;
extern _KLmm_wrapperGVKi_0 KLclassGVKdW;
extern _KLclassGVKd KLmm_wrapperGVKi;
extern _KLmm_wrapperGVKi_1 KLmm_wrapperGVKiW;
extern _KLmm_wrapperGVKi_0 KLfunction_classGVKiW;
extern _KLmm_wrapperGVKi_0 KLincremental_generic_functionGVKeW;
extern _KLlibraryGVKe Kuser_projects_libraryYdylan_userVuser_projects;
extern _KLclassGVKd KLlibraryGVKe;
extern _KLmm_wrapperGVKi_0 KLlibraryGVKeW;
extern _KLincremental_generic_functionGVKe Kgenerate_makefileYprojects_implementationVprojects;
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 KLsimple_object_vectorGVKd;
extern _KLmm_wrapperGVKi_0 KLsimple_object_vectorGVKdW;
extern _KLsimple_methodGVKe Kused_compilation_contextsYdfmc_project_compilationVdfmc_browser_support;
extern _KLfunction_classGVKi KLsimple_methodGVKe;
extern _KLmm_wrapperGVKi_0 KLsimple_methodGVKeW;
extern _KLincremental_generic_functionGVKe Ktype_for_copyVKd;
extern _KLsealed_generic_functionGVKe Kmap_as_oneVKi;
extern _KLclassGVKd KLsealed_generic_functionGVKe;
extern _KLmm_wrapperGVKi_0 KLsealed_generic_functionGVKeW;
extern _KLsimple_methodGVKe Kcompilation_context_projectYdfmc_project_compilationVdfmc_browser_support;
extern _KLempty_listGVKd KPempty_listVKi;
extern _KLclassGVKd KLempty_listGVKd;
extern _KLmm_wrapperGVKi_0 KLempty_listGVKdW;
extern _KLincremental_generic_functionGVKe Kproject_build_locationVprojects;
extern _KLincremental_generic_functionGVKe Kforward_iteration_protocolVKd;
extern _KLincremental_generic_functionGVKe Kproject_library_nameVprojects;
extern _KLsealed_generic_functionGVKe Kconvert_path_to_relativeVuser_projects;
extern _KLmm_wrapperGVKi_0 KLpairGVKdW;
extern _KLsymbolGVKd KJname_;
extern _KLclassGVKd KLsymbolGVKd;
extern _KLmm_wrapperGVKi_0 KLsymbolGVKdW;
extern _KLincremental_generic_functionGVKe KmakeVKd;
extern _KLclassGVKd KLfile_locatorGYlocatorsVsystem;
extern _KLmm_wrapperGVKi_0 KLfile_locatorGYlocatorsVsystemW;
extern _KLsymbolGVKd KJdirection_;
extern _KLsymbolGVKd KJoutput_;
extern _KLincremental_generic_functionGVKe Kopen_file_streamYstreams_protocolVcommon_dylan;
extern _KLclassGVKd KLfile_streamGYstreams_internalsVio;
extern _KLmm_wrapperGVKi_0 KLfile_streamGYstreams_internalsVioW;
D Kwrite_commentVuser_projectsI (D, D);
extern _KLincremental_generic_functionGVKe Kproject_lid_library_nameYlid_projectsVprojects;
D Ksave_single_valueVuser_projectsMM0I (D, D, D);
D Ksave_lid_infoVuser_projectsI (D, D, D, D);
extern _KLsimple_object_vectorGVKd_0 KPempty_vectorVKi;
extern _KLsealed_generic_functionGVKe Kcompilation_context_object_namesVdfmc_namespace;
extern _KLsimple_methodGVKe Ksave_list_valueVuser_projectsMM0;
D Ksave_list_valueVuser_projectsMM0I (D, D, D);
D Kall_c_librariesVuser_projectsI (D);
extern _KLincremental_generic_functionGVKe Kstream_openQYstreams_protocolVcommon_dylan;
extern _KLincremental_generic_functionGVKe KcloseYcommon_extensionsVcommon_dylan;
extern _KLclassGVKd KLbyte_stringGVKd;
extern _KLmm_wrapperGVKi_0 KLbyte_stringGVKdW;
extern _KLclassGVKd KLsignatureGVKe;
extern _KLmm_wrapperGVKi_0 KLsignatureGVKeW;
extern _KLclassGVKd KLlid_projectGYlid_projectsVprojects;
extern _KLmm_wrapperGVKi_0 KLlid_projectGYlid_projectsVprojectsW;
extern _KLsealed_generic_functionGVKe Kfile_existsQYfile_systemVsystem;
extern _KLclassGVKd KLsignatureAvaluesGVKi;
extern _KLmm_wrapperGVKi_0 KLsignatureAvaluesGVKiW;
extern _KLsimple_object_vectorGVKd_16 KDsignature_LbooleanG_typesVKi;
extern D Ddylan_makefileVuser_projects;

/* Defined object declarations */

extern _KLsimple_methodGVKe Kmakefile_existsQYprojects_implementationVprojectsMuser_projectsM0;
D Kmakefile_existsQYprojects_implementationVprojectsMuser_projectsM0I (D);
extern _KLsimple_methodGVKe Kgenerate_makefileYprojects_implementationVprojectsMuser_projectsM0;
D Kgenerate_makefileYprojects_implementationVprojectsMuser_projectsM0I (D);
static _KLsymbolGVKd KJsystem_;
static _KLbyte_stringGVKd_5 K7;
static _KLsymbolGVKd KJdirectory_;
static _KLbyte_stringGVKd_47 K9;
static _KLsymbolGVKd KJlibrary_;
static _KLsymbolGVKd KJfiles_;
static _KLsymbolGVKd KJused_projects_;
static _KLsymbolGVKd KJall_c_libraries_;
static _KLbyte_stringGVKd_15 K14;
static _KLbyte_stringGVKd_13 K15;
static _KLbyte_stringGVKd_5 K16;
static _KLbyte_stringGVKd_7 K17;
static _KLbyte_stringGVKd_9 K18;
static _KLbyte_stringGVKd_6 K19;
static _KLsignatureGVKe K20;
static _KLsimple_object_vectorGVKd_1 K21;
static _KLsignatureAvaluesGVKi K22;

/* Indirection variables */

static D IKJsystem_ = &KJsystem_;
static D IKJdirectory_ = &KJdirectory_;
static D IKJlibrary_ = &KJlibrary_;
static D IKJfiles_ = &KJfiles_;
static D IKJused_projects_ = &KJused_projects_;
static D IKJall_c_libraries_ = &KJall_c_libraries_;

/* Variables */


/* Objects */

_KLsimple_methodGVKe Kmakefile_existsQYprojects_implementationVprojectsMuser_projectsM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K22,
  &Kmakefile_existsQYprojects_implementationVprojectsMuser_projectsM0I
};

_KLsimple_methodGVKe Kgenerate_makefileYprojects_implementationVprojectsMuser_projectsM0 = {
  &KLsimple_methodGVKeW /* wrapper */,
  &xep_1,
  &K20,
  &Kgenerate_makefileYprojects_implementationVprojectsMuser_projectsM0I
};

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

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

static _KLsymbolGVKd KJdirectory_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K18
};

static _KLbyte_stringGVKd_47 K9 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 189,
  "This build file is generated, please don\'t edit"
};

static _KLsymbolGVKd KJlibrary_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K17
};

static _KLsymbolGVKd KJfiles_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K16
};

static _KLsymbolGVKd KJused_projects_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K15
};

static _KLsymbolGVKd KJall_c_libraries_ = {
  &KLsymbolGVKdW /* wrapper */,
  &K14
};

static _KLbyte_stringGVKd_15 K14 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 61,
  "all-c-libraries"
};

static _KLbyte_stringGVKd_13 K15 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 53,
  "used-projects"
};

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

static _KLbyte_stringGVKd_7 K17 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 29,
  "library"
};

static _KLbyte_stringGVKd_9 K18 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 37,
  "directory"
};

static _KLbyte_stringGVKd_6 K19 = {
  &KLbyte_stringGVKdW /* wrapper */,
  (D) 25,
  "system"
};

static _KLsignatureGVKe K20 = {
  &KLsignatureGVKeW /* wrapper */,
  (D) 44040197,
  &K21
};

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

static _KLsignatureAvaluesGVKi K22 = {
  &KLsignatureAvaluesGVKiW /* wrapper */,
  (D) 33555461,
  &K21,
  &KDsignature_LbooleanG_typesVKi
};

/* Code */

D Kmakefile_existsQYprojects_implementationVprojectsMuser_projectsM0I (D project_) {
  D build_;
  D make_locator_;
  D T4_0;
  _KLsimple_object_vectorGVKd_4 T5 = {&KLsimple_object_vectorGVKdW, (D) 17};

  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:8
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:10
  CONGRUENT_CALL_PROLOG(&Kproject_build_locationVprojects, 1);
  build_ = CONGRUENT_CALL1(project_);
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:12
  T5.vector_element_[0] = IKJdirectory_;
  T5.vector_element_[1] = build_;
  T5.vector_element_[2] = &KJname_;
  T5.vector_element_[3] = Ddylan_makefileVuser_projects;
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:12
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  make_locator_ = CONGRUENT_CALL2(&KLfile_locatorGYlocatorsVsystem, &T5);
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:15
  T4_0 = CALL1(&Kfile_existsQYfile_systemVsystem, make_locator_);
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:8
  MV_SET_COUNT(1);
  return(T4_0);
}

D Kgenerate_makefileYprojects_implementationVprojectsMuser_projectsM0I (D project_) {
  D T2;
  D build_;
  D T4;
  D T5;
  D T6;
  D T7;
  D T8;
  D T9;
  D T10T, T10;
  D T11;
  D T12;
  D location_;
  D name_;
  D T15;
  D T16;
  D T17;
  D make_locator_;
  D T19;
  D T20;
  D stream_;
  D T22;
  D T23;
  D T24;
  D T25;
  D T26;
  D T27;
  D info_;
  D T29;
  D T30;
  D Ustream_;
  D T32;
  D T33;
  D T34;
  D T35;
  D T36;
  D T37;
  D T38;
  D T39;
  D T40;
  D T41;
  _KLsimple_object_vectorGVKd_4 T42 = {&KLsimple_object_vectorGVKdW, (D) 17};
  _KLsimple_object_vectorGVKd_2 T43 = {&KLsimple_object_vectorGVKdW, (D) 9};

  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:18
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:19
  T36 = SLOT_VALUE_INITD(project_, 1);
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:21
  T2 = CALL1(&Kused_compilation_contextsYdfmc_project_compilationVdfmc_browser_support, T36);
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:21
  CONGRUENT_CALL_PROLOG(&Ktype_for_copyVKd, 1);
  T37 = CONGRUENT_CALL1(T2);
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:21
  T38 = CALL3(&Kmap_as_oneVKi, T37, &Kcompilation_context_projectYdfmc_project_compilationVdfmc_browser_support, T2);
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:22
  info_ = &KPempty_listVKi;
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:23
  CONGRUENT_CALL_PROLOG(&Kproject_build_locationVprojects, 1);
  build_ = CONGRUENT_CALL1(project_);
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
  CONGRUENT_CALL_PROLOG(&Kforward_iteration_protocolVKd, 1);
  T4 = CONGRUENT_CALL1(T38);
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
  T5 = T4;
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
  T6 = MV_GET_ELT(1);
;
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
  T7 = MV_GET_ELT(2);
;
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
  T8 = MV_GET_ELT(3);
;
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
  T9 = MV_GET_ELT(5);
;
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
  T10T = T5;
L0: ;
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
    T10 = T10T;
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
    T11 = CALL3(T8, T38, T10, T6);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
    if (T11 == &KPfalseVKi) {
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
      T12 = CALL2(T9, T38, T10);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:25
      location_ = CALL1(&Kproject_build_locationVprojects, T12);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:26
      name_ = CALL1(&Kproject_library_nameVprojects, T12);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:28
      if (location_ != &KPfalseVKi) {
        // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:31
        CONGRUENT_CALL_PROLOG(&Kconvert_path_to_relativeVuser_projects, 2);
        T15 = CONGRUENT_CALL2(location_, build_);
        T16 = T15;
      } else {
        T16 = IKJsystem_;
      }
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:28
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:28
      T30 = info_;
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:28
      T39 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:28
      SLOT_VALUE_SETTER(T16, T39, 0);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:28
      SLOT_VALUE_SETTER(T30, T39, 1);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:27
      T40 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:27
      SLOT_VALUE_SETTER(&K7, T40, 0);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:27
      SLOT_VALUE_SETTER(T39, T40, 1);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:27
      T41 = primitive_object_allocate_filled(3,&KLpairGVKdW,2,&KPunboundVKi,0,0,&KPunboundVKi);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:27
      SLOT_VALUE_SETTER(name_, T41, 0);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:27
      SLOT_VALUE_SETTER(T40, T41, 1);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:27
      info_ = T41;
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
      T17 = CALL2(T7, T38, T10);
      // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
      T10T = T17;
      goto L0;
    }
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:24
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:36
  T42.vector_element_[0] = IKJdirectory_;
  T42.vector_element_[1] = build_;
  T42.vector_element_[2] = &KJname_;
  T42.vector_element_[3] = Ddylan_makefileVuser_projects;
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:36
  CONGRUENT_CALL_PROLOG(&KmakeVKd, 2);
  make_locator_ = CONGRUENT_CALL2(&KLfile_locatorGYlocatorsVsystem, &T42);
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
  Ustream_ = &KPfalseVKi;
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
  ENTER_UNWIND_FRAME(T19);
  if (!nlx_setjmp(FRAME_DEST(T19))) {
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
    T43.vector_element_[0] = &KJdirection_;
    T43.vector_element_[1] = &KJoutput_;
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
    CONGRUENT_CALL_PROLOG(&Kopen_file_streamYstreams_protocolVcommon_dylan, 2);
    T20 = CONGRUENT_CALL2(make_locator_, &T43);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
    Ustream_ = T20;
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
    T35 = Ustream_;
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
    primitive_type_check(T35, &KLfile_streamGYstreams_internalsVio);
    stream_ = T35;
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:40
    Kwrite_commentVuser_projectsI(stream_, &K9);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:41
    CONGRUENT_CALL_PROLOG(&Kproject_lid_library_nameYlid_projectsVprojects, 1);
    T22 = CONGRUENT_CALL1(project_);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:41
    Ksave_single_valueVuser_projectsMM0I(stream_, IKJlibrary_, T22);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:42
    Ksave_lid_infoVuser_projectsI(project_, stream_, &KPempty_vectorVKi, &KPtrueVKi);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:44
    CONGRUENT_CALL_PROLOG(&Kcompilation_context_object_namesVdfmc_namespace, 1);
    T23 = CONGRUENT_CALL1(T36);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:43
    CALL3(&Ksave_list_valueVuser_projectsMM0, stream_, IKJfiles_, T23);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:45
    T29 = info_;
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:45
    Ksave_list_valueVuser_projectsMM0I(stream_, IKJused_projects_, T29);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:46
    T24 = Kall_c_librariesVuser_projectsI(project_);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:46
    T25 = Ksave_list_valueVuser_projectsMM0I(stream_, IKJall_c_libraries_, T24);
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
    FALL_THROUGH_UNWIND(T25);
  }
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
  T33 = Ustream_;
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
  if (T33 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
    T34 = Ustream_;
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
    T26 = CALL1(&Kstream_openQYstreams_protocolVcommon_dylan, T34);
    T27 = T26;
  } else {
    T27 = &KPfalseVKi;
  }
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
  if (T27 != &KPfalseVKi) {
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
    T32 = Ustream_;
    // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
    CALL1(&KcloseYcommon_extensionsVcommon_dylan, T32);
  }
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:39
  CONTINUE_UNWIND();
  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:18
  return(T25);
}


/* SYSTEM INIT CODE */

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

    T0 = KPresolve_symbolVKiI(&KJsystem_);
    if (T0 != &KJsystem_) {
      IKJsystem_ = T0;
    }
  }
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJdirectory_);
    if (T0 != &KJdirectory_) {
      IKJdirectory_ = T0;
    }
  }
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJlibrary_);
    if (T0 != &KJlibrary_) {
      IKJlibrary_ = T0;
    }
  }
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJfiles_);
    if (T0 != &KJfiles_) {
      IKJfiles_ = T0;
    }
  }
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJused_projects_);
    if (T0 != &KJused_projects_) {
      IKJused_projects_ = T0;
    }
  }
  {
    D T0;

    T0 = KPresolve_symbolVKiI(&KJall_c_libraries_);
    if (T0 != &KJall_c_libraries_) {
      IKJall_c_libraries_ = T0;
    }
  }
  return;
}

/* USER INIT CODE */

void _Init_user_projects__X_build_for_user () {
{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:8
  T0 = KPadd_methodVKnI(&Kmakefile_existsQYprojects_implementationVprojects, &Kmakefile_existsQYprojects_implementationVprojectsMuser_projectsM0, &Kuser_projects_libraryYdylan_userVuser_projects);
  goto I2;
}
I2:

{
  D T0;

  // /Users/bruce/Development/dylan/opendylan/sources/project-manager/user-projects/build.dylan:18
  T0 = KPadd_methodVKnI(&Kgenerate_makefileYprojects_implementationVprojects, &Kgenerate_makefileYprojects_implementationVprojectsMuser_projectsM0, &Kuser_projects_libraryYdylan_userVuser_projects);
  goto I5;
}
I5:

  return;
}


/* eof */
