X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fcodec%2Ftstcodec.c;fp=test%2Fcodec%2Ftstcodec.c;h=fdfa8c50200cb8fb75cb73d2a72ea288ac306daf;hb=cef013b96c9508d5fd8552e7fd05962029b37e6f;hp=cf190562e6b699bfd53839c485271e13e430d470;hpb=65ae06c475fce3ffaf004d92605df5f01e931835;p=idzebra-moved-to-github.git diff --git a/test/codec/tstcodec.c b/test/codec/tstcodec.c index cf19056..fdfa8c5 100644 --- a/test/codec/tstcodec.c +++ b/test/codec/tstcodec.c @@ -1,4 +1,4 @@ -/* $Id: tstcodec.c,v 1.2 2004-08-04 08:35:26 adam Exp $ +/* $Id: tstcodec.c,v 1.3 2004-09-15 08:13:51 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -41,14 +41,9 @@ int tst_encode(int num) { const char *src = (const char *) &key; -#if IT_KEY_NEW key.len = 2; key.mem[0] = i >> 8; key.mem[1] = i & 255; -#else - key.sysno = num; - key.seqno = 1; -#endif iscz1_encode (codec_handle, &dst, &src); if (dst > dst_buf + num*10) { @@ -69,7 +64,6 @@ int tst_encode(int num) const char *src0 = src; iscz1_decode(codec_handle, &dst, &src); -#if IT_KEY_NEW if (key.len != 2) { printf ("%s: i=%d key.len=%d expected 2\n", prog, @@ -106,9 +100,6 @@ int tst_encode(int num) printf ("\n"); return 4; } -#else - -#endif } }