mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
Merge branch 'gh159-walkback' of https://github.com/Unidata/netcdf-c into gh159-walkback
This commit is contained in:
commit
91d025d3ac
@ -991,23 +991,6 @@ nc_del_att(int ncid, int varid, const char *name);
|
||||
|
||||
/* End _att */
|
||||
/* Begin {put,get}_att */
|
||||
#ifdef __CHAR_UNSIGNED__
|
||||
EXTERNL int
|
||||
nc_put_att_text(int ncid, int varid, const char *name,
|
||||
size_t len, const signed char *op);
|
||||
|
||||
EXTERNL int
|
||||
nc_get_att_text(int ncid, int varid, const char *name, signed char *ip);
|
||||
|
||||
EXTERNL int
|
||||
nc_put_att_string(int ncid, int varid, const char *name,
|
||||
size_t len, const signed char **op);
|
||||
|
||||
EXTERNL int
|
||||
nc_get_att_string(int ncid, int varid, const char *name, signed char **ip);
|
||||
|
||||
#else // __CHAR_UNSIGNED__
|
||||
|
||||
EXTERNL int
|
||||
nc_put_att_text(int ncid, int varid, const char *name,
|
||||
size_t len, const char *op);
|
||||
@ -1022,9 +1005,7 @@ nc_put_att_string(int ncid, int varid, const char *name,
|
||||
EXTERNL int
|
||||
nc_get_att_string(int ncid, int varid, const char *name, char **ip);
|
||||
|
||||
#endif //__CHAR_UNSIGNED__
|
||||
|
||||
EXTERNL int
|
||||
EXTERNL int
|
||||
nc_put_att_uchar(int ncid, int varid, const char *name, nc_type xtype,
|
||||
size_t len, const unsigned char *op);
|
||||
|
||||
|
@ -132,13 +132,8 @@ the length of the attributes.
|
||||
*/
|
||||
/*! \{ */
|
||||
|
||||
#ifdef __CHAR_UNSIGNED__
|
||||
int
|
||||
nc_get_att_text(int ncid, int varid, const char *name, signed char *value)
|
||||
#else
|
||||
int
|
||||
nc_get_att_text(int ncid, int varid, const char *name, char *value)
|
||||
#endif
|
||||
{
|
||||
NC* ncp;
|
||||
int stat = NC_check_id(ncid, &ncp);
|
||||
@ -327,13 +322,10 @@ int main(int argc, char ** argv) {
|
||||
|
||||
|
||||
*/
|
||||
#ifdef __CHAR_UNSIGNED__
|
||||
int
|
||||
nc_get_att_string(int ncid, int varid, const char *name, signed char **value)
|
||||
#else
|
||||
|
||||
int
|
||||
nc_get_att_string(int ncid, int varid, const char *name, char **value)
|
||||
#endif
|
||||
|
||||
{
|
||||
NC *ncp;
|
||||
int stat = NC_check_id(ncid, &ncp);
|
||||
|
@ -45,15 +45,10 @@ apply.
|
||||
is still in initial define mode.
|
||||
*/
|
||||
|
||||
#ifdef __CHAR_UNSIGNED__
|
||||
int
|
||||
nc_put_att_string(int ncid, int varid, const char *name,
|
||||
size_t len, const signed char** value)
|
||||
#else
|
||||
|
||||
int
|
||||
nc_put_att_string(int ncid, int varid, const char *name,
|
||||
size_t len, const char** value)
|
||||
#endif
|
||||
{
|
||||
NC* ncp;
|
||||
int stat = NC_check_id(ncid, &ncp);
|
||||
@ -139,13 +134,9 @@ netCDF dataset named foo.nc:
|
||||
\endcode
|
||||
*/
|
||||
|
||||
#ifdef __CHAR_UNSIGNED__
|
||||
int nc_put_att_text(int ncid, int varid, const char *name,
|
||||
size_t len, const signed char *value)
|
||||
#else
|
||||
|
||||
int nc_put_att_text(int ncid, int varid, const char *name,
|
||||
size_t len, const char *value)
|
||||
#endif
|
||||
{
|
||||
NC* ncp;
|
||||
int stat = NC_check_id(ncid, &ncp);
|
||||
|
Loading…
Reference in New Issue
Block a user