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
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue