diff options
author | Karl Berry <karl@freefriends.org> | 2010-11-14 18:48:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-11-14 18:48:51 +0000 |
commit | 7ca927555b90d86e452643c6619baec96fbcd55d (patch) | |
tree | 555bda7b0fe7886c02ecb3f012a916faee04fb87 /Build/source/texk/web2c | |
parent | c56d9b48ff89d5d1bd3951b95489391cd2cfcabb (diff) |
continuing formatting tweaks for writet1.c
git-svn-id: svn://tug.org/texlive/trunk@20437 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/writet1.c | 24 |
2 files changed, 17 insertions, 11 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog index be1768fc5a7..a592d93f0c2 100644 --- a/Build/source/texk/web2c/pdftexdir/ChangeLog +++ b/Build/source/texk/web2c/pdftexdir/ChangeLog @@ -1,3 +1,7 @@ +2010-11-14 Karl Berry <karl@tug.org> + + * writet1.c: endless formatting tweaks. + 2010-11-12 Peter Breitenlohner <peb@mppmu.mpg.de> * writet1.c (load_enc_file): Bug fix (using glyph_names[256]). diff --git a/Build/source/texk/web2c/pdftexdir/writet1.c b/Build/source/texk/web2c/pdftexdir/writet1.c index 51f9b0a68c5..37394e3d363 100644 --- a/Build/source/texk/web2c/pdftexdir/writet1.c +++ b/Build/source/texk/web2c/pdftexdir/writet1.c @@ -1,8 +1,6 @@ /* Copyright 1996-2007, 2009-2010 Han The Thanh <thanh@pdftex.org> -This file is part of pdfTeX. - 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 the Free Software Foundation; either version 2 of the License, or @@ -250,7 +248,8 @@ char **load_enc_file(char *enc_name) enc_getline(); if (*enc_line != '/' || (r = strchr(enc_line, '[')) == NULL) { remove_eol(r, enc_line); - pdftex_fail("invalid encoding vector (a name or `[' missing): `%s'", enc_line); + pdftex_fail + ("invalid encoding vector (a name or `[' missing): `%s'", enc_line); } names_count = 0; r++; /* skip '[' */ @@ -272,7 +271,8 @@ char **load_enc_file(char *enc_name) goto done; else { remove_eol(r, enc_line); - pdftex_fail("invalid encoding vector: a name or `] def' expected: `%s'", enc_line); + pdftex_fail + ("invalid encoding vector: a name or `] def' expected: `%s'", enc_line); } } enc_getline(); @@ -835,8 +835,8 @@ static char **t1_builtin_enc(void) break; else { remove_eol(r, t1_line_array); - pdftex_fail("a name or `] def' or `] readonly def' expected: `%s'", - t1_line_array); + pdftex_fail + ("a name or `] def' or `] readonly def' expected: `%s'", t1_line_array); } } t1_getline(); @@ -1355,7 +1355,8 @@ static void t1_subset_ascii_part(void) if (t1_encoding == ENC_STANDARD) t1_puts("/Encoding StandardEncoding def\n"); else { - t1_puts("/Encoding 256 array\n0 1 255 {1 index exch /.notdef put} for\n"); + t1_puts + ("/Encoding 256 array\n0 1 255 {1 index exch /.notdef put} for\n"); gl_tree = create_t1_glyph_tree(glyph_names); avl_t_init(&t, fd_cur->gl_tree); j = 0; @@ -1529,7 +1530,8 @@ static void t1_flush_cs(boolean is_subr) for (ptr = tab; ptr < end_tab; ptr++) { if (ptr->used) { if (is_subr) - sprintf(t1_line_array, "dup %lu %u", (unsigned long) (ptr - tab), ptr->cslen); + sprintf(t1_line_array, "dup %lu %u", + (unsigned long) (ptr - tab), ptr->cslen); else sprintf(t1_line_array, "/%s %u", ptr->name, ptr->cslen); p = strend(t1_line_array); @@ -1539,8 +1541,8 @@ static void t1_flush_cs(boolean is_subr) } else { /* replace unsused subr's by return_cs */ if (is_subr) { - sprintf(t1_line_array, "dup %lu %u%s ", (unsigned long) (ptr - tab), cs_len, - cs_token_pair[0]); + sprintf(t1_line_array, "dup %lu %u%s ", + (unsigned long) (ptr - tab), cs_len, cs_token_pair[0]); p = strend(t1_line_array); memcpy(p, return_cs, cs_len); t1_line_ptr = p + cs_len; @@ -1676,7 +1678,7 @@ static void t1_subset_end(void) get_length3(); } -void writet1(fd_entry * fd) +void writet1(fd_entry *fd) { fd_cur = fd; /* fd_cur is global inside writet1.c */ assert(fd_cur->fm != NULL); |