Skip to content

Commit 5931268

Browse files
committed
s/TYPEOF/FT_TYPEOF/ (#45376).
* builds/unix/ftconfig.in, builds/vms/ftconfig.in, include/freetype2/config/ftconfig.h, include/freetype2/internal/ftobjs.h, src/autofit/afwarp.h: Do it.
1 parent 75a9410 commit 5931268

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2015-06-23 Werner Lemberg <wl@gnu.org>
2+
3+
s/TYPEOF/FT_TYPEOF/ (#45376).
4+
5+
* builds/unix/ftconfig.in, builds/vms/ftconfig.in,
6+
include/freetype2/config/ftconfig.h,
7+
include/freetype2/internal/ftobjs.h, src/autofit/afwarp.h: Do it.
8+
19
2015-06-22 Werner Lemberg <wl@gnu.org>
210

311
Fix Savannah bug #45097.

builds/unix/ftconfig.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ FT_BEGIN_HEADER
365365
#if ( __GNUC__ >= 2 || \
366366
defined( __IBM__TYPEOF__ ) || \
367367
( __SUNPRO_C >= 0x5110 && !__STDC__ ) )
368-
#define TYPEOF( type ) (__typeof__ (type))
368+
#define FT_TYPEOF( type ) (__typeof__ (type))
369369
#else
370-
#define TYPEOF( type ) /* empty */
370+
#define FT_TYPEOF( type ) /* empty */
371371
#endif
372372

373373

builds/vms/ftconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ FT_BEGIN_HEADER
308308
#if ( __GNUC__ >= 2 || \
309309
defined( __IBM__TYPEOF__ ) || \
310310
( __SUNPRO_C >= 0x5110 && !__STDC__ ) )
311-
#define TYPEOF( type ) (__typeof__ (type))
311+
#define FT_TYPEOF( type ) (__typeof__ (type))
312312
#else
313-
#define TYPEOF( type ) /* empty */
313+
#define FT_TYPEOF( type ) /* empty */
314314
#endif
315315

316316

include/freetype2/config/ftconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ FT_BEGIN_HEADER
335335
#if ( __GNUC__ >= 2 || \
336336
defined( __IBM__TYPEOF__ ) || \
337337
( __SUNPRO_C >= 0x5110 && !__STDC__ ) )
338-
#define TYPEOF( type ) (__typeof__ (type))
338+
#define FT_TYPEOF( type ) (__typeof__ (type))
339339
#else
340-
#define TYPEOF( type ) /* empty */
340+
#define FT_TYPEOF( type ) /* empty */
341341
#endif
342342

343343

include/freetype2/internal/ftobjs.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ FT_BEGIN_HEADER
8383
x > y ? x + ( 3 * y >> 3 ) \
8484
: y + ( 3 * x >> 3 ) )
8585

86-
/* we use the TYPEOF macro to suppress signedness compilation warnings */
87-
#define FT_PAD_FLOOR( x, n ) ( (x) & ~TYPEOF( x )( (n)-1 ) )
86+
/* we use FT_TYPEOF to suppress signedness compilation warnings */
87+
#define FT_PAD_FLOOR( x, n ) ( (x) & ~FT_TYPEOF( x )( (n)-1 ) )
8888
#define FT_PAD_ROUND( x, n ) FT_PAD_FLOOR( (x) + ((n)/2), n )
8989
#define FT_PAD_CEIL( x, n ) FT_PAD_FLOOR( (x) + ((n)-1), n )
9090

91-
#define FT_PIX_FLOOR( x ) ( (x) & ~TYPEOF( x )63 )
91+
#define FT_PIX_FLOOR( x ) ( (x) & ~FT_TYPEOF( x )63 )
9292
#define FT_PIX_ROUND( x ) FT_PIX_FLOOR( (x) + 32 )
9393
#define FT_PIX_CEIL( x ) FT_PIX_FLOOR( (x) + 63 )
9494

src/autofit/afwarp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ FT_BEGIN_HEADER
2525

2626
#define AF_WARPER_SCALE
2727

28-
#define AF_WARPER_FLOOR( x ) ( (x) & ~TYPEOF( x )63 )
28+
#define AF_WARPER_FLOOR( x ) ( (x) & ~FT_TYPEOF( x )63 )
2929
#define AF_WARPER_CEIL( x ) AF_WARPER_FLOOR( (x) + 63 )
3030

3131

0 commit comments

Comments
 (0)