aboutsummaryrefslogtreecommitdiff
path: root/contrib/groff/src/devices/grolj4/lj4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/groff/src/devices/grolj4/lj4.cpp')
-rw-r--r--contrib/groff/src/devices/grolj4/lj4.cpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/contrib/groff/src/devices/grolj4/lj4.cpp b/contrib/groff/src/devices/grolj4/lj4.cpp
index 1332e1980ddf..12849542b275 100644
--- a/contrib/groff/src/devices/grolj4/lj4.cpp
+++ b/contrib/groff/src/devices/grolj4/lj4.cpp
@@ -1,5 +1,6 @@
// -*- C++ -*-
-/* Copyright (C) 1994, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 2000, 2001, 2002, 2003, 2004
+ Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
This file is part of groff.
@@ -16,7 +17,7 @@ for more details.
You should have received a copy of the GNU General Public License along
with groff; see the file COPYING. If not, write to the Free Software
-Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */
/*
TODO
@@ -277,10 +278,10 @@ int is_unprintable(unsigned char c)
return c < 32 && (c == 0 || (7 <= c && c <= 15) || c == 27);
}
-void lj4_printer::set_char(int index, font *f, const environment *env,
+void lj4_printer::set_char(int idx, font *f, const environment *env,
int w, const char *)
{
- int code = f->get_code(index);
+ int code = f->get_code(idx);
unsigned char ch = code & 0xff;
unsigned short symbol_set = code >> 8;
@@ -611,18 +612,21 @@ int main(int argc, char **argv)
{ "version", no_argument, 0, 'v' },
{ NULL, 0, 0, 0 }
};
- while ((c = getopt_long(argc, argv, ":F:p:d:lvw:c:", long_options, NULL))
+ while ((c = getopt_long(argc, argv, "c:d:F:I:lp:vw:", long_options, NULL))
!= EOF)
switch(c) {
case 'l':
landscape_flag = 1;
break;
+ case 'I':
+ // ignore include search path
+ break;
case ':':
if (optopt == 'd') {
fprintf(stderr, "duplex assumed to be long-side\n");
duplex_flag = 1;
} else
- fprintf(stderr, "option -%c requires an operand\n", optopt);
+ fprintf(stderr, "option -%c requires an argument\n", optopt);
fflush(stderr);
break;
case 'd':
@@ -644,11 +648,9 @@ int main(int argc, char **argv)
break;
}
case 'v':
- {
- printf("GNU grolj4 (groff) version %s\n", Version_string);
- exit(0);
- break;
- }
+ printf("GNU grolj4 (groff) version %s\n", Version_string);
+ exit(0);
+ break;
case 'F':
font::command_line_font_dir(optarg);
break;