Rizin
unix-like reverse engineering framework and cli tools
sysdefs.h File Reference

Common includes, definitions, system-specific things etc. More...

#include <stddef.h>
#include <limits.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>

Go to the source code of this file.

Macros

#define UINT32_C(n)   n ## U
 
#define UINT32_MAX   UINT32_C(4294967295)
 
#define PRIu32   "u"
 
#define PRIx32   "x"
 
#define PRIX32   "X"
 
#define UINT64_C(n)   n ## UL
 
#define PRIu64   "lu"
 
#define PRIx64   "lx"
 
#define PRIX64   "lX"
 
#define UINT64_MAX   UINT64_C(18446744073709551615)
 
#define bool   _Bool
 
#define false   0
 
#define true   1
 
#define __bool_true_false_are_defined   1
 
#define memzero(s, n)   memset(s, 0, n)
 
#define my_min(x, y)   ((x) < (y) ? (x) : (y))
 
#define my_max(x, y)   ((x) > (y) ? (x) : (y))
 
#define ARRAY_SIZE(array)   (sizeof(array) / sizeof((array)[0]))
 
#define lzma_attr_alloc_size(x)
 

Typedefs

typedef unsigned char _Bool
 

Detailed Description

Common includes, definitions, system-specific things etc.

This file is used also by the lzma command line tool, that's why this file is separate from common.h.

Definition in file sysdefs.h.

Macro Definition Documentation

◆ __bool_true_false_are_defined

#define __bool_true_false_are_defined   1

Definition at line 149 of file sysdefs.h.

◆ ARRAY_SIZE

#define ARRAY_SIZE (   array)    (sizeof(array) / sizeof((array)[0]))

Definition at line 189 of file sysdefs.h.

◆ bool

#define bool   _Bool

Definition at line 146 of file sysdefs.h.

◆ false

#define false   0

Definition at line 147 of file sysdefs.h.

◆ lzma_attr_alloc_size

#define lzma_attr_alloc_size (   x)

Definition at line 196 of file sysdefs.h.

◆ memzero

#define memzero (   s,
  n 
)    memset(s, 0, n)

Definition at line 180 of file sysdefs.h.

◆ my_max

#define my_max (   x,
 
)    ((x) > (y) ? (x) : (y))

Definition at line 186 of file sysdefs.h.

◆ my_min

#define my_min (   x,
 
)    ((x) < (y) ? (x) : (y))

Definition at line 185 of file sysdefs.h.

◆ PRIu32

#define PRIu32   "u"

Definition at line 64 of file sysdefs.h.

◆ PRIu64

#define PRIu64   "lu"

Definition at line 91 of file sysdefs.h.

◆ PRIx32

#define PRIx32   "x"

Definition at line 67 of file sysdefs.h.

◆ PRIX32

#define PRIX32   "X"

Definition at line 70 of file sysdefs.h.

◆ PRIx64

#define PRIx64   "lx"

Definition at line 94 of file sysdefs.h.

◆ PRIX64

#define PRIX64   "lX"

Definition at line 97 of file sysdefs.h.

◆ true

#define true   1

Definition at line 148 of file sysdefs.h.

◆ UINT32_C

#define UINT32_C (   n)    n ## U

Definition at line 58 of file sysdefs.h.

◆ UINT32_MAX

#define UINT32_MAX   UINT32_C(4294967295)

Definition at line 61 of file sysdefs.h.

◆ UINT64_C

#define UINT64_C (   n)    n ## UL

Definition at line 88 of file sysdefs.h.

◆ UINT64_MAX

#define UINT64_MAX   UINT64_C(18446744073709551615)

Definition at line 101 of file sysdefs.h.

Typedef Documentation

◆ _Bool

typedef unsigned char _Bool

Definition at line 144 of file sysdefs.h.