Commit 73d64e5a by Celine Mercier

Renamed 'unmap_header' function to 'close_header'

parent 4cb52e16
......@@ -69,7 +69,7 @@ cdef extern from "obidmscolumn.h" nogil:
const_char_p column_name,
obiversion_t version_number)
int obi_unmap_header(OBIDMS_column_header_p header)
int obi_close_header(OBIDMS_column_header_p header)
char* obi_column_format_date(time_t date)
......
......@@ -1358,7 +1358,7 @@ OBIDMS_column_header_p obi_column_get_header_from_name(OBIDMS_p dms, const char*
}
int obi_unmap_header(OBIDMS_column_header_p header)
int obi_close_header(OBIDMS_column_header_p header)
{
if (munmap(header, header->header_size) < 0)
{
......@@ -1386,7 +1386,7 @@ index_t obi_column_get_element_index_from_name(OBIDMS_column_p column, const cha
element_index = 0;
name = strtok (elements_names, ";"); // TODO not thread safe, see strtok_r maybe
name = strtok(elements_names, ";"); // TODO not thread safe, see strtok_r maybe
if (strcmp(element_name, name) == 0)
{
free(elements_names);
......@@ -1396,7 +1396,7 @@ index_t obi_column_get_element_index_from_name(OBIDMS_column_p column, const cha
while (name != NULL)
{
name = strtok (NULL, ";"); // TODO not thread safe, see strtok_r maybe
name = strtok(NULL, ";"); // TODO not thread safe, see strtok_r maybe
if (strcmp(element_name, name) == 0)
{
free(elements_names);
......
......@@ -311,7 +311,7 @@ OBIDMS_column_header_p obi_column_get_header_from_name(OBIDMS_p dms, const char*
* @since October 2015
* @author Celine Mercier (celine.mercier@metabarcoding.org)
*/
int obi_unmap_header(OBIDMS_column_header_p header);
int obi_close_header(OBIDMS_column_header_p header);
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment