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:
Berthold Stoeger 2024-05-04 18:45:55 +02:00 committed by bstoeger
parent 03b910ee7f
commit b56dd13add
104 changed files with 364 additions and 577 deletions

View file

@ -4,15 +4,14 @@
#ifndef SELECTION_H
#define SELECTION_H
#include <vector>
#include <QVector>
struct dive;
extern int amount_selected;
extern struct dive *current_dive;
/*** C and C++ functions ***/
extern "C" {
extern struct dive *first_selected_dive(void);
extern struct dive *last_selected_dive(void);
extern bool consecutive_selected(void);
@ -27,13 +26,6 @@ extern void clear_selection(void);
extern void dump_selection(void);
#endif
}
/*** C++-only functions ***/
#include <vector>
#include <QVector>
// Reset the selection to the dives of the "selection" vector and send the appropriate signals.
// Set the current dive to "currentDive" and the current dive computer to "currentDc".
// "currentDive" must be an element of "selection" (or null if "seletion" is empty).