Mike, in response to a suggestion from Bert, wrote:
I should have read ahead to this discussion, before responding
a minute ago with my suggestion using:
typedef enum { print_as_mask, print_as_list } map_printer_t;
I slightly dislike the subversion of the cpumask interface,
and slightly -do- like the 7 instructions saved.
Either of these variants (my typedef or Berts function pointer)
would be fine by me, as you prefer, Mike.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.940.382.4214
--