aboutsummaryrefslogtreecommitdiffstats
path: root/troff/troff.d/dpost.d
diff options
context:
space:
mode:
Diffstat (limited to 'troff/troff.d/dpost.d')
-rw-r--r--troff/troff.d/dpost.d/Makefile.mk4
-rw-r--r--troff/troff.d/dpost.d/dpost.c4
-rw-r--r--troff/troff.d/dpost.d/ps_include.c2
3 files changed, 6 insertions, 4 deletions
diff --git a/troff/troff.d/dpost.d/Makefile.mk b/troff/troff.d/dpost.d/Makefile.mk
index d3d161638b4c..b2594b800192 100644
--- a/troff/troff.d/dpost.d/Makefile.mk
+++ b/troff/troff.d/dpost.d/Makefile.mk
@@ -8,12 +8,12 @@ FLAGS = -I. -I.. -DFNTDIR='"$(FNTDIR)"' -DPSTDIR='"$(PSTDIR)"' $(EUC) \
$(DEFINES) -I../../../include -I.. -I$(BST)
.c.o:
- $(CC) $(CFLAGS) $(WARN) $(CPPFLAGS) $(FLAGS) -c $<
+ $(CC) $(_CFLAGS) $(FLAGS) -c $<
all: dpost
dpost: $(OBJ)
- $(CC) $(CFLAGS) $(LDFLAGS) $(OBJ) $(LIBS) -o dpost
+ $(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o dpost
install:
$(INSTALL) -c dpost $(ROOT)$(BINDIR)/dpost
diff --git a/troff/troff.d/dpost.d/dpost.c b/troff/troff.d/dpost.d/dpost.c
index dd5c5465721b..60c0b210fa42 100644
--- a/troff/troff.d/dpost.d/dpost.c
+++ b/troff/troff.d/dpost.d/dpost.c
@@ -2419,7 +2419,7 @@ t_supply(char *fnt) /* supply a font */
while (*fnt == ' ' || *fnt == '\t')
fnt++;
- for (np = font; *np && *np != ' ' && *np != '\t' && *np != '\n'; np++);
+ for (np = fnt; *np && *np != ' ' && *np != '\t' && *np != '\n'; np++);
if (*np == '\0' || *np == '\n')
return;
*np = '\0';
@@ -3303,7 +3303,7 @@ t_sf(int forceflush)
fprintf(tf, "%d %g changefont\n", fontname[font].fontslant, (fontname[font].fontheight != 0) ? (double)fontname[font].fontheight : (double)fractsize);
}
- if (tracked < 0 || tracked > 0 && forceflush)
+ if (tracked < 0 || (tracked > 0 && forceflush))
t_strack();
} /* End of t_sf */
diff --git a/troff/troff.d/dpost.d/ps_include.c b/troff/troff.d/dpost.d/ps_include.c
index 3b463daf29d9..bd65398f2672 100644
--- a/troff/troff.d/dpost.d/ps_include.c
+++ b/troff/troff.d/dpost.d/ps_include.c
@@ -167,6 +167,8 @@ ps_include(
break;
case DOCUMENTNEEDEDRESOURCES:
goto needres;
+ case NORMAL: /* TODO: case is not in original code */
+ break;
}
continue;
} else