[FFmpeg-devel] [PATCH 4/8] avcodec/aacps_tablegen_template: replace #define by typedef

Ganesh Ajjanagadde gajjanagadde at gmail.com
Wed Nov 25 02:42:07 CET 2015


On Sat, Nov 21, 2015 at 5:58 PM, Ganesh Ajjanagadde
<gajjanagadde at gmail.com> wrote:
> On Thu, Nov 19, 2015 at 8:14 AM, Ganesh Ajjanagadde
> <gajjanagadde at gmail.com> wrote:
>>
>> See e.g https://stackoverflow.com/questions/1666353/are-typedef-and-define-the-same-in-c
>> for rationale.
>>
>> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
>> ---
>>  libavcodec/aacps_tablegen_template.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/libavcodec/aacps_tablegen_template.c b/libavcodec/aacps_tablegen_template.c
>> index e06ec91..341bd44 100644
>> --- a/libavcodec/aacps_tablegen_template.c
>> +++ b/libavcodec/aacps_tablegen_template.c
>> @@ -26,13 +26,13 @@
>>
>>  #if USE_FIXED
>>  #define TYPE_NAME "int32_t"
>> -#define INT32FLOAT int32_t
>> +typedef int32_t INT32FLOAT;
>>  #define ARRAY_RENAME(x) write_int32_t_ ## x
>>  #define ARRAY_URENAME(x) write_uint32_t_ ## x
>>  #include "aacps_fixed_tablegen.h"
>>  #else
>>  #define TYPE_NAME "float"
>> -#define INT32FLOAT float
>> +typedef float INT32FLOAT;
>>  #define ARRAY_RENAME(x) write_float_ ## x
>>  #define ARRAY_URENAME(x) write_float_ ## x
>>  #include "aacps_tablegen.h"
>> --
>> 2.6.2
>>
>
> ping for the aac maintainers

pushed


More information about the ffmpeg-devel mailing list