Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
a8b248ea
Commit
a8b248ea
authored
Nov 10, 2008
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify -I lines: change includes to ccan/
parent
4905f6d4
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
24 additions
and
26 deletions
+24
-26
Makefile
Makefile
+0
-2
Makefile-ccan
Makefile-ccan
+1
-1
ccan/alloc/alloc.c
ccan/alloc/alloc.c
+2
-2
ccan/antithread/antithread.c
ccan/antithread/antithread.c
+3
-3
ccan/container_of/container_of.h
ccan/container_of/container_of.h
+1
-1
ccan/grab_file/grab_file.c
ccan/grab_file/grab_file.c
+2
-2
ccan/hash/hash.c
ccan/hash/hash.c
+1
-1
ccan/list/list.c
ccan/list/list.c
+1
-1
ccan/list/list.h
ccan/list/list.h
+1
-1
ccan/str_talloc/str_talloc.c
ccan/str_talloc/str_talloc.c
+1
-1
ccan/talloc/talloc.h
ccan/talloc/talloc.h
+1
-1
tools/ccan_depends.c
tools/ccan_depends.c
+2
-2
tools/depends.c
tools/depends.c
+4
-4
tools/doc_extract.c
tools/doc_extract.c
+4
-4
No files found.
Makefile
View file @
a8b248ea
...
...
@@ -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)
)
...
...
Makefile-ccan
View file @
a8b248ea
...
...
@@ -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 -I
ccan -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)
...
...
ccan/alloc/alloc.c
View file @
a8b248ea
...
...
@@ -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
...
...
ccan/antithread/antithread.c
View file @
a8b248ea
...
...
@@ -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
...
...
ccan/container_of/container_of.h
View file @
a8b248ea
...
...
@@ -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
...
...
ccan/grab_file/grab_file.c
View file @
a8b248ea
#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>
...
...
ccan/hash/hash.c
View file @
a8b248ea
...
...
@@ -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
...
...
ccan/list/list.c
View file @
a8b248ea
#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
)
{
...
...
ccan/list/list.h
View file @
a8b248ea
#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
...
...
ccan/str_talloc/str_talloc.c
View file @
a8b248ea
...
...
@@ -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
)
...
...
ccan/talloc/talloc.h
View file @
a8b248ea
...
...
@@ -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
...
...
tools/ccan_depends.c
View file @
a8b248ea
...
...
@@ -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
[])
{
...
...
tools/depends.c
View file @
a8b248ea
#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>
...
...
tools/doc_extract.c
View file @
a8b248ea
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment