On Wed, Mar 25, 2026 at 09:18:00AM +0100, Stefano Brivio wrote: > On Wed, 25 Mar 2026 15:34:02 +1100 > David Gibson wrote: > > > On Wed, Mar 25, 2026 at 01:56:22AM +0100, Stefano Brivio wrote: > > > > [...] > > > > So, you've convinced me in principle, but I'm not putting this at the > > top of my priorities. Using malloc() makes things a bit easier while > > we're playing around with the protocol a bunch. Once we look > > reasonably close to a v1 protocol, I'll do the malloc() removal. > > Sure, it makes sense, it's definitely not needed right now. I guess it > will mostly be a matter of passing a number to the _str() functions and > share constants between client and server. I've actually already eliminated the _str() functions in my latest draft. The less convenient case is allocating the arrays of pifs and rules, I'll tackle that when I get to it. -- David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson