1.1 --- a/templates/types.h Mon Nov 21 22:56:52 2016 +0100
1.2 +++ b/templates/types.h Tue Nov 22 01:28:58 2016 +0100
1.3 @@ -70,10 +70,12 @@
1.4
1.5 typedef struct __fragment
1.6 {
1.7 - unsigned int size;
1.8 + unsigned int size, capacity;
1.9 __attr attrs[];
1.10 } __fragment;
1.11
1.12 +#define __FRAGMENT_SIZE(NUMBER) (NUMBER * sizeof(__attr) + 2 * sizeof(unsigned int))
1.13 +
1.14 /* Special instance position value. The pos member of __obj refers to the
1.15 special type attribute for classes, indicating which position holds the
1.16 attribute describing the class type. For instances, it is set to zero. */