summaryrefslogtreecommitdiffstats
path: root/man2html
diff options
context:
space:
mode:
Diffstat (limited to 'man2html')
-rw-r--r--man2html/defs.h2
-rw-r--r--man2html/man2html.c2
-rw-r--r--man2html/strdefs.c5
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++;