[Python-Dev] ssize_t branch merged (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sat Feb 18 09:21:04 CET 2006
- Previous message: [Python-Dev] ssize_t branch merged
- Next message: [Python-Dev] ssize_t branch merged
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Neal Norwitz wrote:
I suppose that might be nice, but would require configure magic. I'm not sure how it could be done on Windows.
Contributions are welcome. On Windows, it can be hard-coded.
Actually, something like
#if SIZEOF_SIZE_T == SIZEOF_INT #define PY_SSIZE_T_MAX INT_MAX #elif SIZEOF_SIZE_T == SIZEOF_LONG #define PY_SSIZE_T_MAX LONG_MAX #else #error What is size_t equal to? #endif
might work.
There are much more important problems to address at this point IMO. Just review the recent fixes related to PyBuildValue() on python-checkins to see what I mean.
Nevertheless, it would be desirable IMO if it expanded to a literal, so that the preprocessor could understand it.
Regards, Martin
- Previous message: [Python-Dev] ssize_t branch merged
- Next message: [Python-Dev] ssize_t branch merged
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]