Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jean-Baptiste Kempf
VLC
Commits
900ea6ff
Commit
900ea6ff
authored
16 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
Do not use assert in public headers
parent
e5fcb7ff
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/vlc_access.h
+0
-1
0 additions, 1 deletion
include/vlc_access.h
include/vlc_arrays.h
+0
-9
0 additions, 9 deletions
include/vlc_arrays.h
with
0 additions
and
10 deletions
include/vlc_access.h
+
0
−
1
View file @
900ea6ff
...
...
@@ -120,7 +120,6 @@ struct access_t
static
inline
int
access_vaControl
(
access_t
*
p_access
,
int
i_query
,
va_list
args
)
{
if
(
!
p_access
)
return
VLC_EGENERIC
;
assert
(
p_access
->
pf_control
);
return
p_access
->
pf_control
(
p_access
,
i_query
,
args
);
}
...
...
This diff is collapsed.
Click to expand it.
include/vlc_arrays.h
+
0
−
9
View file @
900ea6ff
...
...
@@ -28,8 +28,6 @@
#ifndef _VLC_ARRAYS_H_
#define _VLC_ARRAYS_H_
#include
<assert.h>
/**
* Simple dynamic array handling. Array is realloced at each insert/removal
*/
...
...
@@ -192,7 +190,6 @@
array.i_alloc = newsize; \
array.p_elems = VLCCVP realloc( array.p_elems, array.i_alloc * \
sizeof(*array.p_elems) ); \
assert(array.p_elems); \
}
#define _ARRAY_GROW1(array) { \
...
...
@@ -419,7 +416,6 @@ static inline void vlc_dictionary_init( vlc_dictionary_t * p_dict, int i_size )
if
(
i_size
>
0
)
{
p_dict
->
p_entries
=
(
struct
vlc_dictionary_entry_t
**
)
malloc
(
sizeof
(
struct
vlc_dictionary_entry_t
*
)
*
i_size
);
assert
(
p_dict
->
p_entries
);
memset
(
p_dict
->
p_entries
,
0
,
sizeof
(
struct
vlc_dictionary_entry_t
*
)
*
i_size
);
}
else
...
...
@@ -497,16 +493,12 @@ vlc_dictionary_all_keys( const vlc_dictionary_t * p_dict )
int
i
,
count
=
vlc_dictionary_keys_count
(
p_dict
);
ppsz_ret
=
(
char
**
)
malloc
(
sizeof
(
char
*
)
*
(
count
+
1
));
assert
(
ppsz_ret
);
count
=
0
;
for
(
i
=
0
;
i
<
p_dict
->
i_size
;
i
++
)
{
for
(
p_entry
=
p_dict
->
p_entries
[
i
];
p_entry
;
p_entry
=
p_entry
->
p_next
)
{
ppsz_ret
[
count
++
]
=
strdup
(
p_entry
->
psz_key
);
assert
(
ppsz_ret
);
}
}
ppsz_ret
[
count
]
=
NULL
;
return
ppsz_ret
;
...
...
@@ -523,7 +515,6 @@ __vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key,
struct
vlc_dictionary_entry_t
*
p_entry
;
p_entry
=
(
struct
vlc_dictionary_entry_t
*
)
malloc
(
sizeof
(
struct
vlc_dictionary_entry_t
));
assert
(
p_entry
);
p_entry
->
psz_key
=
strdup
(
psz_key
);
p_entry
->
p_value
=
p_value
;
p_entry
->
p_next
=
p_dict
->
p_entries
[
i_pos
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment