summaryrefslogtreecommitdiff
path: root/PC/msvcrtmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 84506 via svnmerge fromAntoine Pitrou2010-09-041-0/+3
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84506 | antoine.pitrou | 2010-09-04 22:53:29 +0200 (sam., 04 sept. 2010) | 5 lines Issue #8734: Avoid crash in msvcrt.get_osfhandle() when an invalid file descriptor is provided. Patch by Pascal Chambon. ........
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-179/+179
|
* Stop providing crtassem.h symbols when compiling withMartin v. Löwis2010-02-181-1/+1
| | | | | Visual Studio 2010, as msvcr100.dll is not a platform assembly anymore.
* We only support Windows NT derivatives now.Georg Brandl2009-12-301-2/+1
|
* #7579: Add docstrings to the msvcrt moduleAmaury Forgeot d'Arc2009-12-291-14/+105
|
* Issue #4365: Add crtassem.h constants to the msvcrt module.Martin v. Löwis2008-11-301-0/+24
|
* Restore support for Microsoft VC6 compiler.Amaury Forgeot d'Arc2008-06-131-2/+10
| | | | | | | Some functions in the msvcrt module are skipped, and socket.ioctl is enabled only when using a more recent Platform SDK. (and yes, there are still companies that use a 10-years old compiler)
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-2/+2
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-2/+2
|
* Stupid save all didn't safe it all ...Christian Heimes2007-12-101-5/+6
|
* Added wide char api variants of getch and putch to msvcrt module. The wide ↵Christian Heimes2007-12-101-0/+69
| | | | char methods are required to fix #1578 in py3k. I figured out that they might be useful in 2.6, too.
* initmsvcrt(): This no longer compiled on Windows, becauseTim Peters2006-01-191-1/+2
| | | | a recent change inserted code before an auto declaration.
* Check return result from Py_InitModule*(). This API can fail.Neal Norwitz2006-01-191-0/+2
| | | | Probably should be backported.
* Use PyMODINIT_FUNC.Thomas Heller2004-07-281-1/+1
|
* Use symbolic METH_VARARGS instead of 1 for ml_flagsNeal Norwitz2002-03-311-10/+10
|
* SF bug [#456252] Python should never stomp on [u]intptr_t.Tim Peters2001-08-291-1/+1
| | | | | | | | | | | 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.
* Partial fix for SF bug 122780 (msvcrt.locking constants aren't defined).Tim Peters2000-12-121-12/+47
| | | | Still needs docs; see bug report (which was reassigned to Fred) for MS's docs.
* [*** Not tested as I don't have Windows running right now! ***]Fred Drake2000-06-301-2/+5
| | | | | | | | | | | | | | | 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.
* Check for potential error returned by _ungetch().Guido van Rossum1999-02-161-1/+2
|
* Release the interpreter lock for calls that may block: _locking(),Guido van Rossum1998-05-291-2/+10
| | | | | | | _getch(), _getche(). Fix bogus error return when open_osfhandle() doesn't have the right argument list.
* Made it real. Changed locking() to work with file descriptors insteadGuido van Rossum1997-08-131-44/+134
| | | | | | 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().
* Got the new structure working with MSVC 4.2.Guido van Rossum1997-08-071-0/+95
main_nt.c is gone -- we can use Modules/python.c now. Added Mark Hammond's module msvcrt.c (untested). Added several new symbols.