Libparserutils
Macros
utils.h File Reference

Go to the source code of this file.

Macros

#define max(a, b)   ((a)>(b)?(a):(b))
 
#define min(a, b)   ((a)<(b)?(a):(b))
 
#define SLEN(s)   (sizeof((s)) - 1) /* -1 for '\0' */
 
#define UNUSED(x)   ((x)=(x))
 
#define N_ELEMENTS(s)   (sizeof((s)) / sizeof((s)[0]))
 
#define ALIGN(val)   (((val) + 3) & ~(3))
 

Macro Definition Documentation

#define ALIGN (   val)    (((val) + 3) & ~(3))

Definition at line 33 of file utils.h.

#define max (   a,
 
)    ((a)>(b)?(a):(b))
#define min (   a,
 
)    ((a)<(b)?(a):(b))

Definition at line 16 of file utils.h.

Referenced by charset_utf16_codec_decode(), and charset_utf8_codec_decode().

#define N_ELEMENTS (   s)    (sizeof((s)) / sizeof((s)[0]))
#define SLEN (   s)    (sizeof((s)) - 1) /* -1 for '\0' */
#define UNUSED (   x)    ((x)=(x))