git://project.juiblex.co.uk
/
razor2.git/.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
db3ef41
)
Change list flags back to 8 bits instead of just 2
author
Dan Winship
<danw@gnome.org>
Mon, 11 Feb 2008 14:50:17 +0000 (09:50 -0500)
committer
Dan Winship
<danw@gnome.org>
Mon, 11 Feb 2008 14:50:17 +0000 (09:50 -0500)
types.c
patch
|
blob
|
history
types.h
patch
|
blob
|
history
diff --git
a/types.c
b/types.c
index
3da147f
..
87bdbcc
100644
(file)
--- a/
types.c
+++ b/
types.c
@@
-44,9
+44,9
@@
array_add(struct array *array, int size)
}
/* RAZOR_IMMEDIATE and RAZOR_ENTRY_LAST must have the same value */
-#define RAZOR_ENTRY_LAST 0x2
-#define RAZOR_IMMEDIATE 0x2
-#define RAZOR_EMPTY_LIST 0x3
+#define RAZOR_ENTRY_LAST 0x80
+#define RAZOR_IMMEDIATE 0x80
+#define RAZOR_EMPTY_LIST 0xff
void
list_set_empty(struct list_head *head)
diff --git
a/types.h
b/types.h
index
4f0f16a
..
90e7790
100644
(file)
--- a/
types.h
+++ b/
types.h
@@
-14,13
+14,13
@@
void *array_add(struct array *array, int size);
struct list_head {
- uint list_ptr : 30;
- uint flags : 2;
+ uint list_ptr : 24;
+ uint flags : 8;
};
struct list {
- uint data : 30;
- uint flags : 2;
+ uint data : 24;
+ uint flags : 8;
};
void list_set_empty(struct list_head *head);