diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-11-24 10:11:07 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-09 20:58:04 -0800 |
commit | d1971a64f954b001729a0270e2f28bf8fa3f1a4a (patch) | |
tree | 2c00c5d04591e01ac3a4b78ea68fb95de08ce19f /core/dive.h | |
parent | 2802d4296960eb6ad76292baa105075c5427ea67 (diff) | |
download | subsurface-d1971a64f954b001729a0270e2f28bf8fa3f1a4a.tar.gz |
Core: Rename functions to more generic names
Rename
- dive_get_insertion_index() -> dive_table_get_insertion_index()
- unregister_dive_from_table() -> remove_from_dive_table()
- get_idx_in_table() -> get_idx_in_dive_table()
- sort_table() -> sort_dive_table()
This will make it more straight-forward to generate these functions
from macros.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.h b/core/dive.h index a93020507..a6210810d 100644 --- a/core/dive.h +++ b/core/dive.h @@ -542,7 +542,7 @@ extern int legacy_format_o2pressures(const struct dive *dive, const struct divec extern bool dive_less_than(const struct dive *a, const struct dive *b); extern bool trip_less_than(const struct dive_trip *a, const struct dive_trip *b); extern bool dive_or_trip_less_than(struct dive_or_trip a, struct dive_or_trip b); -extern void sort_table(struct dive_table *table); +extern void sort_dive_table(struct dive_table *table); extern struct dive *fixup_dive(struct dive *dive); extern void fixup_dc_duration(struct divecomputer *dc); extern int dive_getUniqID(); |