/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
-
/** \file copy_types.c
\brief Copies various Z39.50 types
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <yaz/copy_types.h>
Z_##x *q1 = 0; \
ODR enc = odr_createmem(ODR_ENCODE); \
ODR dec = odr_createmem(ODR_DECODE); \
- if (!z_##x(enc, &q, 0, 0)) \
- return 0; \
- else \
+ if (z_##x(enc, &q, 0, 0)) \
{ \
int len; \
char *buf = odr_getbuf(enc, &len, 0); \