X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=odr%2Fodr_mem.c;h=f938a687fc590d9026fbc1b6b194416ad91a0f1a;hb=695e6df9fce9b838cb3fe8f49b211ed99943caef;hp=02b78dc9393baad433c78eba39b5225f3170f31a;hpb=c126b2a625462f95475f00efdfdf9ce41a0e9c79;p=yaz-moved-to-github.git diff --git a/odr/odr_mem.c b/odr/odr_mem.c index 02b78dc..f938a68 100644 --- a/odr/odr_mem.c +++ b/odr/odr_mem.c @@ -1,9 +1,15 @@ /* - * Copyright (c) 1995-2000, Index Data + * Copyright (c) 1995-2001, Index Data * See the file LICENSE for details. * * $Log: odr_mem.c,v $ - * Revision 1.17 2000-01-31 13:15:21 adam + * Revision 1.19 2001-03-25 21:55:12 adam + * Added odr_intdup. Ztest server returns TaskPackage for ItemUpdate. + * + * Revision 1.18 2000/02/29 13:44:55 adam + * Check for config.h (currently not generated). + * + * Revision 1.17 2000/01/31 13:15:21 adam * Removed uses of assert(3). Cleanup of ODR. CCL parser update so * that some characters are not surrounded by spaces in resulting term. * ILL-code updates. @@ -59,6 +65,9 @@ * Beginning to add memory management to odr * */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -89,6 +98,11 @@ char *odr_strdup(ODR o, const char *str) return nmem_strdup(o->mem, str); } +int *odr_intdup(ODR o, int v) +{ + return nmem_intdup(o->mem, v); +} + int odr_total(ODR o) { return o->mem ? nmem_total(o->mem) : 0;