diff options
author | ru <ru@FreeBSD.org> | 2003-05-01 13:09:50 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2003-05-01 13:09:50 +0000 |
commit | 06b40fe5ee58fd8a0b847795047930206cb3088b (patch) | |
tree | 252b1111c59af7f71db148c72c15e643186b9b86 /contrib/groff/src/roff/troff/charinfo.h | |
parent | 9fa30633edf6d37792cc22d6f97efbd6e19a6ad8 (diff) | |
parent | c96557721be60d942f4d486b9ea7f9b7cbb034cc (diff) | |
download | FreeBSD-src-06b40fe5ee58fd8a0b847795047930206cb3088b.zip FreeBSD-src-06b40fe5ee58fd8a0b847795047930206cb3088b.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r114402,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/groff/src/roff/troff/charinfo.h')
-rw-r--r-- | contrib/groff/src/roff/troff/charinfo.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/contrib/groff/src/roff/troff/charinfo.h b/contrib/groff/src/roff/troff/charinfo.h index b907ae4..4123fba 100644 --- a/contrib/groff/src/roff/troff/charinfo.h +++ b/contrib/groff/src/roff/troff/charinfo.h @@ -37,7 +37,7 @@ class charinfo { // to transparent throughput char translate_input; // non-zero means that asciify_code is // active for .asciify (set by .trin) - char fallback; + char_mode mode; public: enum { ENDS_SENTENCE = 1, @@ -47,7 +47,7 @@ public: OVERLAPS_VERTICALLY = 16, TRANSPARENT = 32, NUMBERED = 64 - }; + }; enum { TRANSLATE_NONE, TRANSLATE_SPACE, @@ -77,13 +77,16 @@ public: void set_flags(unsigned char); void set_special_translation(int, int); int get_special_translation(int = 0); - macro *set_macro(macro *, int = 0); + macro *set_macro(macro *); + macro *setx_macro(macro *, char_mode); macro *get_macro(); int first_time_not_found(); void set_number(int); int get_number(); int numbered(); + int is_normal(); int is_fallback(); + int is_special(); symbol *get_symbol(); }; @@ -126,9 +129,19 @@ inline int charinfo::numbered() return flags & NUMBERED; } +inline int charinfo::is_normal() +{ + return mode == CHAR_NORMAL; +} + inline int charinfo::is_fallback() { - return fallback; + return mode == CHAR_FALLBACK; +} + +inline int charinfo::is_special() +{ + return mode == CHAR_SPECIAL; } inline charinfo *charinfo::get_translation(int transparent_throughput) |