seems to make bogus code (but I'm not sure).
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vlc_common.h,v 1.103 2004/01/20 17:44:30 sam Exp $
+ * $Id: vlc_common.h,v 1.104 2004/01/24 20:40:46 fenrir Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
#define TAB_APPEND( count, tab, p ) \
if( (count) > 0 ) \
{ \
#define TAB_APPEND( count, tab, p ) \
if( (count) > 0 ) \
{ \
- (*(void **)(&tab)) = \
- realloc( tab, sizeof( void ** ) * ( (count) + 1 ) ); \
+ (void *)(tab) = realloc( tab, sizeof( void ** ) * ( (count) + 1 ) ); \
- (*(void **)(&tab)) = malloc( sizeof( void ** ) ); \
+ (void *)(tab) = malloc( sizeof( void ** ) ); \
} \
((void**)(tab))[count] = (void*)(p); \
(count)++
} \
((void**)(tab))[count] = (void*)(p); \
(count)++