summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-09 17:36:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-10 15:57:39 -0800
commit193513a61fc7fcfb31c1cb969f7fe05452abd67c (patch)
treef03f35cc5c5eb49c43e14d30cbe79ab7a82ada84 /core
parentbe9f9efb0eae6f09db4c61de7a5156b186dc2ad6 (diff)
downloadsubsurface-193513a61fc7fcfb31c1cb969f7fe05452abd67c.tar.gz
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>
Diffstat (limited to 'core')
-rw-r--r--core/dive.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h
index 5bd5989d7..9c847ee90 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -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);