diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-11-05 12:23:29 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2014-11-05 12:23:29 +0000 |
commit | 2d7fbcbe646054ce23063d6cddc785b7dbd71335 (patch) | |
tree | 4a6c56673c1c2db1d0b25f7df0ee195a78b77e46 /Build/source/texk/web2c/mplibdir | |
parent | 20316e76cda72a8e581f2456ae93139486f4e124 (diff) |
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
Diffstat (limited to 'Build/source/texk/web2c/mplibdir')
-rw-r--r-- | Build/source/texk/web2c/mplibdir/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/mplibdir/psout.w | 10 |
2 files changed, 12 insertions, 3 deletions
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 <kakuto@fuk.kindai.ac.jp> + + * psout.w: Sync with the trunk. Luigi fixes to avoid enormouos lines + of warnings. + 2014-10-30 Peter Breitenlohner <peb@mppmu.mpg.de> * 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 <Show version...> 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]); |