From 9593fc545950782ed75f12f53238b07885559b2b Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 22:28:25 -0700 Subject: remove ccan for now --- ccan/likely/_info | 57 ------------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 ccan/likely/_info (limited to 'ccan/likely/_info') diff --git a/ccan/likely/_info b/ccan/likely/_info deleted file mode 100644 index 095ed2f..0000000 --- a/ccan/likely/_info +++ /dev/null @@ -1,57 +0,0 @@ -#include "config.h" -#include -#include - -/** - * likely - macros for annotating likely/unlikely branches in the code - * - * Inspired by Andi Kleen's macros for the Linux Kernel, these macros - * help you annotate rare paths in your code for the convenience of the - * compiler and the reader. - * - * With CCAN_LIKELY_DEBUG defined, it provides statistics for each - * likely()/unlikely() call (but note that this requires LGPL dependencies). - * - * License: CC0 (Public domain) - * Author: Rusty Russell - * - * Example: - * #include - * #include - * - * int main(int argc, char *argv[]) - * { - * // This example is silly: the compiler knows exit() is unlikely. - * if (unlikely(argc == 1)) { - * fprintf(stderr, "Usage: %s ...\n", argv[0]); - * return 1; - * } - * for (argc++; argv[argc]; argc++) - * printf("%s\n", argv[argc]); - * return 0; - * } - */ -int main(int argc, char *argv[]) -{ - /* Expect exactly one argument */ - if (argc != 2) - return 1; - - if (strcmp(argv[1], "depends") == 0) { -#ifdef CCAN_LIKELY_DEBUG - printf("ccan/str\n"); - printf("ccan/htable\n"); - printf("ccan/hash\n"); -#endif - return 0; - } - if (strcmp(argv[1], "testdepends") == 0) { -#ifndef CCAN_LIKELY_DEBUG - printf("ccan/str\n"); - printf("ccan/htable\n"); - printf("ccan/hash\n"); -#endif - return 0; - } - return 1; -} -- cgit v1.2.3