8000 Use C++ true/false in ttconv. (#16088) · matplotlib/matplotlib@b459bc7 · GitHub
[go: up one dir, main page]

Skip to content

Commit b459bc7

Browse files
authored
Use C++ true/false in ttconv. (#16088)
Use C++ true/false in ttconv.
2 parents bc04c8a + 634c6f0 commit b459bc7

File tree

4 files changed

+5
-49
lines changed

4 files changed

+5
-49
lines changed

extern/ttconv/global_defines.h

Lines changed: 0 additions & 41 deletions
This file was deleted.

extern/ttconv/pprdrv_tt.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
** Last revised 19 December 1995.
2525
*/
2626

27-
#include "global_defines.h"
2827
#include <cstdio>
2928
#include <cstdlib>
3029
#include <cstring>
@@ -130,7 +129,7 @@ BYTE *GetTable(struct TTFONT *font, const char *name)
130129
/* We must search the table directory. */
131130
ptr = font->offset_table + 12;
132131
x=0;
133-
while (TRUE)
132+
while (true)
134133
{
135134
if ( strncmp((const char*)ptr,name,4) == 0 )
136135
{
@@ -559,15 +558,15 @@ void ttfont_FontInfo(TTStreamWriter& stream, struct TTFONT *font)
559558
-------------------------------------------------------------------*/
560559
int string_len;
561560
int line_len;
562-
int in_string;
561+
bool in_string;
563562

564563
/*
565564
** This is called once at the start.
566565
*/
567566
void sfnts_start(TTStreamWriter& stream)
568567
{
569568
stream.puts("/sfnts[<");
570-
in_string=TRUE;
569+
in_string=true;
571570
string_len=0;
572571
line_len=8;
573572
} /* end of sfnts_start() */
@@ -584,7 +583,7 @@ void sfnts_pputBYTE(TTStreamWriter& stream, BYTE n)
584583
stream.put_char('<');
585584
string_len=0;
586585
line_len++;
587-
in_string=TRUE;
586+
in_string=true;
588587
}
589588

590589
stream.put_char( hexdigits[ n / 16 ] );
@@ -650,7 +649,7 @@ void sfnts_end_string(TTStreamWriter& stream)
650649
stream.put_char('>');
651650
line_len++;
652651
}
653-
in_string=FALSE;
652+
in_string=false;
654653
} /* end of sfnts_end_string() */
655654

656655
/*

extern/ttconv/pprdrv_tt2.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
** Last revised 11 July 1995.
3333
*/
3434

35-
#include "global_defines.h"
3635
#include <cstdlib>
3736
#include <cmath>
3837
#include <cstring>

extern/ttconv/ttutil.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
/* Very simple interface to the ppr TT routines */
1010
/* (c) Frank Siegert 1996 */
1111

12-
#include "global_defines.h"
1312
#include <cstdio>
1413
#include <cstdarg>
1514
#include <cstdlib>

0 commit comments

Comments
 (0)
0