diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-09-21 10:18:04 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-09-21 10:18:04 -0700 |
commit | 674f76e3df365a6768c485590acc95233d49f139 (patch) | |
tree | ed8201c66718fd87b68e8e392eb6746237f8df38 | |
parent | 8fc23fa9a525dd4025b9adf4c2b1fbe7bf6755bf (diff) | |
download | man-674f76e3df365a6768c485590acc95233d49f139.tar.gz man-674f76e3df365a6768c485590acc95233d49f139.tar.bz2 man-674f76e3df365a6768c485590acc95233d49f139.zip |
Implement .f register.
-rw-r--r-- | man2html/defs.h | 2 | ||||
-rw-r--r-- | man2html/man2html.c | 2 | ||||
-rw-r--r-- | man2html/strdefs.c | 5 |
3 files changed, 6 insertions, 3 deletions
diff --git a/man2html/defs.h b/man2html/defs.h index b108429..d71e5a6 100644 --- a/man2html/defs.h +++ b/man2html/defs.h @@ -17,7 +17,7 @@ struct INTDEF { }; extern STRDEF *chardef, *strdef, *defdef; -extern INTDEF *intdef, *nargdef; +extern INTDEF *intdef, *nargdef, *curfdef; #define V(A,B) ((A)*256+(B)) #define V4(A,B,C,D) ((((((((A)*256)+(B))*256)+(C))*256)+(D))) diff --git a/man2html/man2html.c b/man2html/man2html.c index e2a9295..32513dc 100644 --- a/man2html/man2html.c +++ b/man2html/man2html.c @@ -327,7 +327,7 @@ add_links(char *c) printf("%s", c); } -int current_font=0; +#define current_font (curfdef->val) int current_size=0; int fillout = 1; diff --git a/man2html/strdefs.c b/man2html/strdefs.c index 361080a..a43b441 100644 --- a/man2html/strdefs.c +++ b/man2html/strdefs.c @@ -11,7 +11,7 @@ int nroff = 0; #define TROFF (-667) STRDEF *chardef, *strdef, *defdef; -INTDEF *intdef, *nargdef; +INTDEF *intdef, *nargdef, *curfdef; static INTDEF standardint[] = { { V('n',' '), NROFF, 0, NULL }, @@ -20,6 +20,7 @@ static INTDEF standardint[] = { { V('e',' '), 0, 0, NULL }, { V('.','l'), 70, 0, NULL }, { V('.','$'), 0, 0, NULL }, + { V('.','f'), 0, 0, NULL }, { V('.','A'), NROFF, 0, NULL }, { V('.','T'), TROFF, 0, NULL }, { V('.','V'), 1, 0, NULL }, /* the me package tests for this */ @@ -172,6 +173,8 @@ void stdinit(void) { if (intdef->nr == TROFF) intdef->nr = !nroff; if (intdef->nr == V('.','$')) nargdef = intdef; + if (intdef->nr == V('.','f')) + curfdef = intdef; intdef->next = &standardint[i]; intdef = intdef->next; i++; |