From 32a4ce61694bfe8364227440ea5716df7cc61fd1 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 28 Sep 2018 13:59:01 +0200 Subject: Parser: parse text-based files into arbitrary table In d815e0c9476ef62e6b84fb28ce48ab7cddefe77e a dive_table pointer was added to the parsing functions to allow parsing into tables other than the global dive table. This will be necessary for undo of import and implementation a cleaner interface. A few cases, notably CSV and proprietary formats were forgotten. Implement parsing into arbitrary tables also for these cases. Signed-off-by: Berthold Stoeger --- core/datatrak.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/datatrak.c') diff --git a/core/datatrak.c b/core/datatrak.c index 1c728aa45..582fb512f 100644 --- a/core/datatrak.c +++ b/core/datatrak.c @@ -602,7 +602,7 @@ int datatrak_import(struct memblock *mem, struct dive_table *table) rc = 1; goto out; } else { - record_dive(ptdive); + record_dive_to_table(ptdive, table); } i++; } -- cgit v1.2.3-70-g09d2