-/* ==> Do not modify this file!! It is created automatically
- by copying.awk. Modify copying.awk instead. <== */
+/* ==> Do not modify this file!! -*- buffer-read-only: t -*- vi:set ro:
+ It is created automatically by copying.awk.
+ Modify copying.awk instead. <== */
#include "defs.h"
#include "command.h"
#include "gdbcmd.h"
-static void show_copying_command (char *, int);
+static void show_copying_command (const char *, int);
-static void show_warranty_command (char *, int);
+static void show_warranty_command (const char *, int);
-void _initialize_copying (void);
-
-extern int immediate_quit;
static void
-show_copying_command (char *ignore, int from_tty)
+show_copying_command (const char *ignore, int from_tty)
{
- immediate_quit++;
printf_filtered (" GNU GENERAL PUBLIC LICENSE\n");
printf_filtered (" Version 3, 29 June 2007\n");
printf_filtered ("\n");
printf_filtered ("author or copyright holder as a result of your choosing to follow a\n");
printf_filtered ("later version.\n");
printf_filtered ("\n");
- immediate_quit--;
}
static void
-show_warranty_command (char *ignore, int from_tty)
+show_warranty_command (const char *ignore, int from_tty)
{
- immediate_quit++;
printf_filtered (" 15. Disclaimer of Warranty.\n");
printf_filtered ("\n");
printf_filtered (" THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\n");
printf_filtered ("Program, unless a warranty or assumption of liability accompanies a\n");
printf_filtered ("copy of the Program in return for a fee.\n");
printf_filtered ("\n");
- immediate_quit--;
}
void
_initialize_copying (void)
{
- add_cmd ("copying", no_class, show_copying_command,
+ add_cmd ("copying", no_set_class, show_copying_command,
_("Conditions for redistributing copies of GDB."),
&showlist);
- add_cmd ("warranty", no_class, show_warranty_command,
+ add_cmd ("warranty", no_set_class, show_warranty_command,
_("Various kinds of warranty you do not have."),
&showlist);