diff options
-rw-r--r-- | amiga/os3support.c | 6 | ||||
-rw-r--r-- | amiga/os3support.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/amiga/os3support.c b/amiga/os3support.c index f29763633..243578540 100644 --- a/amiga/os3support.c +++ b/amiga/os3support.c @@ -192,6 +192,12 @@ struct Node *GetHead(struct List *list) return res; } +struct Node *GetPred(struct Node *node) +{ + if (node->ln_Pred->ln_Pred == NULL) return NULL; + return node->ln_Pred; +} + struct Node *GetSucc(struct Node *node) { if (node->ln_Succ->ln_Succ == NULL) return NULL; diff --git a/amiga/os3support.h b/amiga/os3support.h index f0667b55f..d5b895fb5 100644 --- a/amiga/os3support.h +++ b/amiga/os3support.h @@ -144,7 +144,6 @@ /* Exec */ #define AllocVecTagList(SZ,TAG) AllocVec(SZ,MEMF_ANY) /* AllocVecTagList with no tags */ #define FindIName FindName -#define GetPred(N) N ? (N)->ln_Pred : NULL /* Gfx */ #define SetRPAttrs(...) (void)0 /*\todo Probably need to emulate this */ @@ -240,6 +239,7 @@ void FreeSysObject(ULONG type, APTR obj); /* Exec */ struct Node *GetHead(struct List *list); +struct Node *GetPred(struct Node *node); struct Node *GetSucc(struct Node *node); /* Intuition */ |