static struct map *
route_get_map_helper(struct route *this_, struct map **map, char *type)
{
- struct attr type_attr={attr_type,{"route"}};
- struct attr route_attr={attr_route,.u.route=this_};
- struct attr data_attr={attr_data,{""}};
- struct attr *attrs_route[]={&type_attr, &route_attr, &data_attr, NULL};
if (! *map)
- *map=map_new(attrs_route);
+ *map=map_new((struct attr*[]){
+ &(struct attr){attr_type,{type}},
+ &(struct attr){attr_route,.u.route=this_},
+ &(struct attr){attr_data,{""}},
+ NULL});
return *map;
}