Commit Graph

494 Commits

Author SHA1 Message Date
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
Mark Hammond c756bdb66c From Rene Liebscher:
This patch makes it possible to use gnu-win32 and lcc-win32
(http://www.cs.virginia.edu/~lcc-win32/) compilers to build
extension modules. It adds compiler specific sections to
PC/config.h .
It also extends the Borland compiler section. This has then two parts,
one for Win32 and the other one for the rest. The Win32 part
should be almost complete.

*** This patch is not intended to make it possible to compile
     Python with these compilers, it is intended to be able to
     use these compilers to build extension modules. ****
2000-08-15 22:33:59 +00:00
Mark Hammond fb439abbc9 Patch #101032, from David Bolen:
Ensure the "proxied" command's return code bubbles back up.
2000-08-14 05:04:28 +00:00
Fredrik Lundh 6947d0b65e -- from Trent Mick: [Patch #101010] replace use of INT_PTR
with uintptr_t (fix MSVC 5.0 build)
2000-08-07 20:16:28 +00:00
Greg Ward ff7b562bc6 Pragmas that instruct the linker to link against python20.lib (or
python20_d.lib) only active on MSVC++; different library formats needed
for different compilers, and it's handled by the Distutils anyways.
2000-08-05 00:58:14 +00:00
Mark Hammond 4e80bb551e Allow any object supporting the buffer protocol to be written as a binary object. 2000-07-28 03:44:41 +00:00
Thomas Wouters a534594fc7 ANSIfication: remove very-old-varargs code, fix function declarations so
they include prototypes.
2000-07-22 23:59:33 +00:00
Thomas Wouters 7889010731 Miscelaneous ANSIfications. I'm assuming here 'main' should take (int,
char**) and return an int even on PC platforms. If not, please fix
PC/utils/makesrc.c ;-P
2000-07-22 19:25:51 +00:00
Thomas Wouters 7e47402264 Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
comments, docstrings or error messages. I fixed two minor things in
test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").

There is a minor style issue involved: Guido seems to have preferred English
grammar (behaviour, honour) in a couple places. This patch changes that to
American, which is the more prominent style in the source. I prefer English
myself, so if English is preferred, I'd be happy to supply a patch myself ;)
2000-07-16 12:04:32 +00:00
Guido van Rossum f981c8f915 Add "exceptions" to list of built-in modules for the sake of
sys.builtin_module_names.  (Noticed by Toby Dickenson.)

[Tim, please test!]
2000-07-12 12:11:36 +00:00
Fredrik Lundh 43298d1fff - win95/98 helper for new os.popen code
this should be built as a console application (link with
  USER32.LIB), and installed in the same directory as the
  Python DLL.
2000-07-09 11:35:36 +00:00
Fredrik Lundh c0348ac670 - removed barry's workaround, to make room for
bill's more complete solution.
2000-07-08 20:49:58 +00:00
Fredrik Lundh ddbc11893f - this is a tentative checkin of the #100764 patch (by
Barry Scott).  it appears to solve the problem on NT
  and 2000, but not on Windows 95.

  in other words, it's better than before, but not per-
  fect.  I'll leave the patch open for now.
2000-07-08 18:06:41 +00:00
Tim Peters db6382941b Squash signed-vs-unsigned warning. Also edits to bring into line
with Python coding stds (max line length, C-style comments).
2000-07-03 23:51:17 +00:00
Tim Peters b4dccf0dcd Checked in a wrong version. 2000-07-02 23:21:49 +00:00
Tim Peters 090c2161a1 The example_nt directory was old enough to vote. Frank Stajano
pointed out some of the problems he had following the instructions,
and I stumbled into the others:  MSVC has changed in several
respects, Python has changed the directories into which it builds
its own Windows outputs, and we grew the unusual scheme of
appending "_d" to the names of debug-mode output files.

This should all work with VC6 + CVS Python now.  Some other Windows
geek please confirm!  And the less you know, the better <0.5 wink>.

