summaryrefslogtreecommitdiffstats
path: root/PC/msvcrtmodule.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.