Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
4d62902d
Commit
4d62902d
authored
Oct 31, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused macros (or used only one time).
parent
4e626b7f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
16 deletions
+12
-16
include/vlc_common.h
include/vlc_common.h
+0
-8
src/input/item.c
src/input/item.c
+3
-1
src/interface/interaction.c
src/interface/interaction.c
+6
-6
src/playlist/item.c
src/playlist/item.c
+3
-1
No files found.
include/vlc_common.h
View file @
4d62902d
...
@@ -610,14 +610,6 @@ static inline uint8_t clip_uint8_vlc( int32_t a )
...
@@ -610,14 +610,6 @@ static inline uint8_t clip_uint8_vlc( int32_t a )
if( !var ) return NULL; } while(0)
if( !var ) return NULL; } while(0)
#define MALLOC_ERR( var, type ) do { var = (type*)malloc( sizeof( type) ); \
#define MALLOC_ERR( var, type ) do { var = (type*)malloc( sizeof( type) ); \
if( !var ) return VLC_ENOMEM; } while(0)
if( !var ) return VLC_ENOMEM; } while(0)
#define MALLOC_GOTOERR( var, type ) do { var = (type*)malloc( sizeof( type) ); \
if( !var ) goto error; } while(0)
#define DECMALLOC_VOID( var, type ) type* var = (type*)malloc( sizeof(type) );\
if( !var ) return;
#define DECMALLOC_ERR( var, type ) type* var = (type*)malloc( sizeof(type) );\
if( !var ) return VLC_ENOMEM;
#define DECMALLOC_NULL( var, type ) type* var = (type*)malloc( sizeof(type) );\
if( !var ) return NULL;
#define FREENULL(a) do { free( a ); a = NULL; } while(0)
#define FREENULL(a) do { free( a ); a = NULL; } while(0)
...
...
src/input/item.c
View file @
4d62902d
...
@@ -496,7 +496,9 @@ input_item_t *input_item_NewWithType( vlc_object_t *p_obj, const char *psz_uri,
...
@@ -496,7 +496,9 @@ input_item_t *input_item_NewWithType( vlc_object_t *p_obj, const char *psz_uri,
{
{
libvlc_priv_t
*
priv
=
libvlc_priv
(
p_obj
->
p_libvlc
);
libvlc_priv_t
*
priv
=
libvlc_priv
(
p_obj
->
p_libvlc
);
DECMALLOC_NULL
(
p_input
,
input_item_t
);
input_item_t
*
p_input
=
malloc
(
sizeof
(
input_item_t
)
);
if
(
!
p_input
)
return
NULL
;
input_item_Init
(
p_obj
,
p_input
);
input_item_Init
(
p_obj
,
p_input
);
vlc_gc_init
(
p_input
,
input_item_Destroy
);
vlc_gc_init
(
p_input
,
input_item_Destroy
);
...
...
src/interface/interaction.c
View file @
4d62902d
...
@@ -56,13 +56,13 @@ static void DialogDestroy( interaction_dialog_t * );
...
@@ -56,13 +56,13 @@ static void DialogDestroy( interaction_dialog_t * );
static
int
DialogSend
(
vlc_object_t
*
,
interaction_dialog_t
*
);
static
int
DialogSend
(
vlc_object_t
*
,
interaction_dialog_t
*
);
#define DIALOG_INIT( type ) \
#define DIALOG_INIT( type ) \
DECMALLOC_ERR( p_new, interaction_dialog_t );
\
interaction_dialog_t* p_new = calloc( 1, sizeof( interaction_dialog_t ) );
\
memset( p_new, 0, sizeof( interaction_dialog_t ) );
\
if( !p_new ) return VLC_EGENERIC;
\
p_new->b_cancelled = false; \
p_new->b_cancelled = false; \
p_new->i_status = NEW_DIALOG;
\
p_new->i_status = NEW_DIALOG; \
p_new->i_flags = 0;
\
p_new->i_flags = 0; \
p_new->i_type = INTERACT_DIALOG_##type;
\
p_new->i_type = INTERACT_DIALOG_##type; \
p_new->psz_returned[0] = NULL;
\
p_new->psz_returned[0] = NULL; \
p_new->psz_returned[1] = NULL
p_new->psz_returned[1] = NULL
#define FORMAT_DESC \
#define FORMAT_DESC \
...
...
src/playlist/item.c
View file @
4d62902d
...
@@ -161,7 +161,9 @@ static void uninstall_input_item_observer( playlist_item_t * p_item )
...
@@ -161,7 +161,9 @@ static void uninstall_input_item_observer( playlist_item_t * p_item )
playlist_item_t
*
playlist_ItemNewFromInput
(
playlist_t
*
p_playlist
,
playlist_item_t
*
playlist_ItemNewFromInput
(
playlist_t
*
p_playlist
,
input_item_t
*
p_input
)
input_item_t
*
p_input
)
{
{
DECMALLOC_NULL
(
p_item
,
playlist_item_t
);
playlist_item_t
*
p_item
=
malloc
(
sizeof
(
playlist_item_t
)
);
if
(
!
p_item
)
return
NULL
;
assert
(
p_input
);
assert
(
p_input
);
...
...
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