Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/include/xatonum.h


Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/include/xatonum.h

    r2725 r3232  
    169169    return BUG_bb_strtou32_unimplemented();
    170170}
     171static ALWAYS_INLINE
     172int32_t bb_strtoi32(const char *arg, char **endp, int base)
     173{
     174    if (sizeof(int32_t) == sizeof(int))
     175        return bb_strtoi(arg, endp, base);
     176    if (sizeof(int32_t) == sizeof(long))
     177        return bb_strtol(arg, endp, base);
     178    return BUG_bb_strtou32_unimplemented();
     179}
    171180
    172181/* Floating point */
Note: See TracChangeset for help on using the changeset viewer.