mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: pass dive to plot function of profile-items
Instead of accessing the global displayed_dive variable, pass the dive to the various profile items. This is a step in making the profile code reentrant. This removes the last user of the displayed_dc macro, which can now be removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
be9f9efb0e
commit
193513a61f
4 changed files with 31 additions and 31 deletions
|
@ -113,7 +113,6 @@ extern struct dive displayed_dive;
|
|||
extern unsigned int dc_number;
|
||||
extern struct dive *current_dive;
|
||||
#define current_dc (get_dive_dc(current_dive, dc_number))
|
||||
#define displayed_dc (get_dive_dc(&displayed_dive, dc_number))
|
||||
|
||||
extern struct dive *get_dive(int nr);
|
||||
extern struct dive *get_dive_from_table(int nr, const struct dive_table *dt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue