mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
This commit is contained in:
parent
fe019785ba
commit
405f8bf827
@ -119,6 +119,7 @@ list2const(Datalist* list)
|
||||
con.nctype = NC_COMPOUND;
|
||||
con.lineno = list->data[0].lineno;
|
||||
con.value.compoundv = list;
|
||||
con.filled = 0;
|
||||
return con;
|
||||
}
|
||||
|
||||
@ -634,6 +635,7 @@ emptycompoundconst(int lineno, Constant* c)
|
||||
c->lineno = lineno;
|
||||
c->nctype = NC_COMPOUND;
|
||||
c->value.compoundv = builddatalist(0);
|
||||
c->filled = 0;
|
||||
return c;
|
||||
}
|
||||
|
||||
@ -645,6 +647,7 @@ emptystringconst(int lineno, Constant* c)
|
||||
c->nctype = NC_STRING;
|
||||
c->value.stringv.len = 0;
|
||||
c->value.stringv.stringv = NULL;
|
||||
c->filled = 0;
|
||||
return c;
|
||||
}
|
||||
|
||||
|
@ -1064,6 +1064,7 @@ makeenumconst(Symbol* econst)
|
||||
consttype = NC_ENUM;
|
||||
con.nctype = NC_ECONST;
|
||||
con.lineno = lineno;
|
||||
con.filled = 0;
|
||||
/* fix up econst to be a ref to an econst*/
|
||||
econst->objectclass = NC_TYPE;
|
||||
econst->subclass = NC_ECONST;
|
||||
|
@ -3236,6 +3236,7 @@ makeenumconst(Symbol* econst)
|
||||
consttype = NC_ENUM;
|
||||
con.nctype = NC_ECONST;
|
||||
con.lineno = lineno;
|
||||
con.filled = 0;
|
||||
/* fix up econst to be a ref to an econst*/
|
||||
econst->objectclass = NC_TYPE;
|
||||
econst->subclass = NC_ECONST;
|
||||
|
@ -492,7 +492,7 @@ processspecial1(Symbol* vsym)
|
||||
unsigned long flags = vsym->var.special.flags;
|
||||
int i,tag;
|
||||
Constant con;
|
||||
Datalist* dlist;
|
||||
Datalist* dlist = NULL;
|
||||
if(flags == 0) return; /* no specials defined */
|
||||
con = nullconstant;
|
||||
if((tag=(flags & _CHUNKSIZES_FLAG))) {
|
||||
|
@ -414,7 +414,7 @@ ocreadfile(FILE* file, int datastart, char** memp, size_t* lenp)
|
||||
{
|
||||
char* mem;
|
||||
size_t len;
|
||||
size_t pos;
|
||||
ssize_t pos;
|
||||
size_t red;
|
||||
struct stat stats;
|
||||
|
||||
|
@ -219,7 +219,7 @@ xxdr_free(XXDR* xdr)
|
||||
int
|
||||
xxdr_skip(XXDR* xdrs, off_t len)
|
||||
{
|
||||
unsigned int pos;
|
||||
ssize_t pos;
|
||||
pos = xxdr_getpos(xdrs);
|
||||
pos = (pos + len);
|
||||
if(pos < 0) pos = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user