Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
99c0d78e
Commit
99c0d78e
authored
Nov 26, 2013
by
Pietro Fezzardi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lib/conf.c: trivial: use builtin blank() function
instead to rewrite every time the checks for the parser
parent
961deb82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
conf.c
lib/conf.c
+2
-2
No files found.
lib/conf.c
View file @
99c0d78e
...
...
@@ -170,7 +170,7 @@ static char *first_word(char *line, char **rest)
line
[
l
--
]
=
'\0'
;
/* skip leading blanks to find first word */
while
(
*
line
&&
blank
(
*
line
))
while
(
*
line
&&
blank
(
*
line
))
line
++
;
ret
=
line
;
/* find next blank and thim there*/
...
...
@@ -290,7 +290,7 @@ static int pp_config_line(struct pp_globals *ppg, char *line, int lineno)
break
;
case
ARG_STR
:
while
(
*
line
&&
(
*
line
==
' '
||
*
line
==
'\t'
))
while
(
*
line
&&
blank
(
*
line
))
line
++
;
cfg_arg
.
s
=
line
;
...
...
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