fixed typos and other minor things

This commit is contained in:
Celine Mercier
2015-06-10 15:19:02 +02:00
parent 9b6de9c411
commit 5d967f5b7b
9 changed files with 171 additions and 141 deletions

View File

@ -8,17 +8,17 @@
#include <obidms.h>
/***********************************************************************
/************************************************************************
*
* D E C L A R A T I O N O F T H E P R I V A T E F U N C T I O N S
*
***********************************************************************/
************************************************************************/
/**
* Internal function building the directory name from a OBIDMS name.
* Internal function building the directory name from an OBIDMS name.
*
* The function build the directory name corresponding to a OBIDMS.
* The function builds the directory name corresponding to an OBIDMS.
* It checks also that the name is not too long.
*
* @warning The returned pointer has to be freed by the caller.
@ -30,7 +30,7 @@
* @retvalue NULL if an error occurs
*
* ###Error values
* - OBIDMS_MEMORY_ERROR : something wrong occurs during memory allocation.
* - OBIDMS_MEMORY_ERROR : something wrong occured during memory allocation.
* - OBIDMS_LONG_NAME_ERROR : the database name exceeds the limit.
*
* @since May 2015
@ -58,6 +58,7 @@ static char *build_directory_name(const char *name) {
return dirdbname;
}
/***********************************************************************
*
* D E F I N I T I O N O F T H E P R I V A T E F U N C T I O N S
@ -111,6 +112,7 @@ OBIDMS_p obi_create_dms(const char *name) {
return obi_open_dms(name);
}
OBIDMS_p obi_open_dms(const char *name) {
OBIDMS_p dms=NULL;
char *dirdbname;
@ -162,6 +164,7 @@ OBIDMS_p obi_open_dms(const char *name) {
return dms;
}
OBIDMS_p obi_dms(const char *name) {
int exist = obi_dms_exists(name);