Merge branch 'master' into yaz-744
[yaz-moved-to-github.git] / src / cqlstdio.c
index 797d8cd..b647828 100644 (file)
@@ -1,20 +1,18 @@
-/* $Id: cqlstdio.c,v 1.3 2005-01-15 19:47:11 adam Exp $
-   Copyright (C) 1995-2005, Index Data ApS
-   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) Index Data
+ * See the file LICENSE for details.
+ */
 /**
  * \file cqlstdio.c
  * \brief Implements query stream reading using FILE handle.
  */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <yaz/cql.h>
 
-int getbyte_stream(void *client_data)
+static int getbyte_stream(void *client_data)
 {
     FILE *f = (FILE*) client_data;
 
@@ -24,7 +22,7 @@ int getbyte_stream(void *client_data)
     return c;
 }
 
-void ungetbyte_stream (int c, void *client_data)
+static void ungetbyte_stream(int c, void *client_data)
 {
     FILE *f = (FILE*) client_data;
 
@@ -39,3 +37,12 @@ int cql_parser_stdio(CQL_parser cp, FILE *f)
 }
 
 
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * c-file-style: "Stroustrup"
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+