2 print "/* Generated by help2c.awk */"
3 print "#include \"gliv.h\""
4 print "#include \"help_text.h\""
5 print "#include \"messages.h\""
7 print "/* Forward declaration. */"
8 print "static gchar **get_sized_array(void);"
10 print "gchar **get_help_lines(void)"
12 print " gchar **array, **ptr;"
14 print " ptr = array = get_sized_array();"
20 $
0 ==
"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" {
23 print " *--ptr = NULL;"
25 print " return array;"
28 print "static gchar **get_sized_array(void)"
30 printf " return g_new(gchar *, %d);\n", help_lines
40 /.
*: .
*/ { # A keyboard accelerator line.
42 printf " *ptr++ = _(\"%s\");\n", $
0
43 print " *ptr++ = \"\\n\";"
51 # End of keyboard accelerators.
54 print " *ptr++ = \"\\n\";"
64 printf " *ptr++ = _(\"%s\");\n", $
0
65 print " *ptr++ = \"\\n\\n\";"