X-Git-Url: http://git.droids-corp.org/?p=protos%2Flibecoli.git;a=blobdiff_plain;f=src%2Fecoli_node_re_lex.c;fp=src%2Fecoli_node_re_lex.c;h=a007aba5d56cdee55fb5029887724f8bf10d4fbd;hp=e7751ac7114da97068f7af190cf1e2c22733d054;hb=41bf1ba66e15c00f38375d05e49b31aa70f92349;hpb=03fcfd9562d205a050aba4c17902c56bbc817d54 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,