[Python-checkins] CVS: python/dist/src/PC msvcrtmodule.c,1.6,1.7 pyconfig.h,1.2,1.3

Tim Peters tim_one@users.sourceforge.net
2001年8月29日 14:37:12 -0700


Update of /cvsroot/python/python/dist/src/PC
In directory usw-pr-cvs1:/tmp/cvs-serv23991/PC
Modified Files:
	msvcrtmodule.c pyconfig.h 
Log Message:
SF bug [#456252] Python should never stomp on [u]intptr_t.
pyport.h: typedef a new Py_intptr_t type.
 DELICATE ASSUMPTION: That HAVE_UINTPTR_T implies intptr_t is
 available as well as uintptr_t. If that turns out not to be
 true, things must get uglier (C99 wants both, so I think it's
 an assumption we're *likely* to get away with).
thread_nt.h, PyThread_start_new_thread: MS _beginthread is documented
 as returning unsigned long; no idea why uintptr_t was being used.
Others: Always use Py_[u]intptr_t, never [u]intptr_t directly.
Index: msvcrtmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/msvcrtmodule.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** msvcrtmodule.c	2000年12月12日 01:58:56	1.6
--- msvcrtmodule.c	2001年08月29日 21:37:09	1.7
***************
*** 99,103 ****
 {
 	int fd;
! 	intptr_t handle;
 
 	if (!PyArg_ParseTuple(args,"i:get_osfhandle", &fd))
--- 99,103 ----
 {
 	int fd;
! 	Py_intptr_t handle;
 
 	if (!PyArg_ParseTuple(args,"i:get_osfhandle", &fd))
Index: pyconfig.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/pyconfig.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** pyconfig.h	2001年07月26日 21:34:59	1.2
--- pyconfig.h	2001年08月29日 21:37:09	1.3
***************
*** 295,302 ****
 #include <basetsd.h>
 #endif
- #if defined(MS_WINDOWS) && !defined(MS_WIN64)
- typedef long intptr_t;
- typedef unsigned long uintptr_t;
- #endif
 
 #if defined(MS_WIN64)
--- 295,298 ----

AltStyle によって変換されたページ (->オリジナル) /