dhcpd-pools  3.0
ISC dhcpd lease usage analyser
Macros | Typedefs
xalloc-oversized.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for xalloc-oversized.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __xalloc_oversized(n, s)   ((size_t) (PTRDIFF_MAX < SIZE_MAX ? PTRDIFF_MAX : SIZE_MAX - 1) / (s) < (n))
 
#define xalloc_oversized(n, s)   __xalloc_oversized (n, s)
 

Typedefs

typedef size_t __xalloc_count_type
 

Macro Definition Documentation

◆ __xalloc_oversized

#define __xalloc_oversized (   n,
 
)    ((size_t) (PTRDIFF_MAX < SIZE_MAX ? PTRDIFF_MAX : SIZE_MAX - 1) / (s) < (n))

◆ xalloc_oversized

#define xalloc_oversized (   n,
 
)    __xalloc_oversized (n, s)

Typedef Documentation

◆ __xalloc_count_type

typedef size_t __xalloc_count_type