summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/rum/microcode.h
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2021-02-05 05:42:39 +0000
committerrillig <rillig@NetBSD.org>2021-02-05 05:42:39 +0000
commit89bd7b082e1b3c6df9a7485970b6ba5a7e383833 (patch)
treebf70f4871fe310c6f270b0cc69fdecace48c70f0 /sys/dev/microcode/rum/microcode.h
parent9103ec29f2f3ec29d77784caf95c7f280cd6a930 (diff)
make: improve documentation about variable scopes
In an experiment, I tried to separate the concepts of a GNode and a variable scope. The global variables SCOPE_GLOBAL, SCOPE_INTERNAL and SCOPE_CMDLINE are implemented as GNode even though they only need the members 'name' and 'vars'. All their other members are unused. Therefore it seemed natural to extract this part of the GNode into a separate type called Scope. The resulting code was harder to read though since it had split the namespace of the functions into several parts that were not obviously related: The Var_ functions, the Scope_ functions, and the short-cut Global_ functions. Because of this, I threw away the experiment. All that is left are a few updated comments.
Diffstat (limited to 'sys/dev/microcode/rum/microcode.h')
0 files changed, 0 insertions, 0 deletions