On Thu, 2006-03-30 at 23:12 -0600, James Hawkins wrote:
> there will probably be three or four maps, the functions in the maps
> grouped according to the order in which the commands should be run.
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.
--
Dimi Paun <[EMAIL PROTECTED]>
Lattica, Inc.