From 827cf5621c44c3d315ac95c52c15a23f88d5d44d Mon Sep 17 00:00:00 2001 From: Martin Schröder Date: Thu, 8 May 2008 14:25:16 +0000 Subject: Import pdftex 1.40.8-beta-20080506 git-svn-id: svn://tug.org/texlive/trunk@7945 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/pdftexdir/mapfile.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Build/source/texk/web2c/pdftexdir/mapfile.c') diff --git a/Build/source/texk/web2c/pdftexdir/mapfile.c b/Build/source/texk/web2c/pdftexdir/mapfile.c index 2a40209aa18..5b7a1e982c4 100644 --- a/Build/source/texk/web2c/pdftexdir/mapfile.c +++ b/Build/source/texk/web2c/pdftexdir/mapfile.c @@ -1,5 +1,5 @@ -/* -Copyright (c) 1996-2007 Han The Thanh, +/* mapfile.c: handling of map files/lines +Copyright (c) 1996-2008 Han The Thanh, This file is part of pdfTeX. @@ -16,8 +16,6 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with pdfTeX; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - -$Id$ */ #include @@ -26,6 +24,9 @@ $Id$ #include #include +static const char _svn_version[] = + "$Id$ $URL: http://scm.foundry.supelec.fr/svn/pdftex/branches/stable/source/src/texk/web2c/pdftexdir/mapfile.c $"; + #define FM_BUF_SIZE 1024 static FILE *fm_file; @@ -371,11 +372,12 @@ int check_std_t1font(char *s) { -1, -1, -1, -1, -1, -1, 8, 0, -1, 4, 10, 9, -1, -1, 5, 2, 12, 6, -1, 3, -1, 7 }; - assert(s != NULL); - const size_t n = strlen(s); + size_t n; int k = -1; + assert(s != NULL); + n = strlen(s); if (n > 21) - return false; + return -1; if (n == 12) { /* three names have length 12 */ switch (*s) { case 'C': @@ -388,7 +390,7 @@ int check_std_t1font(char *s) k = 13; /* ZapfDingbats */ break; default: - return false; + return -1; } } else k = index[n]; -- cgit v1.2.3