mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Move metric variable to parse.c
This is required when moving Shearwater DB parsing into parse-db.c Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
ddb9dba66c
commit
568db03228
3 changed files with 5 additions and 1 deletions
|
@ -28,7 +28,6 @@
|
|||
#include "membuffer.h"
|
||||
|
||||
int verbose, quit, force_root;
|
||||
int metric = 1;
|
||||
int last_xml_version = -1;
|
||||
int diveid = -1;
|
||||
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
#include "parse.h"
|
||||
#include "divelist.h"
|
||||
#include "device.h"
|
||||
#include "gettext.h"
|
||||
|
||||
int metric = 1;
|
||||
|
||||
/*
|
||||
static union {
|
||||
|
|
|
@ -53,6 +53,8 @@ enum import_source {
|
|||
extern struct dive_table dive_table;
|
||||
extern struct dive_table *target_table;
|
||||
|
||||
extern int metric;
|
||||
|
||||
int trimspace(char *buffer);
|
||||
void clear_table(struct dive_table *table);
|
||||
void record_dive_to_table(struct dive *dive, struct dive_table *table);
|
||||
|
|
Loading…
Add table
Reference in a new issue