From: Florian Forster Date: Mon, 12 Jul 2010 09:26:14 +0000 (+0200) Subject: src/graph.[ch]: Rename "graph_matches_ident" to "graph_ident_matches". X-Git-Tag: v4.0.0~106 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f32297a08ae205eacc399c889a661be2a031c215;p=collection4.git src/graph.[ch]: Rename "graph_matches_ident" to "graph_ident_matches". --- diff --git a/src/graph.c b/src/graph.c index 9b545fd..845bbb7 100644 --- a/src/graph.c +++ b/src/graph.c @@ -297,7 +297,7 @@ int graph_add_def (graph_config_t *cfg, graph_def_t *def) /* {{{ */ return (def_append (cfg->defs, tmp)); } /* }}} int graph_add_def */ -_Bool graph_matches_ident (graph_config_t *cfg, const graph_ident_t *ident) /* {{{ */ +_Bool graph_ident_matches (graph_config_t *cfg, const graph_ident_t *ident) /* {{{ */ { #if C4_DEBUG if ((cfg == NULL) || (ident == NULL)) @@ -305,7 +305,7 @@ _Bool graph_matches_ident (graph_config_t *cfg, const graph_ident_t *ident) /* { #endif return (ident_matches (cfg->select, ident)); -} /* }}} _Bool graph_matches_ident */ +} /* }}} _Bool graph_ident_matches */ _Bool graph_matches_field (graph_config_t *cfg, /* {{{ */ graph_ident_field_t field, const char *field_value) diff --git a/src/graph.h b/src/graph.h index b6f2e7c..7a433f1 100644 --- a/src/graph.h +++ b/src/graph.h @@ -52,7 +52,7 @@ graph_def_t *graph_get_defs (graph_config_t *cfg); int graph_add_def (graph_config_t *cfg, graph_def_t *def); -_Bool graph_matches_ident (graph_config_t *cfg, const graph_ident_t *ident); +_Bool graph_ident_matches (graph_config_t *cfg, const graph_ident_t *ident); /* Compares the given string with the appropriate field of the selector. If the * selector field is "/all/" or "/any/", returns true without checking the diff --git a/src/graph_list.c b/src/graph_list.c index ef52cb3..89f3e5d 100644 --- a/src/graph_list.c +++ b/src/graph_list.c @@ -173,7 +173,7 @@ static int gl_register_file (const graph_ident_t *file, /* {{{ */ graph_config_t *cfg = gl_active[i]; int status; - if (!graph_matches_ident (cfg, file)) + if (!graph_ident_matches (cfg, file)) continue; status = graph_add_file (cfg, file);