[Python-checkins] r64406 - python/trunk/Modules/_cursesmodule.c

andrew.kuchling python-checkins at python.org
Thu Jun 19 16:02:31 CEST 2008


Author: andrew.kuchling
Date: Thu Jun 19 16:02:30 2008
New Revision: 64406

Log:
Only include update_lines_cols() function when it's actually going to be used

Modified:
   python/trunk/Modules/_cursesmodule.c

Modified: python/trunk/Modules/_cursesmodule.c
==============================================================================
--- python/trunk/Modules/_cursesmodule.c	(original)
+++ python/trunk/Modules/_cursesmodule.c	Thu Jun 19 16:02:30 2008
@@ -2319,6 +2319,7 @@
 
 /* Internal helper used for updating curses.LINES, curses.COLS, _curses.LINES
  * and _curses.COLS */
+#if defined(HAVE_CURSES_RESIZETERM) || defined(HAVE_CURSES_RESIZE_TERM)
 static int
 update_lines_cols(void)
 {
@@ -2363,6 +2364,7 @@
   Py_DECREF(m);
   return 1;
 }
+#endif
 
 #ifdef HAVE_CURSES_RESIZETERM
 static PyObject *


More information about the Python-checkins mailing list