From 2d7fbcbe646054ce23063d6cddc785b7dbd71335 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Wed, 5 Nov 2014 12:23:29 +0000 Subject: web2c/mplibdir: Luigi fixes psout.w to avoid enormous lines of warnings git-svn-id: svn://tug.org/texlive/trunk@35518 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/mplibdir/ChangeLog | 5 +++++ Build/source/texk/web2c/mplibdir/psout.w | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/web2c/mplibdir/ChangeLog b/Build/source/texk/web2c/mplibdir/ChangeLog index 1b48c33ce23..8cfec71d03e 100644 --- a/Build/source/texk/web2c/mplibdir/ChangeLog +++ b/Build/source/texk/web2c/mplibdir/ChangeLog @@ -1,3 +1,8 @@ +2014-11-05 Akira Kakuto + + * psout.w: Sync with the trunk. Luigi fixes to avoid enormouos lines + of warnings. + 2014-10-30 Peter Breitenlohner * mpost.w [W32TeX]: Handle building of mpost.dll as for tex & Co. diff --git a/Build/source/texk/web2c/mplibdir/psout.w b/Build/source/texk/web2c/mplibdir/psout.w index 2186487c551..bc26e0dadcc 100644 --- a/Build/source/texk/web2c/mplibdir/psout.w +++ b/Build/source/texk/web2c/mplibdir/psout.w @@ -1,4 +1,4 @@ -% $Id: psout.w 2037 2014-09-02 14:59:07Z luigi $ +% $Id: psout.w 2045 2014-11-05 11:33:13Z luigi $ % This file is part of MetaPost; % the MetaPost program is in the public domain. % See the code in mpost.w for more info. @@ -1585,6 +1585,7 @@ void mp_read_psname_table (MP mp) ; void mp_read_psname_table (MP mp) { font_number k; char *s; + static boolean isread = false; if (mp->ps->mitem == NULL) { mp->ps->mitem = mp_xmalloc (mp,1,sizeof(mapitem)); mp->ps->mitem->mode = FM_DUPIGNORE; @@ -1592,8 +1593,11 @@ void mp_read_psname_table (MP mp) { mp->ps->mitem->map_line = NULL; } s = mp_xstrdup (mp,ps_tab_name); - mp->ps->mitem->map_line = s; - fm_read_info (mp); + mp->ps->mitem->map_line = s; + if (!isread) { + isread = true; + fm_read_info (mp); + } for (k=mp->last_ps_fnum+1;k<=mp->last_fnum;k++) { if (mp_has_fm_entry(mp, k, NULL)) { mp_xfree(mp->font_ps_name[k]); -- cgit v1.2.3