codex
Loading...
Searching...
No Matches
ops.c File Reference
#include <stddef.h>
Include dependency graph for ops.c:

Classes

struct  node
 
struct  container
 
struct  value
 

Macros

#define container_of(p, t, m)   ((t*)((char*)(p) - offsetof(t, m)))
 
#define list_entry(p, t, f)   ((void*)container_of(p, t, f))
 
#define list_for_each(h, v)   for(struct node *v = (h); v; v = v->next)
 

Functions

void use (struct value *)
 
void list_push_front (struct node **l, struct node *n)
 
void list_pop_front (struct node **l)
 
void f (struct container *c)
 

Macro Definition Documentation

◆ container_of

#define container_of ( p,
t,
m )   ((t*)((char*)(p) - offsetof(t, m)))

◆ list_entry

#define list_entry ( p,
t,
f )   ((void*)container_of(p, t, f))

◆ list_for_each

#define list_for_each ( h,
v )   for(struct node *v = (h); v; v = v->next)

Function Documentation

◆ f()

void f ( struct container * c)
Here is the call graph for this function:

◆ list_pop_front()

void list_pop_front ( struct node ** l)
Here is the caller graph for this function:

◆ list_push_front()

void list_push_front ( struct node ** l,
struct node * n )
Here is the caller graph for this function:

◆ use()

void use ( struct value * )
Here is the caller graph for this function: