]> andersk Git - moira.git/blobdiff - clients/mmoira/menus.awk
*** empty log message ***
[moira.git] / clients / mmoira / menus.awk
index 932c83fdcd61b9de1ee244a63024a388ae2fdc73..45e94a3646d6b7a11dc47d3a7448a4d99f66756f 100644 (file)
@@ -3,8 +3,7 @@
 BEGIN          { numfields = 0; nummenus = 0;
                  printf("/* This file is machine generated, do not edit. */");
                  printf("\n#include <Xm/Text.h>\n");
-                 printf("#include \"data.h\"\n\n");
-                 printf("#include \"operations.h\"\n\n");
+                 printf("#include \"mmoira.h\"\n\n");
                }
 
 /^;/           { next }
@@ -31,8 +30,9 @@ $NF == "}"    { itemname = $1;
                  for (i = 2; i <= NF && $i != "{"; i++)
                        itemname = sprintf("%s %s", itemname, $i);
                  menuno = nummenus++;
-                 printf("static MenuItem menu%d = { \"%s\", NULL, %s \"%s\" };\n", \
-                       menuno, itemname, $(i + 1), $(i + 2));
+                 printf("static MenuItem menu%d = { \"%s\", NULL, %s \"%s\", \"%s\", %d };\n", \
+                       menuno, itemname, \
+                       $(i + 1), $(i + 2), $(i + 3), $(i + 4));
                  save[count++] = menuno;
                  next
                }
This page took 0.031176 seconds and 4 git commands to generate.