cvs commit: src/contrib/gdtoa hexnan.c

David Schultz das at FreeBSD.org
Sun Dec 16 13:13:54 PST 2007


das         2007-12-16 21:13:54 UTC

  FreeBSD src repository

  Modified files:
    contrib/gdtoa        hexnan.c 
  Log:
  Some changes the vendor didn't want:
  
  - Accept the '0x' prefix so strtod("nan(0x...)", NULL) returns the same
    thing as gcc's builtin nan("0x...") for such strings.
  - Don't return uninitialized memory.
  - Finish processing the string up to the closing ')' (provided it's
    lexically valid) for compatibility with C99 and *scanf().
  
  Revision  Changes    Path
  1.2       +31 -12    src/contrib/gdtoa/hexnan.c


More information about the cvs-src mailing list