From: <cho...@us...> - 2003-01-01 17:45:53
|
Update of /cvsroot/pyaros/PyAROS/Objects In directory sc8-pr-cvs1:/tmp/cvs-serv19738 Modified Files: funcobject.c intobject.c Log Message: Optionally disable docstrings. Index: funcobject.c =================================================================== RCS file: /cvsroot/pyaros/PyAROS/Objects/funcobject.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** funcobject.c 14 Oct 2002 20:40:08 -0000 1.1.1.1 --- funcobject.c 1 Jan 2003 17:45:48 -0000 1.2 *************** *** 494,497 **** --- 494,498 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char classmethod_doc[] = "classmethod(function) -> method\n\ *************** *** 514,517 **** --- 515,521 ---- Class methods are different than C++ or Java static methods.\n\ If you want those, see the staticmethod builtin."; + #else + #define classmethod_doc NULL + #endif PyTypeObject PyClassMethod_Type = { *************** *** 626,629 **** --- 630,634 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char staticmethod_doc[] = "staticmethod(function) -> method\n\ *************** *** 643,646 **** --- 648,654 ---- Static methods in Python are similar to those found in Java or C++.\n\ For a more advanced concept, see the classmethod builtin."; + #else + #define staticmethod_doc NULL + #endif PyTypeObject PyStaticMethod_Type = { Index: intobject.c =================================================================== RCS file: /cvsroot/pyaros/PyAROS/Objects/intobject.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** intobject.c 14 Oct 2002 20:40:08 -0000 1.1.1.1 --- intobject.c 1 Jan 2003 17:45:48 -0000 1.2 *************** *** 827,830 **** --- 827,831 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char int_doc[] = "int(x[, base]) -> integer\n\ *************** *** 835,838 **** --- 836,842 ---- the optional base. It is an error to supply a base when converting a\n\ non-string."; + #else + #define int_doc NULL + #endif static PyNumberMethods int_as_number = { |