From: <cho...@us...> - 2003-01-01 15:55:45
|
Update of /cvsroot/pyaros/PyAROS/Modules In directory sc8-pr-cvs1:/tmp/cvs-serv23972 Modified Files: gcmodule.c Log Message: Optionally disable docstrings. Index: gcmodule.c =================================================================== RCS file: /cvsroot/pyaros/PyAROS/Modules/gcmodule.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** gcmodule.c 14 Oct 2002 20:39:25 -0000 1.1.1.1 --- gcmodule.c 1 Jan 2003 15:55:41 -0000 1.2 *************** *** 490,498 **** } static char gc_enable__doc__[] = "enable() -> None\n" "\n" ! "Enable automatic garbage collection.\n" ! ; static PyObject * --- 490,501 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc_enable__doc__[] = "enable() -> None\n" "\n" ! "Enable automatic garbage collection.\n"; ! #else ! #define gc_enable__doc__ NULL ! #endif static PyObject * *************** *** 509,517 **** } static char gc_disable__doc__[] = "disable() -> None\n" "\n" ! "Disable automatic garbage collection.\n" ! ; static PyObject * --- 512,523 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc_disable__doc__[] = "disable() -> None\n" "\n" ! "Disable automatic garbage collection.\n"; ! #else ! #define gc_disable__doc__ NULL ! #endif static PyObject * *************** *** 528,536 **** } static char gc_isenabled__doc__[] = "isenabled() -> status\n" "\n" ! "Returns true if automatic garbage collection is enabled.\n" ! ; static PyObject * --- 534,545 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc_isenabled__doc__[] = "isenabled() -> status\n" "\n" ! "Returns true if automatic garbage collection is enabled.\n"; ! #else ! #define gc_isenabled__doc__ NULL ! #endif static PyObject * *************** *** 544,552 **** } static char gc_collect__doc__[] = "collect() -> n\n" "\n" ! "Run a full collection. The number of unreachable objects is returned.\n" ! ; static PyObject * --- 553,564 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc_collect__doc__[] = "collect() -> n\n" "\n" ! "Run a full collection. The number of unreachable objects is returned.\n"; ! #else ! #define gc_collect__doc__ NULL ! #endif static PyObject * *************** *** 573,576 **** --- 585,589 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc_set_debug__doc__[] = "set_debug(flags) -> None\n" *************** *** 587,592 **** " DEBUG_OBJECTS - Print objects other than instances.\n" " DEBUG_SAVEALL - Save objects to gc.garbage rather than freeing them.\n" ! " DEBUG_LEAK - Debug leaking programs (everything but STATS).\n" ! ; static PyObject * --- 600,607 ---- " DEBUG_OBJECTS - Print objects other than instances.\n" " DEBUG_SAVEALL - Save objects to gc.garbage rather than freeing them.\n" ! " DEBUG_LEAK - Debug leaking programs (everything but STATS).\n"; ! #else ! #define gc_set_debug__doc__ NULL ! #endif static PyObject * *************** *** 600,608 **** } static char gc_get_debug__doc__[] = "get_debug() -> flags\n" "\n" ! "Get the garbage collection debugging flags.\n" ! ; static PyObject * --- 615,626 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc_get_debug__doc__[] = "get_debug() -> flags\n" "\n" ! "Get the garbage collection debugging flags.\n"; ! #else ! #define gc_get_debug__doc__ NULL ! #endif static PyObject * *************** *** 615,624 **** } static char gc_set_thresh__doc__[] = "set_threshold(threshold0, [threshold1, threshold2]) -> None\n" "\n" "Sets the collection thresholds. Setting threshold0 to zero disables\n" ! "collection.\n" ! ; static PyObject * --- 633,645 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc_set_thresh__doc__[] = "set_threshold(threshold0, [threshold1, threshold2]) -> None\n" "\n" "Sets the collection thresholds. Setting threshold0 to zero disables\n" ! "collection.\n"; ! #else ! #define gc_set_thresh__doc__ NULL ! #endif static PyObject * *************** *** 633,641 **** } static char gc_get_thresh__doc__[] = "get_threshold() -> (threshold0, threshold1, threshold2)\n" "\n" ! "Return the current collection thresholds\n" ! ; static PyObject * --- 654,665 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc_get_thresh__doc__[] = "get_threshold() -> (threshold0, threshold1, threshold2)\n" "\n" ! "Return the current collection thresholds\n"; ! #else ! #define gc_get_thresh__doc__ NULL ! #endif static PyObject * *************** *** 677,683 **** --- 701,711 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc_get_referrers__doc__[]= "get_referrers(*objs) -> list\n\ Return the list of objects that directly refer to any of objs."; + #else + #define gc_get_referrers__doc__ NULL + #endif static PyObject * *************** *** 694,703 **** } static char gc_get_objects__doc__[] = "get_objects() -> [...]\n" "\n" "Return a list of objects tracked by the collector (excluding the list\n" ! "returned).\n" ! ; /* appending objects in a GC list to a Python list */ --- 722,734 ---- } + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc_get_objects__doc__[] = "get_objects() -> [...]\n" "\n" "Return a list of objects tracked by the collector (excluding the list\n" ! "returned).\n"; ! #else ! #define gc_get_objects__doc__ NULL ! #endif /* appending objects in a GC list to a Python list */ *************** *** 738,741 **** --- 769,773 ---- + #ifdef PYTHON_INCLUDE_DOCSTRINGS static char gc__doc__ [] = "This module provides access to the garbage collector for reference cycles.\n" *************** *** 750,755 **** "get_threshold() -- Return the current the collection thresholds.\n" "get_objects() -- Return a list of all objects tracked by the collector.\n" ! "get_referrers() -- Return the list of objects that refer to an object.\n" ! ; static PyMethodDef GcMethods[] = { --- 782,789 ---- "get_threshold() -- Return the current the collection thresholds.\n" "get_objects() -- Return a list of all objects tracked by the collector.\n" ! "get_referrers() -- Return the list of objects that refer to an object.\n"; ! #else ! #define gc__doc__ NULL ! #endif static PyMethodDef GcMethods[] = { |