Matthias Klose
9b83dbe905
Merged revisions 83306 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint
........
r83306 | matthias.klose | 2010-07-30 23:27:18 +0200 (Fr, 30 Jul 2010) | 2 lines
- Issue #7567 : Don't call `setupterm' twice.
........
16 years ago
Matthias Klose
6e86bf72ac
- Issue #7567 : Don't call `setupterm' twice.
16 years ago
Victor Stinner
ec2347614f
Recorded merge of revisions 81213 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81213 | victor.stinner | 2010-05-16 00:19:27 +0200 (dim., 16 mai 2010) | 5 lines
reindent _cursesmodule.c
Use untabify.py + emacs (python3 mode) + manual editions for
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS
........
16 years ago
Victor Stinner
fd2103e68d
reindent _cursesmodule.c
Use untabify.py + emacs (python3 mode) + manual editions for
Py_BEGIN_ALLOW_THREADS / Py_END_ALLOW_THREADS
16 years ago
Andrew M. Kuchling
035fbba859
Use ';' after initialization macros to avoid confusing re-indenters
16 years ago
Andrew M. Kuchling
3eee7af1f2
Break long line in macros
16 years ago
Andrew M. Kuchling
40f09c07a2
Move { out of #if...#else block; this confuses Emacs' C-mode
16 years ago
Larry Hastings
402b73fb8d
Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
16 years ago
Victor Stinner
2472726b82
Merged revisions 79395 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79395 | victor.stinner | 2010-03-25 01:51:58 +0100 (jeu., 25 mars 2010) | 5 lines
Fix _curses.tiget*() functions: deny None to avoid a crash.
Fix the following calls: _curses.tigetflag(None), _curses.tigetnum(None),
_curses.tigetstr(None).
........
16 years ago
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).
16 years ago
Ezio Melotti
c0fd6ffd4f
Merged revisions 73824,78887,78895,78900,79024 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73824 | ezio.melotti | 2009-07-04 04:18:08 +0300 (Sat, 04 Jul 2009) | 1 line
#6398 typo: versio. -> version.
........
r78887 | ezio.melotti | 2010-03-13 02:15:36 +0200 (Sat, 13 Mar 2010) | 1 line
fix broken links
........
r78895 | ezio.melotti | 2010-03-13 03:21:34 +0200 (Sat, 13 Mar 2010) | 1 line
#8011 : use exc.tb_lineno instead of traceback.tb_lineno() and pep8ify variable names.
........
r78900 | ezio.melotti | 2010-03-13 06:39:51 +0200 (Sat, 13 Mar 2010) | 1 line
Silence compiler warnings.
........
r79024 | ezio.melotti | 2010-03-17 16:22:34 +0200 (Wed, 17 Mar 2010) | 1 line
Use "x in y" instead of y.find(x) != -1.
........
16 years ago
Ezio Melotti
eb6d430041
Silence compiler warnings.
16 years ago
Benjamin Peterson
41162ebdad
remove CVS id
16 years ago
Andrew M. Kuchling
72aae73d47
Fix comment typo
16 years ago
Andrew M. Kuchling
47d960ec4a
Merged revisions 75066 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75066 | andrew.kuchling | 2009-09-25 18:23:54 -0400 (Fri, 25 Sep 2009) | 4 lines
#6243 : fix segfault when keyname() returns a NULL pointer.
Bug noted by Trundle, patched by Trundle and Jerry Chen.
........
16 years ago
Andrew M. Kuchling
63553d1829
Merged revisions 78318 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78318 | andrew.kuchling | 2010-02-22 11:26:47 -0500 (Mon, 22 Feb 2010) | 1 line
#7597 : curses.use_env() can be called before initscr(). Noted by Kan-Ru Chen
........
16 years ago
Andrew M. Kuchling
38c123651c
#7597 : curses.use_env() can be called before initscr(). Noted by Kan-Ru Chen
16 years ago
Andrew M. Kuchling
b49e53ee16
#6243 : fix segfault when keyname() returns a NULL pointer.
Bug noted by Trundle, patched by Trundle and Jerry Chen.
17 years ago
Alexandre Vassalotti
6d78736177
Initialize variables in PyCurses_getsyx() to avoid compiler warnings.
17 years ago
Andrew M. Kuchling
3d8f8c1d62
Only include update_lines_cols() function when it's actually going to be used
18 years ago
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.
18 years ago
Christian Heimes
593daf545b
Renamed PyString to PyBytes
18 years ago
Georg Brandl
ee50e3c734
#1940 : make it possible to use curses.filter() before curses.initscr()
as the documentation says.
(backport from rev. 60322)
18 years ago
Georg Brandl
29604a1b4c
#1940 : make it possible to use curses.filter() before curses.initscr()
as the documentation says.
18 years ago
Andrew M. Kuchling
3eb4aa733a
Related to patch #1114 : fix another place where attr_t is assumed to be a long
18 years ago
Andrew M. Kuchling
7a062c6dca
Patch 1114: fix compilation of curses module on 64-bit AIX, and any other LP64 platforms where attr_t isn't a C long
18 years ago
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
18 years ago
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
18 years ago
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.
18 years ago
Martin v. Löwis
6819210b9e
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
19 years ago
Neal Norwitz
a84dcd7546
Stop using METH_OLDARGS implicitly
19 years ago
Andrew M. Kuchling
a6fbc1eabb
Point readers at the patch submission instructions
19 years ago
Andrew M. Kuchling
400a49ba79
Add window.chgat() method, submitted via e-mail by Fabian Kreutz
19 years ago
Walter Dörwald
05b5c7fe0e
Backport checkin:
Patch for bug #1633621 : if curses.resizeterm() or
curses.resize_term() is called, update _curses.LINES,
_curses.COLS, curses.LINES and curses.COLS.
19 years ago
Walter Dörwald
d391f0855c
Patch for bug #1633621 : if curses.resizeterm() or
curses.resize_term() is called, update _curses.LINES,
_curses.COLS, curses.LINES and curses.COLS.
19 years ago
Neal Norwitz
716692ff13
Backport fix from 51683.
20 years ago
Neal Norwitz
6aefa916a9
Bug #1548092 : fix curses.tparm seg fault on invalid input. Needs backport to 2.5.1 and earlier.
20 years ago
Neal Norwitz
20745b1a70
Handle failure from PyModule_GetDict() (Klocwork 208).
Fix a bunch of refleaks in the init of the module. This would only be found
when running python -v.
20 years ago
Andrew M. Kuchling
a1da20472f
Correct error message
20 years ago
Andrew M. Kuchling
55b0a0eb0d
[Bug #1471938 ] Fix build problem on Solaris 8 by conditionalizing the use of mvwgetnstr(); it was conditionalized a few lines below. Fix from Paul Eggert. I also tried out the STRICT_SYSV_CURSES case and am therefore removing the 'untested' comment.
20 years ago
Walter Dörwald
4994d9546c
Patch #1506645 : add Python wrappers for the curses functions
is_term_resized, resize_term and resizeterm. This uses three
separate configure checks (one for each function).
20 years ago
Martin v. Löwis
15e62742fa
Revert backwards-incompatible const changes.
20 years ago
Neal Norwitz
1ac754fa10
Check return result from Py_InitModule*(). This API can fail.
Probably should be backported.
20 years ago
Neal Norwitz
88bbd73d07
SF bug #1400822 , Extended version of _curses over{lay,write} does not work
Fix signatures to conform to doc (also fixed ungetmouse()).
Will backport.
20 years ago
Jeremy Hylton
af68c874a6
Add const to several API functions that take char *.
In C++, it's an error to pass a string literal to a char* function
without a const_cast(). Rather than require every C++ extension
module to put a cast around string literals, fix the API to state the
const-ness.
I focused on parts of the API where people usually pass literals:
PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type
slots, etc. Predictably, there were a large set of functions that
needed to be fixed as a result of these changes. The most pervasive
change was to make the keyword args list passed to
PyArg_ParseTupleAndKewords() to be a const char *kwlist[].
One cast was required as a result of the changes: A type object
mallocs the memory for its tp_doc slot and later frees it.
PyTypeObject says that tp_doc is const char *; but if the type was
created by type_new(), we know it is safe to cast to char *.
20 years ago
Andrew M. Kuchling
b5e7ff4aeb
Fix check for error condition
21 years ago
Andrew M. Kuchling
52a14c3cdc
[Bug #1200134 ] Fix buffer overflow by constraining size of .getstr(), .instr() to size of allocated buffer
21 years ago
Michael W. Hudson
7d6cc5b303
Fix a leak of a reference on None.
22 years ago
Andrew M. Kuchling
69f31eb80c
[Patch #739124 ] Add use_default_colors() to curses module
23 years ago
Michael W. Hudson
2100798b8c
Always call tparm with 10 arguments. It seems it's not varargs i
more often than it is. In response to bug:
[ 641808 ] Portability of Modules/_cursesmodule.c
submitted by Nick Mclaren.
23 years ago