Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
cca686f8
Commit
cca686f8
authored
May 12, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* include/vlc_common.h: small change to shut-up some memory checkers.
parent
0e7b380a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
include/vlc_common.h
include/vlc_common.h
+13
-7
No files found.
include/vlc_common.h
View file @
cca686f8
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
* Collection of useful common types and macros definitions
*****************************************************************************
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vlc_common.h,v 1.6
2 2003/04/16 11:47:08
gbazin Exp $
* $Id: vlc_common.h,v 1.6
3 2003/05/12 19:11:53
gbazin Exp $
*
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
@@ -384,9 +384,12 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
...
@@ -384,9 +384,12 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
{ \
{ \
(p_ar) = malloc( ((i_oldsize) + 1) * sizeof( *(p_ar) ) ); \
(p_ar) = malloc( ((i_oldsize) + 1) * sizeof( *(p_ar) ) ); \
} \
} \
memmove( (p_ar) + (i_pos) + 1, \
if( (i_oldsize) - (i_pos) ) \
(p_ar) + (i_pos), \
{ \
((i_oldsize) - (i_pos)) * sizeof( *(p_ar) ) ); \
memmove( (p_ar) + (i_pos) + 1, \
(p_ar) + (i_pos), \
((i_oldsize) - (i_pos)) * sizeof( *(p_ar) ) ); \
} \
(p_ar)[i_pos] = elem; \
(p_ar)[i_pos] = elem; \
(i_oldsize)++; \
(i_oldsize)++; \
} \
} \
...
@@ -395,9 +398,12 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
...
@@ -395,9 +398,12 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
#define REMOVE_ELEM( p_ar, i_oldsize, i_pos ) \
#define REMOVE_ELEM( p_ar, i_oldsize, i_pos ) \
do \
do \
{ \
{ \
memmove( (p_ar) + (i_pos), \
if( (i_oldsize) - (i_pos) - 1 ) \
(p_ar) + (i_pos) + 1, \
{ \
((i_oldsize) - (i_pos) - 1) * sizeof( *(p_ar) ) ); \
memmove( (p_ar) + (i_pos), \
(p_ar) + (i_pos) + 1, \
((i_oldsize) - (i_pos) - 1) * sizeof( *(p_ar) ) ); \
} \
if( i_oldsize > 1 ) \
if( i_oldsize > 1 ) \
{ \
{ \
(p_ar) = realloc( p_ar, ((i_oldsize) - 1) * sizeof( *(p_ar) ) ); \
(p_ar) = realloc( p_ar, ((i_oldsize) - 1) * sizeof( *(p_ar) ) ); \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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