File tree Expand file tree Collapse file tree 6 files changed +18
-10
lines changed Expand file tree Collapse file tree 6 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 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+
192015-06-22 Werner Lemberg <wl@gnu.org>
210
311 Fix Savannah bug #45097.
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments