Skip to content

Commit 4748873

Browse files
committed
Merged revisions 7072 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v0_98_5_maint ........ r7072 | mdboom | 2009-04-30 09:27:04 -0400 (Thu, 30 Apr 2009) | 2 lines Fix solaris builds where "putchar" is a macro. ........ svn path=/trunk/matplotlib/; revision=7073
1 parent da5181d commit 4748873

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

ttconv/pprdrv.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class TTStreamWriter {
4040
virtual void write(const char*) = 0;
4141

4242
virtual void printf(const char* format, ...);
43-
virtual void putchar(int val);
43+
virtual void put_char(int val);
4444
virtual void puts(const char* a);
4545
virtual void putline(const char* a);
4646
};

ttconv/pprdrv_tt.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -495,20 +495,20 @@ void sfnts_pputBYTE(TTStreamWriter& stream, BYTE n)
495495

496496
if(!in_string)
497497
{
498-
stream.putchar('<');
498+
stream.put_char('<');
499499
string_len=0;
500500
line_len++;
501501
in_string=TRUE;
502502
}
503503

504-
stream.putchar( hexdigits[ n / 16 ] );
505-
stream.putchar( hexdigits[ n % 16 ] );
504+
stream.put_char( hexdigits[ n / 16 ] );
505+
stream.put_char( hexdigits[ n % 16 ] );
506506
string_len++;
507507
line_len+=2;
508508

509509
if(line_len > 70)
510510
{
511-
stream.putchar('\n');
511+
stream.put_char('\n');
512512
line_len=0;
513513
}
514514

@@ -561,7 +561,7 @@ void sfnts_end_string(TTStreamWriter& stream)
561561
#endif
562562

563563
sfnts_pputBYTE(stream, 0); /* extra byte for pre-2013 compatibility */
564-
stream.putchar('>');
564+
stream.put_char('>');
565565
line_len++;
566566
}
567567
in_string=FALSE;
@@ -968,7 +968,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
968968
/* a BuildGlyph and BuildChar proceedures. */
969969
if( font->target_type == PS_TYPE_3 )
970970
{
971-
stream.putchar('\n');
971+
stream.put_char('\n');
972972

973973
stream.putline("/BuildGlyph");
974974
stream.putline(" {exch begin"); /* start font dictionary */
@@ -977,7 +977,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
977977
stream.putline(" true 3 1 roll get exec");
978978
stream.putline(" end}_d");
979979

980-
stream.putchar('\n');
980+
stream.put_char('\n');
981981

982982
/* This proceedure is for compatiblity with */
983983
/* level 1 interpreters. */
@@ -986,7 +986,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
986986
stream.putline(" 1 index /BuildGlyph get exec");
987987
stream.putline("}_d");
988988

989-
stream.putchar('\n');
989+
stream.put_char('\n');
990990
}
991991

992992
/* If we are generating a type 42 font, we need to check to see */
@@ -998,7 +998,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
998998
/* setup instructions and part of BuildGlyph came from. */
999999
else if( font->target_type == PS_TYPE_42 )
10001000
{
1001-
stream.putchar('\n');
1001+
stream.put_char('\n');
10021002

10031003
/* If we have no "resourcestatus" command, or FontType 42 */
10041004
/* is unknown, leave "true" on the stack. */
@@ -1079,7 +1079,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
10791079
/* if the printer has no built-in TrueType */
10801080
/* rasterizer. */
10811081
stream.putline("}if");
1082-
stream.putchar('\n');
1082+
stream.put_char('\n');
10831083
} /* end of if Type 42 not understood. */
10841084

10851085
stream.putline("FontName currentdict end definefont pop");

ttconv/pprdrv_tt2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void GlyphToType3::stack(TTStreamWriter& stream, int new_elem)
104104
{ /* have a log of points. */
105105
if(stack_depth == 0)
106106
{
107-
stream.putchar('{');
107+
stream.put_char('{');
108108
stack_depth=1;
109109
}
110110

ttconv/ttutil.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void TTStreamWriter::printf(const char* format, ...)
5252
va_end(arg_list);
5353
}
5454

55-
void TTStreamWriter::putchar(int val)
55+
void TTStreamWriter::put_char(int val)
5656
{
5757
char c[2];
5858
c[0] = (char)val;

0 commit comments

Comments
 (0)