aboutsummaryrefslogtreecommitdiffstats
path: root/common.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-14 13:33:07 +0200
committerMattias Andrée <maandree@kth.se>2017-10-14 13:33:07 +0200
commitb5612bbbcbfd4fff7e8552579a7dd81a141d90d3 (patch)
tree1ed81a17345ac89a5ce89e232ac478b84297a4ce /common.c
parentUse arg.h instead of argparser (diff)
downloadsha3sum-b5612bbbcbfd4fff7e8552579a7dd81a141d90d3.tar.gz
sha3sum-b5612bbbcbfd4fff7e8552579a7dd81a141d90d3.tar.bz2
sha3sum-b5612bbbcbfd4fff7e8552579a7dd81a141d90d3.tar.xz
Generate all C files except common.c and keccaksum.c
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.c b/common.c
index 53d25ad..1c16dd2 100644
--- a/common.c
+++ b/common.c
@@ -122,7 +122,7 @@ make_spec(libkeccak_generalised_spec_t *restrict gspec, libkeccak_spec_t *restri
{
int r;
-#define TEST(CASE, STR) case LIBKECCAK_GENERALISED_SPEC_ERROR_##CASE: return USER_ERROR(STR)
+#define TEST(CASE, STR) case LIBKECCAK_GENERALISED_SPEC_ERROR_##CASE: return USER_ERROR(STR)
if (r = libkeccak_degeneralise_spec(gspec, spec), r) {
switch (r) {
TEST (STATE_NONPOSITIVE, "the state size must be positive");
@@ -142,7 +142,7 @@ make_spec(libkeccak_generalised_spec_t *restrict gspec, libkeccak_spec_t *restri
}
#undef TEST
-#define TEST(CASE, STR) case LIBKECCAK_SPEC_ERROR_##CASE: return USER_ERROR(STR)
+#define TEST(CASE, STR) case LIBKECCAK_SPEC_ERROR_##CASE: return USER_ERROR(STR)
if (r = libkeccak_spec_check(spec), r) {
switch (r) {
TEST (BITRATE_NONPOSITIVE, "the rate size must be positive");