From dfeb387a4744dd3c7ed9df15b3306ae6c35fa22e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 12 Aug 2010 13:38:06 +0200 Subject: [PATCH] Make some internal functions static These functions were defined non-static by mistake (they were never defined in a header): emit_term, emit_terms, emit-wordlist. --- src/cqltransform.c | 30 +++++++++++++++--------------- src/solrtransform.c | 30 +++++++++++++++--------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/cqltransform.c b/src/cqltransform.c index de777d0..55c3366 100644 --- a/src/cqltransform.c +++ b/src/cqltransform.c @@ -607,11 +607,11 @@ static int has_modifier(struct cql_node *cn, const char *name) { } -void emit_term(cql_transform_t ct, - struct cql_node *cn, - const char *term, int length, - void (*pr)(const char *buf, void *client_data), - void *client_data) +static void emit_term(cql_transform_t ct, + struct cql_node *cn, + const char *term, int length, + void (*pr)(const char *buf, void *client_data), + void *client_data) { int i; const char *ns = cn->u.st.index_uri; @@ -748,11 +748,11 @@ void emit_term(cql_transform_t ct, xfree(z3958_mem); } -void emit_terms(cql_transform_t ct, - struct cql_node *cn, - void (*pr)(const char *buf, void *client_data), - void *client_data, - const char *op) +static void emit_terms(cql_transform_t ct, + struct cql_node *cn, + void (*pr)(const char *buf, void *client_data), + void *client_data, + const char *op) { struct cql_node *ne = cn->u.st.extra_terms; if (ne) @@ -776,11 +776,11 @@ void emit_terms(cql_transform_t ct, } } -void emit_wordlist(cql_transform_t ct, - struct cql_node *cn, - void (*pr)(const char *buf, void *client_data), - void *client_data, - const char *op) +static void emit_wordlist(cql_transform_t ct, + struct cql_node *cn, + void (*pr)(const char *buf, void *client_data), + void *client_data, + const char *op) { const char *cp0 = cn->u.st.term; const char *cp1; diff --git a/src/solrtransform.c b/src/solrtransform.c index b800ca9..2d41044 100644 --- a/src/solrtransform.c +++ b/src/solrtransform.c @@ -639,11 +639,11 @@ static int has_modifier(struct solr_node *cn, const char *name) { } -void emit_term(solr_transform_t ct, - struct solr_node *cn, - const char *term, int length, - void (*pr)(const char *buf, void *client_data), - void *client_data) +static void emit_term(solr_transform_t ct, + struct solr_node *cn, + const char *term, int length, + void (*pr)(const char *buf, void *client_data), + void *client_data) { int i; const char *ns = cn->u.st.index_uri; @@ -780,11 +780,11 @@ void emit_term(solr_transform_t ct, xfree(z3958_mem); } -void emit_terms(solr_transform_t ct, - struct solr_node *cn, - void (*pr)(const char *buf, void *client_data), - void *client_data, - const char *op) +static void emit_terms(solr_transform_t ct, + struct solr_node *cn, + void (*pr)(const char *buf, void *client_data), + void *client_data, + const char *op) { struct solr_node *ne = cn->u.st.extra_terms; if (ne) @@ -808,11 +808,11 @@ void emit_terms(solr_transform_t ct, } } -void emit_wordlist(solr_transform_t ct, - struct solr_node *cn, - void (*pr)(const char *buf, void *client_data), - void *client_data, - const char *op) +static void emit_wordlist(solr_transform_t ct, + struct solr_node *cn, + void (*pr)(const char *buf, void *client_data), + void *client_data, + const char *op) { const char *cp0 = cn->u.st.term; const char *cp1; -- 1.7.10.4