Source restructure. yaz-marcdump part of installation
[yaz-moved-to-github.git] / cql / cqlstring.c
diff --git a/cql/cqlstring.c b/cql/cqlstring.c
deleted file mode 100644 (file)
index 49a7882..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/* $Id: cqlstring.c,v 1.2 2003-02-14 18:49:23 adam Exp $
-   Copyright (C) 2002-2003
-   Index Data Aps
-
-This file is part of the YAZ toolkit.
-
-See the file LICENSE for details.
-*/
-#include <yaz/cql.h>
-
-struct cql_buf_info {
-    const char *str;
-    int off;
-};
-
-int getbuf(void *vp)
-{
-    struct cql_buf_info *bi = (struct cql_buf_info *) vp;
-    if (bi->str[bi->off] == 0)
-        return 0;
-    return bi->str[bi->off++];
-}
-
-void ungetbuf(int b, void *vp)
-{
-    struct cql_buf_info *bi = (struct cql_buf_info *) vp;
-    if (b)
-        (bi->off--);
-}
-
-int cql_parser_string(CQL_parser cp, const char *str)
-{
-    struct cql_buf_info b;
-
-    b.str = str;
-    b.off = 0;
-    
-    return cql_parser_stream(cp, getbuf, ungetbuf, &b);
-}
-