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
04ed55f7
Commit
04ed55f7
authored
8 years ago
by
Thomas Jahns
Committed by
Sergey Kosukhin
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Disentangle and shorten test.
parent
6980c28d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!34
Version 2.2.0
,
!13
Consolidation with CDI-PIO (develop)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/vlist.h
+0
-1
0 additions, 1 deletion
src/vlist.h
src/vlist_var.c
+8
-5
8 additions, 5 deletions
src/vlist_var.c
with
8 additions
and
6 deletions
src/vlist.h
+
0
−
1
View file @
04ed55f7
...
...
@@ -106,7 +106,6 @@ typedef struct
vlist_t
*
vlist_to_pointer
(
int
vlistID
);
void
cdiVlistMakeInternal
(
int
vlistID
);
void
cdiVlistMakeImmutable
(
int
vlistID
);
void
vlistCheckVarID
(
const
char
*
caller
,
int
vlistID
,
int
varID
);
void
cdiVlistDestroy_
(
int
vlistID
);
int
vlistInqVarMissvalUsed
(
int
vlistID
,
int
varID
);
int
vlistHasTime
(
int
vlistID
);
...
...
This diff is collapsed.
Click to expand it.
src/vlist_var.c
+
8
−
5
View file @
04ed55f7
...
...
@@ -83,14 +83,17 @@ vlistvarNewEntry(int vlistID)
return
varID
;
}
void
static
void
vlistPtrCheckVarID
(
const
char
*
caller
,
vlist_t
*
vlistptr
,
int
varID
)
{
if
(
varID
<
0
||
varID
>=
vlistptr
->
nvars
||
!
vlistptr
->
vars
[
varID
].
isUsed
)
Errorc
(
"varID %d undefined!"
,
varID
);
}
static
void
vlistCheckVarID
(
const
char
*
caller
,
int
vlistID
,
int
varID
)
{
vlist_t
*
vlistptr
=
vlist_to_pointer
(
vlistID
);
if
(
varID
<
0
||
varID
>=
vlistptr
->
nvars
)
Errorc
(
"varID %d undefined!"
,
varID
);
if
(
!
vlistptr
->
vars
[
varID
].
isUsed
)
Errorc
(
"varID %d undefined!"
,
varID
);
vlistPtrCheckVarID
(
caller
,
vlistptr
,
varID
);
}
int
...
...
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