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
atof.c
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
dynload_aix.c
dynload_beos.c
dynload_dl.c
dynload_hpux.c
dynload_mac.c
dynload_next.c
dynload_os2.c
dynload_shlib.c
dynload_stub.c
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
exceptions.c replace constant 1 with symbolic constant METH_VARARGS 2000-06-30 04:59:59 +00:00
fmod.c
frozen.c
frozenmain.c
getargs.c Vladimir Marangozov: 2000-06-28 23:53:56 +00:00
getcompiler.c
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
getplatform.c
getversion.c
graminit.c
hypot.c
import.c Trent Mick <trentm@activestate.com>: 2000-06-30 16:18:57 +00:00
importdl.c
importdl.h
Makefile.in Added exceptions.o to the list of object to build in this subdir. 2000-05-26 19:04:27 +00:00
marshal.c Urmpf. Quality control on this patch lapsed a bit. :-( 2000-06-28 23:24:19 +00:00
memmove.c
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
pyfpe.c
pystate.c
pythonmain.c
pythonrun.c Add new parser error code, E_OVERFLOW. This error is returned when 2000-06-20 19:10:44 +00:00
sigcheck.c
strdup.c
strerror.c
strtod.c
structmember.c
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
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