mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Walking back some of the changes to see if they were necessary (hard to tell), which should hopefully fix netcdf-cxx4 compatibility.
This commit is contained in:
parent
e17dfb4581
commit
c616b53358
@ -991,7 +991,7 @@ 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);
|
||||
@ -1000,6 +1000,31 @@ 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);
|
||||
|
||||
EXTERNL int
|
||||
nc_get_att_text(int ncid, int varid, const char *name, char *ip);
|
||||
|
||||
EXTERNL int
|
||||
nc_put_att_string(int ncid, int varid, const char *name,
|
||||
size_t len, const char **op);
|
||||
|
||||
EXTERNL int
|
||||
nc_get_att_string(int ncid, int varid, const char *name, char **ip);
|
||||
|
||||
#endif //__CHAR_UNSIGNED__
|
||||
|
||||
EXTERNL int
|
||||
nc_put_att_uchar(int ncid, int varid, const char *name, nc_type xtype,
|
||||
size_t len, const unsigned char *op);
|
||||
|
||||
@ -1077,12 +1102,6 @@ EXTERNL int
|
||||
nc_get_att_ulonglong(int ncid, int varid, const char *name,
|
||||
unsigned long long *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);
|
||||
|
||||
/* End {put,get}_att */
|
||||
/* Begin _var */
|
||||
@ -1131,7 +1150,7 @@ EXTERNL int
|
||||
nc_put_var1_text(int ncid, int varid, const size_t *indexp, const char *op);
|
||||
|
||||
EXTERNL int
|
||||
nc_get_var1_text(int ncid, int varid, const size_t *indexp, signed char *ip);
|
||||
nc_get_var1_text(int ncid, int varid, const size_t *indexp, char *ip);
|
||||
|
||||
EXTERNL int
|
||||
nc_put_var1_uchar(int ncid, int varid, const size_t *indexp,
|
||||
|
@ -131,8 +131,14 @@ the length of the attributes.
|
||||
\endcode
|
||||
*/
|
||||
/*! \{ */
|
||||
|
||||
#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);
|
||||
@ -321,8 +327,13 @@ 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);
|
||||
|
@ -44,9 +44,16 @@ apply.
|
||||
\returns ::NC_ELATEFILL Fill values must be written while the file
|
||||
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);
|
||||
@ -131,9 +138,14 @@ netCDF dataset named foo.nc:
|
||||
if (status != NC_NOERR) handle_error(status);
|
||||
\endcode
|
||||
*/
|
||||
int
|
||||
nc_put_att_text(int ncid, int varid, const char *name,
|
||||
|
||||
#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);
|
||||
|
@ -825,7 +825,7 @@ nc_get_var1(int ncid, int varid, const size_t *indexp, void *ip)
|
||||
}
|
||||
|
||||
int
|
||||
nc_get_var1_text(int ncid, int varid, const size_t *indexp, signed char *ip)
|
||||
nc_get_var1_text(int ncid, int varid, const size_t *indexp, char *ip)
|
||||
{
|
||||
NC* ncp;
|
||||
int stat = NC_check_id(ncid, &ncp);
|
||||
|
Loading…
Reference in New Issue
Block a user