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
70539048
Commit
70539048
authored
Nov 10, 2010
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccanlint: use isspace instead of isblank
I am told that CentOS 5.3 doesn't like isblank (it's ISO C).
parent
da72623a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tools/ccanlint/tests/examples_compile.c
tools/ccanlint/tests/examples_compile.c
+3
-3
No files found.
tools/ccanlint/tests/examples_compile.c
View file @
70539048
...
...
@@ -142,7 +142,7 @@ static char *start_main(char *ret, const char *why)
static
char
*
add_func
(
char
*
others
,
const
char
*
line
)
{
const
char
*
p
,
*
end
=
strchr
(
line
,
'('
)
-
1
;
while
(
is
blank
(
*
end
))
{
while
(
is
space
(
*
end
))
{
end
--
;
if
(
end
==
line
)
return
others
;
...
...
@@ -185,7 +185,7 @@ static bool looks_internal(char **lines, char **why)
const
char
*
line
=
lines
[
i
]
+
strspn
(
lines
[
i
],
"
\t
"
);
unsigned
len
=
strspn
(
line
,
IDENT_CHARS
);
if
(
!
line
[
0
]
||
is
blank
(
line
[
0
])
||
strstarts
(
line
,
"//"
))
if
(
!
line
[
0
]
||
is
space
(
line
[
0
])
||
strstarts
(
line
,
"//"
))
continue
;
/* The winners. */
...
...
@@ -342,7 +342,7 @@ static char *mangle(struct manifest *m, char **lines)
}
else
{
/* Character at start of line, with ( and no ;
* == function start. Ignore comments. */
if
(
!
is
blank
(
lines
[
i
][
0
])
if
(
!
is
space
(
lines
[
i
][
0
])
&&
strchr
(
lines
[
i
],
'('
)
&&
!
strchr
(
lines
[
i
],
';'
)
&&
!
strstr
(
lines
[
i
],
"//"
))
{
...
...
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