better finish stuff before committing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23454 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -148,17 +148,17 @@ extern status_t toserror(int32 err);
|
|||||||
|
|
||||||
typedef struct tos_cookie {
|
typedef struct tos_cookie {
|
||||||
uint32 cookie;
|
uint32 cookie;
|
||||||
enum {
|
union {
|
||||||
int32 ivalue;
|
int32 ivalue;
|
||||||
void *pvalue;
|
void *pvalue;
|
||||||
}
|
};
|
||||||
} tos_cookie;
|
} tos_cookie;
|
||||||
|
|
||||||
#define COOKIE_JAR (*((const tos_cookie **)0x5A0))
|
#define COOKIE_JAR (*((const tos_cookie **)0x5A0))
|
||||||
|
|
||||||
static inline tos_cookie *tos_find_cookie(uint32 what)
|
static inline const tos_cookie *tos_find_cookie(uint32 what)
|
||||||
{
|
{
|
||||||
struct c = COOKIE_JAR;
|
const tos_cookie *c = COOKIE_JAR;
|
||||||
while (c && (c->cookie)) {
|
while (c && (c->cookie)) {
|
||||||
if (c->cookie == what)
|
if (c->cookie == what)
|
||||||
return c;
|
return c;
|
||||||
|
|||||||
Reference in New Issue
Block a user