strtodg: Make increment static

Message ID 20251028143537.676341-1-fadli@adacore.com
State New
Headers
Series strtodg: Make increment static |

Commit Message

Zakaria Fadli Oct. 28, 2025, 2:35 p.m. UTC
  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(-)
  

Comments

Jeff Johnston Nov. 3, 2025, 7:44 p.m. UTC | #1
Patch applied.  Thanks.

-- Jeff J.

On Tue, Oct 28, 2025 at 10:37 AM Zakaria Fadli <fadli@adacore.com> 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
>
>
  

Patch

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;