1.1 --- a/templates/progops.c Thu Jan 19 19:23:39 2017 +0100
1.2 +++ b/templates/progops.c Thu Jan 19 23:33:10 2017 +0100
1.3 @@ -30,8 +30,8 @@
1.4 __attr __new(const __table * table, __ref cls, size_t size)
1.5 {
1.6 __ref obj = (__ref) __ALLOCATE(1, size);
1.7 - __attr self = {obj, obj};
1.8 - __attr tmp = {0, cls};
1.9 + __attr self = {.context=obj, .value=obj};
1.10 + __attr tmp = {.context=0, .value=cls};
1.11 obj->table = table;
1.12 __store_via_object(obj, __pos___class__, tmp);
1.13 return self;
1.14 @@ -57,7 +57,7 @@
1.15 /* Calculate the size of the fragment. */
1.16
1.17 __fragment *data = __new_fragment(number);
1.18 - __attr attr = {0, .seqvalue=data};
1.19 + __attr attr = {{0}, .seqvalue=data};
1.20 unsigned int i, j;
1.21
1.22 /* Copy the given number of values, starting from the second element. */
1.23 @@ -106,7 +106,7 @@
1.24 void __raise_io_error(__attr value)
1.25 {
1.26 #ifdef __HAVE___builtins___exception_io_IOError
1.27 - __attr args[2] = {{0, 0}, value};
1.28 + __attr args[2] = {__NULL, value};
1.29 __attr exc = __new___builtins___exception_io_IOError(args);
1.30 __Raise(exc);
1.31 #endif /* __HAVE___builtins___exception_io_IOError */
1.32 @@ -122,7 +122,7 @@
1.33 void __raise_os_error(__attr value, __attr arg)
1.34 {
1.35 #ifdef __HAVE___builtins___exception_system_OSError
1.36 - __attr args[3] = {{0, 0}, value, arg};
1.37 + __attr args[3] = {__NULL, value, arg};
1.38 __attr exc = __new___builtins___exception_system_OSError(args);
1.39 __Raise(exc);
1.40 #endif /* __HAVE___builtins___exception_system_OSError */
1.41 @@ -272,7 +272,7 @@
1.42
1.43 int __BOOL(__attr attr)
1.44 {
1.45 - __attr args[2] = {{0, 0}, attr};
1.46 + __attr args[2] = {__NULL, attr};
1.47
1.48 /* Invoke the bool function with the object and test against True. */
1.49