tools: ynl-gen: don't declare loop iterator in place
authorJakub Kicinski <kuba@kernel.org>
Mon, 14 Apr 2025 21:18:44 +0000 (14:18 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 17 Apr 2025 01:09:41 +0000 (18:09 -0700)
commit4d07bbf2d45683841e578a2f255e4c174534bf38
tree6a444e0365298c0785c9757b5ee127f1b51b827f
parent00ffb3724ce743578163f5ade2884374554ca021
tools: ynl-gen: don't declare loop iterator in place

The codegen tries to follow the "old" C style and declare loop
iterators at the start of the block / function. Only nested
request handling breaks this style, so adjust it.

Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20250414211851.602096-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/net/ynl/pyynl/ynl_gen_c.py