From: Adam Dickmeiss Date: Thu, 12 Aug 2010 11:38:06 +0000 (+0200) Subject: Make some internal functions static X-Git-Tag: v4.1.0~40^2~8 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=dfeb387a4744dd3c7ed9df15b3306ae6c35fa22e;p=yaz-moved-to-github.git 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. --- 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;