From: Adam Dickmeiss Date: Tue, 11 Dec 2012 14:28:22 +0000 (+0100) Subject: Make some functions static/private in PQF parsing X-Git-Tag: v4.2.48~16 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=f18f0f1668e388b081b0944799eacd3b8b8c6327;p=yaz-moved-to-github.git 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. --- 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;