From 5cfe15c7f6bcd460bcee2a73e3dbf191129e651e Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 25 Mar 2002 16:35:13 +0000 Subject: [PATCH] formatting --- include/freetype/internal/ftmemory.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/freetype/internal/ftmemory.h b/include/freetype/internal/ftmemory.h index b68871a88..a4b40b47d 100644 --- a/include/freetype/internal/ftmemory.h +++ b/include/freetype/internal/ftmemory.h @@ -230,7 +230,7 @@ FT_BEGIN_HEADER #define FT_MEM_NEW_ARRAY( _pointer_, _count_ ) \ FT_MEM_ALLOC( _pointer_, (_count_)*sizeof(*(_pointer_)) ) -#define FT_MEM_RENEW_ARRAY( _pointer_, _old_, _new_ ) \ +#define FT_MEM_RENEW_ARRAY( _pointer_, _old_, _new_ ) \ FT_MEM_REALLOC( _pointer_, (_old_)*sizeof(*(_pointer_)), \ (_new_)*sizeof(*(_pointer_)) ) @@ -243,8 +243,8 @@ FT_BEGIN_HEADER #define FT_MEM_ALLOC_ARRAY( _pointer_, _count_, _type_ ) \ FT_MEM_ALLOC( _pointer_, (_count_)*sizeof(_type_) ) -#define FT_MEM_REALLOC_ARRAY( _pointer_, _current_, _new_, _type_ ) \ - FT_MEM_REALLOC( _pointer_, (_current_)*sizeof(_type), \ +#define FT_MEM_REALLOC_ARRAY( _pointer_, _old_, _new_, _type_ ) \ + FT_MEM_REALLOC( _pointer_, (_old_)*sizeof(_type), \ (_new_)*sizeof(_type_) ) @@ -270,21 +270,21 @@ FT_BEGIN_HEADER #define FT_NEW( _pointer_ ) \ FT_SET_ERROR( FT_MEM_NEW( _pointer_ ) ) -#define FT_RENEW_ARRAY( _pointer_, _current_, _new_ ) \ - FT_SET_ERROR( FT_MEM_RENEW_ARRAY( _pointer_, _current_, _new_ ) ) +#define FT_NEW_ARRAY( _pointer_, _count_ ) \ + FT_SET_ERROR( FT_MEM_NEW_ARRAY( _pointer_, _count_ ) ) + +#define FT_RENEW_ARRAY( _pointer_, _old_, _new_ ) \ + FT_SET_ERROR( FT_MEM_RENEW_ARRAY( _pointer_, _old_, _new_ ) ) #define FT_ALLOC_ARRAY( _pointer_, _count_, _type_ ) \ FT_SET_ERROR( FT_MEM_ALLOC( _pointer_, \ (_count_)*sizeof ( _type_ ) ) ) -#define FT_NEW_ARRAY( _pointer_, _count_ ) \ - FT_SET_ERROR( FT_MEM_NEW_ARRAY( _pointer_, _count_ ) ) - -#define FT_REALLOC_ARRAY( _pointer_, _current_, _count_, _type_ ) \ +#define FT_REALLOC_ARRAY( _pointer_, _old_, _new_, _type_ ) \ FT_SET_ERROR( FT_MEM_REALLOC( _pointer_, \ - (_current_)*sizeof ( _type_ ), \ - (_count_)*sizeof ( _type_ ) ) ) + (_old_)*sizeof ( _type_ ), \ + (_new_)*sizeof ( _type_ ) ) ) /* */ FT_END_HEADER