Virtual selectors
Where ordinary selectors specify a value stored in some object, virtual selectors specify a function to call to compute a value associated with some object. Use them to replace the special case xdump ver by new table EF_VERSION. Move configkeys[] to lib/common because nsc_init() needs it to initialize empfile[EF_VERSION].cadef.
This commit is contained in:
parent
38047a62f7
commit
da8a1daeef
12 changed files with 541 additions and 482 deletions
|
@ -158,9 +158,6 @@ Without such a key, you need to count records to find the record
|
|||
index, and that works only if you can see a prefix of the complete
|
||||
table.
|
||||
|
||||
The special table "ver" collects all scalar configuration parameters
|
||||
in a single record. It does not occur in the table of tables.
|
||||
|
||||
|
||||
Syntax of xdump command
|
||||
|
||||
|
@ -368,8 +365,7 @@ table itself. Let's try it:
|
|||
[...]
|
||||
/45
|
||||
|
||||
It worked! Mind that the special table "ver" is not in the table of
|
||||
tables.
|
||||
It worked!
|
||||
|
||||
Now dump the two symbol tables we postponed. Because xdump accepts
|
||||
table IDs as well as names, we don't have to know their names:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue