1 #include "nit.common.h"
2 extern const int COLOR_cpp__FFILanguageAssignationPhase___64dcpp_language
;
3 val
* cpp__FFILanguageAssignationPhase__cpp_language(val
* self
);
4 void cpp__FFILanguageAssignationPhase__cpp_language_61d(val
* self
, val
* p0
);
5 extern const int COLOR_cpp__AModule___64dcpp_file
;
6 val
* cpp__AModule__cpp_file(val
* self
);
7 void cpp__AModule__cpp_file_61d(val
* self
, val
* p0
);
8 extern const int COLOR_cpp__AModule___64dcpp_compiler_options
;
9 val
* cpp__AModule__cpp_compiler_options(val
* self
);
10 void cpp__AModule__cpp_compiler_options_61d(val
* self
, val
* p0
);
11 extern const int COLOR_cpp__AExternCodeBlock__is_cpp
;
12 short int cpp__CPPLanguage__identify_language(val
* self
, val
* p0
);
13 extern const int COLOR_cpp__AModule__cpp_file
;
14 val
* NEW_cpp__CPPCompilationUnit(const struct type
* type
);
15 extern const struct type type_cpp__CPPCompilationUnit
;
16 extern const int COLOR_cpp__CPPCompilationUnit__init
;
17 extern const int COLOR_cpp__AModule__cpp_file_61d
;
18 extern const int COLOR_cpp__AExternCodeBlock__is_cpp_header
;
19 extern const int COLOR_c_tools__CCompilationUnit__header_custom
;
20 extern const int COLOR_parser_nodes__ANode__location
;
21 extern const int COLOR_c__Location__as_line_pragma
;
22 extern const int COLOR_template__Template__add
;
23 extern const int COLOR_ffi_base__AExternCodeBlock__code
;
24 extern const int COLOR_cpp__AExternCodeBlock__is_cpp_body
;
25 extern const int COLOR_c_tools__CCompilationUnit__body_custom
;
26 void cpp__CPPLanguage__compile_module_block(val
* self
, val
* p0
, val
* p1
, val
* p2
);
27 extern const int COLOR_modelbuilder__AModule__mmodule
;
28 extern const int COLOR_parser_nodes__ANode__parent
;
29 extern const struct type type_parser_nodes__AClassdef
;
30 extern const int COLOR_modelize_class__AClassdef__mclass
;
31 extern const int COLOR_model__MClass__mclass_type
;
32 extern const int COLOR_modelize_property__APropdef__mpropdef
;
33 extern const int COLOR_model__MPropDef__mproperty
;
34 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
35 extern const int COLOR_nitni_utilities__Object__long_signature
;
36 extern const int COLOR_nitni_utilities__Object__internal_call_context
;
37 extern const int COLOR_nitni_utilities__MMethod__build_csignature
;
38 extern const int COLOR_c_tools__CCompilationUnit__body_decl
;
39 val
* NEW_array__Array(const struct type
* type
);
40 extern const struct type type_array__Arraykernel__Object
;
41 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
42 extern const struct type type_array__NativeArraykernel__Object
;
43 extern const int COLOR_array__Array__with_native
;
44 extern const int COLOR_string__Object__to_s
;
45 val
* NEW_c__ExternCFunction(const struct type
* type
);
46 extern const struct type type_c__ExternCFunction
;
47 extern const int COLOR_c__ExternCFunction__init
;
48 extern const int COLOR_c_tools__CFunction__exprs
;
49 extern const int COLOR_cpp__Object__cpp_call_context
;
50 extern const int COLOR_nitni_utilities__MMethod__build_ccall
;
51 extern const int COLOR_c_tools__CCompilationUnit__add_exported_function
;
52 extern const int COLOR_c_tools__CCompilationUnit__header_decl
;
53 val
* NEW_c_tools__CFunction(const struct type
* type
);
54 extern const struct type type_c_tools__CFunction
;
55 extern const int COLOR_c_tools__CFunction__init
;
56 extern const int COLOR_model__MMethod__is_init
;
57 extern const int COLOR_cpp__Object__to_cpp_call_context
;
58 extern const int COLOR_nitni_utilities__CallContext__name_mtype
;
59 extern const int COLOR_model__MClassType__mclass
;
60 extern const int COLOR_extern_classes__MClass__ftype
;
61 extern const struct type type_cpp__ForeignCppType
;
62 extern const int COLOR_model__MMethodDef__msignature
;
63 extern const int COLOR_model__MSignature__mparameters
;
64 extern const int COLOR_abstract_collection__Collection__iterator
;
65 extern const int COLOR_abstract_collection__Iterator__is_ok
;
66 extern const int COLOR_abstract_collection__Iterator__item
;
67 extern const int COLOR_model__MParameter__name
;
68 extern const int COLOR_model__MParameter__mtype
;
69 extern const int COLOR_abstract_collection__Iterator__next
;
70 extern const int COLOR_c_tools__CCompilationUnit__add_local_function
;
71 extern const int COLOR_c_tools__CFunction__decls
;
72 void cpp__CPPLanguage__compile_extern_method(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
73 void cpp__CPPLanguage__compile_extern_class(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
74 val
* NEW_cpp__ForeignCppType(const struct type
* type
);
75 extern const int COLOR_cpp__ForeignCppType__init
;
76 val
* cpp__CPPLanguage__get_ftype(val
* self
, val
* p0
, val
* p1
);
77 extern const int COLOR_mmodule__MModule__name
;
78 extern const int COLOR_cpp__CPPCompilationUnit__write_to_files
;
79 extern const int COLOR_ffi_base__AModule__ffi_files
;
80 extern const int COLOR_abstract_collection__SimpleCollection__add
;
81 extern const int COLOR_c__AModule__c_linker_options
;
82 extern const int COLOR_c__AModule__c_linker_options_61d
;
83 void cpp__CPPLanguage__compile_to_files(val
* self
, val
* p0
, val
* p1
);
84 extern const int COLOR_cpp__NitniCallback__compile_callback_to_cpp
;
85 void cpp__CPPLanguage__compile_callback(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
86 extern const int COLOR_ffi_base__AExternCodeBlock__language_name
;
87 extern const int COLOR_ffi_base__AExternCodeBlock__language_name_lowered
;
88 extern const int COLOR_kernel__Object___61d_61d
;
89 extern const int COLOR_string__AbstractString__has_prefix
;
90 short int cpp__AExternCodeBlock__is_cpp(val
* self
);
91 short int cpp__AExternCodeBlock__is_cpp_body(val
* self
);
92 short int cpp__AExternCodeBlock__is_cpp_header(val
* self
);
93 extern const int COLOR_array__Array__with_capacity
;
94 extern const int COLOR_nitni_base__AModule__cname
;
95 extern const int COLOR_string__AbstractString__to_upper
;
96 extern const struct type type_array__Arraystring__String
;
97 extern const int COLOR_array__Array__init
;
98 extern const int COLOR_ffi_base__CCompilationUnit__write_header_to_file
;
99 extern const struct type type_array__NativeArraystring__String
;
100 extern const int COLOR_ffi_base__CCompilationUnit__write_body_to_file
;
101 extern const int COLOR_c_tools__CCompilationUnit__files
;
102 val
* NEW_cpp__ExternCppFile(const struct type
* type
);
103 extern const struct type type_cpp__ExternCppFile
;
104 extern const int COLOR_cpp__ExternCppFile__init
;
105 val
* cpp__CPPCompilationUnit__write_to_files(val
* self
, val
* p0
, val
* p1
);
106 extern const int COLOR_c_tools__CCompilationUnit__init
;
107 void cpp__CPPCompilationUnit__init(val
* self
);
108 extern const int COLOR_cpp__ExternCppFile___64damodule
;
109 val
* cpp__ExternCppFile__amodule(val
* self
);
110 void cpp__ExternCppFile__amodule_61d(val
* self
, val
* p0
);
111 extern const int COLOR_ffi_base__ExternFile__init
;
112 extern const int COLOR_cpp__ExternCppFile__amodule_61d
;
113 void cpp__ExternCppFile__init(val
* self
, val
* p0
, val
* p1
);
114 extern const int COLOR_ffi_base__ExternFile__filename
;
115 extern const int COLOR_file__String__basename
;
116 val
* cpp__ExternCppFile__makefile_rule_name(val
* self
);
117 extern const int COLOR_cpp__ExternCppFile__amodule
;
118 extern const int COLOR_cpp__AModule__cpp_compiler_options
;
119 val
* cpp__ExternCppFile__makefile_rule_content(val
* self
);
120 extern const int COLOR_cpp__ForeignCppType___64dcpp_type
;
121 val
* cpp__ForeignCppType__cpp_type(val
* self
);
122 void cpp__ForeignCppType__cpp_type_61d(val
* self
, val
* p0
);
123 extern const int COLOR_ffi_base__ForeignType__init
;
124 extern const int COLOR_cpp__ForeignCppType__cpp_type_61d
;
125 void cpp__ForeignCppType__init(val
* self
, val
* p0
);
126 void cpp__NitniCallback__compile_callback_to_cpp(val
* self
, val
* p0
, val
* p1
);
127 val
* NEW_cpp__CppCallContext(const struct type
* type
);
128 extern const struct type type_cpp__CppCallContext
;
129 extern const int COLOR_cpp__CppCallContext__init
;
130 val
* cpp__Object__cpp_call_context(val
* self
);
131 val
* NEW_cpp__ToCppCallContext(const struct type
* type
);
132 extern const struct type type_cpp__ToCppCallContext
;
133 extern const int COLOR_cpp__ToCppCallContext__init
;
134 val
* cpp__Object__to_cpp_call_context(val
* self
);
135 val
* NEW_cpp__FromCppCallContext(const struct type
* type
);
136 extern const struct type type_cpp__FromCppCallContext
;
137 extern const int COLOR_cpp__FromCppCallContext__init
;
138 val
* cpp__Object__from_cpp_call_context(val
* self
);
139 extern const int COLOR_nitni_callbacks__MExplicitCall__mproperty
;
140 extern const struct type type_model__MMethod
;
141 extern const int COLOR_nitni_callbacks__MExplicitCall__recv_mtype
;
142 extern const int COLOR_nitni_utilities__Object__short_signature
;
143 extern const int COLOR_cpp__Object__from_cpp_call_context
;
144 void cpp__MExplicitCall__compile_callback_to_cpp(val
* self
, val
* p0
, val
* p1
);
145 extern const struct type type_model__MClassType
;
146 extern const int COLOR_cpp__ForeignCppType__cpp_type
;
147 extern const int COLOR_nitni_base__MType__cname
;
148 val
* cpp__CppCallContext__name_mtype(val
* self
, val
* p0
);
149 extern const int COLOR_nitni_utilities__CallContext__init
;
150 void cpp__CppCallContext__init(val
* self
);
151 val
* cpp__ToCppCallContext__cast_to(val
* self
, val
* p0
, val
* p1
);
152 void cpp__ToCppCallContext__init(val
* self
);
153 val
* cpp__FromCppCallContext__cast_from(val
* self
, val
* p0
, val
* p1
);
154 void cpp__FromCppCallContext__init(val
* self
);