Branch: Tag:

2014-09-03

2014-09-03 17:16:59 by Martin Nilsson <nilsson@opera.com>

strtol is C89 and 4.3BSD

3253:      PMOD_EXPORT long STRTOL_PCHARP(PCHARP str, PCHARP *ptr, int base)   { -  /* Note: Code duplication in STRTOL and pcharp_to_svalue_inumber. */ +  /* Note: Code duplication in strtol and pcharp_to_svalue_inumber. */       unsigned long val, mul_limit;    int c;
3405:    int base,    ptrdiff_t maxlength)   { -  /* Note: Code duplication in STRTOL and STRTOL_PCHARP. */ +  /* Note: Code duplication in strtol and STRTOL_PCHARP. */       PCHARP str_start;   
3630:    /* The exponent overflowed a `long int'. It is probably a safe    assumption that an exponent that cannot be represented by    a `long int' exceeds the limits of a `double'. */ -  /* NOTE: Don't trust the value returned from STRTOL. +  /* NOTE: Don't trust the value returned from strtol.    * We need to find the sign of the exponent by hand.    */    p_wchar2 c;