Skip to content
GitLab
Menu
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
f94ec83c
Commit
f94ec83c
authored
Apr 07, 2016
by
Thomas Jahns
🤸
Browse files
Simplify xtypeIsText.
parent
e004048b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/stream_cdf_i.c
View file @
f94ec83c
...
...
@@ -395,15 +395,13 @@ void cdfGetAttText(int fileID, int ncvarid, const char *attname, size_t attlen,
}
static
bool
xtypeIsText
(
nc_type
xtype
)
bool
xtypeIsText
(
int
xtype
)
{
bool
isText
=
false
;
if
(
xtype
==
NC_CHAR
)
isText
=
true
;
bool
isText
=
(
xtype
==
NC_CHAR
)
#if defined (HAVE_NETCDF4)
else
if
(
xtype
==
NC_STRING
)
isText
=
true
;
||
(
xtype
==
NC_STRING
)
#endif
;
return
isText
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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