CVS commit: src/bin/sh

"Robert Elz" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	kre
Date:		Sun Mar 22 20:27:42 UTC 2026

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

Log Message:
Add DEBUG_ONLY() to include anything in DEBUG code

DEBUG_ONLY(x) expands to its arg, which should not contain commas
(outside parens) only in DEBUG mode compiles, most useful for var
declarations, and similar.  Nb: code only, not outside functions.

Some cleanups/additions to comments.

By itself, this is a NFC change (until something uses DEBUG_ONLY()
for DEBUG mode code alteration).


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/bin/sh/shell.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.