diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | build-aux/gnulib.modules | 1 | ||||
-rw-r--r-- | doc/cflow.texi | 6 | ||||
-rw-r--r-- | lib/.cvsignore | 2 | ||||
-rw-r--r-- | src/main.c | 15 | ||||
-rw-r--r-- | tests/version.at | 6 |
6 files changed, 25 insertions, 9 deletions
@@ -1,14 +1,18 @@ | |||
1 | 2007-05-18 Sergey Poznyakoff <gray@gnu.org.ua> | 1 | 2007-05-18 Sergey Poznyakoff <gray@gnu.org.ua> |
2 | 2 | ||
3 | * build-aux/gnulib.modules: Add version-etc | ||
4 | * src/main.c, doc/cflow.texi: Remove --license option | ||
5 | * tests/version.at: Update | ||
6 | |||
3 | * bootstrap.conf: New file | 7 | * bootstrap.conf: New file |
4 | * build-aux/bootstrap: Replaced from the gnulib CVS | 8 | * build-aux/bootstrap: Replaced from the gnulib CVS |
5 | * configure.ac: Update | 9 | * configure.ac: Update |
6 | * po/Makevars: Remove automatically generated file | 10 | * po/Makevars: Remove automatically generated file |
7 | * src/main.c: Remove #include <strndup.h> | 11 | * src/main.c: Remove #include <strndup.h> |
8 | * po/da.po, po/pl.po, po/uk.po, po/vi.po: Removed. Translations | 12 | * po/da.po, po/pl.po, po/uk.po, po/vi.po: Removed. Translations |
9 | will be exported directly from TP. | 13 | will be exported directly from TP. |
10 | * lib/Makefile.am: New file | 14 | * lib/Makefile.am: New file |
11 | * lib/Makefile.tmpl: Removed | 15 | * lib/Makefile.tmpl: Removed |
12 | * README-hacking: New file | 16 | * README-hacking: New file |
13 | 17 | ||
14 | 2006-09-11 Sergey Poznyakoff <gray@gnu.org.ua> | 18 | 2006-09-11 Sergey Poznyakoff <gray@gnu.org.ua> |
diff --git a/build-aux/gnulib.modules b/build-aux/gnulib.modules index 3a844de..f23e251 100644 --- a/build-aux/gnulib.modules +++ b/build-aux/gnulib.modules | |||
@@ -1,11 +1,12 @@ | |||
1 | # List of gnulib modules needed for GNU mailutils. | 1 | # List of gnulib modules needed for GNU mailutils. |
2 | # A module name per line. Empty lines and comments are ignored. | 2 | # A module name per line. Empty lines and comments are ignored. |
3 | 3 | ||
4 | argp | 4 | argp |
5 | obstack | 5 | obstack |
6 | lstat | 6 | lstat |
7 | malloc | 7 | malloc |
8 | error | 8 | error |
9 | hash | 9 | hash |
10 | gettext | 10 | gettext |
11 | snprintf | 11 | snprintf |
12 | version-etc \ No newline at end of file | ||
diff --git a/doc/cflow.texi b/doc/cflow.texi index 0acf1d2..a62fecf 100644 --- a/doc/cflow.texi +++ b/doc/cflow.texi | |||
@@ -1183,30 +1183,24 @@ include in the output. Valid @var{spec} symbols are: | |||
1183 | @item s | 1183 | @item s |
1184 | Static symbols. | 1184 | Static symbols. |
1185 | 1185 | ||
1186 | @item t | 1186 | @item t |
1187 | Typedefs (for cross-references only, @pxref{Cross-References}). | 1187 | Typedefs (for cross-references only, @pxref{Cross-References}). |
1188 | 1188 | ||
1189 | @item x | 1189 | @item x |
1190 | All data symbols, both external and static. | 1190 | All data symbols, both external and static. |
1191 | @end table | 1191 | @end table |
1192 | 1192 | ||
1193 | For more information, @xref{Symbols}. | 1193 | For more information, @xref{Symbols}. |
1194 | 1194 | ||
1195 | @cindex @option{-L} | ||
1196 | @cindex @option{--license} | ||
1197 | @item -L | ||
1198 | @itemx --license | ||
1199 | Print license and exit. | ||
1200 | |||
1201 | @cindex @option{-l} | 1195 | @cindex @option{-l} |
1202 | @item -l | 1196 | @item -l |
1203 | @xref{--print-level}. | 1197 | @xref{--print-level}. |
1204 | 1198 | ||
1205 | @cindex @option{--level-indent} | 1199 | @cindex @option{--level-indent} |
1206 | @item --level-indent=@var{string} | 1200 | @item --level-indent=@var{string} |
1207 | Use @var{string} when indenting to each new level. @xref{ASCII Tree}. | 1201 | Use @var{string} when indenting to each new level. @xref{ASCII Tree}. |
1208 | 1202 | ||
1209 | @cindex @option{-m} | 1203 | @cindex @option{-m} |
1210 | @cindex @option{--main} | 1204 | @cindex @option{--main} |
1211 | @item -m @var{name} | 1205 | @item -m @var{name} |
1212 | @item --main=@var{name} | 1206 | @item --main=@var{name} |
diff --git a/lib/.cvsignore b/lib/.cvsignore index 410c714..d63cbed 100644 --- a/lib/.cvsignore +++ b/lib/.cvsignore | |||
@@ -65,21 +65,23 @@ string_.h | |||
65 | stripslash.c | 65 | stripslash.c |
66 | strncasecmp.c | 66 | strncasecmp.c |
67 | strndup.c | 67 | strndup.c |
68 | strnlen.c | 68 | strnlen.c |
69 | sys_stat.h | 69 | sys_stat.h |
70 | sys_stat_.h | 70 | sys_stat_.h |
71 | sysexits.h | 71 | sysexits.h |
72 | sysexits_.h | 72 | sysexits_.h |
73 | unistd.h | 73 | unistd.h |
74 | unistd_.h | 74 | unistd_.h |
75 | vasnprintf.c | 75 | vasnprintf.c |
76 | vasnprintf.h | 76 | vasnprintf.h |
77 | version-etc.c | ||
78 | version-etc.h | ||
77 | vsnprintf.c | 79 | vsnprintf.c |
78 | wchar.h | 80 | wchar.h |
79 | wchar_.h | 81 | wchar_.h |
80 | xalloc-die.c | 82 | xalloc-die.c |
81 | xalloc.h | 83 | xalloc.h |
82 | xmalloc.c | 84 | xmalloc.c |
83 | xsize.h | 85 | xsize.h |
84 | xstrndup.c | 86 | xstrndup.c |
85 | xstrndup.h | 87 | xstrndup.h |
@@ -11,24 +11,25 @@ | |||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | GNU General Public License for more details. | 12 | GNU General Public License for more details. |
13 | 13 | ||
14 | You should have received a copy of the GNU General Public | 14 | You should have received a copy of the GNU General Public |
15 | License along with GNU cflow; if not, write to the Free Software | 15 | License along with GNU cflow; if not, write to the Free Software |
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
17 | MA 02110-1301 USA */ | 17 | MA 02110-1301 USA */ |
18 | 18 | ||
19 | #include <cflow.h> | 19 | #include <cflow.h> |
20 | #include <argp.h> | 20 | #include <argp.h> |
21 | #include <stdarg.h> | 21 | #include <stdarg.h> |
22 | #include <parser.h> | 22 | #include <parser.h> |
23 | #include <version-etc.h> | ||
23 | 24 | ||
24 | const char *argp_program_version = "cflow (" PACKAGE_NAME ") " VERSION; | 25 | const char *argp_program_version = "cflow (" PACKAGE_NAME ") " VERSION; |
25 | const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; | 26 | const char *argp_program_bug_address = "<" PACKAGE_BUGREPORT ">"; |
26 | static char doc[] = N_("generate a program flowgraph") | 27 | static char doc[] = N_("generate a program flowgraph") |
27 | "\v" | 28 | "\v" |
28 | 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."); | 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."); |
29 | 30 | ||
30 | enum option_code { | 31 | enum option_code { |
31 | OPT_DEFINES = 256, | 32 | OPT_DEFINES = 256, |
32 | OPT_LEVEL_INDENT, | 33 | OPT_LEVEL_INDENT, |
33 | OPT_DEBUG, | 34 | OPT_DEBUG, |
34 | OPT_PREPROCESS, | 35 | OPT_PREPROCESS, |
@@ -738,30 +739,44 @@ init() | |||
738 | level_indent[0] = " "; /* 4 spaces */ | 739 | level_indent[0] = " "; /* 4 spaces */ |
739 | if (level_indent[1] == NULL) | 740 | if (level_indent[1] == NULL) |
740 | level_indent[1] = level_indent[0]; | 741 | level_indent[1] = level_indent[0]; |
741 | if (level_end[0] == NULL) | 742 | if (level_end[0] == NULL) |
742 | level_end[0] = ""; | 743 | level_end[0] = ""; |
743 | if (level_end[1] == NULL) | 744 | if (level_end[1] == NULL) |
744 | level_end[1] = ""; | 745 | level_end[1] = ""; |
745 | 746 | ||
746 | init_lex(debug > 1); | 747 | init_lex(debug > 1); |
747 | init_parse(); | 748 | init_parse(); |
748 | } | 749 | } |
749 | 750 | ||
751 | const char version_etc_copyright[] = | ||
752 | /* Do *not* mark this string for translation. %s is a copyright | ||
753 | symbol suitable for this locale, and %d is the copyright | ||
754 | year. */ | ||
755 | "Copyright %s 2005, 2006, %d Sergey Poznyakoff"; | ||
756 | |||
757 | static void | ||
758 | cflow_version(FILE *stream, struct argp_state *state) | ||
759 | { | ||
760 | version_etc(stream, "cflow", PACKAGE_NAME, PACKAGE_VERSION, | ||
761 | "Sergey Poznyakoff", NULL); | ||
762 | } | ||
763 | |||
750 | int | 764 | int |
751 | main(int argc, char **argv) | 765 | main(int argc, char **argv) |
752 | { | 766 | { |
753 | int index; | 767 | int index; |
754 | 768 | ||
755 | program_name = argv[0]; /* Until gnulib provides a better way */ | 769 | program_name = argv[0]; /* Until gnulib provides a better way */ |
770 | argp_program_version_hook = cflow_version; | ||
756 | 771 | ||
757 | setlocale(LC_ALL, ""); | 772 | setlocale(LC_ALL, ""); |
758 | bindtextdomain(PACKAGE, LOCALEDIR); | 773 | bindtextdomain(PACKAGE, LOCALEDIR); |
759 | textdomain(PACKAGE); | 774 | textdomain(PACKAGE); |
760 | 775 | ||
761 | register_output("gnu", gnu_output_handler, NULL); | 776 | register_output("gnu", gnu_output_handler, NULL); |
762 | register_output("posix", posix_output_handler, NULL); | 777 | register_output("posix", posix_output_handler, NULL); |
763 | 778 | ||
764 | symbol_map = SM_FUNCTIONS|SM_STATIC|SM_UNDEFINED; | 779 | symbol_map = SM_FUNCTIONS|SM_STATIC|SM_UNDEFINED; |
765 | 780 | ||
766 | if (getenv("POSIXLY_CORRECT")) { | 781 | if (getenv("POSIXLY_CORRECT")) { |
767 | if (select_output_driver("posix")) | 782 | if (select_output_driver("posix")) |
diff --git a/tests/version.at b/tests/version.at index 4910be5..f75923f 100644 --- a/tests/version.at +++ b/tests/version.at | |||
@@ -1,33 +1,33 @@ | |||
1 | # This file is part of GNU cflow testsuite. -*- Autotest -*- | 1 | # This file is part of GNU cflow testsuite. -*- Autotest -*- |
2 | # Copyright (C) 2005 Sergey Poznyakoff | 2 | # Copyright (C) 2005, 2007 Sergey Poznyakoff |
3 | # | 3 | # |
4 | # This program is free software; you can redistribute it and/or | 4 | # This program is free software; you can redistribute it and/or |
5 | # modify it under the terms of the GNU General Public License as | 5 | # modify it under the terms of the GNU General Public License as |
6 | # published by the Free Software Foundation; either version 2, or (at | 6 | # published by the Free Software Foundation; either version 2, or (at |
7 | # your option) any later version. | 7 | # your option) any later version. |
8 | # | 8 | # |
9 | # This program is distributed in the hope that it will be useful, but | 9 | # This program is distributed in the hope that it will be useful, but |
10 | # WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 | # MERCHANTABILITY |