summaryrefslogtreecommitdiff
path: root/src/struct.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-02-13 18:36:08 -0500
committerAdrian Thurston <thurston@complang.org>2015-02-13 18:36:08 -0500
commit7971f22167db5f108430e4735e4cc1b492e6bd9d (patch)
tree3a8d0f36a13b7fab5c13c3c5d44dcff859da649d /src/struct.c
parentccf380421c08b6ec1f8b9c4ce6c62eb1fbf5e1e5 (diff)
downloadcolm-7971f22167db5f108430e4735e4cc1b492e6bd9d.tar.gz
work on value list and value map, can insert into vmap
Diffstat (limited to 'src/struct.c')
-rw-r--r--src/struct.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/struct.c b/src/struct.c
index dd17c35a..2f037244 100644
--- a/src/struct.c
+++ b/src/struct.c
@@ -128,13 +128,17 @@ Struct *colm_construct_generic( Program *prg, long genericId )
case GEN_LIST_EL:
break;
- case GEN_MAP: {
+ case GEN_MAP:
+ case GEN_VMAP:
+ {
Map *map = colm_map_new( prg );
map->genericInfo = genericInfo;
newGeneric = (Struct*) map;
break;
}
- case GEN_LIST: {
+ case GEN_LIST:
+ case GEN_VLIST:
+ {
List *list = colm_list_new( prg );
list->genericInfo = genericInfo;
newGeneric = (Struct*) list;