From 26be06904f383fd0a323713e0c3c9dbaec146b81 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Thu, 8 Sep 2016 09:12:01 -0400 Subject: op-flasher: Remove pflash tree No longer needed with the move to the shared object. Change-Id: I36f7d7ba8b3df5ebae67a93ae18f1fa2d5c4d29a Signed-off-by: Brad Bishop --- op-flasher/pflash/ccan/build_assert/build_assert.h | 40 ---------------------- 1 file changed, 40 deletions(-) delete mode 100644 op-flasher/pflash/ccan/build_assert/build_assert.h (limited to 'op-flasher/pflash/ccan/build_assert/build_assert.h') diff --git a/op-flasher/pflash/ccan/build_assert/build_assert.h b/op-flasher/pflash/ccan/build_assert/build_assert.h deleted file mode 100644 index bd07254..0000000 --- a/op-flasher/pflash/ccan/build_assert/build_assert.h +++ /dev/null @@ -1,40 +0,0 @@ -/* CC0 (Public domain) - see LICENSE file for details */ -#ifndef CCAN_BUILD_ASSERT_H -#define CCAN_BUILD_ASSERT_H - -/** - * BUILD_ASSERT - assert a build-time dependency. - * @cond: the compile-time condition which must be true. - * - * Your compile will fail if the condition isn't true, or can't be evaluated - * by the compiler. This can only be used within a function. - * - * Example: - * #include - * ... - * static char *foo_to_char(struct foo *foo) - * { - * // This code needs string to be at start of foo. - * BUILD_ASSERT(offsetof(struct foo, string) == 0); - * return (char *)foo; - * } - */ -#define BUILD_ASSERT(cond) \ - do { (void) sizeof(char [1 - 2*!(cond)]); } while(0) - -/** - * BUILD_ASSERT_OR_ZERO - assert a build-time dependency, as an expression. - * @cond: the compile-time condition which must be true. - * - * Your compile will fail if the condition isn't true, or can't be evaluated - * by the compiler. This can be used in an expression: its value is "0". - * - * Example: - * #define foo_to_char(foo) \ - * ((char *)(foo) \ - * + BUILD_ASSERT_OR_ZERO(offsetof(struct foo, string) == 0)) - */ -#define BUILD_ASSERT_OR_ZERO(cond) \ - (sizeof(char [1 - 2*!(cond)]) - 1) - -#endif /* CCAN_BUILD_ASSERT_H */ -- cgit v1.2.1