projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 2.0.59
[idzebra-moved-to-github.git]
/
bfile
/
tstbfile1.c
diff --git
a/bfile/tstbfile1.c
b/bfile/tstbfile1.c
index
567541e
..
067b4bd
100644
(file)
--- a/
bfile/tstbfile1.c
+++ b/
bfile/tstbfile1.c
@@
-1,5
+1,5
@@
/* This file is part of the Zebra server.
/* This file is part of the Zebra server.
- Copyright (C) 1994-2011 Index Data
+ Copyright (C) Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-17,6
+17,9
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include <string.h>
#include <idzebra/bfile.h>
#include <stdlib.h>
#include <string.h>
#include <idzebra/bfile.h>
@@
-29,16
+32,16
@@
void tst1(BFiles bfs)
const char *more_info = 0;
bf_reset(bfs);
const char *more_info = 0;
bf_reset(bfs);
- bf = bf_xopen(bfs, "tst", /* block size */ 32,
+ bf = bf_xopen(bfs, "tst", /* block size */ 32,
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
YAZ_CHECK(bf);
if (!bf)
return;
bf_xclose(bf, version, "more info");
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
YAZ_CHECK(bf);
if (!bf)
return;
bf_xclose(bf, version, "more info");
-
- bf = bf_xopen(bfs, "tst", /* block size */ 32,
+
+ bf = bf_xopen(bfs, "tst", /* block size */ 32,
/* wr */ 1, "tstmagic", &version, &more_info);
/* wr */ 1, "tstmagic", &version, &more_info);
-
+
YAZ_CHECK(bf);
if (!bf)
return;
YAZ_CHECK(bf);
if (!bf)
return;
@@
-55,7
+58,7
@@
void tst2(BFiles bfs)
BFile bf;
bf_reset(bfs);
BFile bf;
bf_reset(bfs);
- bf = bf_xopen(bfs, "tst", /* block size */ 32,
+ bf = bf_xopen(bfs, "tst", /* block size */ 32,
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
YAZ_CHECK(bf);
if (!bf)
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
YAZ_CHECK(bf);
if (!bf)
@@
-95,7
+98,7
@@
void tst3(BFiles bfs)
for(i = 0; i<BLOCKS; i++)
blocks[i] = 0;
for(i = 0; i<BLOCKS; i++)
blocks[i] = 0;
- bf = bf_xopen(bfs, "tst", /* block size */ 32,
+ bf = bf_xopen(bfs, "tst", /* block size */ 32,
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
YAZ_CHECK(bf);
if (!bf)
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
YAZ_CHECK(bf);
if (!bf)
@@
-154,7
+157,7
@@
void tst3(BFiles bfs)
else
{
bf_xclose(bf, version, 0);
else
{
bf_xclose(bf, version, 0);
- bf = bf_xopen(bfs, "tst", /* block size */ 32,
+ bf = bf_xopen(bfs, "tst", /* block size */ 32,
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
}
}
/* wr */ 1, "tstmagic", &version, 0 /* more_info */);
}
}