bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23488: 25.0.93; Modules: inconsistent return types for error reporti


From: Philipp Stephani
Subject: bug#23488: 25.0.93; Modules: inconsistent return types for error reporting
Date: Sun, 28 Jul 2019 20:55:02 +0200

Am So., 28. Juli 2019 um 14:45 Uhr schrieb Lars Ingebrigtsen <larsi@gnus.org>:
>
> Philipp Stephani <p.stephani2@gmail.com> writes:
>
> > Of the module environment functions, 'copy_string_contents' is
> > inconsistent with all the other functions in that it returns a boolean
> > to indicate success/failure.  All other functions only set the last
> > error status, to be checked with non_local_exit_check etc.  This should
> > be made consistent, e.g. my having copy_string_contents return void.
>
> Is that possible to do at this late date?  It's part of the advertised
> API, I think, and changing it sounds like it'd break modules.

Yes, it's indeed way too late to change the API now.

>
> > Furthermore, the comment for copy_string_contents is incorrect.  If
> > BUFFER is NULL, it returns true, not false.
>
> I see you've fixed this later...

Sounds good, feel free to close this.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]