[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use_extended_names()'s return type
From: |
Thomas Dickey |
Subject: |
Re: use_extended_names()'s return type |
Date: |
Tue, 23 Jul 2024 15:28:34 -0400 |
On Tue, Jul 23, 2024 at 11:52:49AM -0500, G. Branden Robinson wrote:
> Quoting my working copy (released language is synonymous):
>
> int use_extended_names(bool bf);
>
> use_extended_names returns the previous state of extended
> capability name recognition, allowing you to save this property and
> restore it.
>
> So why not return a `bool` instead of an `int`?
A little late, but it's been "int" for more than 20 years
990301 pre-release
+ add use_extended_names() function to allow applications to suppress
read of the extended capabilities.
Changing that would change the ABI - the sizes are different, and the
compiler people have made the behavior of bool incompatible with int's.
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
signature.asc
Description: PGP signature