Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
8b02394e
Commit
8b02394e
authored
Dec 06, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t* remove the dependence to cdefs.h
parent
b983946d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
12 deletions
+7
-12
compat/tdelete.c
compat/tdelete.c
+1
-2
compat/tdestroy.c
compat/tdestroy.c
+0
-1
compat/tfind.c
compat/tfind.c
+1
-2
compat/tsearch.c
compat/tsearch.c
+1
-2
compat/twalk.c
compat/twalk.c
+4
-5
No files found.
compat/tdelete.c
View file @
8b02394e
...
...
@@ -17,7 +17,6 @@
# include <config.h>
#endif
#include <sys/cdefs.h>
#include <assert.h>
#include <stdlib.h>
...
...
@@ -26,7 +25,7 @@ void *
tdelete
(
vkey
,
vrootp
,
compar
)
const
void
*
vkey
;
/* key to be deleted */
void
**
vrootp
;
/* address of the root of tree */
int
(
*
compar
)
__P
((
const
void
*
,
const
void
*
)
);
int
(
*
compar
)
(
const
void
*
,
const
void
*
);
{
node_t
**
rootp
=
(
node_t
**
)
vrootp
;
node_t
*
p
,
*
q
,
*
r
;
...
...
compat/tdestroy.c
View file @
8b02394e
...
...
@@ -20,7 +20,6 @@
// Do not implement tdestroy if that's the only missing t* function
#ifndef HAVE_SEARCH_H
#include <sys/cdefs.h>
#include <assert.h>
#include <stdlib.h>
...
...
compat/tfind.c
View file @
8b02394e
...
...
@@ -17,7 +17,6 @@
# include <config.h>
#endif
#include <sys/cdefs.h>
#include <assert.h>
#include <stdlib.h>
...
...
@@ -26,7 +25,7 @@ void *
tfind
(
vkey
,
vrootp
,
compar
)
const
void
*
vkey
;
/* key to be found */
const
void
**
vrootp
;
/* address of the tree root */
int
(
*
compar
)
__P
((
const
void
*
,
const
void
*
)
);
int
(
*
compar
)
(
const
void
*
,
const
void
*
);
{
node_t
*
const
*
rootp
=
(
node_t
*
const
*
)
vrootp
;
...
...
compat/tsearch.c
View file @
8b02394e
...
...
@@ -17,7 +17,6 @@
# include <config.h>
#endif
#include <sys/cdefs.h>
#include <assert.h>
#include <stdlib.h>
...
...
@@ -26,7 +25,7 @@ void *
tsearch
(
vkey
,
vrootp
,
compar
)
const
void
*
vkey
;
/* key to be located */
void
**
vrootp
;
/* address of tree root */
int
(
*
compar
)
__P
((
const
void
*
,
const
void
*
)
);
int
(
*
compar
)
(
const
void
*
,
const
void
*
);
{
node_t
*
q
;
node_t
**
rootp
=
(
node_t
**
)
vrootp
;
...
...
compat/twalk.c
View file @
8b02394e
...
...
@@ -17,18 +17,17 @@
# include <config.h>
#endif
#include <sys/cdefs.h>
#include <assert.h>
#include <stdlib.h>
static
void
trecurse
__P
(
(
const
node_t
*
,
void
(
*
action
)(
const
void
*
,
VISIT
,
int
),
int
level
)
)
;
static
void
trecurse
(
const
node_t
*
,
void
(
*
action
)(
const
void
*
,
VISIT
,
int
),
int
level
);
/* Walk the nodes of a tree */
static
void
trecurse
(
root
,
action
,
level
)
const
node_t
*
root
;
/* Root of the tree to be walked */
void
(
*
action
)
__P
((
const
void
*
,
VISIT
,
int
)
);
void
(
*
action
)
(
const
void
*
,
VISIT
,
int
);
int
level
;
{
assert
(
root
!=
NULL
);
...
...
@@ -51,7 +50,7 @@ trecurse(root, action, level)
void
twalk
(
vroot
,
action
)
const
void
*
vroot
;
/* Root of the tree to be walked */
void
(
*
action
)
__P
((
const
void
*
,
VISIT
,
int
)
);
void
(
*
action
)
(
const
void
*
,
VISIT
,
int
);
{
if
(
vroot
!=
NULL
&&
action
!=
NULL
)
trecurse
(
vroot
,
action
,
0
);
...
...
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