@@ -4598,30 +4598,30 @@ static PyNumberMethods dec_number_methods =
45984598static PyMethodDef dec_methods []=
45994599{
46004600/* 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 },
46114611
46124612/* 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 },
46224622
46234623/* 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 },
46254625
46264626/* Boolean functions, no context arg */
46274627 {"is_canonical" ,dec_mpd_iscanonical ,METH_NOARGS ,doc_is_canonical },
@@ -4634,8 +4634,8 @@ static PyMethodDef dec_methods [] =
46344634 {"is_zero" ,dec_mpd_iszero ,METH_NOARGS ,doc_is_zero },
46354635
46364636/* 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 },
46394639
46404640/* Unary functions, no context arg */
46414641 {"adjusted" ,dec_mpd_adjexp ,METH_NOARGS ,doc_adjusted },
@@ -4648,24 +4648,24 @@ static PyMethodDef dec_methods [] =
46484648 {"copy_negate" ,dec_mpd_qcopy_negate ,METH_NOARGS ,doc_copy_negate },
46494649
46504650/* 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 },
46554655
46564656/* 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 },
46614661
46624662/* 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 },
46694669
46704670/* Miscellaneous */
46714671 {"from_float" ,dec_from_float ,METH_O |METH_CLASS ,doc_from_float },
@@ -5303,7 +5303,7 @@ static PyMethodDef context_methods [] =
53035303 {"subtract" ,ctx_mpd_qsub ,METH_VARARGS ,doc_ctx_subtract },
53045304
53055305/* 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 },
53075307
53085308/* Ternary arithmetic functions */
53095309 {"fma" ,ctx_mpd_qfma ,METH_VARARGS ,doc_ctx_fma },
@@ -5421,7 +5421,7 @@ static PyMethodDef _decimal_methods [] =
54215421{
54225422 {"getcontext" , (PyCFunction )PyDec_GetCurrentContext ,METH_NOARGS ,doc_getcontext },
54235423 {"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 },
54255425#ifdef EXTRA_FUNCTIONALITY
54265426 {"IEEEContext" , (PyCFunction )ieee_context ,METH_O ,doc_ieee_context },
54275427#endif