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
yaz-iconv: fix typos
[yaz-moved-to-github.git]
/
util
/
yaz-record-conv.c
diff --git
a/util/yaz-record-conv.c
b/util/yaz-record-conv.c
index
86e2eb4
..
fed037f
100644
(file)
--- a/
util/yaz-record-conv.c
+++ b/
util/yaz-record-conv.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-10,6
+10,7
@@
#include <stdlib.h>
#include <yaz/options.h>
#include <yaz/record_conv.h>
#include <stdlib.h>
#include <yaz/options.h>
#include <yaz/record_conv.h>
+#include <yaz/backtrace.h>
const char *prog = "yaz-record-conv";
const char *prog = "yaz-record-conv";
@@
-24,6
+25,8
@@
int main (int argc, char **argv)
char *arg;
yaz_record_conv_t p = 0;
int no_errors = 0;
char *arg;
yaz_record_conv_t p = 0;
int no_errors = 0;
+
+ yaz_enable_panic_backtrace(*argv);
while ((r = options("V", argv, argc, &arg)) != -2)
{
switch (r)
while ((r = options("V", argv, argc, &arg)) != -2)
{
switch (r)
@@
-72,15
+75,15
@@
int main (int argc, char **argv)
}
while ((c = getc(f)) != EOF)
wrbuf_putc(input_record, c);
}
while ((c = getc(f)) != EOF)
wrbuf_putc(input_record, c);
-
- r = yaz_record_conv_record(p,
+
+ r = yaz_record_conv_record(p,
wrbuf_buf(input_record),
wrbuf_len(input_record),
output_record);
if (r)
{
fprintf(stderr, "%s: %s: Error %s\n",
wrbuf_buf(input_record),
wrbuf_len(input_record),
output_record);
if (r)
{
fprintf(stderr, "%s: %s: Error %s\n",
- prog, arg,
+ prog, arg,
yaz_record_conv_get_error(p));
no_errors++;
}
yaz_record_conv_get_error(p));
no_errors++;
}