Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
53e183b3
Commit
53e183b3
authored
Jun 30, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove debug output
parent
1db95908
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
libcaf_core/src/parse_ini.cpp
libcaf_core/src/parse_ini.cpp
+0
-6
No files found.
libcaf_core/src/parse_ini.cpp
View file @
53e183b3
...
...
@@ -29,30 +29,24 @@ namespace detail {
void
parse_ini_t
::
operator
()(
std
::
istream
&
input
,
config_consumer
consumer_fun
,
optional
<
std
::
ostream
&>
errors
)
const
{
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
// wraps a temporary into an (lvalue) config_value and calls `consumer_fun`
auto
consumer
=
[
&
](
size_t
ln
,
std
::
string
name
,
config_value
x
)
{
consumer_fun
(
ln
,
std
::
move
(
name
),
x
);
};
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
std
::
string
group
;
std
::
string
line
;
size_t
ln
=
0
;
// line number
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
auto
print
=
[
&
](
const
char
*
category
,
const
char
*
str
)
{
if
(
errors
)
*
errors
<<
category
<<
" INI file line "
<<
ln
<<
": "
<<
str
<<
std
::
endl
;
};
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
auto
print_error
=
[
&
](
const
char
*
str
)
{
print
(
"[ERROR]"
,
str
);
};
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
auto
print_warning
=
[
&
](
const
char
*
str
)
{
print
(
"[WARNING]"
,
str
);
};
printf
(
"%s %d
\n
"
,
__FILE__
,
__LINE__
);
while
(
std
::
getline
(
input
,
line
))
{
++
ln
;
// get begin-of-line (bol) and end-of-line (eol), ignoring whitespaces
...
...
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