]> git.ozlabs.org Git - ccan/commitdiff
Simplify -I lines: change includes to ccan/
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Nov 2008 06:12:46 +0000 (17:12 +1100)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 10 Nov 2008 06:12:46 +0000 (17:12 +1100)
14 files changed:
Makefile
Makefile-ccan
ccan/alloc/alloc.c
ccan/antithread/antithread.c
ccan/container_of/container_of.h
ccan/grab_file/grab_file.c
ccan/hash/hash.c
ccan/list/list.c
ccan/list/list.h
ccan/str_talloc/str_talloc.c
ccan/talloc/talloc.h
tools/ccan_depends.c
tools/depends.c
tools/doc_extract.c

index d3e05e9fcd256390642547ea701829fa0823705d..5ebdd7dbbd0ca9bdbc28b3a5e1c96d4da6b6aeb1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,6 @@
 # This can be overridden on cmdline to generate pages elsewhere.
 WEBDIR=~/www/html/ccan/
 
-CFLAGS=-g -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan -I.
-
 ALL=$(patsubst ccan/%/test, %, $(wildcard ccan/*/test))
 ALL_DIRS=$(patsubst %, ccan/%, $(ALL))
 ALL_DEPENDS=$(patsubst %, ccan/%/.depends, $(ALL))
index cbd9871cbec8cebfdbd9657caaa4263a4e51e3b2..b2e390785b609393eeeb6e87701cbfa88f45e61a 100644 (file)
@@ -2,7 +2,7 @@
 # You could just do:
 #      SRCFILES += $(shell find ccan/ -name '[a-z]*.c')
 
-CFLAGS=-g -O2 -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan -I.
+CFLAGS=-g -O2 -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -I.
 
 CFILES=$(wildcard ccan/*/[a-z]*.c)
 OBJFILES=$(CFILES:.c=.o)
index 5c851d824469b334c2425d83ef2ce36d9a317cbb..d5accb40a581308b60ca76e233ee73968bcf9a2b 100644 (file)
@@ -5,8 +5,8 @@
 #include <assert.h>
 #include <stdlib.h>
 #include "alloc.h"
-#include "build_assert/build_assert.h"
-#include "alignof/alignof.h"
+#include <ccan/build_assert/build_assert.h>
+#include <ccan/alignof/alignof.h>
 #include "config.h"
 
 /* FIXME: We assume getpagesize() doesnt change.  Remapping file with
index 273b56905577487e432545571a842442271c4a25..9297cdac1d7f7b992e92e6284516df35778ff938 100644 (file)
@@ -9,9 +9,9 @@
 #include <errno.h>
 #include <err.h>
 #include "antithread.h"
-#include "noerr/noerr.h"
-#include "talloc/talloc.h"
-#include "alloc/alloc.h"
+#include <ccan/noerr/noerr.h>
+#include <ccan/talloc/talloc.h>
+#include <ccan/alloc/alloc.h>
 
 /* FIXME: Valgrind support should be possible for some cases.  Tricky
  * case is where another process allocates for you, but at worst we
index 1f4b18e4426a1c3c0bfc5c47e2a4e807ae7e2a52..ec66f106f2aeb0144b17455973607b873ae88731 100644 (file)
@@ -3,7 +3,7 @@
 #include <stddef.h>
 
 #include "config.h"
-#include "check_type/check_type.h"
+#include <ccan/check_type/check_type.h>
 
 /**
  * container_of - get pointer to enclosing structure
index 6f2c9fe17e9473f5c3a84d423e30fb35e01283bd..f21e1e5e3ac5356172d7406ff0f3b6c9faff8f18 100644 (file)
@@ -1,6 +1,6 @@
 #include "grab_file.h"
-#include "talloc/talloc.h"
-#include "noerr/noerr.h"
+#include <ccan/talloc/talloc.h>
+#include <ccan/noerr/noerr.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
index 104a2958ff26b7597827f5593a73412fe61e7da0..5e106ad35cc4e4a85d65edc3c7025a0588f2990f 100644 (file)
@@ -42,7 +42,7 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy.
 #include <sys/param.h>  /* attempt to define endianness */
 #endif
 
-#include "hash/hash.h"
+#include "hash.h"
 #ifdef linux
 # include <endian.h>    /* attempt to define endianness */
 #endif
index b72f8f67d87705c7af25af874ec08269c6080e41..0a9e4e4d2d5d092ef1449b82c4a72781033fadc9 100644 (file)
@@ -1,6 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
-#include "list/list.h"
+#include "list.h"
 
 struct list_head *list_check(struct list_head *h, const char *abortstr)
 {
index c664d83426af36d78304ae98b33f8dd04f98c21e..58c0a97c43246185e2dcb17adb103a922f19e277 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef CCAN_LIST_H
 #define CCAN_LIST_H
 #include <stdbool.h>
-#include "container_of/container_of.h"
+#include <ccan/container_of/container_of.h>
 
 /**
  * struct list_node - an entry in a doubly-linked list
index 7438f48033052eb1ae4fd56df267632dc9594cef..d1d2f44de4b875b994b4cd8e5899981a759bf44e 100644 (file)
@@ -4,7 +4,7 @@
 #include <limits.h>
 #include <stdlib.h>
 #include "str_talloc.h"
-#include "talloc/talloc.h"
+#include <ccan/talloc/talloc.h>
 
 char **strsplit(const void *ctx, const char *string, const char *delims,
                 unsigned int *nump)
index 380009f380f8f16893019e33c178fe8eb575074a..4efe3b9bc1bf6463217d191b4d0cdff9b380b23f 100644 (file)
@@ -26,8 +26,8 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdarg.h>
+#include <ccan/typesafe_cb/typesafe_cb.h>
 #include "config.h"
-#include "typesafe_cb/typesafe_cb.h"
 
 /*
   this uses a little trick to allow __LINE__ to be stringified
index 0511648e45db045f416c3a9cf0f12ba74783e768..91d7c98983c772c6acc989b467d2e782be209ccd 100644 (file)
@@ -2,8 +2,8 @@
 #include <err.h>
 #include <stdlib.h>
 #include <stdio.h>
-#include "str/str.h"
-#include "talloc/talloc.h"
+#include <ccan/str/str.h>
+#include <ccan/talloc/talloc.h>
 
 int main(int argc, char *argv[])
 {
index c631b9bc82968747147a1fd7328297a5d9fff3bc..5878ef61e0f1cf9a536e06dede43a67c04370391 100644 (file)
@@ -1,7 +1,7 @@
-#include "talloc/talloc.h"
-#include "str/str.h"
-#include "grab_file/grab_file.h"
-#include "str_talloc/str_talloc.h"
+#include <ccan/talloc/talloc.h>
+#include <ccan/str/str.h>
+#include <ccan/grab_file/grab_file.h>
+#include <ccan/str_talloc/str_talloc.h>
 #include "tools.h"
 #include <err.h>
 #include <stdbool.h>
index fb7024a75daccb6baff61b0947ef8876ec24c19b..987ca1ad3db07cb7342e48906e2c31edb885b4fb 100644 (file)
@@ -8,10 +8,10 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <stdbool.h>
-#include "talloc/talloc.h"
-#include "str/str.h"
-#include "str_talloc/str_talloc.h"
-#include "grab_file/grab_file.h"
+#include <ccan/talloc/talloc.h>
+#include <ccan/str/str.h>
+#include <ccan/str_talloc/str_talloc.h>
+#include <ccan/grab_file/grab_file.h>
 
 static char **grab_doc(const char *fname)
 {