From 66ded13c10413a0b56e3d5f6fd8ed315cc29f04a Mon Sep 17 00:00:00 2001 From: Joel Dahne Date: Sun, 2 Feb 2025 18:45:30 -0600 Subject: [PATCH] Remove underscore in front of nfloat_ctx_(set/get)_real_prec It now matches what is in the documentation. --- src/nfloat.h | 4 ++-- src/nfloat/complex.c | 4 ++-- src/nfloat/ctx.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/nfloat.h b/src/nfloat.h index c60c32e8b5..92252afdb0 100644 --- a/src/nfloat.h +++ b/src/nfloat.h @@ -137,13 +137,13 @@ int nfloat_set(nfloat_ptr res, nfloat_srcptr x, gr_ctx_t ctx); truth_t nfloat_equal(nfloat_srcptr x, nfloat_srcptr y, gr_ctx_t ctx); NFLOAT_INLINE -int _nfloat_ctx_set_real_prec(gr_ctx_t ctx, slong prec) +int nfloat_ctx_set_real_prec(gr_ctx_t ctx, slong prec) { return GR_UNABLE; } NFLOAT_INLINE -int _nfloat_ctx_get_real_prec(slong * res, gr_ctx_t ctx) +int nfloat_ctx_get_real_prec(slong * res, gr_ctx_t ctx) { *res = NFLOAT_CTX_PREC(ctx); return GR_SUCCESS; diff --git a/src/nfloat/complex.c b/src/nfloat/complex.c index f925ed178e..fbe5e4af93 100644 --- a/src/nfloat/complex.c +++ b/src/nfloat/complex.c @@ -1698,8 +1698,8 @@ gr_method_tab_input _nfloat_complex_methods_input[] = (gr_funcptr) gr_generic_ctx_predicate_false}, {GR_METHOD_CTX_HAS_REAL_PREC, (gr_funcptr) gr_generic_ctx_predicate_true}, - {GR_METHOD_CTX_SET_REAL_PREC, (gr_funcptr) _nfloat_ctx_set_real_prec}, - {GR_METHOD_CTX_GET_REAL_PREC, (gr_funcptr) _nfloat_ctx_get_real_prec}, + {GR_METHOD_CTX_SET_REAL_PREC, (gr_funcptr) nfloat_ctx_set_real_prec}, + {GR_METHOD_CTX_GET_REAL_PREC, (gr_funcptr) nfloat_ctx_get_real_prec}, {GR_METHOD_INIT, (gr_funcptr) nfloat_complex_init}, {GR_METHOD_CLEAR, (gr_funcptr) nfloat_complex_clear}, diff --git a/src/nfloat/ctx.c b/src/nfloat/ctx.c index c73f1a1a1e..a9bac21a91 100644 --- a/src/nfloat/ctx.c +++ b/src/nfloat/ctx.c @@ -39,8 +39,8 @@ gr_method_tab_input _nfloat_methods_input[] = (gr_funcptr) gr_generic_ctx_predicate_false}, {GR_METHOD_CTX_HAS_REAL_PREC, (gr_funcptr) gr_generic_ctx_predicate_true}, - {GR_METHOD_CTX_SET_REAL_PREC, (gr_funcptr) _nfloat_ctx_set_real_prec}, - {GR_METHOD_CTX_GET_REAL_PREC, (gr_funcptr) _nfloat_ctx_get_real_prec}, + {GR_METHOD_CTX_SET_REAL_PREC, (gr_funcptr) nfloat_ctx_set_real_prec}, + {GR_METHOD_CTX_GET_REAL_PREC, (gr_funcptr) nfloat_ctx_get_real_prec}, {GR_METHOD_INIT, (gr_funcptr) nfloat_init}, {GR_METHOD_CLEAR, (gr_funcptr) nfloat_clear},