Version 3.0.49. Update news.
[yaz-moved-to-github.git] / src / odr_mem.c
index 314361e..028d06d 100644 (file)
@@ -1,8 +1,6 @@
-/*
- * Copyright (C) 1995-2007, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2009 Index Data
  * See the file LICENSE for details.
- *
- * $Id: odr_mem.c,v 1.12 2007-09-11 08:35:42 adam Exp $
  */
 /**
  * \file odr_mem.c
@@ -49,11 +47,16 @@ char *odr_strdupn(ODR o, const char *str, size_t n)
     return nmem_strdupn(o->mem, str, n);
 }
 
-int *odr_intdup(ODR o, int v)
+Odr_int *odr_intdup(ODR o, Odr_int v)
 {
     return nmem_intdup(o->mem, v);
 }
 
+Odr_bool *odr_booldup(ODR o, Odr_bool v)
+{
+    return nmem_booldup(o->mem, v);
+}
+
 int odr_total(ODR o)
 {
     return nmem_total(o->mem);
@@ -124,6 +127,7 @@ int odr_seek(ODR o, int whence, int offset)
 /*
  * Local variables:
  * c-basic-offset: 4
+ * c-file-style: "Stroustrup"
  * indent-tabs-mode: nil
  * End:
  * vim: shiftwidth=4 tabstop=8 expandtab