Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
acd742d2
Commit
acd742d2
authored
Aug 03, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ConfigData: remove C++ checks
parent
d1e7b4e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
ConfigData.hxx
src/ConfigData.hxx
+0
-20
No files found.
src/ConfigData.hxx
View file @
acd742d2
...
...
@@ -24,13 +24,9 @@
#include "gerror.h"
#include "gcc.h"
#ifdef __cplusplus
#include <string>
#include <array>
#include <vector>
#endif
#ifdef __cplusplus
struct
block_param
{
std
::
string
name
;
...
...
@@ -48,8 +44,6 @@ struct block_param {
:
name
(
_name
),
value
(
_value
),
line
(
_line
),
used
(
false
)
{}
};
#endif
struct
config_param
{
/**
* The next config_param with the same name. The destructor
...
...
@@ -60,7 +54,6 @@ struct config_param {
char
*
value
;
unsigned
int
line
;
#ifdef __cplusplus
std
::
vector
<
block_param
>
block_params
;
/**
...
...
@@ -89,21 +82,12 @@ struct config_param {
gcc_nonnull_all
gcc_pure
const
block_param
*
GetBlockParam
(
const
char
*
_name
)
const
;
#endif
};
#ifdef __cplusplus
struct
ConfigData
{
std
::
array
<
config_param
*
,
std
::
size_t
(
CONF_MAX
)
>
params
;
};
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
gcc_pure
const
char
*
config_get_block_string
(
const
struct
config_param
*
param
,
const
char
*
name
,
...
...
@@ -133,8 +117,4 @@ bool
config_get_block_bool
(
const
struct
config_param
*
param
,
const
char
*
name
,
bool
default_value
);
#ifdef __cplusplus
}
#endif
#endif
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