#include <ze-sys.h>
#include "ze-libjc.h"
Go to the source code of this file.
|
char * | zeStrnDup (const char *s, size_t n) |
|
void | set_mime_debug (bool v) |
|
bool | decode_mime_buffer (char *id, char *buf, size_t sz, int level, uint32_t *flags, demime_F func, void *arg) |
|
bool | decode_mime_file (char *id, char *fname, uint32_t *flags, demime_F func, void *arg) |
|
int | which_mime_encoding (char *s) |
|
char * | mime_encode_name (int n) |
|
int | which_mime_type (char *s) |
|
char * | mime_type_name (int n) |
|
◆ BADFILENAMECHARS
#define BADFILENAMECHARS " \t\n\r\"\'\\/$&|;,:()[]<>*{}@?" |
◆ CLEANUP_FILENAME
#define CLEANUP_FILENAME |
( |
|
fname | ) |
|
Value:if (fname != NULL) \
{ \
char *s = fname; \
*s = '_'; \
}
Definition at line 135 of file ze-demime.c.
◆ FREE_ALLOC
Value:do { \
FREE(bodybuf); \
FREE(name); \
FREE(filename); \
FREE(boundary); \
FREE(charset); \
FREE(mimetype); \
} while (0);
Definition at line 112 of file ze-demime.c.
◆ GOTO_FIN
Value:{ \
result = (r); \
goto fin; \
}
Definition at line 143 of file ze-demime.c.
◆ LINESZ
◆ LOG_LEVEL
◆ LOG_SOB
#define LOG_SOB |
( |
|
h, |
|
|
|
txt |
|
) |
| |
Value:{ \
strlcpy(titi, txt,
sizeof(titi)); \
ZE_MessageInfo(
LOG_LEVEL,
"*************** %s **************", h); \
ZE_MessageInfo(
LOG_LEVEL,
"*************"); \
}
Definition at line 123 of file ze-demime.c.
◆ MAX
#define MAX |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) > (b) ? (a) : (b)) |
◆ MAX_RECURSIVE_LEVEL
#define MAX_RECURSIVE_LEVEL 5 |
◆ MAXLONG
#define MAXLONG (1 << 30) |
◆ MIN
#define MIN |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (a) : (b)) |
◆ REGCOMP_FLAGS
#define REGCOMP_FLAGS (REG_ICASE | REG_NEWLINE | REG_EXTENDED) |
◆ REGEXEC_FLAGS
#define REGEXEC_FLAGS (0) |
◆ USE_NEW_GET_BOUNDARY
#define USE_NEW_GET_BOUNDARY 1 |
◆ zeStrnDup()
char* zeStrnDup |
( |
const char * |
s, |
|
|
size_t |
n |
|
) |
| |