[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to m4/src/main.c,v
From: |
Eric Blake |
Subject: |
Changes to m4/src/main.c,v |
Date: |
Tue, 19 Sep 2006 13:16:09 +0000 |
CVSROOT: /sources/m4
Module name: m4
Changes by: Eric Blake <ericb> 06/09/19 13:16:08
Index: src/main.c
===================================================================
RCS file: /sources/m4/m4/src/main.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -b -r1.83 -r1.84
--- src/main.c 18 Sep 2006 13:16:44 -0000 1.83
+++ src/main.c 19 Sep 2006 13:16:08 -0000 1.84
@@ -130,7 +130,7 @@
Debugging:\n\
-d, --debug[=FLAGS] set debug level (no FLAGS implies `aeq')\n\
-l, --arglength=NUM restrict macro tracing size\n\
- -o, --error-output=FILE redirect debug and trace output\n\
+ -o, --debugfile=FILE redirect debug and trace output\n\
-t, --trace=NAME trace NAME when it will be defined\n\
"), stdout);
fputs (_("\
@@ -173,6 +173,7 @@
enum
{
DIVERSIONS_OPTION = CHAR_MAX + 1, /* not quite -N, because of message */
+ ERROR_OUTPUT_OPTION, /* deprecated form of -o */
IMPORT_ENVIRONMENT_OPTION, /* no short opt */
PREPEND_INCLUDE_OPTION, /* not quite -B, because of message */
SAFER_OPTION, /* -S still has old no-op
semantics */
@@ -187,9 +188,9 @@
{"arglength", required_argument, NULL, 'l'},
{"batch", no_argument, NULL, 'b'},
{"debug", optional_argument, NULL, 'd'},
+ {"debugfile", required_argument, NULL, 'o'},
{"define", required_argument, NULL, 'D'},
{"discard-comments", no_argument, NULL, 'c'},
- {"error-output", required_argument, NULL, 'o'},
{"fatal-warnings", no_argument, NULL, 'E'},
{"freeze-state", required_argument, NULL, 'F'},
{"hashsize", required_argument, NULL, 'H'},
@@ -210,6 +211,7 @@
{"word-regexp", required_argument, NULL, 'W'},
{"diversions", required_argument, NULL, DIVERSIONS_OPTION},
+ {"error-output", required_argument, NULL, ERROR_OUTPUT_OPTION},
{"import-environment", no_argument, NULL, IMPORT_ENVIRONMENT_OPTION},
{"prepend-include", required_argument, NULL, PREPEND_INCLUDE_OPTION},
{"safer", no_argument, NULL, SAFER_OPTION},
@@ -416,6 +418,10 @@
m4_set_max_debug_arg_length_opt (context, 0);
break;
+ case ERROR_OUTPUT_OPTION:
+ error (0, 0, _("\
+Warning: --error-output is deprecated, use --debugfile instead"));
+ /* fall through */
case 'o':
if (!m4_debug_set_output (context, optarg))
error (0, errno, "%s", optarg);
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/05
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/07
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/13
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/14
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/18
- Changes to m4/src/main.c,v,
Eric Blake <=
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/20
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/20
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/21
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/26
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/29
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/29
- Changes to m4/src/main.c,v, Eric Blake, 2006/09/29