1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2013 Index Data
3 * See the file LICENSE for details.
7 * \brief Implements query stream reading using FILE handle.
15 static int getbyte_stream(void *client_data)
17 FILE *f = (FILE*) client_data;
25 static void ungetbyte_stream(int c, void *client_data)
27 FILE *f = (FILE*) client_data;
34 int cql_parser_stdio(CQL_parser cp, FILE *f)
36 return cql_parser_stream(cp, getbyte_stream, ungetbyte_stream, f);
43 * c-file-style: "Stroustrup"
44 * indent-tabs-mode: nil
46 * vim: shiftwidth=4 tabstop=8 expandtab