CVS commit: src/bin/sh

"Robert Elz" <[email protected]> Tue, 4 Aug 2026 22:58:23 +0000
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	kre
Date:		Tue Aug  4 22:58:23 UTC 2026

Modified Files:
	src/bin/sh: memalloc.h

Log Message:
/bin/sh - memalloc.h - added STSTRLEN()

Add a new stack string macro STSTRLEN() which returns the
current length of the string being accumulated at the top
of the (shell) stack.   As with all the other Stack String
macros, it may only be used between a STARTSTACKSTR() call
and the next call which allocates stack space (often
grabstackstr(), but stalloc() stunalloc() grabstackblock()
all count for this).   Use at any other time will give
meaningless unspecified results.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/bin/sh/memalloc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.