zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <opk@zsh.org>
To: "Jörg Sommer" <joerg@jo-so.de>
Cc: zsh-workers@zsh.org
Subject: Re: [PATCH 2/6] lex: Mark variables with const init as const
Date: Sun, 28 Jan 2024 01:18:17 +0100	[thread overview]
Message-ID: <5400-1706401097.840562@Anqs.MZbL.6UYZ> (raw)
In-Reply-To: <4jkxcveoznwk7zps3wfnoxwo4wcjitwkfjzzynidj2p2zntwpk@uiydkr3zltjw>

Jörg Sommer wrote:
> Yes, it's a kind of chicken egg problem. Either it gets a really big patch
> or you have steps that introduce new warnings and solve them with later
> patches. I don't know what you prefer for review.

For now, I've applied those four (of the six) patches that don't
introduce new warnings.

> My main question is how this patch set should be organized? One commit per
> file which reduces the number of warnings in this file to the cost of new
> warnings in other files?

Separating patches by source file is probably not the most helpful. I'd
prefer if at least each patch series doesn't add new warnings so that
we're leaving the source tree in a decent state when pushing. There
might be some things that initially look like they clearly should be
marked const but as the const percolates through you get stuck.

Perhaps start with something like statusline, resolve the knock-on
effects of marking that const and at that point finalise it as a single
patch. If a subset of the changes can be applied standalone, consider
separating that out. But really, whatever works for you is fine.

Oliver


  reply	other threads:[~2024-01-28  0:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-01 18:10 Extend usage of const char* Jörg Sommer
2024-01-01 18:10 ` [PATCH 1/6] zle.textobjects: Mark variables as const Jörg Sommer
2024-01-01 18:10   ` [PATCH 2/6] lex: Mark variables with const init " Jörg Sommer
2024-01-26  7:39     ` Oliver Kiddle
2024-01-27  6:41       ` Jörg Sommer
2024-01-28  0:18         ` Oliver Kiddle [this message]
2024-01-01 18:10   ` [PATCH 3/6] zle_vi: " Jörg Sommer
2024-01-01 18:10   ` [PATCH 4/6] zle_main: mark statusline " Jörg Sommer
2024-01-01 18:10   ` [PATCH 5/6] module: Mark name argument of some functions const Jörg Sommer
2024-01-01 18:10   ` [PATCH 6/6] zsh: mark hookdef.name as const Jörg Sommer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5400-1706401097.840562@Anqs.MZbL.6UYZ \
    --to=opk@zsh.org \
    --cc=joerg@jo-so.de \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).