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
4239dd56
Commit
4239dd56
authored
Jun 29, 2008
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compile fixes
parent
437fa285
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
tools/Makefile
tools/Makefile
+3
-1
tools/grab_file.c
tools/grab_file.c
+1
-1
tools/run_tests.c
tools/run_tests.c
+1
-2
tools/tools.h
tools/tools.h
+1
-3
No files found.
tools/Makefile
View file @
4239dd56
tools/run_tests
:
tools/run_tests.o tools/depends.o tools/split.o tools/grab_file.o ccan/tap/tap.o ccan/talloc/talloc.o
tools/run_tests
:
tools/run_tests.o tools/depends.o tools/split.o tools/grab_file.o ccan/tap/tap.o ccan/talloc/talloc.o
tools/doc_extract
:
tools/doc_extract.c ccan/talloc/talloc.o
tools/namespacize
:
tools/namespacize.c tools/split.o tools/grab_file.o tools/depends.o ccan/talloc/talloc.o
tools/run_tests.o tools/namespacize.o tools/split.o tools/grab_file.o tools/depends.o
:
tools/tools.h
tools-clean
:
ccanlint-clean
rm
-f
run_tests doc_extract namespacize
...
...
tools/grab_file.c
View file @
4239dd56
#include "tools.h"
#include "talloc/talloc.h"
#include "string/string.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
static
int
close_no_errno
(
int
fd
)
{
...
...
tools/run_tests.c
View file @
4239dd56
...
...
@@ -7,8 +7,7 @@
#include "ccan/tap/tap.h"
#include "ccan/talloc/talloc.h"
#include "ccan/string/string.h"
#define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -Iccan -I."
#include "tools.h"
/* FIXME: Use build bug later. */
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
...
...
tools/tools.h
View file @
4239dd56
#ifndef CCAN_TOOLS_H
#define CCAN_TOOLS_H
#define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -I."
#define CFLAGS "-O3 -Wall -Wundef -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Werror -I
ccan/ -I
."
char
**
split
(
const
void
*
ctx
,
const
char
*
text
,
const
char
*
delims
,
unsigned
int
*
nump
);
...
...
@@ -11,7 +11,5 @@ char **get_deps(const void *ctx, const char *dir);
void
*
grab_fd
(
const
void
*
ctx
,
int
fd
);
void
*
grab_file
(
const
void
*
ctx
,
const
char
*
filename
);
#define streq(a,b) (strcmp((a),(b)) == 0)
#endif
/* CCAN_TOOLS_H */
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