cpython/Python
Fred Drake 615ae55eca Trent Mick <trentm@activestate.com>:
The common technique for printing out a pointer has been to cast to a long
and use the "%lx" printf modifier. This is incorrect on Win64 where casting
to a long truncates the pointer. The "%p" formatter should be used instead.

The problem as stated by Tim:
> Unfortunately, the C committee refused to define what %p conversion "looks
> like" -- they explicitly allowed it to be implementation-defined. Older
> versions of Microsoft C even stuck a colon in the middle of the address (in
> the days of segment+offset addressing)!

The result is that the hex value of a pointer will maybe/maybe not have a 0x
prepended to it.


Notes on the patch:

There are two main classes of changes:
- in the various repr() functions that print out pointers
- debugging printf's in the various thread_*.h files (these are why the
patch is large)


Closes SourceForge patch #100505.
2000-06-30 16:20:13 +00:00
..
.cvsignore Ignore a bunch of generated files. 2000-05-02 18:34:30 +00:00
Makefile.in Added exceptions.o to the list of object to build in this subdir. 2000-05-26 19:04:27 +00:00
atof.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
bltinmodule.c Trent Mick: 2000-06-28 21:12:25 +00:00
ceval.c Trent Mick's Win64 changes: size_t vs. int or long; also some overflow 2000-06-28 22:07:35 +00:00
codecs.c Change the loop index in normalizestring() to size_t too, to avoid a 2000-06-29 14:50:15 +00:00
compile.c Trent Mick <trentm@activestate.com>: 2000-06-30 16:20:13 +00:00
dup2.c MPW changes 1994-08-29 10:43:12 +00:00
dynload_aix.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_beos.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_dl.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_hpux.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_mac.c Jack Jansen: The new version of the GUSI i/o library on the Macintosh 2000-04-24 15:08:18 +00:00
dynload_next.c Skip Montanaro: add string precisions to calls to PyErr_Format 2000-04-10 12:46:51 +00:00
dynload_os2.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_shlib.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
dynload_stub.c The old platform-specific contents of importdl.c, broken down into one 1999-12-20 21:18:49 +00:00
dynload_win.c Trent Mick's Win64 changes: size_t vs. int or long; also some overflow 2000-06-28 22:07:35 +00:00
errors.c PyErr_GivenExceptionMatches(): Check for err==NULL and exc==NULL and 2000-05-02 19:27:51 +00:00
exceptions.c replace constant 1 with symbolic constant METH_VARARGS 2000-06-30 04:59:59 +00:00
fmod.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
frozen.c Add primitive test for frozen package. 1998-04-03 21:10:36 +00:00
frozenmain.c Call PyInitFrozenExtensions() as requested by Mark Hammond (his patch). 1999-01-02 21:42:48 +00:00
getargs.c Vladimir Marangozov: 2000-06-28 23:53:56 +00:00
getcompiler.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
getcopyright.c At Bob Kahn's request, add CNRI to the copyright string (but not to 2000-05-10 20:06:00 +00:00
getcwd.c Trent Mick's Win64 changes: size_t vs. int or long; also some overflow 2000-06-28 22:07:35 +00:00
getmtime.c Trent Mick <trentm@activestate.com>: 2000-06-30 16:18:57 +00:00
getopt.c Tim Peters discovered a bug in the Python-supplied getopt(): 1999-09-13 13:45:32 +00:00
getplatform.c Make it return a _const_ char*. 1997-07-19 19:48:41 +00:00
getversion.c Allow longer strings (up to 80 chars each) for version, build, 1999-04-22 12:03:40 +00:00
graminit.c slightly modified version of Greg Ewing's extended call syntax patch 2000-03-28 23:49:17 +00:00
hypot.c *** empty log message *** 1996-08-29 18:10:41 +00:00
import.c Trent Mick <trentm@activestate.com>: 2000-06-30 16:18:57 +00:00
importdl.c Cleanup patches from Greg Stein: 1999-12-22 14:09:35 +00:00
importdl.h For Windows, need to add #include <windows.h>. 1999-12-20 22:55:03 +00:00
marshal.c Urmpf. Quality control on this patch lapsed a bit. :-( 2000-06-28 23:24:19 +00:00
memmove.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
modsupport.c Trent Mick's Win64 changes: size_t vs. int or long; also some overflow 2000-06-28 22:07:35 +00:00
mystrtoul.c Changes by Mark Hammond for Windows CE. Mostly of the form 1999-04-07 16:07:23 +00:00
pyfpe.c Restructure the file so that it is never empty. No longer needs 1998-08-25 17:48:25 +00:00
pystate.c CRITICAL PATCH! 1999-06-18 14:22:24 +00:00
pythonmain.c Allow mac user to set "command line flags" by option-starting python. 1995-07-29 13:53:59 +00:00
pythonrun.c Add new parser error code, E_OVERFLOW. This error is returned when 2000-06-20 19:10:44 +00:00
sigcheck.c Quickly renamed the remaining files -- this directory is done. 1997-04-29 20:08:16 +00:00
strdup.c Patches by William Lewis for Nextstep descendants. 1999-01-27 17:53:11 +00:00
strerror.c New permission notice, includes CNRI. 1996-10-25 14:44:06 +00:00
strtod.c Changes by Mark Hammond for Windows CE. Mostly of the form 1999-04-07 16:07:23 +00:00
structmember.c Trivial little change: when setting a member to an object, hold the 1998-05-20 22:25:32 +00:00
sysmodule.c Trent Mick's Win64 changes: size_t vs. int or long; also some overflow 2000-06-28 22:07:35 +00:00
thread.c Andy Dustman: add GNU pth user-space thread support. 2000-05-08 13:41:38 +00:00
thread_beos.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
thread_cthread.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
thread_foobar.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
thread_lwp.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
thread_nt.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
thread_os2.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
thread_pth.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
thread_pthread.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
thread_sgi.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
thread_solaris.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
thread_wince.h Trent Mick <trentm@activestate.com>: 2000-06-30 15:01:00 +00:00
traceback.c Trent Mick's Win64 changes: size_t vs. int or long; also some overflow 2000-06-28 22:07:35 +00:00