X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcqlstring.c;h=762e5fadc356f6aefbaf8bd0147cf7a5d565e204;hp=94ea25e0df7681a4091abff840479559912a5977;hb=a5795a2df2095d5a44b012a59426e7b906db3ec9;hpb=f53079fadcadb1eeef45e1e6d254801d984d6068 diff --git a/src/cqlstring.c b/src/cqlstring.c index 94ea25e..762e5fa 100644 --- a/src/cqlstring.c +++ b/src/cqlstring.c @@ -1,18 +1,13 @@ -/* $Id: cqlstring.c,v 1.2 2004-10-03 22:34:07 adam Exp $ - Copyright (C) 2002-2004 - Index Data Aps - -This file is part of the YAZ toolkit. - -See the file LICENSE for details. -*/ +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2010 Index Data + * See the file LICENSE for details. + */ /** * \file cqlstring.c * \brief Implements query stream reader that reads from a C string. */ - #include struct cql_buf_info { @@ -20,7 +15,7 @@ struct cql_buf_info { int off; }; -int getbuf(void *vp) +static int getbuf(void *vp) { struct cql_buf_info *bi = (struct cql_buf_info *) vp; if (bi->str[bi->off] == 0) @@ -28,7 +23,7 @@ int getbuf(void *vp) return bi->str[bi->off++]; } -void ungetbuf(int b, void *vp) +static void ungetbuf(int b, void *vp) { struct cql_buf_info *bi = (struct cql_buf_info *) vp; if (b) @@ -45,3 +40,12 @@ int cql_parser_string(CQL_parser cp, const char *str) return cql_parser_stream(cp, getbuf, ungetbuf, &b); } +/* + * Local variables: + * c-basic-offset: 4 + * c-file-style: "Stroustrup" + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +