Data Structures | Macros | Typedefs
queue.h File Reference
#include <stddef.h>
#include "nvim/func_attr.h"

Go to the source code of this file.

Data Structures

struct  _queue
 

Macros

#define QUEUE_DATA(ptr, type, field)   ((type *)((char *)(ptr) - offsetof(type, field)))
 
#define QUEUE_FOREACH(q, h)
 
#define QUEUE_HEAD(q)   (q)->next
 

Typedefs

typedef struct _queue QUEUE
 

Macro Definition Documentation

#define QUEUE_DATA (   ptr,
  type,
  field 
)    ((type *)((char *)(ptr) - offsetof(type, field)))
#define QUEUE_FOREACH (   q,
 
)
Value:
for ( /* NOLINT(readability/braces) */ \
(q) = (h)->next; (q) != (h); (q) = (q)->next)
#define QUEUE_HEAD (   q)    (q)->next

Typedef Documentation

typedef struct _queue QUEUE