diff options
Diffstat (limited to 'contrib/groff/src/utils/addftinfo')
-rw-r--r-- | contrib/groff/src/utils/addftinfo/addftinfo.cc | 9 | ||||
-rw-r--r-- | contrib/groff/src/utils/addftinfo/addftinfo.man | 8 |
2 files changed, 11 insertions, 6 deletions
diff --git a/contrib/groff/src/utils/addftinfo/addftinfo.cc b/contrib/groff/src/utils/addftinfo/addftinfo.cc index 43a81bc..eb222d9 100644 --- a/contrib/groff/src/utils/addftinfo/addftinfo.cc +++ b/contrib/groff/src/utils/addftinfo/addftinfo.cc @@ -31,6 +31,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "cset.h" #include "guess.h" +extern "C" const char *Version_string; + static void usage(FILE *stream); static void usage(); static void version(); @@ -67,7 +69,8 @@ static struct { int main(int argc, char **argv) { program_name = argv[0]; - for (int i = 1; i < argc; i++) { + int i; + for (i = 1; i < argc; i++) { if (!strcmp(argv[i], "-v") || !strcmp(argv[i],"--version")) version(); if (!strcmp(argv[i],"--help")) { @@ -99,7 +102,6 @@ int main(int argc, char **argv) param.comma_depth = DEFAULT_COMMA_DEPTH; param.desc_depth = DEFAULT_DESC_DEPTH; param.body_depth = DEFAULT_BODY_DEPTH; - int i; for (i = 1; i < argc && argv[i][0] == '-'; i++) { if (argv[i][1] == '-' && argv[i][2] == '\0') { i++; @@ -107,7 +109,7 @@ int main(int argc, char **argv) } if (i + 1 >= argc) usage(); - int j; + size_t j; for (j = 0;; j++) { if (j >= sizeof(param_table)/sizeof(param_table[0])) fatal("parameter `%1' not recognized", argv[i] + 1); @@ -142,7 +144,6 @@ static void usage() static void version() { - extern const char *Version_string; printf("GNU addftinfo (groff) version %s\n", Version_string); exit(0); } diff --git a/contrib/groff/src/utils/addftinfo/addftinfo.man b/contrib/groff/src/utils/addftinfo/addftinfo.man index 921f633..a9b8455 100644 --- a/contrib/groff/src/utils/addftinfo/addftinfo.man +++ b/contrib/groff/src/utils/addftinfo/addftinfo.man @@ -1,5 +1,5 @@ -.ig \"-*- nroff -*- -Copyright (C) 1989-2000 Free Software Foundation, Inc. +.ig +Copyright (C) 1989-2000, 2001 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice @@ -105,3 +105,7 @@ a Times font. .BR groff_font (@MAN5EXT@), .BR groff (@MAN1EXT@), .BR groff_char (@MAN7EXT@) +. +.\" Local Variables: +.\" mode: nroff +.\" End: |