diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-09-11 18:28:51 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2006-09-11 18:28:51 +0000 |
commit | 83856de963f9341b9c05853841685e4fbbcaf228 (patch) | |
tree | 215e76c9899f7f5e05a614127ddb6ca650d0726e /src/main.c | |
parent | 6a530016680ba5502ea5b8a8c483c754f912b811 (diff) | |
download | cflow-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.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -24,9 +24,9 @@ | |||
24 | 24 | ||
25 | const char *argp_program_version = "cflow (" PACKAGE_NAME ") " VERSION; | 25 | const char *argp_program_version = "cflow (" PACKAGE_NAME ") " VERSION; |
26 | const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; | 26 | const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; |
27 | /* TRANSLATORS: Please, preserve the vertical tabulation (^K character) | 27 | static char doc[] = N_("generate a program flowgraph") |
28 | in this message */ | 28 | "\v" |
29 | 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."); | 29 | 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."); |
30 | 30 | ||
31 | enum option_code { | 31 | enum option_code { |
32 | OPT_DEFINES = 256, | 32 | OPT_DEFINES = 256, |
@@ -746,6 +746,8 @@ main(int argc, char **argv) | |||
746 | { | 746 | { |
747 | int index; | 747 | int index; |
748 | 748 | ||
749 | program_name = argv[0]; /* Until gnulib provides a better way */ | ||
750 | |||
749 | setlocale(LC_ALL, ""); | 751 | setlocale(LC_ALL, ""); |
750 | bindtextdomain(PACKAGE, LOCALEDIR); | 752 | bindtextdomain(PACKAGE, LOCALEDIR); |
751 | textdomain(PACKAGE); | 753 | textdomain(PACKAGE); |
@@ -755,7 +757,7 @@ main(int argc, char **argv) | |||
755 | 757 | ||
756 | symbol_map = SM_FUNCTIONS|SM_STATIC; | 758 | symbol_map = SM_FUNCTIONS|SM_STATIC; |
757 | 759 | ||
758 | if (getenv ("POSIXLY_CORRECT")) { | 760 | if (getenv("POSIXLY_CORRECT")) { |
759 | if (select_output_driver("posix")) | 761 | if (select_output_driver("posix")) |
760 | error(1, 0, _("%s: No such output driver"), "posix"); | 762 | error(1, 0, _("%s: No such output driver"), "posix"); |
761 | output_init(); | 763 | output_init(); |