Changeset 33c764faa9be5935c51e28b937e9bb849bfd481b

Show
Ignore:
Timestamp:
01/24/04 21:40:46 (5 years ago)
Author:
Laurent Aimar <fenrir@videolan.org>
git-committer:
Laurent Aimar <fenrir@videolan.org> 1074976846 +0000
git-parent:

[9bbd9158ebdc42b945e84cab167a348fdc0282f4]

git-author:
Laurent Aimar <fenrir@videolan.org> 1074976846 +0000
Message:
  • vlc_common: changed TAB_APPEND. I have to do this because the old way
    seems to make bogus code (but I'm not sure).
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/vlc_common.h

    r9bb5174 r33c764f  
    44 ***************************************************************************** 
    55 * Copyright (C) 1998, 1999, 2000 VideoLAN 
    6  * $Id: vlc_common.h,v 1.103 2004/01/20 17:44:30 sam Exp $ 
     6 * $Id: vlc_common.h,v 1.104 2004/01/24 20:40:46 fenrir Exp $ 
    77 * 
    88 * Authors: Samuel Hocevar <sam@via.ecp.fr> 
     
    454454    if( (count) > 0 )                           \ 
    455455    {                                           \ 
    456         (*(void **)(&tab)) =                    \ 
    457             realloc( tab, sizeof( void ** ) * ( (count) + 1 ) ); \ 
     456        (void *)(tab) = realloc( tab, sizeof( void ** ) * ( (count) + 1 ) ); \ 
    458457    }                                           \ 
    459458    else                                        \ 
    460459    {                                           \ 
    461         (*(void **)(&tab)) = malloc( sizeof( void ** ) );    \ 
     460        (void *)(tab) = malloc( sizeof( void ** ) );    \ 
    462461    }                                           \ 
    463462    ((void**)(tab))[count] = (void*)(p);        \