Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
blaar
blibs
blc_core
Commits
3f0bc581
Commit
3f0bc581
authored
Aug 29, 2019
by
Arnaud Blanchard
Browse files
Fix function header
parent
a145383a
Changes
2
Show whitespace changes
Inline
Side-by-side
include/blc_array.h
View file @
3f0bc581
...
...
@@ -33,8 +33,6 @@
typedef
struct
blc_dim
{
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
}
blc_dim
;
START_EXTERN_C
...
...
@@ -63,7 +61,7 @@ typedef struct blc_array
/**Defines the blc_array but does not allocate memory (data)*/
void
def_array
(
uint32_t
type
,
uint32_t
format
,
int
dims_nb
,
int
length0
,
...);
/**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)*/
void
def_array
(
uint32_t
type
,
uint32_t
format
,
char
const
*
dims_string
);
...
...
src/blc_array.cpp
View file @
3f0bc581
...
...
@@ -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
->
format
=
format
;
...
...
@@ -226,7 +226,7 @@ int blc_array::sscan_dims(char const *string){
dim
->
length
=
length
;
dim
->
step
=
size
;
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
();
return
total_pos
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment