Re: [PATCH] strtodg: Make increment static

Jeff Johnston <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <CAOox84tVJ3i99fHKz+w_90LSY5CtcJUimO2VP-Qq6e395VYBjA@mail.gmail.com>
Patch applied.  Thanks.

-- Jeff J.

On Tue, Oct 28, 2025 at 10:37 AM Zakaria Fadli <[email protected]> wrote:

> This helper is only used within strtodg.c; keep it internal to avoid
> exporting a generic symbol name and reduce namespace pollution.
>
>         * libc/stdlib/strtodg.c (increment): Make static.
> ---
>  newlib/libc/stdlib/strtodg.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/newlib/libc/stdlib/strtodg.c b/newlib/libc/stdlib/strtodg.c
> index 0b5af99fe..4e706abd1 100644
> --- a/newlib/libc/stdlib/strtodg.c
> +++ b/newlib/libc/stdlib/strtodg.c
> @@ -159,7 +159,7 @@ trailz (_Bigint *b)
>         return n;
>         }
>
> -_Bigint *
> +static _Bigint *
>  increment (struct _reent *p, _Bigint *b)
>  {
>         __ULong *x, *xe;
> --
> 2.43.0
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.