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
dcabd054
Commit
dcabd054
authored
Aug 10, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/vlc_arrays.h: Compile fix for g++.
parent
9c86aabc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
include/vlc_arrays.h
include/vlc_arrays.h
+5
-4
No files found.
include/vlc_arrays.h
View file @
dcabd054
...
@@ -318,7 +318,7 @@ static void * const kVLCDictionaryNotFound = NULL;
...
@@ -318,7 +318,7 @@ static void * const kVLCDictionaryNotFound = NULL;
static
inline
void
vlc_dictionary_init
(
vlc_dictionary_t
*
p_dict
,
int
i_size
)
static
inline
void
vlc_dictionary_init
(
vlc_dictionary_t
*
p_dict
,
int
i_size
)
{
{
p_dict
->
p_entries
=
malloc
(
sizeof
(
struct
vlc_dictionary_entry_t
*
)
*
i_size
);
p_dict
->
p_entries
=
(
struct
vlc_dictionary_entry_t
**
)
malloc
(
sizeof
(
struct
vlc_dictionary_entry_t
*
)
*
i_size
);
assert
(
p_dict
->
p_entries
);
assert
(
p_dict
->
p_entries
);
memset
(
p_dict
->
p_entries
,
0
,
sizeof
(
struct
vlc_dictionary_entry_t
*
)
*
i_size
);
memset
(
p_dict
->
p_entries
,
0
,
sizeof
(
struct
vlc_dictionary_entry_t
*
)
*
i_size
);
p_dict
->
i_size
=
i_size
;
p_dict
->
i_size
=
i_size
;
...
@@ -385,7 +385,7 @@ vlc_dictionary_all_keys( const vlc_dictionary_t * p_dict )
...
@@ -385,7 +385,7 @@ vlc_dictionary_all_keys( const vlc_dictionary_t * p_dict )
char
**
ppsz_ret
;
char
**
ppsz_ret
;
int
i
,
count
=
vlc_dictionary_keys_count
(
p_dict
);
int
i
,
count
=
vlc_dictionary_keys_count
(
p_dict
);
ppsz_ret
=
malloc
(
sizeof
(
char
*
)
*
(
count
+
1
));
ppsz_ret
=
(
char
**
)
malloc
(
sizeof
(
char
*
)
*
(
count
+
1
));
assert
(
ppsz_ret
);
assert
(
ppsz_ret
);
count
=
0
;
count
=
0
;
...
@@ -410,7 +410,8 @@ __vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key,
...
@@ -410,7 +410,8 @@ __vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key,
if
(
!
p_entry
)
if
(
!
p_entry
)
{
{
p_entry
=
p_dict
->
p_entries
[
i_pos
]
=
malloc
(
sizeof
(
struct
vlc_dictionary_entry_t
));
p_entry
=
p_dict
->
p_entries
[
i_pos
]
=
(
struct
vlc_dictionary_entry_t
*
)
malloc
(
sizeof
(
struct
vlc_dictionary_entry_t
));
assert
(
p_entry
);
assert
(
p_entry
);
p_entry
->
psz_key
=
strdup
(
psz_key
);
p_entry
->
psz_key
=
strdup
(
psz_key
);
...
@@ -428,7 +429,7 @@ __vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key,
...
@@ -428,7 +429,7 @@ __vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key,
}
}
/* Hash collision here */
/* Hash collision here */
p_entry
=
malloc
(
sizeof
(
struct
vlc_dictionary_entry_t
));
p_entry
=
(
struct
vlc_dictionary_entry_t
*
)
malloc
(
sizeof
(
struct
vlc_dictionary_entry_t
));
assert
(
p_entry
);
assert
(
p_entry
);
p_entry
->
psz_key
=
strdup
(
psz_key
);
p_entry
->
psz_key
=
strdup
(
psz_key
);
p_entry
->
p_value
=
p_value
;
p_entry
->
p_value
=
p_value
;
...
...
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