Skip to content

Commit 416bce2

Browse files
committed
address review: add comments & fix parameter names
1 parent 94537e1 commit 416bce2

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Modules/_decimal/_decimal.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6026,7 +6026,9 @@ static PyType_Spec dec_spec = {
60266026
/* Macros for converting mpdecimal functions to Context methods */
60276027
/************************************************************************/
60286028

6029-
/* Boolean context method. */
6029+
/* Boolean context method.
6030+
Argument Clinic provides PyObject *context, PyObject *x
6031+
*/
60306032
#define DecCtx_BoolFunc(MPDFUNC) \
60316033
{ \
60326034
PyObject *ret; \
@@ -6039,7 +6041,9 @@ static PyType_Spec dec_spec = {
60396041
return ret; \
60406042
}
60416043

6042-
/* Boolean context method. MPDFUNC does NOT use a context. */
6044+
/* Boolean context method. MPDFUNC does NOT use a context.
6045+
Argument Clinic provides PyObject *context, PyObject *x
6046+
*/
60436047
#define DecCtx_BoolFunc_NO_CTX(MPDFUNC) \
60446048
{ \
60456049
PyObject *ret; \
@@ -6079,7 +6083,7 @@ static PyType_Spec dec_spec = {
60796083
}
60806084

60816085
/* Binary context method.
6082-
Argument Clinic provides PyObject *context, PyObject *v, PyObject *w
6086+
Argument Clinic provides PyObject *context, PyObject *x, PyObject *y
60836087
*/
60846088
#define DecCtx_BinaryFunc(MPDFUNC) \
60856089
{ \
@@ -6110,6 +6114,7 @@ static PyType_Spec dec_spec = {
61106114
/*
61116115
* Binary context method. The context is only used for conversion.
61126116
* The actual MPDFUNC does NOT take a context arg.
6117+
* Argument Clinic provides PyObject *context, PyObject *x, PyObject *y
61136118
*/
61146119
#define DecCtx_BinaryFunc_NO_CTX(MPDFUNC) \
61156120
{ \
@@ -6133,8 +6138,8 @@ static PyType_Spec dec_spec = {
61336138
}
61346139

61356140
/* Ternary context method.
6136-
Argument Clinic provides PyObject *context, PyObject *v, PyObject *w,
6137-
PyObject *x
6141+
Argument Clinic provides PyObject *context, PyObject *x, PyObject *y,
6142+
PyObject *z
61386143
*/
61396144
#define DecCtx_TernaryFunc(MPDFUNC) \
61406145
{ \

0 commit comments

Comments
 (0)