114 Commits

Author SHA1 Message Date
Serhiy Storchaka
994f04dbf5 Issue #28998: More APIs now support longs as well as ints. 2016-12-27 15:09:36 +02:00
Benjamin Peterson
505989c0e7 fail when negative values are passed to instr() 2016-08-15 21:40:14 -07:00
Benjamin Peterson
f670120cb7 do not allow reading negative values with getstr() 2016-08-13 18:15:28 -07:00
R David Murray
a39c47aab0 #8862: Fix curses cleanup with getchar is interrupted by a signal.
I have no idea how one would write a test for this.

Patch by July Tikhonov.
2013-03-19 16:26:53 -04:00
Matthias Klose
6e86bf72ac - Issue #7567: Don't call `setupterm' twice. 2010-07-30 21:27:18 +00:00
Victor Stinner
fd2103e68d reindent _cursesmodule.c
Use untabify.py + emacs (python3 mode) + manual editions for
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS
2010-05-15 22:19:27 +00:00
Andrew M. Kuchling
035fbba859 Use ';' after initialization macros to avoid confusing re-indenters 2010-05-10 23:27:01 +00:00
Andrew M. Kuchling
3eee7af1f2 Break long line in macros 2010-05-10 23:24:09 +00:00
Andrew M. Kuchling
40f09c07a2 Move { out of #if...#else block; this confuses Emacs' C-mode 2010-05-10 17:18:25 +00:00
Larry Hastings
402b73fb8d Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
2010-03-25 00:54:54 +00:00
Victor Stinner
53ff86ea5f Fix _curses.tiget*() functions: deny None to avoid a crash.
Fix the following calls: _curses.tigetflag(None), _curses.tigetnum(None),
_curses.tigetstr(None).
2010-03-25 00:51:58 +00:00
Ezio Melotti
eb6d430041 Silence compiler warnings. 2010-03-13 04:39:51 +00:00
Benjamin Peterson
41162ebdad remove CVS id 2010-03-01 23:25:13 +00:00
Andrew M. Kuchling
72aae73d47 Fix comment typo 2010-02-22 18:38:23 +00:00
Andrew M. Kuchling
38c123651c #7597: curses.use_env() can be called before initscr(). Noted by Kan-Ru Chen 2010-02-22 16:26:47 +00:00
Andrew M. Kuchling
b49e53ee16 #6243: fix segfault when keyname() returns a NULL pointer.
Bug noted by Trundle, patched by Trundle and Jerry Chen.
2009-09-25 22:23:54 +00:00
Alexandre Vassalotti
6d78736177 Initialize variables in PyCurses_getsyx() to avoid compiler warnings. 2009-07-17 07:54:23 +00:00
Andrew M. Kuchling
3d8f8c1d62 Only include update_lines_cols() function when it's actually going to be used 2008-06-19 14:02:30 +00:00
Gregory P. Smith
dd96db63f6 This reverts r63675 based on the discussion in this thread:
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.
2008-06-09 04:58:54 +00:00
Christian Heimes
593daf545b Renamed PyString to PyBytes 2008-05-26 12:51:38 +00:00
Georg Brandl
29604a1b4c #1940: make it possible to use curses.filter() before curses.initscr()
as the documentation says.
2008-01-26 14:03:47 +00:00
Andrew M. Kuchling
3eb4aa733a Related to patch #1114: fix another place where attr_t is assumed to be a long 2008-01-09 12:27:41 +00:00
Andrew M. Kuchling
62182c8b72 Patch 1114: fix compilation of curses module on 64-bit AIX, and any other LP64 platforms where attr_t isn't a C long 2008-01-08 14:56:02 +00:00
Christian Heimes
000a074c95 Modified PyImport_Import and PyImport_ImportModule to always use absolute imports by calling __import__ with an explicit level of 0
Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports
2008-01-03 22:16:32 +00:00
Christian Heimes
e93237dfcc #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00