On 3/31/06, Dimi Paun <[EMAIL PROTECTED]> wrote: > > Or maybe simpler, instead of storing just the function pointer as > the value for the map, store a structure that has 2 fields: > -- priority > -- function > > So than you just call things as: > for (i=0; i < MAX_PRIO; i++) > run_adv_commands("InstallSection", i, phase_map); > > And ignore entries with incorrect priorities. >
Thanks Dimi, that's a really good idea! I'll incorporate that into the design. -- James Hawkins