Skip to content
Snippets Groups Projects
Commit 84ca2279 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel: Committed by Sergey Kosukhin
Browse files

Rename constant.

parent 1eab399d
No related branches found
No related tags found
No related merge requests found
......@@ -1520,7 +1520,7 @@ enum
VLIST_PACK_INT_TABLEID,
VLIST_PACK_INT_INSTID,
VLIST_PACK_INT_MODELID,
vlist_nints,
vlistNints,
};
static int
......@@ -1534,7 +1534,7 @@ static int
vlistGetSizeP(void *vlistptr, void *context)
{
vlist_t *p = (vlist_t *) vlistptr;
int txsize = serializeGetSize(vlist_nints, CDI_DATATYPE_INT, context);
int txsize = serializeGetSize(vlistNints, 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_nints];
int tempbuf[vlistNints];
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_nints, CDI_DATATYPE_INT, buf, size, position, context);
serializePack(tempbuf, vlistNints, 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_nints];
serializeUnpack(buf, size, position, tempbuf, vlist_nints, CDI_DATATYPE_INT, context);
int tempbuf[vlistNints];
serializeUnpack(buf, size, position, tempbuf, vlistNints, 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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment