Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpim-sw
libcdi
Commits
84ca2279
Commit
84ca2279
authored
8 years ago
by
Thomas Jahns
Committed by
Sergey Kosukhin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Rename constant.
parent
1eab399d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/vlist.c
+6
-6
6 additions, 6 deletions
src/vlist.c
with
6 additions
and
6 deletions
src/vlist.c
+
6
−
6
View file @
84ca2279
...
...
@@ -1520,7 +1520,7 @@ enum
VLIST_PACK_INT_TABLEID
,
VLIST_PACK_INT_INSTID
,
VLIST_PACK_INT_MODELID
,
vlist
_n
ints
,
vlist
N
ints
,
};
static
int
...
...
@@ -1534,7 +1534,7 @@ static int
vlistGetSizeP
(
void
*
vlistptr
,
void
*
context
)
{
vlist_t
*
p
=
(
vlist_t
*
)
vlistptr
;
int
txsize
=
serializeGetSize
(
vlist
_n
ints
,
CDI_DATATYPE_INT
,
context
);
int
txsize
=
serializeGetSize
(
vlist
N
ints
,
CDI_DATATYPE_INT
,
context
);
txsize
+=
serializeGetSize
(
1
,
CDI_DATATYPE_LONG
,
context
);
txsize
+=
cdiAttsGetSize
(
p
,
CDI_GLOBAL
,
context
);
for
(
int
varID
=
0
;
varID
<
p
->
nvars
;
varID
++
)
txsize
+=
vlistVarGetPackSize
(
p
,
varID
,
context
);
...
...
@@ -1544,7 +1544,7 @@ vlistGetSizeP(void *vlistptr, void *context)
static
void
vlistPackP
(
void
*
vlistptr
,
void
*
buf
,
int
size
,
int
*
position
,
void
*
context
)
{
int
tempbuf
[
vlist
_n
ints
];
int
tempbuf
[
vlist
N
ints
];
vlist_t
*
p
=
(
vlist_t
*
)
vlistptr
;
tempbuf
[
VLIST_PACK_INT_SELF
]
=
p
->
self
;
tempbuf
[
VLIST_PACK_INT_NVARS
]
=
p
->
nvars
;
...
...
@@ -1552,7 +1552,7 @@ vlistPackP(void *vlistptr, void *buf, int size, int *position, void *context)
tempbuf
[
VLIST_PACK_INT_TABLEID
]
=
p
->
tableID
;
tempbuf
[
VLIST_PACK_INT_INSTID
]
=
p
->
instID
;
tempbuf
[
VLIST_PACK_INT_MODELID
]
=
p
->
modelID
;
serializePack
(
tempbuf
,
vlist
_n
ints
,
CDI_DATATYPE_INT
,
buf
,
size
,
position
,
context
);
serializePack
(
tempbuf
,
vlist
N
ints
,
CDI_DATATYPE_INT
,
buf
,
size
,
position
,
context
);
serializePack
(
&
p
->
ntsteps
,
1
,
CDI_DATATYPE_LONG
,
buf
,
size
,
position
,
context
);
cdiAttsPack
(
p
,
CDI_GLOBAL
,
buf
,
size
,
position
,
context
);
...
...
@@ -1566,8 +1566,8 @@ void
vlistUnpack
(
char
*
buf
,
int
size
,
int
*
position
,
int
originNamespace
,
void
*
context
,
int
force_id
)
{
#define adaptKey(key) (namespaceAdaptKey((key), originNamespace))
int
tempbuf
[
vlist
_n
ints
];
serializeUnpack
(
buf
,
size
,
position
,
tempbuf
,
vlist
_n
ints
,
CDI_DATATYPE_INT
,
context
);
int
tempbuf
[
vlist
N
ints
];
serializeUnpack
(
buf
,
size
,
position
,
tempbuf
,
vlist
N
ints
,
CDI_DATATYPE_INT
,
context
);
int
nvars
=
tempbuf
[
VLIST_PACK_INT_NVARS
];
int
targetID
=
force_id
?
adaptKey
(
tempbuf
[
VLIST_PACK_INT_SELF
])
:
CDI_UNDEFID
;
vlist_t
*
p
=
vlist_new_entry
(
targetID
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment