1.1 --- a/templates/ops.c Mon Nov 21 17:05:41 2016 +0100
1.2 +++ b/templates/ops.c Mon Nov 21 19:02:43 2016 +0100
1.3 @@ -5,19 +5,11 @@
1.4 #include "progconsts.h"
1.5 #include "progtypes.h"
1.6
1.7 -/* Direct access to functions. */
1.8 -
1.9 -__attr __load_function(__func fn)
1.10 -{
1.11 - __attr out = {0, .fn=fn};
1.12 - return out;
1.13 -}
1.14 -
1.15 /* Direct access and manipulation of static objects. */
1.16
1.17 -__attr __load_static(__ref obj)
1.18 +__attr __load_static(__ref parent, __ref obj)
1.19 {
1.20 - __attr out = {0, .value=obj};
1.21 + __attr out = {.context=parent, .value=obj};
1.22 return out;
1.23 }
1.24