[Python-checkins] CVS: python/dist/src/Python exceptions.c,1.7,1.8
Tim Peters
python-dev@python.org
Tue, 11 Jul 2000 21:02:13 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory slayer.i.sourceforge.net:/tmp/cvs-serv21690/python/dist/src/python
Modified Files:
exceptions.c
Log Message:
Worm around MSVC6 error on single string literal > 2Kb.
Index: exceptions.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/exceptions.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** exceptions.c 2000/07/11 17:52:59 1.7
--- exceptions.c 2000/07/12 04:02:10 1.8
***************
*** 21,24 ****
--- 21,28 ----
#include "Python.h"
+ /* Caution: MS Visual C++ 6 errors if a single string literal exceeds
+ * 2Kb. So the module docstring has been broken roughly in half, using
+ * compile-time literal concatenation.
+ */
static char
module__doc__[] =
***************
*** 42,47 ****
inserted into both the exceptions module and the `built-in' module. It is\n\
recommended that user defined class based exceptions be derived from the\n\
! `Exception' class, although this is currently not enforced.\n\
! \n\
Exception\n\
|\n\
--- 46,52 ----
inserted into both the exceptions module and the `built-in' module. It is\n\
recommended that user defined class based exceptions be derived from the\n\
! `Exception' class, although this is currently not enforced.\n"
! /* keep string pieces "small" */
! "\n\
Exception\n\
|\n\