Commit 3f0bc581 authored by Arnaud Blanchard's avatar Arnaud Blanchard
Browse files

Fix function header

parent a145383a
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
typedef struct blc_dim { typedef struct blc_dim {
size_t length; ///<number of element for the dimension size_t length; ///<number of element for the dimension
size_t step; ///< shift in bytes to do to pass from one element of this dimension to the next one size_t step; ///< shift in bytes to do to pass from one element of this dimension to the next one
} blc_dim; } blc_dim;
START_EXTERN_C START_EXTERN_C
...@@ -63,7 +61,7 @@ typedef struct blc_array ...@@ -63,7 +61,7 @@ typedef struct blc_array
/**Defines the blc_array but does not allocate memory (data)*/ /**Defines the blc_array but does not allocate memory (data)*/
void def_array(uint32_t type, uint32_t format, int dims_nb, int length0, ...); void def_array(uint32_t type, uint32_t format, int dims_nb, int length0, ...);
/**Defines the blc_array but does not allocate memory (data)*/ /**Defines the blc_array but does not allocate memory (data)*/
void def_array(uint32_t type, uint32_t format, int dims_nb, blc_dim *dims); void def_array(uint32_t type, uint32_t format, int dims_nb, blc_dim const *dims);
/**Defines the blc_array but does not allocate memory (data)*/ /**Defines the blc_array but does not allocate memory (data)*/
void def_array(uint32_t type, uint32_t format, char const *dims_string); void def_array(uint32_t type, uint32_t format, char const *dims_string);
......
...@@ -83,7 +83,7 @@ void blc_array::def_array(uint32_t type, uint32_t format, int dims_nb, int lengt ...@@ -83,7 +83,7 @@ void blc_array::def_array(uint32_t type, uint32_t format, int dims_nb, int lengt
} }
void blc_array::def_array(uint32_t type, uint32_t format, int dims_nb, blc_dim *dims){ void blc_array::def_array(uint32_t type, uint32_t format, int dims_nb, blc_dim const *dims){
this->type=type; this->type=type;
this->format=format; this->format=format;
...@@ -226,7 +226,7 @@ int blc_array::sscan_dims(char const *string){ ...@@ -226,7 +226,7 @@ int blc_array::sscan_dims(char const *string){
dim->length=length; dim->length=length;
dim->step=size; dim->step=size;
size*=dim->length; size*=dim->length;
}while(sscanf(string+total_pos, "x%lu%n", &dim->length, &pos)==1); }while(sscanf(string+total_pos, "x%lu%n", &length, &pos)==1);
} }
total_length=size/get_type_size(); total_length=size/get_type_size();
return total_pos; return total_pos;
......
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