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
236b6d20
Commit
236b6d20
authored
Dec 08, 2014
by
Thomas Jahns
🤸
Browse files
Rename variables to clarify purpose.
parent
2a7a80fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/resource_unpack.c
View file @
236b6d20
...
...
@@ -21,7 +21,7 @@
void
reshUnpackResources
(
char
*
unpackBuffer
,
int
unpackBufferSize
,
void
*
context
)
{
int
token1
,
token2
,
originNamespace
;
int
updateType
,
resH
,
originNamespace
;
int
unpackBufferPos
=
0
;
int
numAssociations
=
0
,
sizeAssociations
=
16
;
struct
streamAssoc
*
associations
...
...
@@ -39,10 +39,10 @@ void reshUnpackResources(char * unpackBuffer, int unpackBufferSize,
while
(
unpackBufferPos
<
unpackBufferSize
)
{
serializeUnpack
(
unpackBuffer
,
unpackBufferSize
,
&
unpackBufferPos
,
&
token1
,
1
,
DATATYPE_INT
,
context
);
if
(
token1
==
END
)
&
updateType
,
1
,
DATATYPE_INT
,
context
);
if
(
updateType
==
END
)
break
;
switch
(
token1
)
switch
(
updateType
)
{
case
GRID
:
gridUnpack
(
unpackBuffer
,
unpackBufferSize
,
&
unpackBufferPos
,
...
...
@@ -80,8 +80,8 @@ void reshUnpackResources(char * unpackBuffer, int unpackBufferSize,
break
;
case
RESH_DELETE
:
serializeUnpack
(
unpackBuffer
,
unpackBufferSize
,
&
unpackBufferPos
,
&
token2
,
1
,
DATATYPE_INT
,
context
);
reshDestroy
(
namespaceAdaptKey
(
token2
,
originNamespace
));
&
resH
,
1
,
DATATYPE_INT
,
context
);
reshDestroy
(
namespaceAdaptKey
(
resH
,
originNamespace
));
break
;
default:
xabort
(
"TOKEN MAPS NO VALID DATATYPE"
);
...
...
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