#include "command.h"
#include "gdbcmd.h"
-static void
-show_copying_command PARAMS ((char *, int));
+static void show_copying_command (char *, int);
-static void
-show_warranty_command PARAMS ((char *, int));
+static void show_warranty_command (char *, int);
+
+void _initialize_copying (void);
extern int immediate_quit;
static void
-show_copying_command (ignore, from_tty)
- char *ignore;
- int from_tty;
+show_copying_command (char *ignore, int from_tty)
{
immediate_quit++;
printf_filtered (" GNU GENERAL PUBLIC LICENSE\n");
immediate_quit--;
}
+static void
+show_warranty_command (char *ignore, int from_tty)
+{
+ immediate_quit++;
+ printf_filtered (" NO WARRANTY\n");
+ printf_filtered ("\n");
+ printf_filtered (" 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\n");
+ printf_filtered ("FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\n");
+ printf_filtered ("OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\n");
+ printf_filtered ("PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\n");
+ printf_filtered ("OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n");
+ printf_filtered ("MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\n");
+ printf_filtered ("TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\n");
+ printf_filtered ("PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\n");
+ printf_filtered ("REPAIR OR CORRECTION.\n");
+ printf_filtered ("\n");
+ printf_filtered (" 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\n");
+ printf_filtered ("WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\n");
+ printf_filtered ("REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\n");
+ printf_filtered ("INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\n");
+ printf_filtered ("OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\n");
+ printf_filtered ("TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\n");
+ printf_filtered ("YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\n");
+ printf_filtered ("PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\n");
+ printf_filtered ("POSSIBILITY OF SUCH DAMAGES.\n");
+ printf_filtered ("\n");
+ immediate_quit--;
+}
void
-_initialize_copying ()
+_initialize_copying (void)
{
add_cmd ("copying", no_class, show_copying_command,
"Conditions for redistributing copies of GDB.",
add_info ("warranty", show_warranty_command,
"Various kinds of warranty you do not have.");
}
-
-
-static void
-show_warranty_command (ignore, from_tty)
- char *ignore;
- int from_tty;
-{
- immediate_quit++;
- printf_filtered ("gdb is free software, covered by the GNU General Public\n");
- printf_filtered ("License, and you are welcome to change it and/or distribute\n");
- printf_filtered ("copies of it under certain conditions. This version of gdb\n");
- printf_filtered ("is supported for customers of Cygnus Solutions.\n");
- printf_filtered ("\n");
- printf_filtered ("For non customers, gdb has NO WARRANTY.\n");
- printf_filtered ("\n");
- printf_filtered ("Because this software is licensed free of charge, there are no\n");
- printf_filtered ("warranties for it, to the extent permitted by applicable law.\n");
- printf_filtered ("Except when otherwise stated in writing, the copyright holders\n");
- printf_filtered ("and/or other parties provide the software \"as is\" without\n");
- printf_filtered ("warranty of any kind, either expressed or implied, including,\n");
- printf_filtered ("but not limited to, the implied warranties of merchantability\n");
- printf_filtered ("and fitness for a particular purpose. The entire risk as\n");
- printf_filtered ("to the quality and performance of the software is with you.\n");
- printf_filtered ("Should the software provide defective, you assume the cost of\n");
- printf_filtered ("all necessary servicing, repair or correction.\n");
- printf_filtered ("\n");
- printf_filtered ("In no event, unless required by applicable law or agreed to\n");
- printf_filtered ("in writing, will any copyright holder, or any other party who\n");
- printf_filtered ("may modify and/or redistribute the program as permitted above,\n");
- printf_filtered ("be liable to you for damages, including any general, special,\n");
- printf_filtered ("incidental or consequential damages arising out of the use\n");
- printf_filtered ("or inability to use the program (including but not limited\n");
- printf_filtered ("to loss of data or data being rendered inaccurate or losses\n");
- printf_filtered ("sustained by your or third parties or a failure of the program\n");
- printf_filtered ("to operate with any other programs), even if such holder or\n");
- printf_filtered ("other party has been advised of the possibility of such damages.\n");
- printf_filtered ("\n");
- immediate_quit--;
-}