c_src: update for new ffi syntax
[nit.git] / c_src / modelbuilder.sep.0.h
index b3229c4..4217106 100644 (file)
@@ -18,7 +18,6 @@ extern const struct type type_array__Arrayopts__Option;
 val* NEW_array__NativeArray(int length, const struct type* type);
 extern const struct type type_array__NativeArrayopts__Option;
 extern const int COLOR_array__Array__with_native;
-void CHECK_NEW_array__Array(val*);
 extern const int COLOR_opts__OptionContext__add_option;
 void modelbuilder__ToolContext__init(val* self);
 extern const int COLOR_modelbuilder__ToolContext__modelbuilder_real;
@@ -26,6 +25,14 @@ val* modelbuilder__ToolContext__modelbuilder(val* self);
 extern const int COLOR_modelbuilder__ToolContext___64dmodelbuilder_real;
 val* modelbuilder__ToolContext__modelbuilder_real(val* self);
 void modelbuilder__ToolContext__modelbuilder_real_61d(val* self, val* p0);
+extern const int COLOR_phase__ToolContext__phases_list;
+extern const int COLOR_abstract_collection__Collection__iterator;
+extern const int COLOR_abstract_collection__Iterator__is_ok;
+extern const int COLOR_abstract_collection__Iterator__item;
+extern const int COLOR_modelbuilder__Phase__process_mainmodule;
+extern const int COLOR_abstract_collection__Iterator__next;
+void modelbuilder__ToolContext__run_global_phases(val* self, val* p0);
+void modelbuilder__Phase__process_mainmodule(val* self, val* p0);
 extern const int COLOR_modelbuilder__ModelBuilder___64dmodel;
 val* modelbuilder__ModelBuilder__model(val* self);
 void modelbuilder__ModelBuilder__model_61d(val* self, val* p0);
@@ -33,19 +40,15 @@ extern const int COLOR_modelbuilder__ModelBuilder___64dtoolcontext;
 val* modelbuilder__ModelBuilder__toolcontext(val* self);
 void modelbuilder__ModelBuilder__toolcontext_61d(val* self, val* p0);
 extern const int COLOR_modelbuilder__ModelBuilder__model;
-extern const int COLOR_model_base__Model__mmodules;
+extern const int COLOR_mmodule__Model__mmodules;
 extern const int COLOR_array__Collection__to_a;
-extern const int COLOR_model_base__Model__mmodule_importation_hierarchy;
+extern const int COLOR_mmodule__Model__mmodule_importation_hierarchy;
 extern const int COLOR_sorter__AbstractSorter__sort;
 extern const struct type type_array__Arrayparser_nodes__AModule;
 extern const int COLOR_array__Array__init;
-extern const int COLOR_abstract_collection__Collection__iterator;
-extern const int COLOR_abstract_collection__Iterator__is_ok;
-extern const int COLOR_abstract_collection__Iterator__item;
 extern const int COLOR_modelbuilder__ModelBuilder__mmodule2nmodule;
 extern const int COLOR_abstract_collection__MapRead___91d_93d;
 extern const int COLOR_abstract_collection__SimpleCollection__add;
-extern const int COLOR_abstract_collection__Iterator__next;
 extern const int COLOR_modelbuilder__ModelBuilder__toolcontext;
 extern const int COLOR_phase__ToolContext__run_phases;
 extern const int COLOR_opts__Option__value;
@@ -71,18 +74,20 @@ extern const int COLOR_file__String__dirname;
 extern const int COLOR_file__String__simplify_path;
 void modelbuilder__ModelBuilder__init(val* self, val* p0, val* p1);
 extern const int COLOR_time__Object__get_time;
-extern const struct type type_array__Arraymodel_base__MModule;
+val* NEW_array__ArraySet(const struct type* type);
+extern const struct type type_array__ArraySetmmodule__MModule;
+extern const int COLOR_array__ArraySet__init;
 extern const int COLOR_modelbuilder__ModelBuilder__load_module;
 extern const int COLOR_modelbuilder__AModule__mmodule;
 extern const struct type type_array__NativeArraykernel__Object;
 extern const int COLOR_toolcontext__ToolContext__check_errors;
 val* modelbuilder__ModelBuilder__parse(val* self, val* p0);
 extern const int COLOR_model__Model__get_mclasses_by_name;
