loader: build_module_importation invalidates the mmodule on errors
[nit.git] / c_src / nit.common.h
index ce5af57..c52f189 100644 (file)
@@ -15,8 +15,7 @@ long l;
 short int s;
 char c;
 double d;
-char* str;
-void* ptr;
+void* str;
 } nitattribute_t; /* general C type representing a Nit attribute. */
 struct class { int box_kind; nitmethod_t vft[]; }; /* general C type representing a Nit class. */
 struct type { int id; const char *name; int color; short int is_nullable; const struct types *resolution_table; int table_size; int type_table[]; }; /* general C type representing a Nit type. */
@@ -66,32 +65,37 @@ void show_backtrace(int) __attribute__ ((noreturn));
 extern int glob_argc;
 extern char **glob_argv;
 extern val *glob_sys;
-struct instance_kernel__Bool {
+struct instance_standard__NativeString {
+const struct type *type;
+const struct class *class;
+void* value;
+};
+struct instance_standard__Bool {
 const struct type *type;
 const struct class *class;
 short int value;
 };
-struct instance_kernel__Float {
+struct instance_standard__Float {
 const struct type *type;
 const struct class *class;
 double value;
 };
-struct instance_kernel__Int {
+struct instance_standard__Int {
 const struct type *type;
 const struct class *class;
 long value;
 };
-struct instance_kernel__Char {
+struct instance_standard__Char {
 const struct type *type;
 const struct class *class;
 char value;
 };
-struct instance_kernel__Pointer {
+struct instance_standard__Pointer {
 const struct type *type;
 const struct class *class;
 void* value;
 };
-struct instance_array__NativeArray {
+struct instance_standard__NativeArray {
 const struct type *type;
 const struct class *class;
 int length;