diff options
author | ru <ru@FreeBSD.org> | 2001-07-10 17:09:00 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-07-10 17:09:00 +0000 |
commit | 8d6dea3a5542a987c08a218c28776d3751d6878d (patch) | |
tree | 815804646c42fb89b4a8005be0c1f82d27b95463 /contrib/groff/src/devices/grops/ps.cc | |
parent | 9ea23f4150d8e9a0b84050876c26239addf73c8c (diff) | |
download | FreeBSD-src-8d6dea3a5542a987c08a218c28776d3751d6878d.zip FreeBSD-src-8d6dea3a5542a987c08a218c28776d3751d6878d.tar.gz |
Virgin import of FSF groff v1.17.2
Diffstat (limited to 'contrib/groff/src/devices/grops/ps.cc')
-rw-r--r-- | contrib/groff/src/devices/grops/ps.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/groff/src/devices/grops/ps.cc b/contrib/groff/src/devices/grops/ps.cc index 98b1a91..a467f04 100644 --- a/contrib/groff/src/devices/grops/ps.cc +++ b/contrib/groff/src/devices/grops/ps.cc @@ -33,6 +33,8 @@ extern "C" { } #endif /* NEED_DECLARATION_PUTENV */ +extern "C" const char *Version_string; + static int landscape_flag = 0; static int manual_feed_flag = 0; static int ncopies = 1; @@ -1119,7 +1121,6 @@ ps_printer::~ps_printer() putchar('\n'); out.set_file(stdout); { - extern const char *Version_string; out.begin_comment("Creator:") .comment_arg("groff") .comment_arg("version") @@ -1248,7 +1249,7 @@ void ps_printer::special(char *arg, const environment *env, char type) error("X command without `ps:' tag ignored"); return; } - for (int i = 0; i < sizeof(proc_table)/sizeof(proc_table[0]); i++) + for (unsigned int i = 0; i < sizeof(proc_table)/sizeof(proc_table[0]); i++) if (strncmp(command, proc_table[i].name, p - command) == 0) { (this->*(proc_table[i].proc))(p, env); return; @@ -1495,7 +1496,6 @@ int main(int argc, char **argv) switch(c) { case 'v': { - extern const char *Version_string; printf("GNU grops (groff) version %s\n", Version_string); exit(0); break; |