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
15290c3f
Commit
15290c3f
authored
May 28, 2009
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ccanlint tests all positive: ie. "has _info.c file: FAILED".
parent
c1daa044
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
tools/ccanlint/Makefile
tools/ccanlint/Makefile
+1
-1
tools/ccanlint/has_info.c
tools/ccanlint/has_info.c
+6
-6
tools/ccanlint/trailing_whitespace.c
tools/ccanlint/trailing_whitespace.c
+1
-1
No files found.
tools/ccanlint/Makefile
View file @
15290c3f
OBJS
:=
tools/ccanlint/
no
_info.o
\
OBJS
:=
tools/ccanlint/
has
_info.o
\
tools/ccanlint/has_main_header.o
\
tools/ccanlint/has_tests.o
\
tools/ccanlint/trailing_whitespace.o
\
...
...
tools/ccanlint/
no
_info.c
→
tools/ccanlint/
has
_info.c
View file @
15290c3f
...
...
@@ -11,14 +11,14 @@
#include <string.h>
#include <ccan/noerr/noerr.h>
static
void
*
check_
no
_info
(
struct
manifest
*
m
)
static
void
*
check_
has
_info
(
struct
manifest
*
m
)
{
if
(
m
->
info_file
)
return
NULL
;
return
m
;
}
static
const
char
*
describe_
no
_info
(
struct
manifest
*
m
,
void
*
check_result
)
static
const
char
*
describe_
has
_info
(
struct
manifest
*
m
,
void
*
check_result
)
{
return
"You have no _info.c file.
\n\n
"
"The file _info.c contains the metadata for a ccan package: things
\n
"
...
...
@@ -70,9 +70,9 @@ static void create_info_template(struct manifest *m, void *check_result)
fclose
(
info
);
}
struct
ccanlint
no
_info
=
{
.
name
=
"
No
_info.c file"
,
.
check
=
check_
no
_info
,
.
describe
=
describe_
no
_info
,
struct
ccanlint
has
_info
=
{
.
name
=
"
Has
_info.c file"
,
.
check
=
check_
has
_info
,
.
describe
=
describe_
has
_info
,
.
handle
=
create_info_template
,
};
tools/ccanlint/trailing_whitespace.c
View file @
15290c3f
...
...
@@ -40,7 +40,7 @@ static const char *describe_trailing_whitespace(struct manifest *m,
}
struct
ccanlint
trailing_whitespace
=
{
.
name
=
"
L
ines with unnecessary trailing whitespace"
,
.
name
=
"
No l
ines with unnecessary trailing whitespace"
,
.
total_score
=
1
,
.
check
=
check_trailing_whitespace
,
.
describe
=
describe_trailing_whitespace
,
...
...
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