aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2006-09-11 18:28:51 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2006-09-11 18:28:51 +0000
commit83856de963f9341b9c05853841685e4fbbcaf228 (patch)
tree215e76c9899f7f5e05a614127ddb6ca650d0726e
parent6a530016680ba5502ea5b8a8c483c754f912b811 (diff)
downloadcflow-83856de963f9341b9c05853841685e4fbbcaf228.tar.gz
cflow-83856de963f9341b9c05853841685e4fbbcaf228.tar.bz2
(doc): Reformat argp docstring in accordance with the
new argp guidelines. Remove unneeded translators comment. (main): Set program_name.
-rw-r--r--src/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index e7ed4a8..3e933d9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,15 +21,15 @@
#include <stdarg.h>
#include <parser.h>
#include <strndup.h>
const char *argp_program_version = "cflow (" PACKAGE_NAME ") " VERSION;
const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">";
-/* TRANSLATORS: Please, preserve the vertical tabulation (^K character)
- in this message */
-static char doc[] = N_("generate a program flowgraph\v* The effect of each option marked with an asterisk is reversed if the option's long name is prefixed with `no-'. For example, --no-cpp cancels --cpp.");
+static char doc[] = N_("generate a program flowgraph")
+"\v"
+N_("* The effect of each option marked with an asterisk is reversed if the option's long name is prefixed with `no-'. For example, --no-cpp cancels --cpp.");
enum option_code {
OPT_DEFINES = 256,
OPT_LEVEL_INDENT,
OPT_DEBUG,
OPT_PREPROCESS,
@@ -743,22 +743,24 @@ init()
int
main(int argc, char **argv)
{
int index;
+ program_name = argv[0]; /* Until gnulib provides a better way */
+
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
register_output("gnu", gnu_output_handler, NULL);
register_output("posix", posix_output_handler, NULL);
symbol_map = SM_FUNCTIONS|SM_STATIC;
- if (getenv ("POSIXLY_CORRECT")) {
+ if (getenv("POSIXLY_CORRECT")) {
if (select_output_driver("posix"))
error(1, 0, _("%s: No such output driver"), "posix");
output_init();
}
sourcerc(&argc, &argv);

Return to:

Send suggestions and report system problems to the System administrator.