Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libconfig
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
libconfig
Commits
e9f8a6a9
Unverified
Commit
e9f8a6a9
authored
Sep 30, 2021
by
Mark Lindner
Committed by
GitHub
Sep 30, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #205 from payano/master
Make sure function arguments are used
parents
77d5bf5a
4ae3d463
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
0 deletions
+13
-0
examples/c++/example1.cpp
examples/c++/example1.cpp
+3
-0
examples/c++/example2.cpp
examples/c++/example2.cpp
+3
-0
examples/c++/example3.cpp
examples/c++/example3.cpp
+3
-0
examples/c++/example4.cpp
examples/c++/example4.cpp
+3
-0
lib/libconfigcpp.c++
lib/libconfigcpp.c++
+1
-0
No files found.
examples/c++/example1.cpp
View file @
e9f8a6a9
...
...
@@ -33,6 +33,9 @@ using namespace libconfig;
int
main
(
int
argc
,
char
**
argv
)
{
(
void
)
argc
;
(
void
)
argv
;
Config
cfg
;
// Read the file. If there is an error, report it and exit.
...
...
examples/c++/example2.cpp
View file @
e9f8a6a9
...
...
@@ -34,6 +34,9 @@ using namespace libconfig;
int
main
(
int
argc
,
char
**
argv
)
{
(
void
)
argc
;
(
void
)
argv
;
static
const
char
*
output_file
=
"updated.cfg"
;
Config
cfg
;
...
...
examples/c++/example3.cpp
View file @
e9f8a6a9
...
...
@@ -33,6 +33,9 @@ using namespace libconfig;
int
main
(
int
argc
,
char
**
argv
)
{
(
void
)
argc
;
(
void
)
argv
;
static
const
char
*
output_file
=
"newconfig.cfg"
;
Config
cfg
;
...
...
examples/c++/example4.cpp
View file @
e9f8a6a9
...
...
@@ -33,6 +33,9 @@ using namespace libconfig;
int
main
(
int
argc
,
char
**
argv
)
{
(
void
)
argc
;
(
void
)
argv
;
Config
cfg
;
try
...
...
lib/libconfigcpp.c++
View file @
e9f8a6a9
...
...
@@ -42,6 +42,7 @@ static const char **__include_func(config_t *config,
const
char
*
path
,
const
char
**
error
)
{
(
void
)
include_dir
;
Config
*
self
=
reinterpret_cast
<
Config
*>
(
config_get_hook
(
config
));
return
(
self
->
evaluateIncludePath
(
path
,
error
));
}
...
...
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