From 9c6786b279d4901191cac178be6749bc39532fe1 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 18 Jan 2013 18:15:51 +0000 Subject: apply cast diffs from pdftex git-svn-id: svn://tug.org/texlive/trunk@28863 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipsk/ChangeLog | 4 ++++ Build/source/texk/dvipsk/writet1.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'Build/source') diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 1aa5e455efc..4b19c1f757e 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,3 +1,7 @@ +2013-01-18 Karl Berry + + * writet1.c: apply diffs (cast removals) from pdftex. + 2012-12-17 Peter Breitenlohner * squeeze/Makefile.am: Enable silent rules. diff --git a/Build/source/texk/dvipsk/writet1.c b/Build/source/texk/dvipsk/writet1.c index 498defeb847..7286ca2522b 100644 --- a/Build/source/texk/dvipsk/writet1.c +++ b/Build/source/texk/dvipsk/writet1.c @@ -1,5 +1,5 @@ /* -Copyright 1996-2011 Han The Thanh +Copyright 1996-2013 Han The Thanh This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -335,7 +335,7 @@ char **load_enc_file(char *enc_name) set_cur_file_name(enc_name); glyph_names = (char **) mymalloc(256 * sizeof(char *)); for (i = 0; i < 256; i++) - glyph_names[i] = (char *) notdef; + glyph_names[i] = notdef; if (!enc_open()) { pdftex_warn("cannot open encoding file for reading"); cur_file_name = NULL; @@ -681,7 +681,7 @@ static void copy_glyph_names(char **glyph_names, int a, int b) { if (glyph_names[b] != notdef) { xfree(glyph_names[b]); - glyph_names[b] = (char *) notdef; + glyph_names[b] = notdef; } if (glyph_names[a] != notdef) { glyph_names[b] = xstrdup(glyph_names[a]); @@ -697,7 +697,7 @@ static char **t1_builtin_enc(void) /* At this moment "/Encoding" is the prefix of t1_line_array */ glyph_names = t1_builtin_glyph_names; for (i = 0; i < 256; i++) - glyph_names[i] = (char *) notdef; + glyph_names[i] = notdef; if (t1_suffix("def")) { /* predefined encoding */ sscanf(t1_line_array + strlen("/Encoding"), "%256s", t1_buf_array); if (strcmp(t1_buf_array, "StandardEncoding") == 0) { @@ -863,7 +863,7 @@ static void cs_store(boolean is_subr) pdftex_fail ("CharStrings dict: more entries than dict size (%i)", cs_size); if (strcmp(t1_buf_array + 1, notdef) == 0) /* skip the slash */ - ptr->name = (char *) notdef; + ptr->name = notdef; else ptr->name = xstrdup(t1_buf_array + 1); } -- cgit v1.2.3