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.61
[idzebra-moved-to-github.git]
/
test
/
codec
/
tstcodec.c
diff --git
a/test/codec/tstcodec.c
b/test/codec/tstcodec.c
index
a266322
..
449ce8a
100644
(file)
--- a/
test/codec/tstcodec.c
+++ b/
test/codec/tstcodec.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 "../../index/index.h"
#include <stdlib.h>
#include "../../index/index.h"
@@
-61,7
+64,7
@@
int tst_encode(int num)
char *dst = (char *) &key;
const char *src0 = src;
iscz1_decode(codec_handle, &dst, &src);
char *dst = (char *) &key;
const char *src0 = src;
iscz1_decode(codec_handle, &dst, &src);
-
+
if (key.len != 2)
{
printf ("%s: i=%d key.len=%d expected 2\n", prog,
if (key.len != 2)
{
printf ("%s: i=%d key.len=%d expected 2\n", prog,
@@
-134,7
+137,7
@@
void tstcodec1(void)
dst = (char*) &key2;
src = buf;
dst = (char*) &key2;
src = buf;
-
+
iscz1_decode(codec_handle, &dst, &src);
iscz1_stop(codec_handle);
iscz1_decode(codec_handle, &dst, &src);
iscz1_stop(codec_handle);
@@
-176,7
+179,7
@@
int tstcodec2(int num)
const char *src = (const char *) &ar1;
char *dst = dstbuf;
iscz1_encode(encode_handle, &dst, &src);
const char *src = (const char *) &ar1;
char *dst = dstbuf;
iscz1_encode(encode_handle, &dst, &src);
-
+
src = dstbuf;
dst = (char *) &ar2;
iscz1_decode(decode_handle, &dst, &src);
src = dstbuf;
dst = (char *) &ar2;
iscz1_decode(decode_handle, &dst, &src);
@@
-220,7
+223,7
@@
int main(int argc, char **argv)
ret = tst_encode(num);
exit(ret);
}
ret = tst_encode(num);
exit(ret);
}
-
+
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4