From f18f0f1668e388b081b0944799eacd3b8b8c6327 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 11 Dec 2012 15:28:22 +0100 Subject: [PATCH] Make some functions static/private in PQF parsing Those functions were never declared in a public header and so should not be in use by applications based on YAZ. --- src/pquery.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pquery.c b/src/pquery.c index 2cc285f..d9781e6 100644 --- a/src/pquery.c +++ b/src/pquery.c @@ -122,7 +122,7 @@ static int lex(struct yaz_pqf_parser *li) return li->query_look = query_token(li); } -int escape_string(char *out_buf, const char *in, int len) +static int escape_string(char *out_buf, const char *in, int len) { char *out = out_buf; @@ -185,7 +185,7 @@ int escape_string(char *out_buf, const char *in, int len) return out - out_buf; } -int p_query_parse_attr(struct yaz_pqf_parser *li, ODR o, +static int p_query_parse_attr(struct yaz_pqf_parser *li, ODR o, int num_attr, Odr_int *attr_list, char **attr_clist, Odr_oid **attr_set) { @@ -243,8 +243,9 @@ int p_query_parse_attr(struct yaz_pqf_parser *li, ODR o, return 1; } -Z_AttributeList *get_attributeList(ODR o, int num_attr, Odr_int *attr_list, - char **attr_clist, Odr_oid **attr_set) +static Z_AttributeList *get_attributeList(ODR o, + int num_attr, Odr_int *attr_list, + char **attr_clist, Odr_oid **attr_set) { int i, k = 0; Odr_int *attr_tmp; -- 1.7.10.4