Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
33c764fa
Commit
33c764fa
authored
Jan 24, 2004
by
Laurent Aimar
Browse files
* vlc_common: changed TAB_APPEND. I have to do this because the old way
seems to make bogus code (but I'm not sure).
parent
9bbd9158
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/vlc_common.h
View file @
33c764fa
...
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vlc_common.h,v 1.10
3
2004/01/2
0 17:44:30 sam
Exp $
* $Id: vlc_common.h,v 1.10
4
2004/01/2
4 20:40:46 fenrir
Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
...
@@ -453,12 +453,11 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
#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 ) ); \
} \
else \
{ \
(*
(void
*
*)(
&
tab)
)
= malloc( sizeof( void ** ) ); \
(void *)(tab) = malloc( sizeof( void ** ) ); \
} \
((void**)(tab))[count] = (void*)(p); \
(count)++
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment