diff options
author | wl <wl> | 2006-02-23 20:00:46 +0000 |
---|---|---|
committer | wl <wl> | 2006-02-23 20:00:46 +0000 |
commit | a9494c447c55365041c9288b9977b41fecc4bc24 (patch) | |
tree | da81ff2a9e417631d5f106a94453bd0cbaa6bb5a /src/devices/grotty | |
parent | b600b460cebebf32e2f1de09823ab94600e65d37 (diff) | |
download | groff-a9494c447c55365041c9288b9977b41fecc4bc24.tar.gz |
Concretize the glyph datatype.
* src/include/font.h (struct glyph): Remove class.
(struct glyph): Renamed from struct glyphinfo.
(glyph_to_index): New inline function.
(glyph_to_name): Make extern, not inline.
(glyph_to_number): Update.
(font): Use `glyph *' instead of `glyph'.
* src/libs/libgroff/nametoindex.cpp (charinfo): Inherit from class
`glyph'. Make `name' field public.
(character_indexer, number_to_glyph, name_to_glyph): Use `glyph *'
instead of `glyph'.
(glyph_to_name): Renamed from `glyph::glyph_name'.
* src/roff/troff/charinfo.h (charinfo): Inherit from class `glyph'.
Use `glyph *' instead of `glyph'.
* src/roff/troff/input.cpp (name_to_glyph, number_to_glyph): Use
`glyph *' instead of `glyph'.
(glyph_to_name): Renamed from `glyph::glyph_name'.
* src/libs/libgroff/font.cpp: Use `glyph *' instead of `glyph',
and `glyph_to_index' instead of `glyph::glyph_index'.
* src/include/printer.h (printer): Use `glyph *' instead of `glyph'.
* src/libs/libdriver/printer.cpp: Likewise.
* src/devices/grodvi/dvi.cpp: Likewise.
* src/devices/grohtml/post-html.cpp: Likewise.
* src/devices/grolbp/lbp.cpp: Likewise.
* src/devices/grolj4/lj4.cpp: Likewise.
* src/devices/grops/ps.cpp: Likewise.
* src/devices/grotty/tty.cpp: Likewise.
Diffstat (limited to 'src/devices/grotty')
-rw-r--r-- | src/devices/grotty/tty.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp index 622bd82d..3896ab4e 100644 --- a/src/devices/grotty/tty.cpp +++ b/src/devices/grotty/tty.cpp @@ -219,7 +219,7 @@ class tty_printer : public printer { public: tty_printer(const char *); ~tty_printer(); - void set_char(glyph, font *, const environment *, int, const char *); + void set_char(glyph *, font *, const environment *, int, const char *); void draw(int, int *, int, const environment *); void special(char *, const environment *, char); void change_color(const environment * const); @@ -364,7 +364,7 @@ schar tty_printer::color_to_idx(color *col) return idx; } -void tty_printer::set_char(glyph g, font *f, const environment *env, +void tty_printer::set_char(glyph *g, font *f, const environment *env, int w, const char *) { if (w % font::hor != 0) |