1.1 --- a/templates/native.c Tue Nov 29 17:29:42 2016 +0100
1.2 +++ b/templates/native.c Tue Nov 29 22:09:52 2016 +0100
1.3 @@ -341,7 +341,7 @@
1.4
1.5 /* Allocate space for the list. */
1.6 __fragment *data = (__fragment *) __ALLOCATE(1, __FRAGMENT_SIZE(n));
1.7 - __attr attr = {0, .data=data};
1.8 + __attr attr = {0, .seqvalue=data};
1.9
1.10 /* The initial capacity is the same as the given size. */
1.11 data->size = 0;
1.12 @@ -354,7 +354,7 @@
1.13 __attr * const self = &__args[1];
1.14 __attr * const size = &__args[2];
1.15 /* self.__data__ interpreted as list */
1.16 - __fragment *data = __load_via_object(self->value, __pos___data__).data;
1.17 + __fragment *data = __load_via_object(self->value, __pos___data__).seqvalue;
1.18 /* size.__data__ interpreted as int */
1.19 unsigned int n = __load_via_object(size->value, __pos___data__).intvalue;
1.20
1.21 @@ -367,7 +367,7 @@
1.22 __attr * const self = &__args[1];
1.23 __attr * const value = &__args[2];
1.24 /* self.__data__ interpreted as list */
1.25 - __fragment *data = __load_via_object(self->value, __pos___data__).data;
1.26 + __fragment *data = __load_via_object(self->value, __pos___data__).seqvalue;
1.27 __fragment *newdata = data;
1.28 unsigned int size = data->size, capacity = data->capacity;
1.29 unsigned int n;
1.30 @@ -387,7 +387,7 @@
1.31
1.32 /* Replace the __data__ attribute if appropriate. */
1.33 if (newdata != data)
1.34 - __store_via_object(self->value, __pos___data__, ((__attr) {0, .data=newdata}));
1.35 + __store_via_object(self->value, __pos___data__, ((__attr) {0, .seqvalue=newdata}));
1.36 return __builtins___none_None;
1.37 }
1.38
1.39 @@ -396,8 +396,8 @@
1.40 __attr * const self = &__args[1];
1.41 __attr * const other = &__args[2];
1.42 /* self.__data__, other.__data__ interpreted as list */
1.43 - __fragment *data = __load_via_object(self->value, __pos___data__).data;
1.44 - __fragment *other_data = __load_via_object(other->value, __pos___data__).data;
1.45 + __fragment *data = __load_via_object(self->value, __pos___data__).seqvalue;
1.46 + __fragment *other_data = __load_via_object(other->value, __pos___data__).seqvalue;
1.47 __fragment *newdata = data;
1.48 unsigned int size = data->size, capacity = data->capacity;
1.49 unsigned int other_size = other_data->size;
1.50 @@ -418,7 +418,7 @@
1.51
1.52 /* Replace the __data__ attribute if appropriate. */
1.53 if (newdata != data)
1.54 - __store_via_object(self->value, __pos___data__, ((__attr) {0, .data=newdata}));
1.55 + __store_via_object(self->value, __pos___data__, ((__attr) {0, .seqvalue=newdata}));
1.56 return __builtins___none_None;
1.57 }
1.58
1.59 @@ -426,7 +426,7 @@
1.60 {
1.61 __attr * const self = &__args[1];
1.62 /* self.__data__ interpreted as fragment */
1.63 - unsigned int size = __load_via_object(self->value, __pos___data__).data->size;
1.64 + unsigned int size = __load_via_object(self->value, __pos___data__).seqvalue->size;
1.65
1.66 /* Return the new integer. */
1.67 return __new_int(size);
1.68 @@ -436,7 +436,7 @@
1.69 {
1.70 __attr * const self = &__args[1];
1.71
1.72 - return __load_via_object(self->value, __pos___data__).data->size ? __builtins___boolean_True : __builtins___boolean_False;
1.73 + return __load_via_object(self->value, __pos___data__).seqvalue->size ? __builtins___boolean_True : __builtins___boolean_False;
1.74 }
1.75
1.76 __attr __fn_native__list_element(__attr __args[])
1.77 @@ -444,7 +444,7 @@
1.78 __attr * const self = &__args[1];
1.79 __attr * const index = &__args[2];
1.80 /* self.__data__ interpreted as fragment */
1.81 - __attr *elements = __load_via_object(self->value, __pos___data__).data->attrs;
1.82 + __attr *elements = __load_via_object(self->value, __pos___data__).seqvalue->attrs;
1.83 /* index.__data__ interpreted as int */
1.84 int i = __load_via_object(index->value, __pos___data__).intvalue;
1.85
1.86 @@ -457,7 +457,7 @@
1.87 __attr * const index = &__args[2];
1.88 __attr * const value = &__args[3];
1.89 /* self.__data__ interpreted as fragment */
1.90 - __attr *elements = __load_via_object(self->value, __pos___data__).data->attrs;
1.91 + __attr *elements = __load_via_object(self->value, __pos___data__).seqvalue->attrs;
1.92 /* index.__data__ interpreted as int */
1.93 int i = __load_via_object(index->value, __pos___data__).intvalue;
1.94
1.95 @@ -470,7 +470,7 @@
1.96 {
1.97 __attr * const self = &__args[1];
1.98 /* self.__data__ interpreted as buffer */
1.99 - __fragment *data = __load_via_object(self->value, __pos___data__).data;
1.100 + __fragment *data = __load_via_object(self->value, __pos___data__).seqvalue;
1.101 unsigned int size = 0, i, j, n;
1.102 char *s, *o;
1.103