mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
build: remove extern "C" linkage
No more C source files, no more necessity to use C-linkage. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
03b910ee7f
commit
b56dd13add
104 changed files with 364 additions and 577 deletions
|
@ -25,7 +25,7 @@ std::string testqml;
|
|||
*/
|
||||
bool imported = false;
|
||||
|
||||
extern "C" void print_version()
|
||||
void print_version()
|
||||
{
|
||||
static bool version_printed = false;
|
||||
if (version_printed)
|
||||
|
@ -43,7 +43,7 @@ extern "C" void print_version()
|
|||
version_printed = true;
|
||||
}
|
||||
|
||||
extern "C" void print_files()
|
||||
void print_files()
|
||||
{
|
||||
struct git_info info;
|
||||
std::optional<std::string> filename;
|
||||
|
@ -89,7 +89,7 @@ static void print_help()
|
|||
printf("\n --cloud-timeout=<nr> Set timeout for cloud connection (0 < timeout < 60)\n\n");
|
||||
}
|
||||
|
||||
extern "C" void parse_argument(const char *arg)
|
||||
void parse_argument(const char *arg)
|
||||
{
|
||||
const char *p = arg + 1;
|
||||
|
||||
|
@ -191,7 +191,7 @@ extern "C" void parse_argument(const char *arg)
|
|||
* I guess Burma and Liberia should trigger this too. I'm too
|
||||
* lazy to look up the territory names, though.
|
||||
*/
|
||||
extern "C" void setup_system_prefs(void)
|
||||
void setup_system_prefs(void)
|
||||
{
|
||||
const char *env;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue