X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Farray%2F_info.c;fp=ccan%2Farray%2F_info.c;h=0000000000000000000000000000000000000000;hb=570c9c555f076e74f46141bb42b5d1d7ac89f632;hp=af3bd39f6fbf6bcfa1b2e9f80759838d4b65882f;hpb=8f61c0bccb152b2365baf70deac1e59264d7feb7;p=ccan diff --git a/ccan/array/_info.c b/ccan/array/_info.c deleted file mode 100644 index af3bd39f..00000000 --- a/ccan/array/_info.c +++ /dev/null @@ -1,62 +0,0 @@ -#include -#include "config.h" - -#include "ccan/array/array.h" - -/** - * array - A collection of macros for generic dynamic array management. - * - * The array module provides generic dynamic array functions via macros. It - * removes the tedium of managing realloc'd arrays with pointer, size, and - * allocated size. It also fits into structures quite well. It uses the - * talloc library to allocate the memory. - * - * NOTE: The API should be fairly stable now, but do expect small changes - * over time. - * - * Example: - * #include - * #include - * - * int main(void) { - * array(int) numbers = array_new(NULL); - * char buffer[32]; - * int add; - * - * for (;;) { - * array_for(i, numbers, printf("%d ", *i)) - * if (numbers.size) puts(""); - * - * printf("array> "); - * fgets(buffer, sizeof(buffer), stdin); - * if (*buffer==0 || *buffer=='\n') - * break; - * add = atoi(buffer); - * - * array_append(numbers, add); - * } - * - * array_free(numbers); - * - * return 0; - * } - * - * Author: Joey Adams - * Version: 0.1 - * Licence: BSD - */ -int main(int argc, char *argv[]) -{ - if (argc != 2) - return 1; - - if (strcmp(argv[1], "depends") == 0) - #ifndef ARRAY_USE_TALLOC - /* Nothing. */ - #else - printf("ccan/talloc\n"); - #endif - return 0; - - return 1; -}