diff options
author | Marc Poulhiès <poulhies@adacore.com> | 2025-09-08 16:21:37 +0200 |
---|---|---|
committer | Marc Poulhiès <dkm@gcc.gnu.org> | 2025-09-11 11:10:50 +0200 |
commit | 195b495917964dbaff40eb10003baae3d796f6d1 (patch) | |
tree | 490ec2d3a34303fd9598a109c88d278e17335f4e | |
parent | 7efa3b5b2fa1d5e21d6a7e6bf124ffc100501938 (diff) | |
download | gcc-195b495917964dbaff40eb10003baae3d796f6d1.zip gcc-195b495917964dbaff40eb10003baae3d796f6d1.tar.gz gcc-195b495917964dbaff40eb10003baae3d796f6d1.tar.bz2 |
ada: Minor comment tweaks
gcc/ada/ChangeLog:
* env.c (__gnat_clearenv): Adjust comment.
* libgnarl/a-intnam__bsd.ads: Fix copyright date.
-rw-r--r-- | gcc/ada/env.c | 3 | ||||
-rw-r--r-- | gcc/ada/libgnarl/a-intnam__bsd.ads | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/env.c b/gcc/ada/env.c index 950c269..64e9aa0 100644 --- a/gcc/ada/env.c +++ b/gcc/ada/env.c @@ -229,7 +229,8 @@ void __gnat_clearenv (void) || defined (__CYGWIN__) \ || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__rtems__) \ || defined (__DragonFly__) || defined (__DJGPP__) - /* On Windows, FreeBSD and MacOS there is no function to clean all the + /* On several platforms (e.g. Windows, FreeBSD, MacOS...) + there is no function to clean all the environment but there is a "clean" way to unset a variable. So go through the environ table and call __gnat_unsetenv on all entries */ char **env = __gnat_environ (); diff --git a/gcc/ada/libgnarl/a-intnam__bsd.ads b/gcc/ada/libgnarl/a-intnam__bsd.ads index 767f54e..a9fbf0e 100644 --- a/gcc/ada/libgnarl/a-intnam__bsd.ads +++ b/gcc/ada/libgnarl/a-intnam__bsd.ads @@ -6,7 +6,7 @@ -- -- -- S p e c -- -- -- --- Copyright (C) 1991-2024, Free Software Foundation, Inc. -- +-- Copyright (C) 1991-2025, Free Software Foundation, Inc. -- -- -- -- GNARL is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- |