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
02358a94
Commit
02358a94
authored
Jan 12, 2013
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccanlint: handle when _info doesn't compile.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
d61a0d6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
tools/ccanlint/tests/depends_exist.c
tools/ccanlint/tests/depends_exist.c
+5
-0
tools/depends.c
tools/depends.c
+2
-0
No files found.
tools/ccanlint/tests/depends_exist.c
View file @
02358a94
...
@@ -57,6 +57,11 @@ static void check_depends_exist(struct manifest *m,
...
@@ -57,6 +57,11 @@ static void check_depends_exist(struct manifest *m,
deps
=
get_deps
(
m
,
m
->
dir
,
"depends"
,
true
,
deps
=
get_deps
(
m
,
m
->
dir
,
"depends"
,
true
,
get_or_compile_info
);
get_or_compile_info
);
if
(
!
deps
)
{
score
->
error
=
tal_fmt
(
m
,
"Could not extract dependencies"
);
return
;
}
for
(
i
=
0
;
deps
[
i
];
i
++
)
{
for
(
i
=
0
;
deps
[
i
];
i
++
)
{
if
(
!
strstarts
(
deps
[
i
],
"ccan/"
))
if
(
!
strstarts
(
deps
[
i
],
"ccan/"
))
continue
;
continue
;
...
...
tools/depends.c
View file @
02358a94
...
@@ -198,6 +198,8 @@ get_all_deps(const void *ctx, const char *dir, const char *style,
...
@@ -198,6 +198,8 @@ get_all_deps(const void *ctx, const char *dir, const char *style,
unsigned
int
i
;
unsigned
int
i
;
deps
=
get_one
(
ctx
,
dir
,
style
,
get_info
);
deps
=
get_one
(
ctx
,
dir
,
style
,
get_info
);
if
(
!
deps
)
return
NULL
;
for
(
i
=
0
;
i
<
tal_count
(
deps
)
-
1
;
i
++
)
{
for
(
i
=
0
;
i
<
tal_count
(
deps
)
-
1
;
i
++
)
{
char
**
newdeps
;
char
**
newdeps
;
unsigned
int
j
;
unsigned
int
j
;
...
...
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