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

Skip to content

Use C++ true/false in ttconv. #16088

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions extern/ttconv/global_defines.h

This file was deleted.

11 changes: 5 additions & 6 deletions extern/ttconv/pprdrv_tt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
** Last revised 19 December 1995.
*/

#include "global_defines.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
Expand Down Expand Up @@ -130,7 +129,7 @@ BYTE *GetTable(struct TTFONT *font, const char *name)
/* We must search the table directory. */
ptr = font->offset_table + 12;
x=0;
while (TRUE)
while (true)
{
if ( strncmp((const char*)ptr,name,4) == 0 )
{
Expand Down Expand Up @@ -559,15 +558,15 @@ void ttfont_FontInfo(TTStreamWriter& stream, struct TTFONT *font)
-------------------------------------------------------------------*/
int string_len;
int line_len;
int in_string;
bool in_string;

/*
** This is called once at the start.
*/
void sfnts_start(TTStreamWriter& stream)
{
stream.puts("/sfnts[<");
in_string=TRUE;
in_string=true;
string_len=0;
line_len=8;
} /* end of sfnts_start() */
Expand All @@ -584,7 +583,7 @@ void sfnts_pputBYTE(TTStreamWriter& stream, BYTE n)
stream.put_char('<');
string_len=0;
line_len++;
in_string=TRUE;
in_string=true;
}

stream.put_char( hexdigits[ n / 16 ] );
Expand Down Expand Up @@ -650,7 +649,7 @@ void sfnts_end_string(TTStreamWriter& stream)
stream.put_char('>');
line_len++;
}
in_string=FALSE;
in_string=false;
} /* end of sfnts_end_string() */

/*
Expand Down
1 change: 0 additions & 1 deletion extern/ttconv/pprdrv_tt2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
** Last revised 11 July 1995.
*/

#include "global_defines.h"
#include <cstdlib>
#include <cmath>
#include <cstring>
Expand Down
1 change: 0 additions & 1 deletion extern/ttconv/ttutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
/* Very simple interface to the ppr TT routines */
/* (c) Frank Siegert 1996 */

#include "global_defines.h"
#include <cstdio>
#include <cstdarg>
#include <cstdlib>
Expand Down