Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
a0935c36
Commit
a0935c36
authored
Apr 22, 2014
by
Thomas Jahns
🤸
Browse files
Merge initialization and declaration.
parent
41bbde54
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/zaxis.c
View file @
a0935c36
...
...
@@ -133,9 +133,7 @@ void zaxisDefaultValue ( zaxis_t *zaxisptr )
static
zaxis_t
*
zaxisNewEntry
(
int
id
)
{
zaxis_t
*
zaxisptr
;
zaxisptr
=
(
zaxis_t
*
)
xmalloc
(
sizeof
(
zaxis_t
));
zaxis_t
*
zaxisptr
=
(
zaxis_t
*
)
xmalloc
(
sizeof
(
zaxis_t
));
zaxisDefaultValue
(
zaxisptr
);
...
...
@@ -637,9 +635,6 @@ The function @func{zaxisDefLevels} defines the levels of a Z-axis.
*/
void
zaxisDefLevels
(
int
zaxisID
,
const
double
*
levels
)
{
int
ilev
;
int
size
;
double
*
vals
;
zaxis_t
*
zaxisptr
;
if
(
reshGetStatus
(
zaxisID
,
&
zaxisOps
)
==
RESH_CLOSED
)
...
...
@@ -652,11 +647,11 @@ void zaxisDefLevels(int zaxisID, const double *levels)
zaxis_check_ptr
(
zaxisID
,
zaxisptr
);
size
=
zaxisptr
->
size
;
int
size
=
zaxisptr
->
size
;
vals
=
zaxisptr
->
vals
;
double
*
vals
=
zaxisptr
->
vals
;
for
(
ilev
=
0
;
ilev
<
size
;
ilev
++
)
for
(
int
ilev
=
0
;
ilev
<
size
;
ilev
++
)
vals
[
ilev
]
=
levels
[
ilev
];
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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