Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv26907
Modified Files:
cursesmodule.c
Log Message:
Oliver Andrich's ncurses-specific curses module, version 1.5b1
Index: cursesmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cursesmodule.c,v
retrieving revision 2.20
retrieving revision 2.21
diff -C2 -r2.20 -r2.21
*** cursesmodule.c 2000/05/03 23:44:31 2.20
--- cursesmodule.c 2000/05/23 16:18:03 2.21
***************
*** 1,225 ****
! /***********************************************************
! Copyright 1994 by Lance Ellinghouse,
! Cathedral City, California Republic, United States of America.
!
! All Rights Reserved
!
! Permission to use, copy, modify, and distribute this software and its
! documentation for any purpose and without fee is hereby granted,
! provided that the above copyright notice appear in all copies and that
! both that copyright notice and this permission notice appear in
[...3602 lines suppressed...]
! SetDictInt("COLOR_GREEN", COLOR_GREEN);
! SetDictInt("COLOR_YELLOW", COLOR_YELLOW);
! SetDictInt("COLOR_BLUE", COLOR_BLUE);
! SetDictInt("COLOR_MAGENTA", COLOR_MAGENTA);
! SetDictInt("COLOR_CYAN", COLOR_CYAN);
! SetDictInt("COLOR_WHITE", COLOR_WHITE);
/* Now set everything up for KEY_ variables */
***************
*** 1603,1605 ****
--- 2256,2264 ----
SetDictInt("KEY_MAX", KEY_MAX);
}
+
+ /* Check for errors */
+ if (PyErr_Occurred())
+ Py_FatalError("can't initialize module curses");
}
+
+