Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
102
Issues
102
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
0e533ac4
Commit
0e533ac4
authored
Dec 15, 2007
by
Karl Heyes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce wasted memory on 64bit systems, 32bit has no change
svn path=/icecast/trunk/avl/; revision=14308
parent
73401b80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/avl/avl.h
src/avl/avl.h
+4
-4
No files found.
src/avl/avl.h
View file @
0e533ac4
...
@@ -12,7 +12,7 @@ extern "C" {
...
@@ -12,7 +12,7 @@ extern "C" {
#endif
#endif
#ifndef NO_THREAD
#ifndef NO_THREAD
#include
<thread/thread.h>
#include
"thread/thread.h"
#else
#else
#define thread_rwlock_create(x) do{}while(0)
#define thread_rwlock_create(x) do{}while(0)
#define thread_rwlock_destroy(x) do{}while(0)
#define thread_rwlock_destroy(x) do{}while(0)
...
@@ -31,7 +31,7 @@ typedef struct avl_node_tag {
...
@@ -31,7 +31,7 @@ typedef struct avl_node_tag {
* factor: 00==-1, 01==0, 10==+1.
* factor: 00==-1, 01==0, 10==+1.
* The rest of the bits are used for <rank>
* The rest of the bits are used for <rank>
*/
*/
unsigned
long
rank_and_balance
;
unsigned
int
rank_and_balance
;
#ifndef NO_THREAD
#ifndef NO_THREAD
rwlock_t
rwlock
;
rwlock_t
rwlock
;
#endif
#endif
...
@@ -92,8 +92,8 @@ typedef int (*avl_key_printer_fun_type) (char *, void *);
...
@@ -92,8 +92,8 @@ typedef int (*avl_key_printer_fun_type) (char *, void *);
typedef
struct
_avl_tree
{
typedef
struct
_avl_tree
{
avl_node
*
root
;
avl_node
*
root
;
unsigned
long
height
;
unsigned
int
height
;
unsigned
long
length
;
unsigned
int
length
;
avl_key_compare_fun_type
compare_fun
;
avl_key_compare_fun_type
compare_fun
;
void
*
compare_arg
;
void
*
compare_arg
;
#ifndef NO_THREAD
#ifndef NO_THREAD
...
...
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