Fixed all compilation problems with new function names, locations etc

This commit is contained in:
Celine Mercier
2016-04-25 18:35:02 +02:00
parent 92980508c0
commit 87935c6678
6 changed files with 30 additions and 19 deletions

View File

@ -435,7 +435,7 @@ Obiview_p obi_new_view(OBIDMS_p dms, const char* view_name, Obiview_p view_to_cl
Obiviews_infos_all_p views_infos;
// Check uniqueness of name TODO but problem if view not written yet has the same name. Save lists of open views in DMS ?
views_infos = obi_read_views(dms);
views_infos = obi_read_view_infos(dms);
if (views_infos != NULL)
{
for (i=0; i<((views_infos->header)->view_count); i++)
@ -444,11 +444,11 @@ Obiview_p obi_new_view(OBIDMS_p dms, const char* view_name, Obiview_p view_to_cl
{
obi_set_errno(OBIVIEW_ERROR);
obidebug(1, "\nView name already exists for a previous view");
obi_unmap_read_views(views_infos);
obi_close_view_infos(views_infos);
return NULL;
}
}
obi_unmap_read_views(views_infos);
obi_close_view_infos(views_infos);
}
view = (Obiview_p) malloc(sizeof(Obiview_t));
@ -826,7 +826,7 @@ int obi_view_add_column(Obiview_p view,
if (view->line_count > nb_lines)
nb_lines = view->line_count;
else if (nb_lines > view->line_count)
obi_view_update_lines(view, nb_lines);
update_lines(view, nb_lines);
// Open or create the column
if (create)