Libparserutils
utils.h File Reference

Go to the source code of this file.

Macros

#define max(a, b)
 
#define min(a, b)
 
#define SLEN(s)
 
#define UNUSED(x)
 
#define N_ELEMENTS(s)
 
#define ALIGN(val)
 

Macro Definition Documentation

◆ ALIGN

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

Definition at line 33 of file utils.h.

◆ max

#define max ( a,
b )

◆ min

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

Definition at line 16 of file utils.h.

Referenced by charset_utf16_codec_decode(), and charset_utf8_codec_decode().

◆ N_ELEMENTS

#define N_ELEMENTS ( s)
Value:
(sizeof((s)) / sizeof((s)[0]))

Definition at line 29 of file utils.h.

Referenced by charset_8859_codec_create(), charset_8859_codec_handles_charset(), charset_ext8_codec_create(), and charset_ext8_codec_handles_charset().

◆ SLEN

◆ UNUSED