mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Rename enum dive_comp_type to divemode_t
...as the usuage is not anymore about a computer but a momentary dive mode. Rename the end indicator as well. Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
parent
0b836f12fc
commit
969dfee9ec
15 changed files with 43 additions and 43 deletions
|
@ -162,9 +162,9 @@ static duration_t get_duration(const char *line)
|
|||
return d;
|
||||
}
|
||||
|
||||
static enum dive_comp_type get_dctype(const char *line)
|
||||
static enum divemode_t get_dctype(const char *line)
|
||||
{
|
||||
for (enum dive_comp_type i = 0; i < NUM_DC_TYPE; i++) {
|
||||
for (enum divemode_t i = 0; i < NUM_DIVEMODE; i++) {
|
||||
if (strcmp(line, divemode_text[i]) == 0)
|
||||
return i;
|
||||
}
|
||||
|
@ -725,7 +725,7 @@ static void parse_dc_watertemp(char *line, struct membuffer *str, void *_dc)
|
|||
|
||||
|
||||
int get_divemode(const char *divemodestring) {
|
||||
for (int i = 0; i < NUM_DC_TYPE; i++) {
|
||||
for (int i = 0; i < NUM_DIVEMODE; i++) {
|
||||
if (!strcmp(divemodestring, divemode_text[i]))
|
||||
return i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue