Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8baaa16

Browse files
committed
Fix solaris builds where "putchar" is a macro.
svn path=/branches/v0_98_5_maint/; revision=7072
1 parent 07ef0ff commit 8baaa16

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

ttconv/pprdrv.h

Lines changed: 1 addition & 1 deletion
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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -482,20 +482,20 @@ void sfnts_pputBYTE(TTStreamWriter& stream, BYTE n)
482482

483483
if(!in_string)
484484
{
485-
stream.putchar('<');
485+
stream.put_char('<');
486486
string_len=0;
487487
line_len++;
488488
in_string=TRUE;
489489
}
490490

491-
stream.putchar( hexdigits[ n / 16 ] );
492-
stream.putchar( hexdigits[ n % 16 ] );
491+
stream.put_char( hexdigits[ n / 16 ] );
492+
stream.put_char( hexdigits[ n % 16 ] );
493493
string_len++;
494494
line_len+=2;
495495

496496
if(line_len > 70)
497497
{
498-
stream.putchar('\n');
498+
stream.put_char('\n');
499499
line_len=0;
500500
}
501501

@@ -548,7 +548,7 @@ void sfnts_end_string(TTStreamWriter& stream)
548548
#endif
549549

550550
sfnts_pputBYTE(stream, 0); /* extra byte for pre-2013 compatibility */
551-
stream.putchar('>');
551+
stream.put_char('>');
552552
line_len++;
553553
}
554554
in_string=FALSE;
@@ -955,7 +955,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
955955
/* a BuildGlyph and BuildChar proceedures. */
956956
if( font->target_type == PS_TYPE_3 )
957957
{
958-
stream.putchar('\n');
958+
stream.put_char('\n');
959959

960960
stream.putline("/BuildGlyph");
961961
stream.putline(" {exch begin"); /* start font dictionary */
@@ -964,7 +964,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
964964
stream.putline(" true 3 1 roll get exec");
965965
stream.putline(" end}_d");
966966

967-
stream.putchar('\n');
967+
stream.put_char('\n');
968968

969969
/* This proceedure is for compatiblity with */
970970
/* level 1 interpreters. */
@@ -973,7 +973,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
973973
stream.putline(" 1 index /BuildGlyph get exec");
974974
stream.putline("}_d");
975975

976-
stream.putchar('\n');
976+
stream.put_char('\n');
977977
}
978978

979979
/* If we are generating a type 42 font, we need to check to see */
@@ -985,7 +985,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
985985
/* setup instructions and part of BuildGlyph came from. */
986986
else if( font->target_type == PS_TYPE_42 )
987987
{
988-
stream.putchar('\n');
988+
stream.put_char('\n');
989989

990990
/* If we have no "resourcestatus" command, or FontType 42 */
991991
/* is unknown, leave "true" on the stack. */
@@ -1066,7 +1066,7 @@ void ttfont_trailer(TTStreamWriter& stream, struct TTFONT *font)
10661066
/* if the printer has no built-in TrueType */
10671067
/* rasterizer. */
10681068
stream.putline("}if");
1069-
stream.putchar('\n');
1069+
stream.put_char('\n');
10701070
} /* end of if Type 42 not understood. */
10711071

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

ttconv/pprdrv_tt2.cpp

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)