Correct me if I'm wrong, but it looks like the code generated could be
reduced quite substantially in size by using a generic linked list
struct, rather than one for each option.

So instead of 

struct timer_list
{ 
  int timer_arg;
  char *timer_orig;
  struct timer_list * next;
};

you could simply do 

struct list
{
   int arg;
   char *orig;
   struct list *next;
}

Or is there some subtle reason I have missed for doing it this way?

By doing it this way it would remove ~1500 lines of generated code :)

Dave


-- 
David Swegen
Consultant                      GPS, Red Hat Europe
m: +44 7734 909630              w: people.redhat.com/dswegen
-----------------------------------------------------------



_______________________________________________
Help-gengetopt mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gengetopt

Reply via email to