Tweak genassym code generation to force preprocessor conditional directives
authormiod <miod@openbsd.org>
Mon, 7 Oct 2024 15:41:46 +0000 (15:41 +0000)
committermiod <miod@openbsd.org>
Mon, 7 Oct 2024 15:41:46 +0000 (15:41 +0000)
commitc89f4e122d5ed54118b09f6af66922a0c5cb5cca
tree9e55f6b4afd26e001b09d86ffa5eb2cfeb1046b8
parentbdcafcd9f69778e6b55155acb0eaf7ccd2048781
Tweak genassym code generation to force preprocessor conditional directives
to always be put inside functions.

This allows such statements to appear anywhere in assym.cf; without this
change they would require at least one `export' or `define' stanza to occur
first.

Problem noticed by & ok jsg@
sys/kern/genassym.sh