On Thu Mar 6, 2025 at 2:02 PM CET, Csókás Bence wrote: > Hi, > > On 2025. 03. 05. 17:38, Jeremy Drake wrote: >> On Wed, 5 Mar 2025, Csókás Bence wrote: >> >>> I would much rather have a separate `static const char []` for this instead. >> >> At that point, both would only be used once. In that case, would just >> putting the string inline be better, or is the `static const char []` >> still preferred? > > It might be used more in the future. But yes, the optimal solution would > be one that requires only one string constant. I don't currently have > the brain capacity to figure that one out though.
When you add "}" as first character to the string constant you could use &semicolon_whitespace[1] to get the old string constant. But I don't really like special casing characters like GNU sed does. _______________________________________________ busybox mailing list [email protected] https://lists.busybox.net/mailman/listinfo/busybox
