• Tim Peters's avatar
    Py_UniversalNewlineFread(): Many changes. · 058b141e
    Tim Peters yazdı
    + Continued looping until n bytes in the buffer have been filled, not
      just when n bytes have been read from the file.  This repairs the
      bug that f.readlines() only sucked up the first 8192 bytes of the file
      on Windows when universal newlines was enabled and f was opened in
      U mode (see Python-Dev -- this was the ultimate cause of the
      test_inspect.py failure).
    
    + Changed prototye to take a char* buffer (void* doesn't make much sense).
    
    + Squashed size_t vs int mismatches (in particular, besides the unsigned
      vs signed distinction, size_t may be larger than int).
    
    + Gets out under all error conditions now (it's possible for fread() to
      suffer an error even if it returns a number larger than 0 -- any
      "short read" is an error or EOF condition).
    
    + Rearranged and simplified declarations.
    058b141e
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...