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
1488ac13
Commit
1488ac13
authored
Aug 09, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/vlc_arrays.h: Fix previous commit compilation with g++.
parent
64a70c8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
include/vlc_arrays.h
include/vlc_arrays.h
+4
-2
No files found.
include/vlc_arrays.h
View file @
1488ac13
...
@@ -185,6 +185,8 @@
...
@@ -185,6 +185,8 @@
* Dictionaries
* Dictionaries
************************************************************************/
************************************************************************/
extern
"C"
{
/* This function is not intended to be crypto-secure, we only want it to be
/* This function is not intended to be crypto-secure, we only want it to be
* fast and not suck too much. This one is pretty fast and did 0 collisions
* fast and not suck too much. This one is pretty fast and did 0 collisions
* in wenglish's dictionary.
* in wenglish's dictionary.
...
@@ -306,7 +308,7 @@ vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key, void * p
...
@@ -306,7 +308,7 @@ vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key, void * p
i_new
=
i_low
;
i_new
=
i_low
;
}
}
p_dict
->
p_entries
=
realloc
(
p_dict
->
p_entries
,
(
p_dict
->
i_entries
+
1
)
*
p_dict
->
p_entries
=
realloc
(
p_dict
->
p_entries
,
(
p_dict
->
i_entries
+
1
)
*
sizeof
(
struct
vlc_dictionary_entries_t
)
);
sizeof
(
struct
vlc_dictionary_entries_t
)
);
p_dict
->
i_entries
++
;
p_dict
->
i_entries
++
;
if
(
i_new
!=
p_dict
->
i_entries
-
1
)
if
(
i_new
!=
p_dict
->
i_entries
-
1
)
{
{
...
@@ -320,7 +322,7 @@ vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key, void * p
...
@@ -320,7 +322,7 @@ vlc_dictionary_insert( vlc_dictionary_t * p_dict, const char * psz_key, void * p
p_dict
->
p_entries
[
i_new
].
p_value
=
p_value
;
p_dict
->
p_entries
[
i_new
].
p_value
=
p_value
;
}
}
}
/* extern "C" */
/************************************************************************
/************************************************************************
* Dynamic arrays with progressive allocation
* Dynamic arrays with progressive allocation
************************************************************************/
************************************************************************/
...
...
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