1.1 --- a/templates/types.h Fri Dec 02 22:26:53 2016 +0100
1.2 +++ b/templates/types.h Sat Dec 03 01:23:18 2016 +0100
1.3 @@ -32,7 +32,6 @@
1.4
1.5 typedef struct __obj __obj;
1.6 typedef struct __fragment __fragment;
1.7 -typedef struct __mapping __mapping;
1.8
1.9 typedef struct __attr
1.10 {
1.11 @@ -55,7 +54,6 @@
1.12 double floatvalue; /* floating point value */
1.13 char * strvalue; /* string value */
1.14 __fragment * seqvalue; /* sequence data */
1.15 - __mapping * mapvalue; /* mapping data */
1.16 };
1.17 } __attr;
1.18
1.19 @@ -79,19 +77,6 @@
1.20
1.21 #define __FRAGMENT_SIZE(NUMBER) (NUMBER * sizeof(__attr) + 2 * sizeof(unsigned int))
1.22
1.23 -/* Mappings are simple collections of fragment references used to hold the
1.24 - "buckets" used in hash tables. Here, separate lists of keys and values hold
1.25 - attributes referring to the actual keys and corresponding values. */
1.26 -
1.27 -typedef struct __mapping
1.28 -{
1.29 - unsigned int size, capacity;
1.30 - __fragment **keys; /* array of key arrays */
1.31 - __fragment **values; /* array of value arrays */
1.32 -} __mapping;
1.33 -
1.34 -#define __MAPPING_SIZE(NUMBER) (2 * NUMBER * sizeof(__fragment *) + 2 * sizeof(unsigned int))
1.35 -
1.36 /* Special instance position value. The pos member of __obj refers to the
1.37 special type attribute for classes, indicating which position holds the
1.38 attribute describing the class type. For instances, it is set to zero. */