1.1 --- a/generator.py Sat Feb 11 23:15:21 2017 +0100
1.2 +++ b/generator.py Sun Feb 12 00:26:41 2017 +0100
1.3 @@ -1068,7 +1068,7 @@
1.4 __attr %s(__attr __args[])
1.5 {
1.6 /* Allocate the structure. */
1.7 - __args[0] = __new(&%s, &%s, sizeof(%s));
1.8 + __args[0] = __NEWINSTANCE(%s);
1.9
1.10 /* Call the initialiser. */
1.11 %s(__args);
1.12 @@ -1078,9 +1078,7 @@
1.13 }
1.14 """ % (
1.15 encode_instantiator_pointer(path),
1.16 - encode_tablename("<instance>", path),
1.17 encode_path(path),
1.18 - encode_symbol("obj", path),
1.19 encode_function_pointer(init_ref.get_origin())
1.20 )
1.21
1.22 @@ -1100,7 +1098,7 @@
1.23 __attr %s(__attr __args[], __pos number)
1.24 {
1.25 /* Allocate the structure. */
1.26 - __args[0] = __new(&%s, &%s, sizeof(%s));
1.27 + __args[0] = __NEWINSTANCE(%s);
1.28
1.29 /* Allocate a structure for the data and set it on the __data__ attribute. */
1.30 %s(__args, number);
1.31 @@ -1110,9 +1108,7 @@
1.32 }
1.33 """ % (
1.34 encode_literal_instantiator(path),
1.35 - encode_tablename("<instance>", path),
1.36 encode_path(path),
1.37 - encode_symbol("obj", path),
1.38 encode_literal_data_initialiser(style)
1.39 )
1.40