3 print "/* ==> Do not modify this file!! It is created automatically";
4 print " by copying.awk. Modify copying.awk instead. <== */";
6 print "#include \"defs.h\""
7 print "#include \"command.h\""
8 print "#include \"gdbcmd.h\""
10 print "static void show_copying_command (char *, int);"
12 print "static void show_warranty_command (char *, int);"
14 print "void _initialize_copying (void);"
16 print "extern int immediate_quit;";
18 print "show_copying_command (ignore, from_tty)";
19 print " char *ignore;";
20 print " int from_tty;";
22 print " immediate_quit++;";
24 NR ==
1,/^
[ ]*NO WARRANTY
[ ]*$
/ {
27 printf " printf_filtered (\"\\n\");\n";
29 else if ($
0 !~
/^
[ ]*NO WARRANTY
[ ]*$
/)
31 printf " printf_filtered (\"";
32 for (i =
1; i
< NF; i
++)
34 printf "%s\\n\");\n", $
NF;
37 /^
[ ]*NO WARRANTY
[ ]*$
/ {
38 print " immediate_quit--;";
42 print "show_warranty_command (ignore, from_tty)";
43 print " char *ignore;";
44 print " int from_tty;";
46 print " immediate_quit++;";
48 /^
[ ]*NO WARRANTY
[ ]*$
/, /^
[ ]*END OF TERMS AND CONDITIONS
[ ]*$
/{
49 if (!
($
0 ~
/^
[ ]*END OF TERMS AND CONDITIONS
[ ]*$
/))
51 printf " printf_filtered (\"";
52 for (i =
1; i
< NF; i
++)
54 printf "%s\\n\");\n", $
NF;
58 print " immediate_quit--;";
62 print "_initialize_copying ()";
64 print " add_cmd (\"copying\", no_class, show_copying_command,";
65 print " \"Conditions for redistributing copies of GDB.\",";
67 print " add_cmd (\"warranty\", no_class, show_warranty_command,";
68 print " \"Various kinds of warranty you do not have.\",";
71 print " /* For old-timers, allow \"info copying\", etc. */";
72 print " add_info (\"copying\", show_copying_command,";
73 print " \"Conditions for redistributing copies of GDB.\");";
74 print " add_info (\"warranty\", show_warranty_command,";
75 print " \"Various kinds of warranty you do not have.\");";
This page took 0.032121 seconds and 4 git commands to generate.