[EMAIL PROTECTED] dixit:

>first draft of a possible database design
>
>now if anyone has an idea how to preserve the order of con-
>figuration menu entries WITHIN THE FILE, please tell me so…

How about:
• the list of input file names is sorted (yes, by pathname)
• every input file is parsed in sequence
• keywords can be KEYWORD or KEYWORD_package/flavour
• for every input file, a sequential number is generated
  upon opening it, which is then used for KEYWORD style input
• as soon as a KEYWORD_package/flavour, let's say KEYWORD_foo,
  is read, and “foo” was not yet used in this input file, it
  gets assigned another sequential number (which is, of course,
  larger than the one for KEYWORD in the same info.nfo but
  smaller than all ones for following info.nfo files)
• the number is stored in the CSYMS table (?)
• upon output, we try ordering according to the numbers
  (but of course, CATEGORY goes first)

Thoughts? Especially you, wbx.

//mirabile
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.              -- Coywolf Qi Hunt
_______________________________________________
freewrt-developers mailing list
[email protected]
https://www.freewrt.org/lists/listinfo/freewrt-developers

Reply via email to