-/* $Id: cqlstring.c,v 1.2 2004-10-03 22:34:07 adam Exp $
- Copyright (C) 2002-2004
+/* $Id: cqlstring.c,v 1.5 2005-06-25 15:46:03 adam Exp $
+ Copyright (C) 1995-2005, Index Data ApS
Index Data Aps
This file is part of the YAZ toolkit.
* \brief Implements query stream reader that reads from a C string.
*/
-
#include <yaz/cql.h>
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)
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)
return cql_parser_stream(cp, getbuf, ungetbuf, &b);
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+