|
Libparserutils
|
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) ((void)(x)) |
| #define | N_ELEMENTS(s) (sizeof((s)) / sizeof((s)[0])) |
| #define | ALIGN(val) (((val) + 3) & ~(3)) |
| #define max | ( | a, | |
| b | |||
| ) | ((a)>(b)?(a):(b)) |
Definition at line 12 of file utils.h.
Referenced by charset_utf16_codec_decode(), charset_utf8_codec_decode(), and parserutils_charset_utf16_length().
| #define min | ( | a, | |
| b | |||
| ) | ((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])) |
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().
| #define SLEN | ( | s | ) | (sizeof((s)) - 1) /* -1 for '\0' */ |
Definition at line 21 of file utils.h.
Referenced by charset_ascii_codec_handles_charset(), charset_utf16_codec_handles_charset(), charset_utf8_codec_handles_charset(), parserutils_inputstream_refill_buffer(), and parserutils_inputstream_strip_bom().
| #define UNUSED | ( | x | ) | ((void)(x)) |
Definition at line 25 of file utils.h.
Referenced by charset_8859_codec_destroy(), charset_ascii_codec_create(), charset_ascii_codec_destroy(), charset_ascii_to_ucs4(), charset_ext8_codec_destroy(), charset_utf16_codec_create(), charset_utf16_codec_destroy(), charset_utf8_codec_create(), and charset_utf8_codec_destroy().
1.8.13