From: Sebastian Harl Date: Fri, 17 Oct 2014 07:10:03 +0000 (+0200) Subject: frontend: Renamed CONNECTION_EXPR to CONNECTION_MATCHER. X-Git-Tag: sysdb-0.6.0~112 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=d8dafe689b17088740721432558b00d12482c583 frontend: Renamed CONNECTION_EXPR to CONNECTION_MATCHER. That's more specific. --- diff --git a/src/frontend/grammar.y b/src/frontend/grammar.y index 0f01bd3..ef479ef 100644 --- a/src/frontend/grammar.y +++ b/src/frontend/grammar.y @@ -355,7 +355,7 @@ condition: $$ = SDB_CONN_NODE(sdb_object_create_dT(/* name = */ NULL, conn_matcher_t, conn_matcher_destroy)); - $$->cmd = CONNECTION_EXPR; + $$->cmd = CONNECTION_MATCHER; CONN_MATCHER($$)->matcher = $1; } ; diff --git a/src/frontend/parser.c b/src/frontend/parser.c index 0e0534e..3184ffc 100644 --- a/src/frontend/parser.c +++ b/src/frontend/parser.c @@ -115,7 +115,7 @@ sdb_fe_parse_matcher(const char *cond, int len) if (! node) return NULL; - if (node->cmd == CONNECTION_EXPR) + if (node->cmd == CONNECTION_MATCHER) m = CONN_MATCHER(node)->matcher; else m = NULL; diff --git a/src/include/frontend/proto.h b/src/include/frontend/proto.h index 5e3019c..0577550 100644 --- a/src/include/frontend/proto.h +++ b/src/include/frontend/proto.h @@ -250,10 +250,10 @@ typedef enum { */ /* - * CONNECTION_EXPR: - * A parsed expression. Only used internally. + * CONNECTION_MATCHER: + * A parsed matcher. Only used internally. */ - CONNECTION_EXPR = 100, + CONNECTION_MATCHER = 100, } sdb_conn_state_t; #ifdef __cplusplus