Commit Graph

14 Commits

Author SHA1 Message Date
Christian Heimes 284d927625 Backport of r59456:59458 from py3k to trunk
Issue #1580: New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.2000000000000002'.

Thanks to noam for the patch! I had to modify doubledigits.c slightly to support X64 and IA64 machines on Windows. I also added the new file to the three project files.
2007-12-10 22:28:56 +00:00
Christian Heimes 3d2f564d41 Several Windows related cleanups:
* Removed a #define from pyconfig.h. The macro was already defined a few lines higher.
* Fixed path to tix in the build_tkinter.py script
* Changed make_buildinfo.c to use versions of unlink and strcat which are considered safe by Windows (as suggested by MvL).
* Removed two defines from pyproject.vsprops that are no longer required. Both are defined in pyconfig.h and make_buildinfo.c doesn't use the unsafe versions any more (as suggested by MvL).
* Added some more information about PGO and the property files to PCbuild9/readme.txt.

Are you fine with the changes, Martin?
2007-12-06 21:13:06 +00:00
Christian Heimes f8761e548c Silence more warnings, _CRT_NONSTDC_NO_DEPRECATE is already defined in pyconfig.h but several projects don't include it. 2007-12-06 13:30:11 +00:00
Christian Heimes 18679948c4 The macros _WIN32, _WIN64 and _M_X64 are defined by the compiler. The VS 2008 IDE doesn't know about (some) of the macros and can display wrong information. In my case a section #ifdef _WIN64 was grayed out although the platform was x64. I've added the macros to pyproject.vsprops and x64.vsprops.
I've also added a paragraph about the property files to the readme and fixed the order of pyupdate > pyinstrument.
2007-12-05 21:57:25 +00:00
Christian Heimes 4c07cd9d0c Updated documentation and build_tkinter.py script 2007-12-05 19:57:54 +00:00
Christian Heimes 76fa9c0e9d Fixed quoting and paths in the sqlite project file 2007-12-05 12:31:44 +00:00
Christian Heimes 0116158c7f These optimizations create smaller and a bit faster code on my machine. I've also disabled an optimization that may be dangerous. Intrinsic functions conflict with errno. 2007-12-04 18:43:19 +00:00
Christian Heimes 9f6d4ceb43 Although pyconfig.h claims that WIN32 is obsolete it is still required for the locale module. locale.getdefaultlocale() fails silently w/o the WIN32 macro. 2007-12-01 01:03:20 +00:00
Christian Heimes 3971f6b8fb Removed or replaced some more deprecated preprocessor macros.
Moved the _DEBUG and NDEBUG macros to two new property files.
Fixed #1527 Problem with static libs on Windows
Updated README.txt
2007-11-30 19:18:08 +00:00
Amaury Forgeot d'Arc 59c1b41f54 vc2008: Move python.vcproj first in the solution file, so that
it becomes the default startup project when opening the file
for the first time.
2007-11-29 20:24:36 +00:00
Christian Heimes 8b01140d2c Backport of changes to PCbuild9 from the py3k branch 2007-11-27 21:28:40 +00:00
Christian Heimes 3e9ac99fe7 Backport of fixes from py3k branch
svn merge -r59131:HEAD ../../py3k/PCbuild9/ .
2007-11-24 01:53:59 +00:00
Christian Heimes 2336111aef Backport of PCbuild9 fixes from py3k r59130 2007-11-23 07:05:03 +00:00
Christian Heimes e8954f8ce7 Backport of the PCbuild9 directory from the py3k branch.
I've finished the last task for the PCbuild9 directory today. I don't think there is much left to do. Now you can all play around with the shiny new VS 2008 and try the PGO builds. I was able to get a speed improvement of about 10% on py3k.
Have fun! :)
2007-11-22 11:21:16 +00:00