-extern const int COLOR_model_base__MModule__in_importation;
+extern const int COLOR_mmodule__MModule__in_importation;
 extern const int COLOR_model__MClass__intro_mmodule;
 extern const int COLOR_poset__POSetElement___60d_61d;
 extern const int COLOR_model__MClass__visibility;
-extern const int COLOR_model_base__MModule__is_visible;
+extern const int COLOR_mmodule__MModule__is_visible;
 extern const int COLOR_model__MClass__full_name;
 extern const int COLOR_modelbuilder__ModelBuilder__error;
 val* modelbuilder__ModelBuilder__try_get_mclass_by_name(val* self, val* p0, val* p1, val* p2);
@@ -107,68 +112,94 @@ val* modelbuilder__ModelBuilder__try_get_mproperty_by_name(val* self, val* p0, v
 extern const int COLOR_modelbuilder__ModelBuilder___64dpaths;
 val* modelbuilder__ModelBuilder__paths(val* self);
 void modelbuilder__ModelBuilder__paths_61d(val* self, val* p0);
-extern const int COLOR_model_base__Model__get_mmodules_by_name;
 extern const struct type type_array__Arraystring__String;
-extern const int COLOR_model_base__MModule__location;
-extern const int COLOR_location__Location__file;
-extern const int COLOR_location__SourceFile__filename;
-extern const int COLOR_file__String__basename;
-extern const int COLOR_model_base__MModule__name;
-extern const int COLOR_kernel__Object___33d_61d;
-extern const int COLOR_model_base__MModule__direct_owner;
-extern const int COLOR_kernel__Object___61d_61d;
+extern const int COLOR_mmodule__MModule__mgroup;
+extern const int COLOR_mproject__MGroup__filepath;
+extern const int COLOR_string__AbstractString__has_suffix;
 extern const int COLOR_string__String___43d;
+extern const int COLOR_modelbuilder__ModelBuilder__get_mgroup;
+extern const int COLOR_mproject__MGroup__parent;
+extern const int COLOR_mproject__MGroup__mproject;
+extern const int COLOR_mproject__MProject__root;
+extern const int COLOR_file__String__join_path;
 extern const int COLOR_abstract_collection__Collection__has;
+extern const int COLOR_kernel__Object___33d_61d;
 extern const int COLOR_modelbuilder__ModelBuilder__module_absolute_path;
 extern const int COLOR_string__Collection__join;
 val* modelbuilder__ModelBuilder__get_mmodule_by_name(val* self, val* p0, val* p1, val* p2);
-extern const int COLOR_string__AbstractString__has_prefix;
+extern const int COLOR_modelbuilder__ModelBuilder___64didentified_files;
+val* modelbuilder__ModelBuilder__identified_files(val* self);
+void modelbuilder__ModelBuilder__identified_files_61d(val* self, val* p0);
+extern const int COLOR_toolcontext__ToolContext__error;
+extern const int COLOR_file__String__basename;
+extern const int COLOR_modelbuilder__ModelBuilder__identified_files;
+extern const int COLOR_abstract_collection__MapRead__has_key;
+val* NEW_mproject__MProject(const struct type* type);
+extern const struct type type_mproject__MProject;
+extern const int COLOR_mproject__MProject__init;
+val* NEW_mproject__MGroup(const struct type* type);
+extern const struct type type_mproject__MGroup;
+extern const int COLOR_mproject__MGroup__init;
+extern const int COLOR_mproject__MGroup__filepath_61d;
+extern const int COLOR_mproject__MProject__root_61d;
+val* NEW_modelbuilder__ModulePath(const struct type* type);
+extern const struct type type_modelbuilder__ModulePath;
+extern const int COLOR_modelbuilder__ModulePath__init;
+extern const int COLOR_abstract_collection__Map___91d_93d_61d;
+val* modelbuilder__ModelBuilder__identify_file(val* self, val* p0);
+extern const int COLOR_modelbuilder__ModelBuilder___64dmgroups;
+val* modelbuilder__ModelBuilder__mgroups(val* self);
+void modelbuilder__ModelBuilder__mgroups_61d(val* self, val* p0);
+extern const int COLOR_modelbuilder__ModelBuilder__mgroups;
+extern const int COLOR_mproject__MGroup__full_name;
+val* modelbuilder__ModelBuilder__get_mgroup(val* self, val* p0);
 extern const int COLOR_file__Object__getcwd;
-extern const int COLOR_file__String__join_path;
 val* modelbuilder__ModelBuilder__module_absolute_path(val* self, val* p0);
-extern const int COLOR_modelbuilder__ModelBuilder___64dloaded_nmodules;
-val* modelbuilder__ModelBuilder__loaded_nmodules(val* self);
-void modelbuilder__ModelBuilder__loaded_nmodules_61d(val* self, val* p0);
 extern const int COLOR_file__String__file_extension;
-extern const int COLOR_toolcontext__ToolContext__error;
-extern const int COLOR_modelbuilder__ModelBuilder__loaded_nmodules;
-extern const int COLOR_abstract_collection__MapRead__keys;
 val* NEW_file__IFStream(const struct type* type);
 extern const struct type type_file__IFStream;
 extern const int COLOR_file__IFStream__open;
-void CHECK_NEW_file__IFStream(val*);
 val* NEW_lexer__Lexer(const struct type* type);
 extern const struct type type_lexer__Lexer;
 val* NEW_location__SourceFile(const struct type* type);
 extern const struct type type_location__SourceFile;
 extern const int COLOR_location__SourceFile__init;
-void CHECK_NEW_location__SourceFile(val*);
 extern const int COLOR_lexer__Lexer__init;
-void CHECK_NEW_lexer__Lexer(val*);
 val* NEW_parser__Parser(const struct type* type);
 extern const struct type type_parser__Parser;
 extern const int COLOR_parser__Parser__init;
-void CHECK_NEW_parser__Parser(val*);
 extern const int COLOR_parser__Parser__parse;
 extern const int COLOR_stream__IOS__close;
 extern const int COLOR_parser_nodes__Start__n_base;
 extern const int COLOR_parser_nodes__Start__n_eof;
 extern const struct type type_parser_nodes__AError;
 extern const int COLOR_lexer__AError__message;
+val* modelbuilder__ModelBuilder__load_module_ast(val* self, val* p0);
+extern const int COLOR_modelbuilder__ModelBuilder__identify_file;
+extern const int COLOR_modelbuilder__ModulePath__mmodule;
+extern const int COLOR_modelbuilder__ModelBuilder__load_module_ast;
+extern const int COLOR_modelbuilder__ModulePath__mgroup;
+extern const int COLOR_modelbuilder__ModulePath__name;
+extern const int COLOR_modelbuilder__ModelBuilder__build_a_mmodule;
+extern const int COLOR_modelbuilder__ModulePath__mmodule_61d;
+val* modelbuilder__ModelBuilder__load_module(val* self, val* p0);
+val* NEW_mmodule__MModule(const struct type* type);
+extern const struct type type_mmodule__MModule;
+extern const int COLOR_parser_nodes__ANode__location;
+extern const int COLOR_mmodule__MModule__init;
+extern const int COLOR_modelbuilder__AModule__mmodule_61d;
+extern const int COLOR_modelbuilder__ModelBuilder__nmodules;
+extern const struct type type_array__Arraymmodule__MModule;
+extern const int COLOR_model_base__Object__intrude_visibility;
+extern const int COLOR_mmodule__MModule__set_visibility_for;
+extern const int COLOR_mmodule__MModule__set_imported_mmodules;
+val* modelbuilder__ModelBuilder__load_rt_module(val* self, val* p0, val* p1, val* p2);
 extern const int COLOR_parser_nodes__AModule__n_moduledecl;
 extern const int COLOR_parser_nodes__AModuledecl__n_name;
 extern const int COLOR_parser_nodes__AModuleName__n_id;
 extern const int COLOR_parser_nodes__Token__text;
-val* NEW_model_base__MModule(const struct type* type);
-extern const struct type type_model_base__MModule;
-extern const int COLOR_parser_nodes__ANode__location;
-extern const int COLOR_model_base__MModule__init;
-void CHECK_NEW_model_base__MModule(val*);
-extern const int COLOR_modelbuilder__AModule__mmodule_61d;
-extern const int COLOR_modelbuilder__ModelBuilder__nmodules;
-extern const int COLOR_abstract_collection__Map___91d_93d_61d;
 extern const int COLOR_modelbuilder__ModelBuilder__build_module_importation;
-val* modelbuilder__ModelBuilder__load_module(val* self, val* p0, val* p1);
+val* modelbuilder__ModelBuilder__build_a_mmodule(val* self, val* p0, val* p1, val* p2);
 extern const int COLOR_modelbuilder__AModule__is_importation_done;
 extern const int COLOR_modelbuilder__AModule__is_importation_done_61d;
 extern const int COLOR_parser_nodes__AModule__n_imports;
@@ -179,9 +210,8 @@ extern const int COLOR_modelbuilder__AStdImport__mmodule_61d;
 extern const int COLOR_parser_nodes__AStdImport__n_visibility;
 extern const int COLOR_modelbuilder__AVisibility__mvisibility;
 extern const int COLOR_model_base__Object__protected_visibility;
-extern const int COLOR_model_base__MModule__set_visibility_for;
+extern const int COLOR_kernel__Object___61d_61d;
 extern const int COLOR_model_base__Object__public_visibility;
-extern const int COLOR_model_base__MModule__set_imported_mmodules;
 void modelbuilder__ModelBuilder__build_module_importation(val* self, val* p0);
 extern const int COLOR_modelbuilder__ModelBuilder___64dnmodules;
 val* modelbuilder__ModelBuilder__nmodules(val* self);
@@ -196,6 +226,21 @@ void modelbuilder__ModelBuilder__warning(val* self, val* p0, val* p1);
 extern const int COLOR_model__MModule__try_get_primitive_method;
 extern const int COLOR_toolcontext__ToolContext__fatal_error;
 val* modelbuilder__ModelBuilder__force_get_primitive_method(val* self, val* p0, val* p1, val* p2, val* p3);
+extern const int COLOR_modelbuilder__ModulePath___64dname;
+val* modelbuilder__ModulePath__name(val* self);
+void modelbuilder__ModulePath__name_61d(val* self, val* p0);
+extern const int COLOR_modelbuilder__ModulePath___64dfilepath;
+val* modelbuilder__ModulePath__filepath(val* self);
+void modelbuilder__ModulePath__filepath_61d(val* self, val* p0);
+extern const int COLOR_modelbuilder__ModulePath___64dmgroup;
+val* modelbuilder__ModulePath__mgroup(val* self);
+void modelbuilder__ModulePath__mgroup_61d(val* self, val* p0);
+extern const int COLOR_modelbuilder__ModulePath___64dmmodule;
+val* modelbuilder__ModulePath__mmodule(val* self);
+void modelbuilder__ModulePath__mmodule_61d(val* self, val* p0);
+extern const int COLOR_modelbuilder__ModulePath__filepath;
+val* modelbuilder__ModulePath__to_s(val* self);
+void modelbuilder__ModulePath__init(val* self, val* p0, val* p1, val* p2);
 extern const int COLOR_modelbuilder__AStdImport___64dmmodule;
 val* modelbuilder__AStdImport__mmodule(val* self);
 void modelbuilder__AStdImport__mmodule_61d(val* self, val* p0);
@@ -206,7 +251,6 @@ extern const int COLOR_modelbuilder__AModule___64dis_importation_done;
 short int modelbuilder__AModule__is_importation_done(val* self);
 void modelbuilder__AModule__is_importation_done_61d(val* self, short int p0);
 val* modelbuilder__AVisibility__mvisibility(val* self);
-extern const int COLOR_model_base__Object__intrude_visibility;
 val* modelbuilder__AIntrudeVisibility__mvisibility(val* self);
 val* modelbuilder__APublicVisibility__mvisibility(val* self);
 val* modelbuilder__AProtectedVisibility__mvisibility(val* self);