mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: remove __cplusplus ifdefs
Since all source files are now C++, this is redundant. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9065bf8622
commit
03b910ee7f
55 changed files with 37 additions and 347 deletions
|
@ -1,9 +1,9 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
// Small helper class that keeps track of key/value pairs to
|
||||
// pass to the XML-routines as parameters. Uses C++ for memory
|
||||
// management, but provides a C interface via anonymous struct.
|
||||
// pass to the XML-routines as parameters.
|
||||
#ifndef XMLPARAMS_H
|
||||
#define XMLPARAMS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
@ -12,15 +12,7 @@ struct xml_params {
|
|||
mutable std::vector<const char *> data;
|
||||
};
|
||||
|
||||
#else
|
||||
|
||||
struct xml_params;
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Return values marked as "not stable" may be invalidated when calling
|
||||
// an xml_params_*() function that takes a non-const xml_params parameter.
|
||||
|
@ -35,6 +27,6 @@ extern const char *xml_params_get_value(const struct xml_params *params, int idx
|
|||
extern void xml_params_set_value(struct xml_params *params, int idx, const char *value);
|
||||
extern const char **xml_params_get(const struct xml_params *params); // not stable
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue