summaryrefslogtreecommitdiff
path: root/Python/compile.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-01 18:26:53 +0000
committerGuido van Rossum <guido@python.org>2001-03-01 18:26:53 +0000
commit4f53da07bf79b98c4131fcb9a49e6987298973a7 (patch)
tree463b7294c4fbfd1d418e9b87fe89d8517dac2e99 /Python/compile.c
parentd1e87a8288b18541ab555fc95ab94d06758015a0 (diff)
downloadcpython-git-4f53da07bf79b98c4131fcb9a49e6987298973a7.tar.gz
Two improvements to large file support:
- In _portable_ftell(), try fgetpos() before ftello() and ftell64(). I ran into a situation on a 64-bit capable Linux where the C library's ftello() and ftell64() returned negative numbers despite fpos_t and off_t both being 64-bit types; fgetpos() did the right thing. - Define a new typedef, Py_off_t, which is either fpos_t or off_t, depending on which one is 64 bits. This removes the need for a lot of #ifdefs later on. (XXX Should this be moved to pyport.h? That file currently seems oblivious to large fille support, so for now I'll leave it here where it's needed.)
Diffstat (limited to 'Python/compile.c')
0 files changed, 0 insertions, 0 deletions