X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;ds=inline;f=backend%2Fdvi%2Fmdvi-lib%2Fpk.c;h=a5791869af1f36b9e0dd1ba890ce1cf2858dba85;hb=11eb3f2a9d6062b2d38a549c1f9547d7985c7be5;hp=48da0084445f5aad64c5a95274a6f4c197e8f87d;hpb=13a06349251874bd35d2f03c3fc93217cee749a2;p=evince.git diff --git a/backend/dvi/mdvi-lib/pk.c b/backend/dvi/mdvi-lib/pk.c index 48da0084..a5791869 100644 --- a/backend/dvi/mdvi-lib/pk.c +++ b/backend/dvi/mdvi-lib/pk.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* @@ -28,6 +28,7 @@ * - Made bitmap code much more efficient and compact. */ +#include #include #include #include @@ -306,7 +307,7 @@ static BITMAP *get_packed(FILE *p, int w, int h, int flags) paint = !paint; } if(row != h || inrow != w) { - error(_("Bad PK file: More bits than required\n")); + mdvi_error(_("Bad PK file: More bits than required\n")); bitmap_destroy(bm); return NULL; } @@ -359,8 +360,8 @@ static int pk_load_font(DviParams *unused, DviFont *font) /* get the checksum */ checksum = fuget4(p); if(checksum && font->checksum && font->checksum != checksum) { - warning(_("%s: checksum mismatch (expected %u, got %u)\n"), - font->fontname, font->checksum, checksum); + mdvi_warning(_("%s: checksum mismatch (expected %u, got %u)\n"), + font->fontname, font->checksum, checksum); } else if(!font->checksum) font->checksum = checksum; /* skip pixel per point ratios */ @@ -416,7 +417,7 @@ static int pk_load_font(DviParams *unused, DviFont *font) case PK_NOOP: break; case PK_PRE: - error(_("%s: unexpected preamble\n"), font->fontname); + mdvi_error(_("%s: unexpected preamble\n"), font->fontname); goto error; } } else { @@ -499,13 +500,13 @@ static int pk_load_font(DviParams *unused, DviFont *font) } } if(flag_byte != PK_POST) { - error(_("%s: unexpected end of file (no postamble)\n"), - font->fontname); + mdvi_error(_("%s: unexpected end of file (no postamble)\n"), + font->fontname); goto error; } while((flag_byte = fuget1(p)) != EOF) { if(flag_byte != PK_NOOP) { - error(_("invalid PK file! (junk in postamble)\n")); + mdvi_error(_("invalid PK file! (junk in postamble)\n")); goto error; } } @@ -522,7 +523,7 @@ static int pk_load_font(DviParams *unused, DviFont *font) return 0; badpk: - error(_("%s: File corrupted, or not a PK file\n"), font->fontname); + mdvi_error(_("%s: File corrupted, or not a PK file\n"), font->fontname); error: mdvi_free(font->chars); font->chars = NULL;