@@ -4598,30 +4598,30 @@ static PyNumberMethods dec_number_methods =
4598
4598
static PyMethodDef dec_methods [] =
4599
4599
{
4600
4600
/* Unary arithmetic functions, optional context arg */
4601
- { "exp" , (PyCFunction )dec_mpd_qexp , METH_VARARGS |METH_KEYWORDS , doc_exp },
4602
- { "ln" , (PyCFunction )dec_mpd_qln , METH_VARARGS |METH_KEYWORDS , doc_ln },
4603
- { "log10" , (PyCFunction )dec_mpd_qlog10 , METH_VARARGS |METH_KEYWORDS , doc_log10 },
4604
- { "next_minus" , (PyCFunction )dec_mpd_qnext_minus , METH_VARARGS |METH_KEYWORDS , doc_next_minus },
4605
- { "next_plus" , (PyCFunction )dec_mpd_qnext_plus , METH_VARARGS |METH_KEYWORDS , doc_next_plus },
4606
- { "normalize" , (PyCFunction )dec_mpd_qreduce , METH_VARARGS |METH_KEYWORDS , doc_normalize },
4607
- { "to_integral" , (PyCFunction )PyDec_ToIntegralValue , METH_VARARGS |METH_KEYWORDS , doc_to_integral },
4608
- { "to_integral_exact" , (PyCFunction )PyDec_ToIntegralExact , METH_VARARGS |METH_KEYWORDS , doc_to_integral_exact },
4609
- { "to_integral_value" , (PyCFunction )PyDec_ToIntegralValue , METH_VARARGS |METH_KEYWORDS , doc_to_integral_value },
4610
- { "sqrt" , (PyCFunction )dec_mpd_qsqrt , METH_VARARGS |METH_KEYWORDS , doc_sqrt },
4601
+ { "exp" , (PyCFunction )( void ( * )( void )) dec_mpd_qexp , METH_VARARGS |METH_KEYWORDS , doc_exp },
4602
+ { "ln" , (PyCFunction )( void ( * )( void )) dec_mpd_qln , METH_VARARGS |METH_KEYWORDS , doc_ln },
4603
+ { "log10" , (PyCFunction )( void ( * )( void )) dec_mpd_qlog10 , METH_VARARGS |METH_KEYWORDS , doc_log10 },
4604
+ { "next_minus" , (PyCFunction )( void ( * )( void )) dec_mpd_qnext_minus , METH_VARARGS |METH_KEYWORDS , doc_next_minus },
4605
+ { "next_plus" , (PyCFunction )( void ( * )( void )) dec_mpd_qnext_plus , METH_VARARGS |METH_KEYWORDS , doc_next_plus },
4606
+ { "normalize" , (PyCFunction )( void ( * )( void )) dec_mpd_qreduce , METH_VARARGS |METH_KEYWORDS , doc_normalize },
4607
+ { "to_integral" , (PyCFunction )( void ( * )( void )) PyDec_ToIntegralValue , METH_VARARGS |METH_KEYWORDS , doc_to_integral },
4608
+ { "to_integral_exact" , (PyCFunction )( void ( * )( void )) PyDec_ToIntegralExact , METH_VARARGS |METH_KEYWORDS , doc_to_integral_exact },
4609
+ { "to_integral_value" , (PyCFunction )( void ( * )( void )) PyDec_ToIntegralValue , METH_VARARGS |METH_KEYWORDS , doc_to_integral_value },
4610
+ { "sqrt" , (PyCFunction )( void ( * )( void )) dec_mpd_qsqrt , METH_VARARGS |METH_KEYWORDS , doc_sqrt },
4611
4611
4612
4612
/* Binary arithmetic functions, optional context arg */
4613
- { "compare" , (PyCFunction )dec_mpd_qcompare , METH_VARARGS |METH_KEYWORDS , doc_compare },
4614
- { "compare_signal" , (PyCFunction )dec_mpd_qcompare_signal , METH_VARARGS |METH_KEYWORDS , doc_compare_signal },
4615
- { "max" , (PyCFunction )dec_mpd_qmax , METH_VARARGS |METH_KEYWORDS , doc_max },
4616
- { "max_mag" , (PyCFunction )dec_mpd_qmax_mag , METH_VARARGS |METH_KEYWORDS , doc_max_mag },
4617
- { "min" , (PyCFunction )dec_mpd_qmin , METH_VARARGS |METH_KEYWORDS , doc_min },
4618
- { "min_mag" , (PyCFunction )dec_mpd_qmin_mag , METH_VARARGS |METH_KEYWORDS , doc_min_mag },
4619
- { "next_toward" , (PyCFunction )dec_mpd_qnext_toward , METH_VARARGS |METH_KEYWORDS , doc_next_toward },
4620
- { "quantize" , (PyCFunction )dec_mpd_qquantize , METH_VARARGS |METH_KEYWORDS , doc_quantize },
4621
- { "remainder_near" , (PyCFunction )dec_mpd_qrem_near , METH_VARARGS |METH_KEYWORDS , doc_remainder_near },
4613
+ { "compare" , (PyCFunction )( void ( * )( void )) dec_mpd_qcompare , METH_VARARGS |METH_KEYWORDS , doc_compare },
4614
+ { "compare_signal" , (PyCFunction )( void ( * )( void )) dec_mpd_qcompare_signal , METH_VARARGS |METH_KEYWORDS , doc_compare_signal },
4615
+ { "max" , (PyCFunction )( void ( * )( void )) dec_mpd_qmax , METH_VARARGS |METH_KEYWORDS , doc_max },
4616
+ { "max_mag" , (PyCFunction )( void ( * )( void )) dec_mpd_qmax_mag , METH_VARARGS |METH_KEYWORDS , doc_max_mag },
4617
+ { "min" , (PyCFunction )( void ( * )( void )) dec_mpd_qmin , METH_VARARGS |METH_KEYWORDS , doc_min },
4618
+ { "min_mag" , (PyCFunction )( void ( * )( void )) dec_mpd_qmin_mag , METH_VARARGS |METH_KEYWORDS , doc_min_mag },
4619
+ { "next_toward" , (PyCFunction )( void ( * )( void )) dec_mpd_qnext_toward , METH_VARARGS |METH_KEYWORDS , doc_next_toward },
4620
+ { "quantize" , (PyCFunction )( void ( * )( void )) dec_mpd_qquantize , METH_VARARGS |METH_KEYWORDS , doc_quantize },
4621
+ { "remainder_near" , (PyCFunction )( void ( * )( void )) dec_mpd_qrem_near , METH_VARARGS |METH_KEYWORDS , doc_remainder_near },
4622
4622
4623
4623
/* Ternary arithmetic functions, optional context arg */
4624
- { "fma" , (PyCFunction )dec_mpd_qfma , METH_VARARGS |METH_KEYWORDS , doc_fma },
4624
+ { "fma" , (PyCFunction )( void ( * )( void )) dec_mpd_qfma , METH_VARARGS |METH_KEYWORDS , doc_fma },
4625
4625
4626
4626
/* Boolean functions, no context arg */
4627
4627
{ "is_canonical" , dec_mpd_iscanonical , METH_NOARGS , doc_is_canonical },
@@ -4634,8 +4634,8 @@ static PyMethodDef dec_methods [] =
4634
4634
{ "is_zero" , dec_mpd_iszero , METH_NOARGS , doc_is_zero },
4635
4635
4636
4636
/* Boolean functions, optional context arg */
4637
- { "is_normal" , (PyCFunction )dec_mpd_isnormal , METH_VARARGS |METH_KEYWORDS , doc_is_normal },
4638
- { "is_subnormal" , (PyCFunction )dec_mpd_issubnormal , METH_VARARGS |METH_KEYWORDS , doc_is_subnormal },
4637
+ { "is_normal" , (PyCFunction )( void ( * )( void )) dec_mpd_isnormal , METH_VARARGS |METH_KEYWORDS , doc_is_normal },
4638
+ { "is_subnormal" , (PyCFunction )( void ( * )( void )) dec_mpd_issubnormal , METH_VARARGS |METH_KEYWORDS , doc_is_subnormal },
4639
4639
4640
4640
/* Unary functions, no context arg */
4641
4641
{ "adjusted" , dec_mpd_adjexp , METH_NOARGS , doc_adjusted },
@@ -4648,24 +4648,24 @@ static PyMethodDef dec_methods [] =
4648
4648
{ "copy_negate" , dec_mpd_qcopy_negate , METH_NOARGS , doc_copy_negate },
4649
4649
4650
4650
/* Unary functions, optional context arg */
4651
- { "logb" , (PyCFunction )dec_mpd_qlogb , METH_VARARGS |METH_KEYWORDS , doc_logb },
4652
- { "logical_invert" , (PyCFunction )dec_mpd_qinvert , METH_VARARGS |METH_KEYWORDS , doc_logical_invert },
4653
- { "number_class" , (PyCFunction )dec_mpd_class , METH_VARARGS |METH_KEYWORDS , doc_number_class },
4654
- { "to_eng_string" , (PyCFunction )dec_mpd_to_eng , METH_VARARGS |METH_KEYWORDS , doc_to_eng_string },
4651
+ { "logb" , (PyCFunction )( void ( * )( void )) dec_mpd_qlogb , METH_VARARGS |METH_KEYWORDS , doc_logb },
4652
+ { "logical_invert" , (PyCFunction )( void ( * )( void )) dec_mpd_qinvert , METH_VARARGS |METH_KEYWORDS , doc_logical_invert },
4653
+ { "number_class" , (PyCFunction )( void ( * )( void )) dec_mpd_class , METH_VARARGS |METH_KEYWORDS , doc_number_class },
4654
+ { "to_eng_string" , (PyCFunction )( void ( * )( void )) dec_mpd_to_eng , METH_VARARGS |METH_KEYWORDS , doc_to_eng_string },
4655
4655
4656
4656
/* Binary functions, optional context arg for conversion errors */
4657
- { "compare_total" , (PyCFunction )dec_mpd_compare_total , METH_VARARGS |METH_KEYWORDS , doc_compare_total },
4658
- { "compare_total_mag" , (PyCFunction )dec_mpd_compare_total_mag , METH_VARARGS |METH_KEYWORDS , doc_compare_total_mag },
4659
- { "copy_sign" , (PyCFunction )dec_mpd_qcopy_sign , METH_VARARGS |METH_KEYWORDS , doc_copy_sign },
4660
- { "same_quantum" , (PyCFunction )dec_mpd_same_quantum , METH_VARARGS |METH_KEYWORDS , doc_same_quantum },
4657
+ { "compare_total" , (PyCFunction )( void ( * )( void )) dec_mpd_compare_total , METH_VARARGS |METH_KEYWORDS , doc_compare_total },
4658
+ { "compare_total_mag" , (PyCFunction )( void ( * )( void )) dec_mpd_compare_total_mag , METH_VARARGS |METH_KEYWORDS , doc_compare_total_mag },
4659
+ { "copy_sign" , (PyCFunction )( void ( * )( void )) dec_mpd_qcopy_sign , METH_VARARGS |METH_KEYWORDS , doc_copy_sign },
4660
+ { "same_quantum" , (PyCFunction )( void ( * )( void )) dec_mpd_same_quantum , METH_VARARGS |METH_KEYWORDS , doc_same_quantum },
4661
4661
4662
4662
/* Binary functions, optional context arg */
4663
- { "logical_and" , (PyCFunction )dec_mpd_qand , METH_VARARGS |METH_KEYWORDS , doc_logical_and },
4664
- { "logical_or" , (PyCFunction )dec_mpd_qor , METH_VARARGS |METH_KEYWORDS , doc_logical_or },
4665
- { "logical_xor" , (PyCFunction )dec_mpd_qxor , METH_VARARGS |METH_KEYWORDS , doc_logical_xor },
4666
- { "rotate" , (PyCFunction )dec_mpd_qrotate , METH_VARARGS |METH_KEYWORDS , doc_rotate },
4667
- { "scaleb" , (PyCFunction )dec_mpd_qscaleb , METH_VARARGS |METH_KEYWORDS , doc_scaleb },
4668
- { "shift" , (PyCFunction )dec_mpd_qshift , METH_VARARGS |METH_KEYWORDS , doc_shift },
4663
+ { "logical_and" , (PyCFunction )( void ( * )( void )) dec_mpd_qand , METH_VARARGS |METH_KEYWORDS , doc_logical_and },
4664
+ { "logical_or" , (PyCFunction )( void ( * )( void )) dec_mpd_qor , METH_VARARGS |METH_KEYWORDS , doc_logical_or },
4665
+ { "logical_xor" , (PyCFunction )( void ( * )( void )) dec_mpd_qxor , METH_VARARGS |METH_KEYWORDS , doc_logical_xor },
4666
+ { "rotate" , (PyCFunction )( void ( * )( void )) dec_mpd_qrotate , METH_VARARGS |METH_KEYWORDS , doc_rotate },
4667
+ { "scaleb" , (PyCFunction )( void ( * )( void )) dec_mpd_qscaleb , METH_VARARGS |METH_KEYWORDS , doc_scaleb },
4668
+ { "shift" , (PyCFunction )( void ( * )( void )) dec_mpd_qshift , METH_VARARGS |METH_KEYWORDS , doc_shift },
4669
4669
4670
4670
/* Miscellaneous */
4671
4671
{ "from_float" , dec_from_float , METH_O |METH_CLASS , doc_from_float },
@@ -5303,7 +5303,7 @@ static PyMethodDef context_methods [] =
5303
5303
{ "subtract" , ctx_mpd_qsub , METH_VARARGS , doc_ctx_subtract },
5304
5304
5305
5305
/* Binary or ternary arithmetic functions */
5306
- { "power" , (PyCFunction )ctx_mpd_qpow , METH_VARARGS |METH_KEYWORDS , doc_ctx_power },
5306
+ { "power" , (PyCFunction )( void ( * )( void )) ctx_mpd_qpow , METH_VARARGS |METH_KEYWORDS , doc_ctx_power },
5307
5307
5308
5308
/* Ternary arithmetic functions */
5309
5309
{ "fma" , ctx_mpd_qfma , METH_VARARGS , doc_ctx_fma },
@@ -5421,7 +5421,7 @@ static PyMethodDef _decimal_methods [] =
5421
5421
{
5422
5422
{ "getcontext" , (PyCFunction )PyDec_GetCurrentContext , METH_NOARGS , doc_getcontext },
5423
5423
{ "setcontext" , (PyCFunction )PyDec_SetCurrentContext , METH_O , doc_setcontext },
5424
- { "localcontext" , (PyCFunction )ctxmanager_new , METH_VARARGS |METH_KEYWORDS , doc_localcontext },
5424
+ { "localcontext" , (PyCFunction )( void ( * )( void )) ctxmanager_new , METH_VARARGS |METH_KEYWORDS , doc_localcontext },
5425
5425
#ifdef EXTRA_FUNCTIONALITY
5426
5426
{ "IEEEContext" , (PyCFunction )ieee_context , METH_O , doc_ieee_context },
5427
5427
#endif
0 commit comments