Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
ordered-set.h File Reference
#include "../types.h"

Go to the source code of this file.

Data Structures

struct  criterion_ordered_set
 
struct  criterion_ordered_set_node
 

Macros

#define FOREACH_SET(Elt, Set)
 

Typedefs

typedef int(* f_criterion_cmp) (void *, void *)
 

Functions

CR_BEGIN_C_API CR_API struct criterion_ordered_setnew_ordered_set (f_criterion_cmp cmp, void(*dtor)(void *, void *))
 
CR_API void * insert_ordered_set (struct criterion_ordered_set *l, void *ptr, size_t size)
 

Macro Definition Documentation

◆ FOREACH_SET

#define FOREACH_SET ( Elt,
Set )
Value:
for (struct criterion_ordered_set_node *n = Set->first; n; n = n->next) \
for (int cond = 1; cond;) \
for (Elt = (void *) (n + 1); cond && (cond = 0, 1);)
static int cond(LexState *ls)

Definition at line 53 of file ordered-set.h.

53#define FOREACH_SET(Elt, Set) \
54 for (struct criterion_ordered_set_node *n = Set->first; n; n = n->next) \
55 for (int cond = 1; cond;) \
56 for (Elt = (void *) (n + 1); cond && (cond = 0, 1);)

Typedef Documentation

◆ f_criterion_cmp

typedef int(* f_criterion_cmp) (void *, void *)

Definition at line 29 of file ordered-set.h.

Function Documentation

◆ insert_ordered_set()

CR_API void * insert_ordered_set ( struct criterion_ordered_set * l,
void * ptr,
size_t size )

◆ new_ordered_set()

CR_BEGIN_C_API CR_API struct criterion_ordered_set * new_ordered_set ( f_criterion_cmp cmp,
void(*)(void *, void *) dtor )