mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 09:11:06 +00:00
port in q* from OT, and split of other things in prep for removing common.*
The use of these files isn't being committed just yet.
This commit is contained in:
parent
46a2fffe15
commit
68ca31e417
25 changed files with 3542 additions and 0 deletions
19
include/link.h
Normal file
19
include/link.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
#ifndef __link_h
|
||||
#define __link_h
|
||||
|
||||
// (type *)STRUCT_FROM_LINK(link_t *link, type, member)
|
||||
// ent = STRUCT_FROM_LINK(link,entity_t,order)
|
||||
// FIXME: remove this mess!
|
||||
#define STRUCT_FROM_LINK(l,t,m) ((t *)((byte *)l - (int)&(((t *)0)->m)))
|
||||
|
||||
typedef struct link_s
|
||||
{
|
||||
struct link_s *prev, *next;
|
||||
} link_t;
|
||||
|
||||
void ClearLink (link_t *l);
|
||||
void RemoveLink (link_t *l);
|
||||
void InsertLinkBefore (link_t *l, link_t *before);
|
||||
void InsertLinkAfter (link_t *l, link_t *after);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue