X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fodr_mem.c;h=028d06dad2e8cf5d78d9a4b234d6fb96fe9a4b32;hb=273716ada4a96213fb99182df2a3ee22509437b0;hp=c970f6b6baee2a431ed29b3595545ef08d192f88;hpb=ee6ab2ee3a9ee1a8c65d7272ec7fba1d886f5af0;p=yaz-moved-to-github.git diff --git a/src/odr_mem.c b/src/odr_mem.c index c970f6b..028d06d 100644 --- a/src/odr_mem.c +++ b/src/odr_mem.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2008 Index Data + * Copyright (C) 1995-2009 Index Data * See the file LICENSE for details. */ /** @@ -47,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); @@ -122,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