projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
init.sh: give more portable redirection-related advice in a comment
[pspp]
/
tests
/
test-memchr2.c
diff --git
a/tests/test-memchr2.c
b/tests/test-memchr2.c
index ef0a71330318f1d5fbd971de446c5a2f0aa71338..c94352f6984a55610a73b7b5882e66197334bc21 100644
(file)
--- a/
tests/test-memchr2.c
+++ b/
tests/test-memchr2.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2008-20
09 Free Software Foundation
+ * Copyright (C) 2008-20
11 Free Software Foundation, Inc.
* Written by Eric Blake
*
* This program is free software: you can redistribute it and/or modify
* Written by Eric Blake
*
* This program is free software: you can redistribute it and/or modify
@@
-19,23
+19,11
@@
#include "memchr2.h"
#include "memchr2.h"
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zerosize-ptr.h"
#include <stdlib.h>
#include <string.h>
#include "zerosize-ptr.h"
-
-#define ASSERT(expr) \
- do \
- { \
- if (!(expr)) \
- { \
- fprintf (stderr, "%s:%d: assertion failed\n", __FILE__, __LINE__); \
- fflush (stderr); \
- abort (); \
- } \
- } \
- while (0)
+#include "macros.h"
/* Calculating void * + int is not portable, so this wrapper converts
to char * to make the tests easier to write. */
/* Calculating void * + int is not portable, so this wrapper converts
to char * to make the tests easier to write. */