Print this page
Cstyle cleanup
*** 2734,2757 ****
#if defined(_BIG_ENDIAN)
for (t = first + 1; t != last; t++, e++) {
if (!is_xdigit(t[0]))
return (first);
! unsigned d1 = isdigit_l(t[0], db->cpp_loc) ? t[0] - '0' : t[0] - 'a' + 10;
t++;
! unsigned d0 = isdigit_l(t[0], db->cpp_loc) ? t[0] - '0' : t[0] - 'a' + 10;
*e = (d1 << 4) + d0;
}
#elif defined(_LITTLE_ENDIAN)
for (t = last - 1; t > first; t--, e++) {
if (!is_xdigit(t[0]))
return (first);
! unsigned d0 = isdigit_l(t[0], db->cpp_loc) ? t[0] - '0' : t[0] - 'a' + 10;
t--;
! unsigned d1 = isdigit_l(t[0], db->cpp_loc) ? t[0] - '0' : t[0] - 'a' + 10;
*e = (d1 << 4) + d0;
}
t = last;
#else
--- 2734,2761 ----
#if defined(_BIG_ENDIAN)
for (t = first + 1; t != last; t++, e++) {
if (!is_xdigit(t[0]))
return (first);
! unsigned d1 = isdigit_l(t[0], db->cpp_loc) ?
! t[0] - '0' : t[0] - 'a' + 10;
t++;
! unsigned d0 = isdigit_l(t[0], db->cpp_loc) ?
! t[0] - '0' : t[0] - 'a' + 10;
*e = (d1 << 4) + d0;
}
#elif defined(_LITTLE_ENDIAN)
for (t = last - 1; t > first; t--, e++) {
if (!is_xdigit(t[0]))
return (first);
! unsigned d0 = isdigit_l(t[0], db->cpp_loc) ?
! t[0] - '0' : t[0] - 'a' + 10;
t--;
! unsigned d1 = isdigit_l(t[0], db->cpp_loc) ?
! t[0] - '0' : t[0] - 'a' + 10;
*e = (d1 << 4) + d0;
}
t = last;
#else