projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Example of punctuals removal at sentence end
[yaz-moved-to-github.git]
/
src
/
copy_types.c
diff --git
a/src/copy_types.c
b/src/copy_types.c
index
d6d6c55
..
2afd1dc
100644
(file)
--- a/
src/copy_types.c
+++ b/
src/copy_types.c
@@
-1,11
+1,13
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2009 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
-
/** \file copy_types.c
\brief Copies various Z39.50 types
*/
/** \file copy_types.c
\brief Copies various Z39.50 types
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <yaz/copy_types.h>
#include <yaz/copy_types.h>
@@
-16,9
+18,7
@@
Z_##x *yaz_clone_z_##x(Z_##x *q, NMEM nmem_out) \
Z_##x *q1 = 0; \
ODR enc = odr_createmem(ODR_ENCODE); \
ODR dec = odr_createmem(ODR_DECODE); \
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); \
{ \
int len; \
char *buf = odr_getbuf(enc, &len, 0); \
@@
-37,6
+37,7
@@
Z_##x *yaz_clone_z_##x(Z_##x *q, NMEM nmem_out) \
clone_z_type(NamePlusRecord)
clone_z_type(RPNQuery)
clone_z_type(Query)
clone_z_type(NamePlusRecord)
clone_z_type(RPNQuery)
clone_z_type(Query)
+clone_z_type(RecordComposition)
Z_RPNQuery *yaz_copy_z_RPNQuery(Z_RPNQuery *q, ODR out)
{
Z_RPNQuery *yaz_copy_z_RPNQuery(Z_RPNQuery *q, ODR out)
{