#include "config.h"#include "libpst.h"#include "timeconv.h"#include "libstrfunc.h"#include "vbuf.h"#include <time.h>#include <string.h>#include <ctype.h>#include <limits.h>#include <wchar.h>#include <signal.h>#include <errno.h>#include <iconv.h>#include <regex.h>#include <gd.h>#include <unistd.h>#include <sys/stat.h>#include <sys/types.h>#include <dirent.h>Include dependency graph for define.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | pst_debug_file_rec_m |
| struct | pst_debug_file_rec_l |
Defines | |
| #define | DEBUG_MODE_GEN |
| #define | DEBUGPRINT |
| #define | DEBUG_MODE_WARN |
| #define | DEBUG_MODE_READ |
| #define | DEBUG_MODE_EMAIL |
| #define | DEBUG_MODE_MAIN |
| #define | DEBUG_MODE_INDEX |
| #define | DEBUG_MODE_CODE |
| #define | DEBUG_MODE_INFO |
| #define | DEBUG_MODE_HEXDUMP |
| #define | DEBUG_MODE_FUNC |
| #define | DEBUG_MAX_ITEMS 0 |
| #define | DEBUG_FILE_NO 1 |
| #define | DEBUG_INDEX_NO 2 |
| #define | DEBUG_EMAIL_NO 3 |
| #define | DEBUG_WARN_NO 4 |
| #define | DEBUG_READ_NO 5 |
| #define | DEBUG_INFO_NO 6 |
| #define | DEBUG_MAIN_NO 7 |
| #define | DEBUG_DECRYPT_NO 8 |
| #define | DEBUG_FUNCENT_NO 9 |
| #define | DEBUG_FUNCRET_NO 10 |
| #define | DEBUG_HEXDUMP_NO 11 |
| #define | PERM_DIRS 0777 |
| #define | D_MKDIR(x) mkdir(x, PERM_DIRS) |
| #define | MESSAGEPRINT(x, y) |
| #define | LOGSTOP() {MESSAGESTOP();DEBUGSTOP();} |
| #define | DIE(x) |
| #define | WARN(x) |
| #define | DEBUG_PRINT(x) pst_debug x; |
| #define | DEBUG(x) {DEBUG_PRINT(x);} |
| #define | DEBUG_INDEX(x) MESSAGEPRINT(x, DEBUG_INDEX_NO); |
| #define | DEBUG_EMAIL(x) MESSAGEPRINT(x, DEBUG_EMAIL_NO); |
| #define | DEBUG_EMAIL_HEXPRINT(x, y) |
| #define | DEBUG_WARN(x) MESSAGEPRINT(x, DEBUG_WARN_NO); |
| #define | DEBUG_READ(x) MESSAGEPRINT(x, DEBUG_READ_NO); |
| #define | DEBUG_INFO(x) MESSAGEPRINT(x, DEBUG_INFO_NO); |
| #define | DEBUG_MAIN(x) MESSAGEPRINT(x, DEBUG_MAIN_NO); |
| #define | DEBUG_CODE(x) {x} |
| #define | DEBUG_DECRYPT(x) {} |
| #define | DEBUG_HEXDUMP(x, s) |
| #define | DEBUG_HEXDUMPC(x, s, c) |
| #define | DEBUG_FILE(x) |
| #define | DEBUG_ENT(x) |
| #define | DEBUG_RET() |
| #define | DEBUG_INIT(fname) {pst_debug_init(fname);} |
| #define | DEBUG_CLOSE() {pst_debug_close();} |
| #define | DEBUG_REGISTER_CLOSE() {if(atexit(pst_debug_close)!=0) fprintf(stderr, "Error registering atexit function\n");} |
| #define | RET_DERROR(res, ret_val, x) if (res) { DIE(x);} |
| #define | RET_ERROR(res, ret_val) if (res) {return ret_val;} |
| #define | DEBUG_VERSION 1 |
| #define | LE64_CPU(x) |
| #define | LE32_CPU(x) |
| #define | LE16_CPU(x) |
| #define | PST_LE_GET_UINT64(p) |
| #define | PST_LE_GET_INT64(p) |
| #define | PST_LE_GET_UINT32(p) |
| #define | PST_LE_GET_INT32(p) |
| #define | PST_LE_GET_UINT16(p) |
| #define | PST_LE_GET_INT16(p) |
| #define | PST_LE_GET_UINT8(p) (*(uint8_t const *)(p)) |
| #define | PST_LE_GET_INT8(p) (*(int8_t const *)(p)) |
Functions | |
| void | pst_debug (const char *fmt,...) |
| void | pst_debug_hexdumper (FILE *out, char *buf, size_t size, int col, int delta) |
| void | pst_debug_hexprint (char *data, int size) |
| void | pst_debug_init (const char *fname) |
| void | pst_debug_msg_info (int line, const char *file, int type) |
| void | pst_debug_msg_text (const char *fmt,...) |
| void | pst_debug_hexdump (char *x, size_t y, int cols, int delta) |
| void | pst_debug_func (const char *function) |
| void | pst_debug_func_ret () |
| void | pst_debug_close (void) |
| void * | pst_malloc (size_t size) |
|
|
Definition at line 128 of file define.h. Referenced by mk_kmail_dir(), mk_recurse_dir(), and mk_separate_dir(). |
|
|
|
|
|
|
|
|
Definition at line 223 of file define.h. Referenced by pst_load_index(). |
|
|
|
|
|
|
|
|
Definition at line 190 of file define.h. Referenced by find_html_charset(), find_rfc822_headers(), header_get_subfield(), header_has_field(), pst_convert_utf8(), pst_ff_compile_ID(), pst_load_extended_attributes(), pst_parse_block(), pst_parse_item(), pst_process(), test_base64(), write_body_part(), write_inline_attachment(), write_normal_email(), and write_separate_attachment(). |
|
|
Value: {pst_debug_msg_info(__LINE__, __FILE__, 11);\
pst_debug_hexdump((char*)x, y, 0x10, 0);}
Definition at line 191 of file define.h. Referenced by pst_process(). |
|
|
|
|
|
|
Value: {pst_debug_msg_info(__LINE__, __FILE__, DEBUG_FILE_NO);\
pst_debug_msg_text x;}
Definition at line 246 of file define.h. Referenced by main(). |
|
|
|
|
|
|
|
|
|
|
|
Value: {pst_debug_msg_info(__LINE__, __FILE__, DEBUG_HEXDUMP_NO);\
pst_debug_hexdump((char*)x, s, 0x10, 0);}
Definition at line 235 of file define.h. Referenced by pst_process(). |
|
|
|
|
|
Value: {pst_debug_msg_info(__LINE__, __FILE__, DEBUG_HEXDUMP_NO);\
pst_debug_hexdump((char*)x, s, c, 0);}
Definition at line 238 of file define.h. Referenced by find_html_charset(), pst_build_desc_ptr(), pst_build_id2(), pst_build_id_ptr(), pst_decode_assoc(), pst_decode_desc(), pst_decode_index(), pst_decode_table(), pst_decode_type3(), pst_ff_compile_ID(), pst_ff_getIDblock_dec(), pst_load_extended_attributes(), pst_parse_block(), and test_base64(). |
|
|
|
|
|
|
Definition at line 211 of file define.h. Referenced by pst_open(), pst_rfc2425_datetime_format(), pst_rfc2445_datetime_format(), and write_email_body(). |
|
|
|
|
|
Definition at line 265 of file define.h. Referenced by main(). |
|
|
Definition at line 217 of file define.h. Referenced by dump_desc(), dumper(), main(), mk_separate_dir(), mk_separate_file(), and process(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 205 of file define.h. Referenced by pst_ff_compile_ID(), pst_ff_getID2data(), and pst_read_block_size(). |
|
|
|
|
|
Definition at line 267 of file define.h. Referenced by main(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
Value: {\
MESSAGEPRINT(x, 0);\
printf x;\
exit(EXIT_FAILURE);\
}
Definition at line 161 of file define.h. Referenced by close_kmail_dir(), close_recurse_dir(), close_separate_dir(), dumper(), main(), mk_kmail_dir(), mk_recurse_dir(), mk_separate_dir(), mk_separate_file(), process(), pst_debug_func_ret(), pst_free_desc(), pst_vballoc(), pst_vbgrow(), and write_separate_attachment(). |
|
|
Value: x = ((((x) & 0xff00) >> 8) | \
(((x) & 0x00ff) << 8));
Definition at line 309 of file define.h. Referenced by pst_build_id2(), pst_decode_index(), pst_ff_compile_ID(), pst_getBlockOffset(), pst_lzfu_decompress(), and pst_parse_block(). |
|
|
Value: x = ((((x) & 0xff000000) >> 24) | \
(((x) & 0x00ff0000) >> 8 ) | \
(((x) & 0x0000ff00) << 8 ) | \
(((x) & 0x000000ff) << 24));
Definition at line 304 of file define.h. Referenced by pst_decode_assoc(), pst_decode_desc(), pst_decode_index(), pst_decode_table(), pst_decode_type3(), pst_ff_compile_ID(), pst_getIntAt(), pst_getIntAtPos(), pst_load_extended_attributes(), pst_lzfu_decompress(), pst_open(), pst_parse_block(), and pst_process(). |
|
|
Value: x = ((((x) & UINT64_C(0xff00000000000000)) >> 56) | \
(((x) & UINT64_C(0x00ff000000000000)) >> 40) | \
(((x) & UINT64_C(0x0000ff0000000000)) >> 24) | \
(((x) & UINT64_C(0x000000ff00000000)) >> 8 ) | \
(((x) & UINT64_C(0x00000000ff000000)) << 8 ) | \
(((x) & UINT64_C(0x0000000000ff0000)) << 24) | \
(((x) & UINT64_C(0x000000000000ff00)) << 40) | \
(((x) & UINT64_C(0x00000000000000ff)) << 56));
Definition at line 295 of file define.h. Referenced by pst_decode_assoc(), pst_decode_desc(), pst_decode_index(), pst_decode_table(), pst_decode_type3(), pst_getIntAt(), and pst_getIntAtPos(). |
|
|
|
|
|
Value: {pst_debug_msg_info(__LINE__,__FILE__,y);\
pst_debug_msg_text x;}
|
|
|
|
|
|
Value: (int16_t)((((uint8_t const *)(p))[0] << 0) | \ (((uint8_t const *)(p))[1] << 8)) |
|
|
Value: (int32_t)((((uint8_t const *)(p))[0] << 0) | \ (((uint8_t const *)(p))[1] << 8) | \ (((uint8_t const *)(p))[2] << 16) | \ (((uint8_t const *)(p))[3] << 24)) |
|
|
Value: (int64_t)((((uint8_t const *)(p))[0] << 0) | \ (((uint8_t const *)(p))[1] << 8) | \ (((uint8_t const *)(p))[2] << 16) | \ (((uint8_t const *)(p))[3] << 24) | \ (((uint8_t const *)(p))[4] << 32) | \ (((uint8_t const *)(p))[5] << 40) | \ (((uint8_t const *)(p))[6] << 48) | \ (((uint8_t const *)(p))[7] << 56)) |
|
|
|
|
|
Value: (uint16_t)((((uint8_t const *)(p))[0] << 0) | \ (((uint8_t const *)(p))[1] << 8)) Definition at line 353 of file define.h. Referenced by pst_load_extended_attributes(). |
|
|
Value: (uint32_t)((((uint8_t const *)(p))[0] << 0) | \ (((uint8_t const *)(p))[1] << 8) | \ (((uint8_t const *)(p))[2] << 16) | \ (((uint8_t const *)(p))[3] << 24)) Definition at line 341 of file define.h. Referenced by pst_load_extended_attributes(). |
|
|
Value: (uint64_t)((((uint8_t const *)(p))[0] << 0) | \ (((uint8_t const *)(p))[1] << 8) | \ (((uint8_t const *)(p))[2] << 16) | \ (((uint8_t const *)(p))[3] << 24) | \ (((uint8_t const *)(p))[4] << 32) | \ (((uint8_t const *)(p))[5] << 40) | \ (((uint8_t const *)(p))[6] << 48) | \ (((uint8_t const *)(p))[7] << 56)) |
|
|
|
|
|
Definition at line 269 of file define.h. Referenced by main(). |
|
|
|
|
|
Value: {\
MESSAGEPRINT(x, 0);\
printf x;\
}
Definition at line 166 of file define.h. Referenced by main(), mk_separate_dir(), open_targets(), pst_build_id2(), pst_close(), pst_decrypt(), pst_load_index(), pst_open(), pst_parse_block(), pst_unicode_init(), and write_separate_attachment(). |
|
||||||||||||
|
|
|
|
Definition at line 242 of file debug.c. References debug_fp, func_head, pst_debug_func::next, and pst_debug_write(). Referenced by pst_debug_init(). |
Here is the call graph for this function:

|
|
Definition at line 220 of file debug.c. References func_head, pst_debug_item::next, and pst_malloc(). |
Here is the call graph for this function:

|
|
Definition at line 229 of file debug.c. References DIE, func_head, and pst_debug_func::next. |
|
||||||||||||||||||||
|
Definition at line 204 of file debug.c. References pst_debug_item::next, pst_debug_write(), and pst_debug_write_hex(). |
Here is the call graph for this function:

|
||||||||||||||||||||||||
|
Definition at line 48 of file debug.c. Referenced by dumper(), main(), and pst_debug_write_hex(). |
|
||||||||||||
|
|
|
|
Definition at line 87 of file debug.c. References debug_fp, item_head, pst_debug_close(), pst_debug_fwrite(), and version(). |
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 103 of file debug.c. References pst_debug_item::file, func_head, pst_debug_item::function, pst_debug_item::line, pst_debug_func::name, pst_debug_item::next, pst_malloc(), and pst_debug_item::type. |
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 122 of file debug.c. References item_head, pst_debug_item::next, pst_debug_write(), pst_debug_write_msg(), pst_malloc(), and pst_debug_item::text. |
Here is the call graph for this function:

|
1.3.9.1