From 2352341e6cded83cf766af44946a3a4efa61b5e3 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Sat, 23 Apr 2005 11:03:53 +0000 Subject: [PATCH] Suppress output on font generation --- ChangeLog | 8 ++++++++ dvi/mdvi-lib/private.h | 1 + dvi/mdvi-lib/setup.c | 3 +++ 3 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index fab50fdc..ae36929b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-04-23 Nickolay V. Shmyrev + + * dvi/mdvi-lib/private.h: + * dvi/mdvi-lib/setup.c: (mdvi_init_kpathsea): + + Suppess output for kpathsea during font generation. Thanks to + James Bowes + Fri Apr 22 19:57:46 2005 Jonathan Blandford * NEWS: diff --git a/dvi/mdvi-lib/private.h b/dvi/mdvi-lib/private.h index 261a9117..c547cd2d 100644 --- a/dvi/mdvi-lib/private.h +++ b/dvi/mdvi-lib/private.h @@ -25,6 +25,7 @@ #include #include #include +#include #define ISSP(p) (*(p) == ' ' || *(p) == '\t') #define SKIPSP(p) while(ISSP(p)) p++ diff --git a/dvi/mdvi-lib/setup.c b/dvi/mdvi-lib/setup.c index 601f7b23..dea26e66 100644 --- a/dvi/mdvi-lib/setup.c +++ b/dvi/mdvi-lib/setup.c @@ -28,6 +28,9 @@ void mdvi_init_kpathsea(const char *program, const char *mfmode, const char *font, int dpi) { const char *p; + + /* Stop meaningless output generation. */ + kpse_make_tex_discard_errors = FALSE; p = strrchr(program, '/'); p = (p ? p + 1 : program); -- 2.43.5