projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEWS.stable: update
[gnulib.git]
/
tests
/
test-hash.c
diff --git
a/tests/test-hash.c
b/tests/test-hash.c
index
2e7c550
..
1715033
100644
(file)
--- a/
tests/test-hash.c
+++ b/
tests/test-hash.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2009
Free Software Foundation
+ * Copyright (C) 2009
, 2010 Free Software Foundation, Inc.
* Written by Jim Meyering
*
* This program is free software: you can redistribute it and/or modify
* Written by Jim Meyering
*
* This program is free software: you can redistribute it and/or modify
@@
-28,21
+28,11
@@
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
+#include "macros.h"
+
#define STREQ(a, b) (strcmp (a, b) == 0)
#define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
#define STREQ(a, b) (strcmp (a, b) == 0)
#define ARRAY_CARDINALITY(Array) (sizeof (Array) / sizeof *(Array))
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
-
static bool
hash_compare_strings (void const *x, void const *y)
{
static bool
hash_compare_strings (void const *x, void const *y)
{