summaryrefslogtreecommitdiff
path: root/src/struct.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-06-13 12:11:23 -0400
committerAdrian Thurston <thurston@complang.org>2015-06-13 12:11:23 -0400
commit324f1fc08d2876f8084f226a54bb06e0e817a791 (patch)
tree51d7ee213f446b8aa4531192aca3cf66f84a4aa8 /src/struct.c
parent61989e6087d38923b132d80892375d78f68e8c13 (diff)
downloadcolm-324f1fc08d2876f8084f226a54bb06e0e817a791.tar.gz
cleanup and simplification, generic elements and various
Diffstat (limited to 'src/struct.c')
-rw-r--r--src/struct.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/struct.c b/src/struct.c
index 5d6ab676..d1a6bdcf 100644
--- a/src/struct.c
+++ b/src/struct.c
@@ -124,19 +124,13 @@ struct_t *colm_construct_generic( program_t *prg, long generic_id )
struct generic_info *generic_info = &prg->rtd->generic_info[generic_id];
struct_t *new_generic = 0;
switch ( generic_info->type ) {
- case GEN_MAP_EL:
- case GEN_LIST_EL:
- break;
-
- case GEN_MAP:
- {
+ case GEN_MAP: {
map_t *map = colm_map_new( prg );
map->generic_info = generic_info;
new_generic = (struct_t*) map;
break;
}
- case GEN_LIST:
- {
+ case GEN_LIST: {
list_t *list = colm_list_new( prg );
list->generic_info = generic_info;
new_generic = (struct_t*) list;