libdict
Data Structure C Library
Loading...
Searching...
No Matches
dict_private.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include "dict.h"
Include dependency graph for dict_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ASSERT(expr)
 
#define LIKELY(expr)
 
#define UNLIKELY(expr)
 
#define VERIFY(expr)
 
#define MALLOC(n)
 
#define FREE(p)
 
#define ABS(a)
 
#define MIN(a, b)
 
#define MAX(a, b)
 
#define SWAP(a, b, v)
 
#define GCC_INLINE
 
#define GCC_CONST
 

Functions

long random (void)
 

Macro Definition Documentation

◆ ABS

#define ABS ( a)
Value:
((a) < 0 ? -(a) : (a))

Definition at line 91 of file dict_private.h.

◆ ASSERT

#define ASSERT ( expr)
Value:
do { \
if (!(expr)) { \
fprintf(stderr, "\n%s:%d assertion failed: %s\n", \
__FILE__, __LINE__, #expr); \
abort(); \
} \
} while (0)

Definition at line 51 of file dict_private.h.

◆ FREE

#define FREE ( p)
Value:
(*dict_free_func)(p)

Definition at line 89 of file dict_private.h.

◆ GCC_CONST

#define GCC_CONST

Definition at line 101 of file dict_private.h.

◆ GCC_INLINE

#define GCC_INLINE

Definition at line 100 of file dict_private.h.

◆ LIKELY

#define LIKELY ( expr)
Value:
(expr)

Definition at line 76 of file dict_private.h.

◆ MALLOC

#define MALLOC ( n)
Value:
(*dict_malloc_func)(n)

Definition at line 88 of file dict_private.h.

◆ MAX

#define MAX ( a,
b )
Value:
((a) > (b) ? (a) : (b))

Definition at line 93 of file dict_private.h.

◆ MIN

#define MIN ( a,
b )
Value:
((a) < (b) ? (a) : (b))

Definition at line 92 of file dict_private.h.

◆ SWAP

#define SWAP ( a,
b,
v )
Value:
do { v = (a); (a) = (b); (b) = v; } while (0)

Definition at line 94 of file dict_private.h.

◆ UNLIKELY

#define UNLIKELY ( expr)
Value:
(expr)

Definition at line 77 of file dict_private.h.

◆ VERIFY

#define VERIFY ( expr)
Value:
do { \
if (!(expr)) { \
fprintf(stderr, "\n%s:%d verification failed: %s\n", \
__FILE__, __LINE__, #expr); \
return false; \
} \
} while (0)

Definition at line 78 of file dict_private.h.

Function Documentation

◆ random()

long random ( void )
extern