Changeset 1232
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/nxio.c
r1139 r1232 228 228 actual stuff for implementing the callback functions 229 229 =====================================================================*/ 230 231 /* 232 * if passed NX_CHAR, then returns dimension of -1 and the caller 233 * needs to do a strlen() or equivalent 234 */ 230 235 void analyzeDim(const char *typeString, int *rank, 231 236 int *iDim, int *type){ … … 252 257 break; 253 258 case NX_CHAR: 254 iDim[0] = -1; 259 iDim[0] = -1; /* length unknown, caller needs to determine later */ 255 260 break; 256 261 default: -
trunk/src/nxxml.c
r1171 r1232 939 939 *iType = translateTypeCode(attr); 940 940 analyzeDim(attr,rank,dimension,iType); 941 if (dimension[0] == -1) /* 1D strings are NX_CHAR not NX_CHAR[] so length will not be correct */ 942 { 943 dimension[0] = strlen(userData->value.opaque); 944 } 945 941 946 } 942 947 } else {
Note: See TracChangeset
for help on using the changeset viewer.
