always provide compare_testvector() as a function

This commit is contained in:
Steffen Jaeckel
2017-06-08 12:40:03 +02:00
parent ad45277745
commit 4bbce780c4
2 changed files with 7 additions and 10 deletions
-6
View File
@@ -99,13 +99,7 @@ void crc32_finish(crc32_state *ctx, void *hash, unsigned long size);
int crc32_test(void);
#endif
#if defined(LTC_TEST) && defined(LTC_TEST_DBG)
void print_hex(const char* what, const void* v, const unsigned long l);
int compare_testvector(const void* is, const unsigned long is_len, const void* should, const unsigned long should_len, const char* what, int which);
#else
#define compare_testvector(is, is_len, should, should_len, what, which) \
((((is_len) != (should_len)) || (XMEMCMP((is), (should), (is_len)) != 0)) ? 1 : 0)
#endif
/* $Source$ */
/* $Revision$ */