Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Should we "fix" this declaration?
- X-seq: zsh-workers 52124
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Should we "fix" this declaration?
- Date: Sun, 10 Sep 2023 15:00:32 -0700
- Archived-at: <https://zsh.org/workers/52124>
- List-id: <zsh-workers.zsh.org>
/**/
void
forget_edits(void)
{
if (!have_edits) {
return;
}
have_edits = 0;
Histent he;
That's from users/29175, but we've previously followed the old C
format that declarations have to be at the start of a block. If so,
it should be
/**/
void
forget_edits(void)
{
Histent he;
if (!have_edits) {
return;
}
have_edits = 0;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author