From 8dbcd3025ab77c1a5adf493317e370819d5ba1ac Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Mon, 13 Apr 2020 14:47:56 +0200 Subject: [PATCH] C: Columns: reduced column growth factor from 2 to 1.3 to avoid errno28 --- python/obitools3/version.py | 2 +- src/obidmscolumn.h | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python/obitools3/version.py b/python/obitools3/version.py index 03915f2..f555b67 100755 --- a/python/obitools3/version.py +++ b/python/obitools3/version.py @@ -1,5 +1,5 @@ major = 3 minor = 0 -serial= '0-beta13' +serial= '0-beta13.1' version ="%d.%02d.%s" % (major,minor,serial) diff --git a/src/obidmscolumn.h b/src/obidmscolumn.h index d9599e0..f4cadde 100755 --- a/src/obidmscolumn.h +++ b/src/obidmscolumn.h @@ -34,7 +34,7 @@ #define NB_ELTS_MAX_IF_DEFAULT_NAME (1000000) /**< The maximum number of elements per line if the default element names * are used ("0\01\02\0...\0n"), considering ELEMENTS_NAMES_MAX. // TODO not up to date */ -#define COLUMN_GROWTH_FACTOR (2) /**< The growth factor when a column is enlarged. +#define COLUMN_GROWTH_FACTOR (1.3) /**< The growth factor when a column is enlarged. */ #define MAXIMUM_LINE_COUNT (1000000000) /**< The maximum line count for the data of a column (1E9). //TODO */ @@ -505,6 +505,14 @@ index_t obi_column_get_element_index_from_name(OBIDMS_column_p column, const cha char* obi_get_elements_names(OBIDMS_column_p column); +// TODO +//char* obi_get_formatted_elements_names(OBIDMS_column_p column); + + +// TODO +//char* obi_column_formatted_infos(OBIDMS_column_p column); + + /** * @brief Prepares a column to set a value. *