int grp, mod, i;
unsigned grp, mod; int i;
int main (int argc, const char *const *argv){  int grp, mod, i;  int ret = 0;  yast_mod_auto = 1;  setlocale (LC_ALL, "");  if (argc > 1)    for (i = 1; i < argc; i++)      if (parseopt ((char *) argv[i]) != 1)       {	 printf ("usage: %s <option>\n\n", argv[0]);	 printhelp ();	 return 1;       }  /* init groups */  if (yast_grp_all)   {     set_textdomain ("base");     grp_data group;     group.name = string ("All");     // button to show all yast2 modules     group.textstr = string (_("&All") + 1);	// FIXME !!! HELP !!!     group.skey = 0;     groups.push_back (group);     modules.push_back (vector < mod_data > ());   }  getbuttons ();  getgroup ();  fillhelp ();  int *map = new int[groups.size ()];  for (grp = 0; grp < groups.size (); grp++)    map[grp] = grp;  qsort (map, groups.size (), sizeof (int), cmpgrp);  vector < grp_data > new_groups;  for (grp = 0; grp < groups.size (); grp++)    new_groups.push_back (groups[map[grp]]);  groups = new_groups;  delete[]map;  getmodules ();  for (grp = 0; grp < groups.size (); grp++)   {     map = new int[modules[grp].size ()];     for (mod = 0; mod < modules[grp].size (); mod++)       map[mod] = mod;     current_grp = grp;     qsort (map, modules[grp].size (), sizeof (int), cmpmod);     vector < mod_data > new_modules;     for (mod = 0; mod < modules[grp].size (); mod++)       new_modules.push_back (modules[grp][map[mod]]);     modules[grp] = new_modules;     delete[]map;   }  if (argc > 1 && !strcmp (argv[1], "--dump"))   {     fprintf (stderr, "grp_cnt: %d\n", (int) groups.size ());     for (grp = 0; grp < groups.size (); grp++)      {	fprintf (stderr, "%s mod_cnt:%d  skey:%d\n",		 groups[grp].textstr.c_str (),		 (int) modules[grp].size (), groups[grp].skey);	for (mod = 0; mod < modules[grp].size (); mod++)	  fprintf (stderr, "  %s skey:%d\n",		   modules[grp][mod].textstr.c_str (),		   modules[grp][mod].skey);      }     return 0;   }  if (yast_quit_grp)   {     grp_data group;     group.name = string (button_cancel);     group.textstr = string (button_cancel);     groups.push_back (group);   }  while (!ret)   {     yast_init ();     ret = yast_menu ("hallo", "Yast2 Control Center", 10, 30);     yast_end ();   }  return 0;}