Happy new year
[yazpp-moved-to-github.git] / src / yaz-z-databases.cpp
index 52b6a31..9509c0b 100644 (file)
@@ -1,13 +1,16 @@
-/*
- * Copyright (c) 2001, Index Data.
+/* This file is part of the yazpp toolkit.
+ * Copyright (C) Index Data and Mike Taylor
  * See the file LICENSE for details.
- * 
- * $Id: yaz-z-databases.cpp,v 1.4 2002-10-09 12:50:26 adam Exp $
  */
 
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 #include <string.h>
 
-#include <yaz++/z-databases.h>
+#include <yazpp/z-databases.h>
+
+using namespace yazpp_1;
 
 Yaz_Z_Databases::Yaz_Z_Databases()
 {
@@ -24,7 +27,7 @@ Yaz_Z_Databases::~Yaz_Z_Databases()
 void Yaz_Z_Databases::set (int num, const char **db)
 {
     nmem_reset (nmem);
+
     m_list = (char **) nmem_malloc (nmem, num * sizeof(char*));
     m_num = num;
     for (int i = 0; i<num; i++)
@@ -63,3 +66,12 @@ int Yaz_Z_Databases::match (int num, const char **db)
             return 0;
     return 1;
 }
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * c-file-style: "Stroustrup"
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+