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
ef5fef92
Commit
ef5fef92
authored
Jul 01, 2017
by
Uwe Schulzweida
Browse files
Removed tableInqParLongname().
parent
1b781cd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/cdi.h
View file @
ef5fef92
...
...
@@ -1221,7 +1221,6 @@ int tableInqModel(int tableID);
void
tableInqEntry
(
int
tableID
,
int
id
,
int
ltype
,
char
*
name
,
char
*
longname
,
char
*
units
);
int
tableInqParCode
(
int
tableID
,
char
*
name
,
int
*
code
);
int
tableInqParLongname
(
int
tableID
,
int
code
,
char
*
longname
);
int
tableInqParUnits
(
int
tableID
,
int
code
,
char
*
units
);
/* History routines */
...
...
src/table.c
View file @
ef5fef92
...
...
@@ -825,32 +825,6 @@ int tableInqParCode(int tableID, char *varname, int *code)
}
int
tableInqParLongname
(
int
tableID
,
int
code
,
char
*
longname
)
{
if
(
((
tableID
>=
0
)
&
(
tableID
<
MAX_TABLE
))
|
(
tableID
==
CDI_UNDEFID
)
)
{
}
else
Error
(
"Invalid table ID %d"
,
tableID
);
int
err
=
1
;
if
(
tableID
!=
CDI_UNDEFID
)
{
int
npars
=
parTable
[
tableID
].
npars
;
for
(
int
item
=
0
;
item
<
npars
;
item
++
)
{
if
(
parTable
[
tableID
].
pars
[
item
].
id
==
code
)
{
if
(
parTable
[
tableID
].
pars
[
item
].
longname
)
strcpy
(
longname
,
parTable
[
tableID
].
pars
[
item
].
longname
);
err
=
0
;
break
;
}
}
}
return
err
;
}
int
tableInqParUnits
(
int
tableID
,
int
code
,
char
*
units
)
{
if
(
((
tableID
>=
0
)
&
(
tableID
<
MAX_TABLE
))
|
(
tableID
==
CDI_UNDEFID
)
)
{
}
else
...
...
src/vlist_var.c
View file @
ef5fef92
...
...
@@ -583,8 +583,8 @@ void vlistInqVarLongname(int vlistID, int varID, char *longname)
{
int
code
=
pnum
;
int
tableID
=
vlistptr
->
vars
[
varID
].
tableID
;
if
(
tableInqParLongname
(
tableID
,
code
,
longname
)
!
=
0
)
longname
[
0
]
=
'\0'
;
name
[
0
]
=
0
;
tableInqEntry
(
tableID
,
code
,
-
1
,
NULL
,
longname
,
NULL
)
;
}
}
else
...
...
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