{
const unsigned char *cp;
+ i->v->f = 0;
for (cp = i->s; cp < i->e; cp++)
{
if (!isdigit (*cp))
/* We want the data to be in big-endian format. If this is a
little-endian machine, reverse the byte order. */
- if (endian == LITTLE)
- {
- memcpy (buf, i->s, i->e - i->s);
- mm_reverse (buf, i->e - i->s);
- p = buf;
- }
- else
- p = i->s;
+#ifdef WORDS_BIGENDIAN
+ p = i->s;
+#else
+ memcpy (buf, i->s, i->e - i->s);
+ mm_reverse (buf, i->e - i->s);
+ p = buf;
+#endif
/* If the value is negative, we need to logical-NOT each value
before adding it. */
int j;
i->v->f = 0.0;
- if (endian == BIG)
- for (j = 0; j < i->e - i->s; j++)
- i->v->f = i->v->f * 256.0 + i->s[j];
- else
- for (j = i->e - i->s - 1; j >= 0; j--)
- i->v->f = i->v->f * 256.0 + i->s[j];
+#if WORDS_BIGENDIAN
+ for (j = 0; j < i->e - i->s; j++)
+ i->v->f = i->v->f * 256.0 + i->s[j];
+#else
+ for (j = i->e - i->s - 1; j >= 0; j--)
+ i->v->f = i->v->f * 256.0 + i->s[j];
+#endif
if (i->format.d)
i->v->f /= pow (10.0, i->format.d);
memset (i->v->s + len, ' ', i->format.w - len);
}
-#if __CHECKER__
- memset (i->v->s + i->format.w, '%',
- REM_RND_UP (i->format.w, MAX_SHORT_STRING));
-#endif
-
return 1;
}
memset (i->v->s + (i->e - i->s) / 2, ' ', (i->format.w - (i->e - i->s)) / 2);
}
-#if __CHECKER__
- memset (i->v->s + i->format.w / 2, '%',
- REM_RND_UP (i->format.w / 2, MAX_SHORT_STRING));
-#endif
-
return 1;
}
\f
/* Default to SYSMIS or blanks. */
if (fmt->cat & FCAT_STRING)
- {
-#if __CHECKER__
- memset (i->v->s, ' ', ROUND_UP (i->format.w, MAX_SHORT_STRING));
-#else
- memset (i->v->s, ' ', i->format.w);
-#endif
- }
+ memset (i->v->s, ' ', i->format.w);
else
i->v->f = set_blanks;
}