Martin v. Löwis
cdc4451222
Include <unistd.h> in Python.h. Fixes #500924 .
2002-01-12 11:05:12 +00:00
Tim Peters
83a3f0c305
Windows build: close out 2.2, prep for 2.3.
2001-12-21 22:06:12 +00:00
Tim Peters
fc1a7ce985
Update the example Windows extension to 2.2 (was hardcoded to 2.1).
2001-12-15 22:27:01 +00:00
Tim Peters
1ca1296157
The parser doesn't need its own implementation of assert, and having its
...
own interfered with including Python.h. Remove Python's assert.h.
2001-12-04 03:18:48 +00:00
Barry Warsaw
58ab084ac6
PyWin_FindRegisteredModule(): Conversion of sprintf() to
...
PyOS_snprintf() for buffer overrun avoidance.
2001-11-28 21:03:37 +00:00
Tim Peters
603c6831d0
SF patch 473749 compile under OS/2 VA C++, from Michael Muller.
...
Changes enabling Python to compile under OS/2 Visual Age C++.
2001-11-05 02:45:59 +00:00
Tim Peters
5b40f1c212
SF bug #474077 2.2b1: Error compiling extns with BCC
...
Removed "#undef HAVE_HYPOT" line from Borland config, as suggested.
Whether this will break some other Borland usage is a good question I
can't answer.
2001-10-30 21:09:55 +00:00
Tim Peters
1566a17af5
Get hotshot closer to compiling on Windows.
...
Still broken: GETTIMEOFDAY. This macro obviously isn't being defined
on Windows, so there's logic errors here I'd rather Fred untangled.
2001-10-12 22:08:39 +00:00
Mark Hammond
19fdbfb5c4
Fix bug #410274 - sys.prefix isn't always set.
...
If after calculating sys.path we do not have sys.prefix set, we loop over all path entries checking if one can point to our home directory.
2001-09-07 14:08:01 +00:00
Mark Hammond
c2d272a1d5
Base address updates for bug #442142 - DLL base assignments need update
2001-09-06 06:42:00 +00:00
Tim Peters
6e13a562ae
Enable large file support on Win32 systems.
...
Curious: the MS docs say stati64 etc are supported even on Win95, but
Win95 doesn't support a filesystem that allows partitions > 2 Gb.
test_largefile: This was opening its test file in text mode. I have no
idea how that worked under Win64, but it sure needs binary mode on Win98.
BTW, on Win98 test_largefile runs quickly (under a second).
2001-09-06 00:32:15 +00:00
Tim Peters
79248aa1e4
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.
2001-08-29 21:37:10 +00:00
Tim Peters
a6b9e3c814
Windows fiddling for 2.2a2: bump build number; update copyright and
...
company info in resource files; change installer strings to match.
This belongs in the release branch too, of course.
2001-08-19 00:56:28 +00:00
Tim Peters
6d6c1a35e0
Merge of descr-branch back into trunk.
2001-08-02 04:15:00 +00:00
Tim Peters
76f373d081
Repair more now-obsolete references to config.h.
2001-07-26 21:34:59 +00:00
Martin v. Löwis
4f1cd8bdcb
Patch #411138 : Rename config.h to pyconfig.h. Closes bug #231774 .
2001-07-26 13:41:06 +00:00
Neil Schemenauer
7d4bb9f179
Add -E command line switch (ignore environment variables like PYTHONHOME
...
and PYTHONPATH).
2001-07-23 16:30:27 +00:00
Fred Drake
832181e5dc
Define the constants needed to allow the os.tempnam(), os.tmpfile(), and
...
os.tmpnam() functions to be made available.
This is part of SF patch #435492 .
2001-07-17 20:35:59 +00:00
Tim Peters
0d5dd68692
Python.h: Don't attempt to redefine NDEBUG if it's already defined.
...
Others: Remove redundant includes of assert.h.
2001-07-15 18:38:47 +00:00
Fredrik Lundh
793c1972fe
make wchar_t usable again on Windows (this enables the MBCS codecs)
2001-06-27 19:49:17 +00:00
Fredrik Lundh
9b14ab367a
Make Unicode work a bit better on Windows...
2001-06-26 22:59:49 +00:00
Tim Peters
208efe5640
Windows build broke from recent Unicode changes -- need to #define
...
SIZEOF_SHORT by hand here.
Also added dynamic check that SIZEOF_SHORT is correct for the platform (in
_testcapimodule).
2001-06-26 22:40:47 +00:00
Tim Peters
58e0a8c130
SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.
2001-05-14 22:32:33 +00:00
Tim Peters
d29abb9915
SF bug 418296: WinMain.c should use WIN32_LEAN_AND_MEAN.
...
I believe Kevin Rodgers here! The old WINDOWS_LEAN_AND_MEAN has, AFAICT,
always been wrong.
2001-04-24 05:16:29 +00:00
Tim Peters
7f00deb032
SF bug #417508 : 'hypot' not found with Borland C++Build.
2001-04-21 03:20:47 +00:00
Tim Peters
52709e321c
Move Windows stuff to 2.2, so CVS builds won't interfere with 2.1
...
installations.
2001-04-18 21:12:25 +00:00
Tim Peters
b2a22f4533
Magic strings in both Python and the Wise installer define the registry key
...
to be used in Windows. They got out of synch. Repaired that, and added
comments to each one pointing at the other.
2001-03-11 04:30:35 +00:00
Tim Peters
8de0c1716b
Removed now-unreferenced CHECK_IMPORT_CASE from Windows config.h.
...
NOTE: someone who understands Unix config should remove it from acconfig.h too.
2001-02-28 08:15:16 +00:00
Mark Hammond
5edc627f66
Checkin updated version of patch #103933 . As Thomas says, fixes the bugs #131064 , #129584 , #127722 . See the discussion in bug #131064
2001-02-23 11:38:38 +00:00
Tim Peters
e79af273e8
Flesh out PlaySound() docs enough so that SND_ALIAS isn't hopelessly confusing.
...
If someone knows how to turn the new table of guaranteed-registered system
sounds into a LaTeX table, be my guest.
2001-02-20 10:02:21 +00:00
Tim Peters
373d151666
More typos. libwinsound.tex typo noted by Peter Funk (thanks!).
2001-02-19 08:36:41 +00:00
Tim Peters
3e50242127
Repair tab/space screwup.
2001-02-19 07:33:23 +00:00
Tim Peters
25a9ce371c
Take a tour of hell's seedier neighborhoods to try to make winsound.Beep()
...
do something non-useless on Win9X boxes. WinME unknown to me. Someone with
NT/2000 make sure it still works there!
2001-02-19 07:06:36 +00:00
Tim Peters
909bc1cf63
SF bug #131225 : sys.winver is still '2.0' in python 2.1a2.
...
SF patch #103683 : Alternative dll version resources.
Changes similar to the patch. MarkH should review.
File version and Product version text strings now 2.1a2.
64-bit file and product version numbers are now
PY_MAJOR_VERSION, PY_MINOR_VERSION, messy, PYTHON_API_VERSION
where
messy = PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL
Updated company name to "Digital Creations 2".
Copyright now lists Guido; "C in a circle" symbol used instead of (C).
Comments added so this is less likely to get flubbed again, and
#if/#error guys added to trigger if the version number manipulations
above overflow.
2001-02-09 07:02:22 +00:00
Tim Peters
747d5b63db
Teach Windows build about the _weakref module.
2001-02-02 00:07:07 +00:00
Tim Peters
be30c6b900
New info in beep() docstring.
2001-01-25 20:40:28 +00:00
Tim Peters
5458fcf9c5
Repair "selective cut-&-paste" screwup.
2001-01-19 19:17:46 +00:00
Tim Peters
a2bf2709b3
Update the example DLL instructions for 2.1. Add example.def to the
...
MSVC project file (as the instructions always recommended doing).
2001-01-19 08:45:48 +00:00
Tim Peters
97c9640cc9
Windows: 2.1a1 changes so Python runs again. Note that the python20
...
subproject is gone, replaced by the new pythoncore subproject.
2001-01-17 23:23:13 +00:00
Tim Peters
58c82f0b56
Assorted xreadlines problems:
...
Wasn't built on Windows; not in config.c either.
Module init function missing DL_EXPORT magic.
test_xreadline output file obviously wrong (started w/ "test_xrl").
test program very unclear about what was expected.
2001-01-09 23:26:39 +00:00
Tim Peters
5fa0bd64a8
Partial fix for SF bug 122780 (msvcrt.locking constants aren't defined).
...
Still needs docs; see bug report (which was reassigned to Fred) for MS's docs.
2000-12-12 01:58:56 +00:00
Guido van Rossum
6042741948
Rip out DOS and Win16 support.
2000-11-13 17:29:30 +00:00
Guido van Rossum
1bb7734c7e
Rip out Win3.1 and DOS support
2000-11-13 17:24:13 +00:00
Mark Hammond
8bf9e3b943
Prevent possible buffer overflow exploits under Windows. As per (the very quick) patch Patch #101801 .
2000-10-07 11:10:50 +00:00
Mark Hammond
4779a0a6fd
Remove some debugging messages - although this code is a complete hack, we dont need to announce it to the world every time they use freeze!
2000-10-05 22:10:33 +00:00
Trent Mick
c85eb0bd4b
Enable the binascii module for Win64. It builds and passes the test suite.
...
(I had explicitly disabled it a while ago, possibly unecessarily, along with
rgbimg, audioop, and imageop, which are advertised as "not for 64-bit
platforms.)
2000-10-04 20:57:29 +00:00
Mark Hammond
e61aca7d4a
Patch for [ Bug #113828 ] getpythonregpath with null data in registry key
...
If there was a NULL registry key, Python could barf.
Also wraps some surrounding lines to 80 chars.
2000-09-10 09:14:53 +00:00
Guido van Rossum
8586991099
REMOVED all CWI, CNRI and BeOpen copyright markings.
...
This should match the situation in the 1.6b1 tree.
2000-09-01 23:29:29 +00:00
Jeremy Hylton
ee5adfbae6
add user-modifiable recursion_limit
...
ceval.c:
define recurion_limit (static), default value is 2500
define Py_GetRecursionLimit and Py_SetRecursionLimit
raise RuntimeError if limit is exceeded
PC/config.h:
remove plat-specific definition
sysmodule.c:
add sys.(get|set)recursionlimit
2000-08-31 19:23:01 +00:00
Mark Hammond
48b3eee170
Registered modules could only exist in HKEY_LOCAL_MACHINE - now HKEY_CURRENT_USER can override.
2000-08-22 11:20:21 +00:00