[Python-checkins] r46904 - sandbox/trunk/decimal-c/_decimal.c
Neal Norwitz
nnorwitz at gmail.com
Tue Jun 13 06:25:06 CEST 2006
On 6/12/06, mateusz.rukowicz <python-checkins at python.org> wrote:
>> Real dividing now works and passes all tests, integer not yet implemented. Commented 2 functions causing sigsegv.
> static PyObject *
> context_power(contextobject *self, PyObject *args)
> {
> - PyObject *a, *b, *c;
> +/* PyObject *a, *b, *c;
> decimalobject *dec_a = NULL, *dec_b = NULL, *dec_c = NULL, *res;
> if (!PyArg_ParseTuple(args, "OO|O:power", &a, &b, &c))
> return NULL;
> @@ -4311,7 +4855,8 @@
> Py_DECREF(dec_a);
> Py_DECREF(dec_b);
> Py_DECREF(dec_c);
> - return (PyObject *)res;
> + return (PyObject *)res;*/
> + Py_RETURN_NONE;
> }
In C/C++ the easier way to "comment out" code like this is to use #if
0. It is easy to search for since it won't be confused with a real
comment. It also handles embedded comments just fine;
#if 0
code that wouldn't even compile otherwise
/* comments are fine in here too */
#endif
n
More information about the Python-checkins
mailing list