diff options
author | Guido van Rossum <guido@python.org> | 1998-09-18 14:14:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-09-18 14:14:13 (GMT) |
commit | 78694d970fbdc70cfbda5b21a556f6e11f684fb0 (patch) | |
tree | d71e26b1713a75e19efb6520c3f5499e4025fa66 /PC/config.h | |
parent | 43b655c0abe49fc5fd08c2a4c5a763cdaa8afb11 (diff) | |
download | cpython-78694d970fbdc70cfbda5b21a556f6e11f684fb0.zip cpython-78694d970fbdc70cfbda5b21a556f6e11f684fb0.tar.gz cpython-78694d970fbdc70cfbda5b21a556f6e11f684fb0.tar.bz2 |
Patches from Greg Stein to support 'P' format in struct module's
native format, as void* (translated to Python int or long).
Also adds PyLong_FromVoidPtr and PyLong_AsVoidPtr to longobject.c.
Diffstat (limited to 'PC/config.h')
-rw-r--r-- | PC/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/PC/config.h b/PC/config.h index b043df5..0818746 100644 --- a/PC/config.h +++ b/PC/config.h @@ -213,6 +213,12 @@ typedef int pid_t; #define SIZEOF_LONG 4 #define SIZEOF_LONG_LONG 8 +#ifdef _M_ALPHA +#define SIZEOF_VOID_P 8 +#else +#define SIZEOF_VOID_P 4 +#endif + /* EXPERIMENTAL FEATURE: When CHECK_IMPORT_CASE is defined, check case of imported modules against case of file; this causes "import String" to fail with a NameError exception when it finds "string.py". Normally, you set |