X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=src%2Fecoli_node_re_lex.c;h=a007aba5d56cdee55fb5029887724f8bf10d4fbd;hb=a83942778fc85ad92db9082cf0d7c2d958d98aaf;hp=e7751ac7114da97068f7af190cf1e2c22733d054;hpb=92a8ba50b89dabb662e6e66b3376b7cbf72d52d6;p=protos%2Flibecoli.git diff --git a/src/ecoli_node_re_lex.c b/src/ecoli_node_re_lex.c index e7751ac..a007aba 100644 --- a/src/ecoli_node_re_lex.c +++ b/src/ecoli_node_re_lex.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include #include @@ -44,7 +44,7 @@ static struct ec_strvec * tokenize(struct regexp_pattern *table, size_t table_len, const char *str) { struct ec_strvec *strvec = NULL; - struct ec_keyval *attrs = NULL; + struct ec_dict *attrs = NULL; char *dup = NULL; char c; size_t len, off = 0; @@ -81,10 +81,10 @@ tokenize(struct regexp_pattern *table, size_t table_len, const char *str) goto fail; if (table[i].attr_name != NULL) { - attrs = ec_keyval(); + attrs = ec_dict(); if (attrs == NULL) goto fail; - if (ec_keyval_set(attrs, table[i].attr_name, + if (ec_dict_set(attrs, table[i].attr_name, NULL, NULL) < 0) goto fail; if (ec_strvec_set_attrs(strvec,