[Python-Dev] [Python-checkins] r41972 - python/branches/ssize_t/Objects/funcobject.c (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Mon Jan 9 08:48:47 CET 2006
- Previous message: [Python-Dev] [Python-checkins] r41972 - python/branches/ssize_t/Objects/funcobject.c
- Next message: [Python-Dev] [Python-checkins] r41972 - python/branches/ssize_t/Objects/funcobject.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tim Peters wrote:
We could use the "I" (capital letter eye) length modifier under VC7.1. That's good for both sizet and ptrdifft formats under VC7.1, where ptrdifft under VC7.1 is really the same concept as Pyssizet.
ptrdiff_t has the advantage of being available on all platforms, being part of C89 (IIRC). Should we use ptrdiff_t instead of Py_ssize_t? Formally, ptrdiff_t could be different from size_t (in width); reportedly, there are 8086 compilers which had a 16-bit size_t (maximum size of a segment), but a 32-bit ptrdiff_t (allowing for cross-segment differences, something that apparently became undefined in C99).
Regards, Martin
- Previous message: [Python-Dev] [Python-checkins] r41972 - python/branches/ssize_t/Objects/funcobject.c
- Next message: [Python-Dev] [Python-checkins] r41972 - python/branches/ssize_t/Objects/funcobject.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]