Explanations and examples for versions of MSVC before 6, and
versions of Python before 2.0b1, have been removed, because
they're too different and so confuse life.  This last step I OK'ed
with Guido first (indeed, 'twas his idea!).
2000-07-02 23:18:43 +00:00
Guido van Rossum ffcc3813d8 Change copyright notice - 2nd try. 2000-06-30 23:58:06 +00:00
Guido van Rossum fd71b9e9d4 Change copyright notice. 2000-06-30 23:50:40 +00:00
Guido van Rossum 361b583e88 Only include <basetsd.h> for VC 6.0 and higher. 2000-06-30 22:17:53 +00:00
Guido van Rossum 47674029e1 As Neil Schemenauer points out, WITH_CYCLE_GC should be uncommented if
we want to have GC enabled in the beta.
2000-06-30 20:31:50 +00:00
Fred Drake 25e1726d31 [*** Not tested as I don't have Windows running right now! ***]
Trent Mick <trentm@activestate.com>:

Fix PC/msvcrtmodule.c and PC/winreg.c for Win64. Basically:

- sizeof(HKEY) > sizeof(long) on Win64, so use PyLong_FromVoidPtr()
instead of PyInt_FromLong() to return HKEY values on Win64

- Check for string overflow of an arbitrary registry value (I know
that ensuring that a registry value does not overflow 2**31 characters
seems ridiculous but it is *possible*).

Closes SourceForge patch #100517.
2000-06-30 17:48:51 +00:00
Mark Hammond 306e2403fa Python's .lib is now named Python20.lib 2000-06-30 15:47:02 +00:00
Guido van Rossum ae1b5b2e98 Trivial commit to test Windows CVS capabilities. 2000-06-30 13:00:32 +00:00
Jeremy Hylton c5007aa5c3 final patches from Neil Schemenauer for garbage collection 2000-06-30 05:02:53 +00:00
Guido van Rossum 537a551e23 Bump version to 2.0b1. Change copyright to BeOpen, CNRI, SMC. 2000-06-29 22:30:37 +00:00
Fred Drake a3f6e91307 This patch extends PC/config.h and configure.in as appropriate for
64-bit readiness (the config values are needed for patches that I will
be submitting later today. The changes are as follows:

- add SIZEOF_OFF_T #define's to PC/config.h (it was already in configure.in)

- add SIZEOF_TIME_T #define to PC/config.h and configure
Needed for some buffer overflow checking because sizeof(time_t) is
different on Win64.

- add SIZEOF_FPOS_T #define
Needed for the Win64 large file support implementation.

- add SIZEOF_HKEY in PC/config.h only
Needed for proper Win32 vs. Win64 handling in PC/winreg.c

- #define HAVE_LARGEFILE_SUPPORT for Win64

- typedef long intptr_t; for all Windows except Win64 (which defines it
itself)
This is a new ANSI (I think) type that is useful (and used by me) for
proper handling in msvcrtmodule.c and posixmodule.c

- indent the nested #ifdef's and #defines in PC/config.h
This is *so* much more readable. There cannot be a compiler
compatibilty issue here can there? Perl uses indented #defines and it
compiles with everything.
2000-06-29 20:44:47 +00:00
Fred Drake 13634cf7a4 This patch addresses two main issues: (1) There exist some non-fatal
errors in some of the hash algorithms. For exmaple, in float_hash and
complex_hash a certain part of the value is not included in the hash
calculation. See Tim's, Guido's, and my discussion of this on
python-dev in May under the title "fix float_hash and complex_hash for
64-bit *nix"

(2) The hash algorithms that use pointers (e.g. func_hash, code_hash)
are universally not correct on Win64 (they assume that sizeof(long) ==
sizeof(void*))

As well, this patch significantly cleans up the hash code. It adds the
two function _Py_HashDouble and _PyHash_VoidPtr that the various
hashing routine are changed to use.

These help maintain the hash function invariant: (a==b) =>
(hash(a)==hash(b))) I have added Lib/test/test_hash.py and
Lib/test/output/test_hash to test this for some cases.
2000-06-29 19:17:04 +00:00
Fred Drake ee8c418408 Finish converting the winreg extension to _winreg. 2000-06-29 16:43:49 +00:00
Fred Drake 270e19b060 Update the module name to _winreg, pending checkin of Paul Prescod's
OO wrapper for this module.
2000-06-29 16:14:14 +00:00
Guido van Rossum 1c44e28766 Trent Mick: familiar simple Win64 patches 2000-06-28 22:20:06 +00:00
Fred Drake e39607f27e Changed the #error to a #warning when checking gcc versions, and
noted the minimum recommended version in the message.
2000-06-28 03:54:48 +00:00
Fred Drake 91c4e2bf12 Patch from Rene Liebscher <R.Liebscher@gmx.de>, slightly modified and
commented by Fred Drake, to prevent usage of sufficiently broken GCC
versions.
2000-06-19 13:41:54 +00:00
Mark Hammond b422f95db0 Cleanup a few docstrings. 2000-06-09 06:01:47 +00:00
Jeremy Hylton 847a9968e9 Patch from M.-A. Lemburg:
Python on UNIX now trusts PYTHONHOME unconditionally

Modules/getpath.c:

Landmark changed to os.py.

Setting PYTHONHOME now unconditionally sets sys.prefix
(and sys.exec_prefix). No further checks are done whether the
standard lib can be found in that location or not. This is in
sync with the PC subdir getpath implementations.

PC/getpathp.c:

Landmark changed to os.py.

PC/os2vacpp/getpathp.c:

Landmark changed to os.py.

Note: BAW's checkin on exceptions.c eliminates earlier concerns about
a bogus PYTHONHOME value leading to a core dump.  Instead it causes a
useless sys.path and prevents imports.
2000-05-26 21:49:07 +00:00
Guido van Rossum da5cc82d59 Trent Mick:
Use "win32" for sys.platform on Win64 instead of "win32" because:
1. While it may be confusing to the Python scriptor on Win64 that he has to
   check for win*32*, that is something that he will learn the first time. It
   is better than the alternative of the scriptor happily using "win64" and
   then that code not running on Win32 for no good reason.
2. The main question is: is Win64 so much more like Win32 than different from
   it that the common-case general Python programmer should not ever have to
   make the differentiation in his Python code. Or, at least, enough so that
   such differentiation by the Python scriptor is rare enough that some other
   provided mechanism is sufficient (even preferable). Currently the answer
   is yes. Hopefully MS will not change this answer.
2000-05-10 13:25:32 +00:00
Guido van Rossum 23ef82ffe3 Trent Mick:
The following modules are specifically excluded in the Win64 build:
audioop, binascii, imageop, rgbimg. They are advertised as heavily 32-bit
dependent.  [They should probably be fixed!  --GvR]
2000-05-08 14:15:19 +00:00
Guido van Rossum c66ae966ed Trent Mick:
Changes to PC\config.[hc] for Win64. MSVC defines _WINxx to differentiate the
various windows platforms. Python's MS_WINxx are keyed off of these. Note
that _WIN32 (and hence MS_WIN32 in Python) are defined on Win32 *and* on
Win64. This is for compatibility reasons. The idea is that the common case is
that code specific to Win32 will also work on Win64 rather than being
specific to Win32 (i.e. there is more the same than different in WIn32 and
Win64).

The following modules are specifically excluded in the Win64 build:
audioop, binascii, imageop, rgbimg. They are advertised as heavily 32-bit
dependent.  [They should probably be fixed!  --GvR]

The patch to config.h looks big but it really is not. These are the effective
changes:
- MS_WINxx are keyed off _WINxx
- SIZEOF_VOID_P is set to 8 for Win64
- COMPILER string is changed appropriately for Win64
2000-05-08 14:14:48 +00:00
Guido van Rossum b18618dab7 Vladimir Marangozov's long-awaited malloc restructuring.
For more comments, read the patches@python.org archives.
For documentation read the comments in mymalloc.h and objimpl.h.

(This is not exactly what Vladimir posted to the patches list; I've
made a few changes, and Vladimir sent me a fix in private email for a
problem that only occurs in debug mode.  I'm also holding back on his
change to main.c, which seems unnecessary to me.)
2000-05-03 23:44:39 +00:00
Guido van Rossum db575db0d6 Add definition of socklen_t so that socketmodule.c will compile on Windows. 2000-04-24 15:37:34 +00:00
Guido van Rossum a8ee4c31bf Mark Hammond:
* Base address for all extension modules updated. PC\dllbase_nt.txt
also updated.  Erroneous "libpath" directory removed for all
projects.

* winsound module moved from a builtin module to an extension
module.  This was done primarily to avoid Python16.dll needing to
pull in winmm.dll.  Really dumb test added for winsound - but if
nothing else it ensures the module imports.
2000-04-21 21:26:43 +00:00
Guido van Rossum f4a3bd4991 Remove _socket, select, soundex, and unicodedata. These have been
moved to their own DLLs, or are obsolete (soundex).
2000-04-06 14:41:11 +00:00
Guido van Rossum 4f3cc35cc1 Get rid of Win32s check. 2000-04-04 22:48:55 +00:00
Guido van Rossum 5cf648b654 Seems there was a version string here that still looked like 1.5.2. 2000-03-30 22:59:09 +00:00
Guido van Rossum 88716bba55 Revamped path access again, by Mark Hammond, to be more robust in the
light of three different situations: (1) running from build; (2)
running from installed; (3) running without being able to find an
installation (e.g. as a COM object).  The system paths in the
repository are only used for (3); the path deduced from the
installation location are used otherwise.  PYTHONHOME overrides in all
cases.

Read the comments for more details.
2000-03-30 19:45:39 +00:00
Guido van Rossum 9c94a8882c Version -> 1.6. 2000-03-29 01:50:50 +00:00
Guido van Rossum e02e48be6f Changes to completely ignore the registry when it detects that you are
running out of the build directory.  This means that it will no longer
try to use an older version of the library when an older version has
been installed.
2000-03-29 01:49:47 +00:00
Guido van Rossum 436364c8a0 Change the pragmas to use python16.lib instead of python15.lib. (Took
me half an hour to find why it was still linking with python15.dll!)
2000-03-29 01:48:29 +00:00
Guido van Rossum 9f3712c6f1 Mark Hammond: new winreg module; updated dllbase file. 2000-03-28 20:37:15 +00:00
Guido van Rossum 76bd689a8d VC++ project changes to add new Unicode files and modules.
(I did this under VC++ 5.0 -- hope this doesn't break anything.)
2000-03-11 00:13:14 +00:00
Guido van Rossum bffd683f73 The rest of the changes by Trent Mick and Dale Nagata for warning-free
compilation on NT Alpha.  Mostly added casts etc.
2000-01-20 22:32:56 +00:00
Guido van Rossum 9f9fa6d0c9 Add HAVE_DYNAMIC_LOADING.
Define Py_DEBUG when compiling in debug mode.  (Is that a good idea?)
1999-12-20 22:57:41 +00:00
Guido van Rossum 99eb7a1255 Mark Hammond writes:
Attached is a context diff to winsound.c that adds a Beep() function
to play a sound through the PC speaker.  Seems to make sense to have
this added, so I just went and did it!
1999-10-01 14:29:17 +00:00
Guido van Rossum c87f5f4f7a Set the max recursion limit to 5000 -- rather conservative (this uses
0.5 MB of the 1 MB available by default for stack on Win32 platforms).
1999-06-09 15:36:37 +00:00
Guido van Rossum be211a5019 Added sha module! 1999-04-13 15:41:10 +00:00
Guido van Rossum a946210a9f Bump the myusterious M$ version number from 1,5,2,1 to 1,5,2,3.
(I can't even display this on NT, maybe Win/98 can?)
1999-04-13 14:23:45 +00:00
Guido van Rossum a0e6be721b Remove all VC++ info (except VC 1.5) from readme.txt;
remove the VC++ 4.0 project file; remove the unused _tkinter extern defs.
1999-04-12 14:49:01 +00:00
Guido van Rossum d7c18c43bf No longer needed. 1999-04-10 18:42:02 +00:00
Guido van Rossum dcb0a57874 Avoid totally empty files. 1999-04-10 14:00:28 +00:00
Guido van Rossum 6543e88d2a Check for potential error returned by _ungetch(). 1999-02-16 19:40:02 +00:00
Guido van Rossum 8f81a22d41 Some weird symbol (M_I386) was used to decide whether to include the
audioop module; this was no longer defined.  Use MS_WINDOWS instead.
(I have a feeling that this was for the WATCOM port; too bad.)
1999-02-05 22:34:57 +00:00
Guido van Rossum e600578ac7 Add winsound -- by Toby Dickenson with permission. 1999-02-04 22:40:42 +00:00
Guido van Rossum 945554709e Bruce Wheeler quotes Mark Hammond with a different version of the
last patch to this file: use pathLen, not bufSize, as the initializer.
1999-01-14 22:40:30 +00:00
Guido van Rossum 3d37f43293 Jim Ahlstrom added some SIZEOF defs for VC and WATCOM (only). 1999-01-14 18:51:53 +00:00
Guido van Rossum 9df827f3ba Need to define DL_EXPORT, of course! 1998-12-10 16:50:49 +00:00
Guido van Rossum e18f8878aa No longer needed. 1998-12-10 16:50:14 +00:00
Guido van Rossum 2e782e86b1 Add buffer module entry points. 1998-10-07 14:47:46 +00:00
Guido van Rossum e8afe516ab New set of files for the OS/2 port by Jeff Rush. 1998-09-28 22:02:40 +00:00
Guido van Rossum 4da55f0560 Add define of HAVE_STDDEF_H (to 1). Suggested by Greg Stein. 1998-09-23 13:35:45 +00:00
Guido van Rossum 78694d970f Patches from Greg Stein to support 'P' format in struct module's
native format, as void* (translated to Python int or long).
Also adds PyLong_FromVoidPtr and PyLong_AsVoidPtr to longobject.c.
1998-09-18 14:14:13 +00:00
Guido van Rossum e0bdf99c0b At Greg Stein's request, add PyLong_*LongLong entry points. 1998-09-17 13:58:37 +00:00
Guido van Rossum b00d252586 Define SIZEOF_LONG_LONG (as 8) at Greg Stein's request. 1998-09-17 13:19:36 +00:00
Guido van Rossum 3293b07df5 Patch by Mark Hammond to support 64-bit ints on MS platforms.
The MS compiler doesn't call it 'long long', it uses __int64,
so a new #define, LONG_LONG, has been added and all occurrences
of 'long long' are replaced with it.
1998-08-25 16:07:15 +00:00
Guido van Rossum 9b499d2a9c Define HAVE_STRERROR. 1998-08-12 02:10:05 +00:00
Guido van Rossum 24edfbb61d Back out of a recent policy change (Mark Hammond disagreed).
The registry always comes first and the default is always appended.
1998-08-11 20:35:56 +00:00
Guido van Rossum d741f4c48c Added a bunch of symbols detected by Marc Lemburg's script. 1998-08-09 04:00:05 +00:00
Guido van Rossum 43ff114d2b Sigh. More restructuring was needed.
Make an explicit test for whether the prefix is in fact the
source directory, and then don't use the registry.
1998-08-08 23:40:40 +00:00
Guido van Rossum 3804d7ee97 Add PyEval_CallFunction() and PyEval_CallMethod(). 1998-08-08 20:55:59 +00:00
Guido van Rossum c499572a98 This file's previous log message is bogus. The real change is that
when it gets the path from the registry, it no longer appends the
default path to the end (which would mostly be a duplication).
1998-08-08 20:05:31 +00:00
Guido van Rossum 639ccae5f6 This file's previous log message is bogus.
The real change is that it now includes "Python.h".
1998-08-08 20:00:49 +00:00
Guido van Rossum 67ab67218b Different version games:
- MS_DLL_ID is now set to "1.5" instead of "1.5.x" so Mark Hammond's
  extensions won't have to be changed.
- FILEVERSION and PRODUCTVERSION are set to 1,5,2,1.
  (The last number could be the build# or the alpha release# or so.)
1998-08-08 19:58:59 +00:00
Guido van Rossum 1a87be1422 Shouldn't include the lib pragma when building python15.dll itself! 1998-08-08 18:25:43 +00:00
Guido van Rossum 444383039d Added _PyTuple_Resize to list of exported symbols. Don't know how it
could hide so long...
1998-08-08 17:40:28 +00:00
Guido van Rossum 446f033e23 For Win32, added pragmas specifying the python15[_d].lib library. 1998-08-07 15:32:00 +00:00
Guido van Rossum 1127487972 Bump MS_DLL_ID to 1.5.2 1998-08-06 04:56:06 +00:00
Guido van Rossum c531270b72 New version of makefile for Windows 3.1 from Jim Ahlstrom. 1998-08-05 21:14:32 +00:00
Guido van Rossum cc93d9568c New version of VC 1.5 makefile from Jim Ahlstrom. 1998-08-05 21:13:54 +00:00
Guido van Rossum eb891ae045 Get rid of obsolete setup_nt subdirectory. 1998-08-05 21:10:58 +00:00
Guido van Rossum bc160b50c5 Getting rid of this ancient stuff. 1998-08-05 21:10:09 +00:00
Guido van Rossum f6fc1ec462 Jim A's new versions of these 1998-08-03 20:23:42 +00:00
Guido van Rossum 28700c464a Use Py_GetPythonHome() instead of getenv("PYTHONHOME"). 1998-07-27 13:49:04 +00:00
Guido van Rossum 8b2b3ce4be Two changes:
(1) Use Py_GetPythonHome() instead of getenv("PYTHONHOME");

(2) Mark Hammond's patch to search for .pyc/.pyo landmark as well.
1998-07-27 13:48:07 +00:00
Guido van Rossum 251c9fc60a Added Py_{Get,Set}PythonHome. 1998-06-19 19:24:08 +00:00
Guido van Rossum 40ae0e93cd Added _locale 1998-06-19 04:29:55 +00:00
Guido van Rossum 76ec53c64d Subject: Bug in PC/import_nt.c
From: Dan Pierson <dan@remote.control.com>
To: "Mark Hammond (E-mail)" <MHammond@skippinet.com.au>,
    "Guido van Rossum (E-mail)" <guido@cnri.reston.va.us>
Date: Mon, 8 Jun 1998 17:25:07 -0400

RegistryQueryValue requires that its fourth argument be initialized to
the length of the buffer being passed in, this wasn't being done.  I
also split the call and status test into two lines with a local variable
so that I could look at the status in the debugger.
1998-06-15 18:01:34 +00:00
Guido van Rossum d3ab101fac Quick fix -- define SIZEOF_LONG and SIZEOF_INT. 1998-05-29 02:53:29 +00:00
Guido van Rossum cd3462f1f7 Moving to PCbuild 1998-05-29 02:32:34 +00:00
Guido van Rossum e4e021bf21 Release the interpreter lock for calls that may block: _locking(),
_getch(), _getche().

Fix bogus error return when open_osfhandle() doesn't have the right
argument list.
1998-05-29 01:27:07 +00:00
Guido van Rossum 2028dd0423 Replaced the VC++ 5.x instructions with a pointer to ../PCbuild. 1998-05-26 14:20:15 +00:00
Guido van Rossum 9c1bc5b1f6 Moved VC++ 5.x files to ../PCbuild. 1998-05-26 14:17:18 +00:00
Guido van Rossum 1c096b7289 Mark Hammond writes:
Also, here is a new version of import_nt.c, which allows you to register a
Debug module in the registry.  While I was there I removed some of the
ugliness - what was I thinking :-)
1998-05-26 13:53:23 +00:00
Guido van Rossum c8498dc604 Add PyErr_PrintEx and PySequence_Contains. 1998-05-22 00:56:20 +00:00
Guido van Rossum b9d9d72ae0 Install config.h.
Adapt to new build conventions (get rid of Release directory).
1998-05-16 01:51:49 +00:00
Guido van Rossum 837d8bf1d7 Change the output names. Do away with the Release and Debug
subdirectories.

All final products go into the current directory (i.e., PCbuild).

Object files go into temp-release and temp-debug.

Debug versions of DLLs have _d appended to their basename, e.g. the
debug version of python15.dll is python15_d.dll, the debug version of
python.exe is python_d.exe, and the debug version of parser.pyd is
parser_d.pyd.  (See corresponding patch to importdl.c.)  Uniformly
changed all extension modules to use .pyd, not .dll.
1998-05-15 20:26:31 +00:00
Guido van Rossum 3d9a0585e1 Add some symbols. Remove the LIBRARY statement at the top (and the
commented-out CODE/DATA statements).
1998-05-15 20:04:21 +00:00
Guido van Rossum 0332578a3a Oops -- Lib/Test should be Lib/test, of course! 1998-04-14 02:16:23 +00:00
Guido van Rossum 4b601ae381 Missing symbols reported by Andrew Loewenstern. 1998-04-13 22:30:08 +00:00
Guido van Rossum f61ee63a35 Update version. 1998-04-13 22:22:32 +00:00
Guido van Rossum 5fb2b61c64 Set version and title to Python 1.5.1. 1998-04-11 02:36:35 +00:00
Guido van Rossum 52f4915269 Oops, ".\DLLs" should be in the default path now. 1998-04-11 02:31:30 +00:00
Guido van Rossum cfb798e708 Delete reopmodule.c 1998-04-10 21:30:05 +00:00
Guido van Rossum 4a7d701f00 Delete references to initreop(). 1998-04-10 21:29:11 +00:00
Guido van Rossum 63096d48fa Add HAVE_MKTIME. 1998-04-10 21:28:49 +00:00
Guido van Rossum 327aff7864 Added Frozen and Tabcheck flags. 1998-04-10 17:59:29 +00:00
Guido van Rossum 71543e13db Give in to tabnanny 1998-04-06 14:46:29 +00:00
Guido van Rossum 11af5a4469 Mark Hammond's main program for a frozen application. 1998-03-20 17:34:26 +00:00
Guido van Rossum 467950065f Added PyErr_NormalizeException 1998-03-17 00:00:18 +00:00
Guido van Rossum 42a9744d5f Fix some outdated comments (mostly by removing a large comment block
that was only causing confusing).  Add free(userpath) and
free(machinepath) statements to prevent some leaks.
1998-02-19 21:00:45 +00:00
Guido van Rossum f4aeb84bc6 Enable CHECK_IMPORT_CASE on Win32. 1998-02-19 20:59:23 +00:00
Guido van Rossum c213078e1e Fixed bitmaps; added include files and libs;
moved DLLs into their own directory (and added it to default path);
install zlib.dll in SYS32; fixed location of help root.
1998-02-05 02:26:02 +00:00
Guido van Rossum eea714aed4 As Jeff painfully found out, malloc(0) returns NULL on OS/2. 1998-01-11 18:02:19 +00:00
Guido van Rossum d11ec25ce4 Add zlib and bsddb, and remove beta designation. 1997-12-31 04:51:23 +00:00
Guido van Rossum 12501953e0 Added bsddb project 1997-12-19 04:49:27 +00:00
Guido van Rossum 95cdb35ef0 Oops, the output file really should be called zlib.pyd here! 1997-12-18 05:27:55 +00:00
Guido van Rossum bd104bfec9 Added project for zlib 1997-12-18 05:22:23 +00:00
Guido van Rossum ffeb593816 Changes for older Win platforms by Jim Ahlstrom 1997-12-17 21:27:23 +00:00
Guido van Rossum 7988206c1c Don't list which files to add, since the ones that *were* missing have
now been added.
1997-12-16 22:26:02 +00:00
Guido van Rossum 7651624df8 New VC++ 4.2 makefile, contributed by Gregor Schmid,
which adds the three missing files.
1997-12-16 22:25:15 +00:00
Guido van Rossum 85f8b0980d Add note about having to add some files to the VC 4.2 files. 1997-12-15 18:31:32 +00:00
Guido van Rossum d0ec7616ea Copy the change from ../getpathp.c here. 1997-12-11 15:21:33 +00:00
Guido van Rossum 2dbabb2801 Installer for beta-2.
Use Program Files, register pythonw.exe to execute .pyw files.
1997-12-11 05:16:20 +00:00
Guido van Rossum 1058d2e891 update the example without the example.def file 1997-12-11 04:06:04 +00:00
Guido van Rossum 55b8b03dfb New instructions, take VC++ 5.x into account. 1997-12-11 04:01:25 +00:00
Guido van Rossum 936c6de5d3 Adding VC 5.x workspace and project files 1997-12-11 03:43:29 +00:00
Guido van Rossum 0decf6c935 Added tkappinit.c source, and define WITH_APPINIT. 1997-12-11 03:42:40 +00:00
Guido van Rossum 691d2adeef Allocate one byte extra in some cases. 1997-12-11 02:32:43 +00:00
Guido van Rossum 3b99430808 # Use proper temp subdir for intermediates. 1997-12-10 15:12:23 +00:00
Guido van Rossum 4fdd1fafb2 Comment out CODE and DATA statements that are apparently obsolete. 1997-12-10 05:50:55 +00:00
Guido van Rossum d666eae55a Adding a new project: pythonw, or WinMain.c, containing a main program
that doesn't have a console window attached.  stdout/stderr are lost.
This is handy though for things like grail.
1997-12-10 05:50:18 +00:00
Guido van Rossum a34c31352b New batch of patches by Jeff Rush; moved his readme.txt portion here. 1997-12-05 22:07:14 +00:00
Guido van Rossum cee1dca4e7 Moved Jeff Rush's ever expanding comments to os2vacpp/readme.txt. 1997-12-05 22:06:23 +00:00
Guido van Rossum 205eb72217 Use registry key ProgramFilesDir as default MAINDIR 1997-12-05 06:32:47 +00:00
Guido van Rossum 6656d1f041 Add a few more PyErr_ symbols 1997-12-05 06:32:13 +00:00
Guido van Rossum faf8b21507 Add pretty icon to python.exe 1997-12-05 06:31:40 +00:00
Guido van Rossum f11d0240e3 Icons for Windows installer. 1997-11-26 05:14:14 +00:00
Guido van Rossum 3879d4aac7 Added the HTML files. 1997-11-26 04:55:32 +00:00
Guido van Rossum dd58469d8a WISE installer source for Python 1.5 1997-11-25 06:02:27 +00:00
Guido van Rossum 36e18e3d52 Added pypcre.c module. 1997-11-25 06:00:59 +00:00
Guido van Rossum e300d6f0fe Replace plat-os2 with plat-win, per Jeff Rush' suggestion. 1997-11-24 17:49:45 +00:00
Guido van Rossum 465f71d052 Done a sort -u on the symbols (and replaced all tabs with spaces). 1997-11-24 15:54:24 +00:00
Guido van Rossum e1cba7f577 Oops, the sort took some whitespace into account. 1997-11-24 15:50:27 +00:00
Guido van Rossum 060dffbc34 Done a sort -u on the symbols. 1997-11-24 15:48:23 +00:00
Guido van Rossum 7db30cad1e ignore various VC++ turds 1997-11-22 22:05:00 +00:00
Guido van Rossum 50d4cc2f1d Files specific to Visual Age C for OS/2 -- by Jeff Rush 1997-11-22 21:59:45 +00:00
Guido van Rossum 0ba48ba172 Added Jeff Rush' comments 1997-11-22 21:58:14 +00:00
Guido van Rossum d3af2f3815 win -> plat-win 1997-11-22 21:56:10 +00:00
Guido van Rossum f5578e4449 Add PyImport_Inittab and PyOS_AfterFork 1997-11-22 21:55:18 +00:00
Guido van Rossum 8731e5c35f The target directory is now called dos-8x3, not dos_8x3. 1997-10-07 14:55:11 +00:00
Fred Drake d80b3bdc1e Argh; do the same for the "Release" version of the config. 1997-10-02 20:36:45 +00:00
Fred Drake e40afcf154 Fix up include directories for compiling the resources. 1997-10-02 20:23:52 +00:00
Guido van Rossum ccf0a44d2d Fix PYTHONPATH for new names; rename tkinter to lib-tk, rename win to
plat-win, get rid of test (which is now a package).
1997-09-30 22:14:39 +00:00
Fred Drake 228776cfa8 PyExc_NumberError -> PyExc_ArithmeticError 1997-09-30 19:12:33 +00:00
Guido van Rossum 22ecb71078 Added PyExc_Exception and PyErr_NewException. 1997-09-29 23:40:07 +00:00
Guido van Rossum 271f977686 Seem to be some changes related to DLL version from string resource,
again (Mark Hammond is the cause of all this).
1997-09-29 23:39:31 +00:00
Guido van Rossum ec6809291d DLL version is now loaded from a string resource. 1997-09-29 23:37:12 +00:00
Guido van Rossum f57c17034a Remove #ifdef __cplusplus. 1997-09-29 23:36:42 +00:00
Guido van Rossum ff8c9dab19 Bump version and store DLL version in a string variable (for branding). 1997-09-29 23:36:17 +00:00
Guido van Rossum 026de19906 Added PyImport_ImportModuleEx(name, globals, locals, fromlist); this
is like PyImport_ImporModule(name) but receives the globals and locals
dict and the fromlist arguments as well.  (The name is a char*; the
others are PyObject*s).
1997-09-05 07:11:32 +00:00
Guido van Rossum d5f0ce9f28 Added some symbols (I'm afraid more will come). 1997-09-03 16:12:00 +00:00
Guido van Rossum fd91056d59 Change instructions to require use of PCbuild directory (instead of
just recommending it).  At Mark Hammond's request.
1997-09-03 16:11:19 +00:00
Guido van Rossum 9ca064fbb4 At Mark Hammond's suggestion:
- use the DLL versions of the C runtime (!)
- change path settings so intermediate files go to Debug/temp or Release/temp
- add resource file to python15.dll (can't remember what this does)
- add a separate project to build the parser module
1997-09-03 16:10:52 +00:00
Guido van Rossum 64790de195 Added new flags and exceptions; removed AccessError exception. 1997-09-03 01:09:25 +00:00
Guido van Rossum e3c0d5eb34 Added new Py_IsInitalized() API function to test the 'initialized' flag. 1997-08-22 04:20:13 +00:00
Guido van Rossum 8b523f9bd8 Added reop 1997-08-21 02:28:40 +00:00
Guido van Rossum 8a81d27d58 Remove remark on python15.lib being in the Debug subdir only. 1997-08-18 20:58:06 +00:00
Guido van Rossum b27d8d8cf2 Changed the way python15.lib is included in the other projects.
Per Mark Hammond's suggestion, add it to the extra libs in Settings
instead of to the project's source files.
1997-08-18 20:57:13 +00:00
Guido van Rossum 34b359732c No longer used. 1997-08-18 15:46:16 +00:00
Guido van Rossum ff7d104778 DevStudio (CV++ 5.0) Project files. 1997-08-14 23:02:29 +00:00
Guido van Rossum 831c2583c8 Updated for new situation; added VC++ 5.0 info and new path strategies. 1997-08-14 22:57:33 +00:00
Guido van Rossum 4036c9c2a1 Probably the last VC++ 4.2 makefile I'll check in.
After this I will be using 5.0, which has binary workspace files...
1997-08-13 23:08:39 +00:00
Guido van Rossum f644882fb4 Small changes to readme and makefile; tested for 1.5a3! 1997-08-13 23:07:44 +00:00
Guido van Rossum 00b299afea removed getpath_nt.c in favor of revamped getpathp.c 1997-08-13 21:38:04 +00:00
Guido van Rossum eea1449a34 Much rewritten. Added Win32 registry stuff (from getpath_nt.c, which
is now obsolete), and changed the default path calculations.
$PYTHONPATH is now added as a prefix (like it's always been on Unix);
$PYTHONHOME takes precedence over the program pathname; and only one
landmark is needed.
1997-08-13 21:30:44 +00:00
Guido van Rossum 407a22d2ce Made it real. Changed locking() to work with file descriptors instead
of Python file objects.  Added open_osfhandle() (Mark had done some
work for that), get_osfhandle(), setmode(), and the console I/O
functions kbhit(), getch(), getche(), ungetch(), and putch().
1997-08-13 19:57:53 +00:00
Guido van Rossum 8f1b651980 Some changes to make it work on NT; add the directory where the binary
lives to the end of the path.

(Still to do: add $PYTHONPATH to the front instead of using it as is;
add the Win32 registry paths as in getpath_nt.c (which can then
retire).)
1997-08-13 19:55:43 +00:00
Guido van Rossum 0e6ae93894 Moved PyWin_IsWin32s() here. 1997-08-13 19:53:11 +00:00
Guido van Rossum 5137ea9e27 Remove #define main; remove vc40 from PYTHONPATH. 1997-08-13 19:52:26 +00:00
Guido van Rossum 44620646fd Renamed Py_input_hook to PyOS_InputHook.
Also cleaned out some CR's left by the VC++ editor.
1997-08-11 18:57:29 +00:00
Guido van Rossum 29c1ea5af0 Got the new structure working with MSVC 4.2.
main_nt.c is gone -- we can use Modules/python.c now.
Added Mark Hammond's module msvcrt.c (untested).
Added several new symbols.
1997-08-07 00:11:34 +00:00
Guido van Rossum 7a337c1c79 Removed Py_SuppressPrintingFlag flag; added new
PyEval_{Acquire,Release}Thread() calls.
1997-07-19 19:59:06 +00:00
Guido van Rossum f0f7aad30f Added remaining PyThread symbols. 1997-07-16 15:51:52 +00:00
Roger E. Masse 1830afb4da Changed the reference of 'mappingobject.c' to 'dictobject.c' 1997-06-05 22:03:26 +00:00
Guido van Rossum c2d1417615 Added Py_GetProgramFullPath (same as GetProgramName) 1997-05-22 20:45:28 +00:00
Guido van Rossum 39ed1c35e5 Added Py_GetProgramFullPath 1997-05-22 20:45:01 +00:00
Guido van Rossum e34b7de399 Updated Python version no to 1.5.
Noted that we have used VC 4.2 and that 5.x should be able to convert it.
1997-05-19 20:01:57 +00:00
Guido van Rossum 1aa7e3a177 Jim Ahlstrom's contributions for DOS, OS/2, WIN3.1. 1997-05-19 14:16:21 +00:00
Guido van Rossum 082d28912f Added CRLF for Notepad. 1997-05-16 16:24:09 +00:00
Guido van Rossum 29168ce1ed Added CRLF for Notepad. 1997-05-16 16:17:20 +00:00
Guido van Rossum 8cd70c3555 Instructions updated for 1.5. Added the important note to set the
run-library to multithreaded dll.
1997-05-14 21:35:02 +00:00
Guido van Rossum 9348bf8388 Updated, mappingobject -> dictobject plus some other minor things. 1997-05-14 20:47:15 +00:00
Guido van Rossum fcc7704ee9 Typo! \\lib\\<path> should be .\\lib\\<path> 1997-05-14 18:32:32 +00:00
Guido van Rossum 39d6ae7b6c New makefile, for 1.5, with CRLF 1997-05-14 15:54:27 +00:00
Guido van Rossum e0332c7173 Longer default PYTHONPATH will find test, tkinter, and shared modules
in the build tree, when the current directory is the build tree root.
1997-05-13 19:21:22 +00:00
Guido van Rossum ff2ea728b8 Oops -- missed FloatingPointError. 1997-05-09 03:05:16 +00:00
Guido van Rossum c77b921c82 Latest and greatest. 1997-05-09 01:00:56 +00:00
Guido van Rossum 1aceb056d6 Add warning that it's out of date. 1997-05-08 23:44:57 +00:00
Guido van Rossum 22822d78db forgot to rename import_filetab 1997-05-08 23:43:52 +00:00
Guido van Rossum 78089e20b6 Updated vc40.mak for Roger. Includes CRLF! 1997-05-06 21:44:44 +00:00
Guido van Rossum 2e146b332c Use spaces exclusively. 1997-05-06 16:00:32 +00:00
Guido van Rossum 42c2e6ac49 Added cStringIO and cPickle to the supported modules. 1997-05-06 15:59:14 +00:00
Guido van Rossum c339753fb3 Added HAVE_ macros for getpeername, getpid, setvbuf. 1997-05-06 15:58:18 +00:00
Guido van Rossum a1ebdbddb3 Use Python.h, not allobjects.h.
Don't call initall()  (Experimental incompatible change!!!!!!)
1997-05-05 22:18:50 +00:00
Guido van Rossum db9353e17d CloseHandle should be RegCloseKey.
Add extern decl for Py_GetProgramName().
1997-05-05 22:17:45 +00:00
Guido van Rossum 8290e07509 Removed misc outdated stuff for 1.5 1997-05-05 22:14:19 +00:00
Guido van Rossum 7688bbad61 Include Python.h, not allobjects.h (which no longer exists). 1997-05-05 21:45:44 +00:00
Guido van Rossum 2b713b2f67 One more inittab. 1997-04-29 20:46:45 +00:00
Guido van Rossum d69a84b01e use /usr/bin/env 1997-04-02 06:11:55 +00:00
Guido van Rossum 5a35e32de6 Remove ConflictError, add InteractiveFlag, CObject_Type, FdIsInteractive, and thread entry points. 1997-03-31 17:18:03 +00:00
Guido van Rossum 115eb64ff6 Added PyArg_ParseTupleAndKeywords, PyErr_Format. 1997-02-14 17:11:33 +00:00
Guido van Rossum e0e696282f Added PyCObject_Import. 1997-01-22 20:48:48 +00:00
Guido van Rossum 728a09e0f6 Remove GetOwner, add GetBuildInfo... 1997-01-22 01:41:30 +00:00