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:
Miika Turkia 2017-11-27 20:03:05 +02:00 committed by Dirk Hohndel
parent ddb9dba66c
commit 568db03228
3 changed files with 5 additions and 1 deletions

View file

@ -28,7 +28,6 @@
#include "membuffer.h"
int verbose, quit, force_root;
int metric = 1;
int last_xml_version = -1;
int diveid = -1;

View file

@ -9,6 +9,9 @@
#include "parse.h"
#include "divelist.h"
#include "device.h"
#include "gettext.h"
int metric = 1;
/*
static union {

View file

@ -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);