Main Page | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

debug.c File Reference

#include "define.h"

Include dependency graph for debug.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  pst_debug_item
struct  pst_debug_func

Defines

#define MAX_MESSAGE_SIZE   4096
#define NUM_COL   30

Functions

void pst_debug_write_msg (struct pst_debug_item *item, const char *fmt, va_list *ap, int size)
void pst_debug_write_hex (struct pst_debug_item *item, char *buf, size_t size, int col)
void pst_debug_write ()
size_t pst_debug_fwrite (const void *ptr, size_t size, size_t nitems, FILE *stream)
void pst_debug (const char *fmt,...)
void pst_debug_hexdumper (FILE *out, char *buf, size_t size, int col, int delta)
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)

Variables

pst_debug_itemitem_head = NULL *item_tail=NULL *item_ptr=NULL *info_ptr=NULL *temp_list=NULL
pst_debug_funcfunc_head = NULL *func_ptr=NULL
FILE * debug_fp = NULL
unsigned int max_items = 0 curr_items=0


Define Documentation

#define MAX_MESSAGE_SIZE   4096
 

Definition at line 37 of file debug.c.

#define NUM_COL   30
 

Definition at line 47 of file debug.c.


Function Documentation

void pst_debug const char *  fmt,
  ...
 

Definition at line 39 of file debug.c.

void pst_debug_close void   ) 
 

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:

void pst_debug_func const char *  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:

void pst_debug_func_ret  ) 
 

Definition at line 229 of file debug.c.

References DIE, func_head, and pst_debug_func::next.

size_t pst_debug_fwrite const void *  ptr,
size_t  size,
size_t  nitems,
FILE *  stream
[static]
 

Definition at line 29 of file debug.c.

Referenced by pst_debug_init(), pst_debug_write(), pst_debug_write_hex(), and pst_debug_write_msg().

void pst_debug_hexdump char *  x,
size_t  y,
int  cols,
int  delta
 

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:

void pst_debug_hexdumper FILE *  out,
char *  buf,
size_t  size,
int  col,
int  delta
 

Definition at line 48 of file debug.c.

Referenced by dumper(), main(), and pst_debug_write_hex().

void pst_debug_init const char *  fname  ) 
 

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:

void pst_debug_msg_info int  line,
const char *  file,
int  type
 

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:

void pst_debug_msg_text const char *  fmt,
  ...
 

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:

void pst_debug_write  )  [static]
 

Definition at line 255 of file debug.c.

References debug_fp, pst_debug_file_rec_m::end, pst_debug_file_rec_l::end, pst_debug_file_rec_m::filename, pst_debug_file_rec_l::filename, pst_debug_file_rec_m::funcname, pst_debug_file_rec_l::funcname, item_head, pst_debug_file_rec_m::line, pst_debug_file_rec_l::line, pst_debug_item::next, pst_debug_fwrite(), pst_malloc(), pst_debug_file_rec_m::text, pst_debug_file_rec_l::text, pst_debug_file_rec_m::type, and pst_debug_file_rec_l::type.

Referenced by pst_debug_close(), pst_debug_hexdump(), and pst_debug_msg_text().

Here is the call graph for this function:

void pst_debug_write_hex struct pst_debug_item item,
char *  buf,
size_t  size,
int  col
[static]
 

Definition at line 402 of file debug.c.

References debug_fp, pst_debug_file_rec_l::end, pst_debug_item::file, pst_debug_file_rec_l::filename, pst_debug_file_rec_l::funcname, pst_debug_item::function, pst_debug_item::line, pst_debug_file_rec_l::line, pst_debug_fwrite(), pst_debug_hexdumper(), pst_debug_file_rec_l::text, pst_debug_item::type, and pst_debug_file_rec_l::type.

Referenced by pst_debug_hexdump().

Here is the call graph for this function:

void pst_debug_write_msg struct pst_debug_item item,
const char *  fmt,
va_list *  ap,
int  size
[static]
 

Definition at line 339 of file debug.c.

References debug_fp, pst_debug_file_rec_m::end, pst_debug_file_rec_l::end, pst_debug_item::file, pst_debug_file_rec_m::filename, pst_debug_file_rec_l::filename, pst_debug_file_rec_m::funcname, pst_debug_file_rec_l::funcname, pst_debug_item::function, pst_debug_file_rec_m::line, pst_debug_item::line, pst_debug_file_rec_l::line, pst_debug_fwrite(), pst_debug_file_rec_m::text, pst_debug_file_rec_l::text, pst_debug_file_rec_m::type, pst_debug_item::type, and pst_debug_file_rec_l::type.

Referenced by pst_debug_msg_text().

Here is the call graph for this function:

void* pst_malloc size_t  size  ) 
 

Definition at line 444 of file debug.c.

Referenced by deep_copy(), dumper(), main(), pst_build_desc_ptr(), pst_build_id2(), pst_build_id_ptr(), pst_debug_func(), pst_debug_msg_info(), pst_debug_msg_text(), pst_debug_write(), pst_getTopOfFolders(), pst_load_extended_attributes(), pst_lzfu_decompress(), pst_parse_block(), pst_parse_item(), pst_process(), pst_read_block_size(), pst_vballoc(), pst_vbgrow(), pst_wide_to_single(), split_args(), write_normal_email(), and write_separate_attachment().


Variable Documentation

FILE* debug_fp = NULL [static]
 

Definition at line 83 of file debug.c.

Referenced by pst_debug_close(), pst_debug_init(), pst_debug_write(), pst_debug_write_hex(), and pst_debug_write_msg().

struct pst_debug_func* func_head = NULL *func_ptr=NULL [static]
 

Definition at line 20 of file debug.c.

Referenced by pst_debug_close(), pst_debug_func(), pst_debug_func_ret(), and pst_debug_msg_info().

struct pst_debug_item* item_head = NULL *item_tail=NULL *item_ptr=NULL *info_ptr=NULL *temp_list=NULL [static]
 

Definition at line 12 of file debug.c.

Referenced by pst_debug_init(), pst_debug_msg_text(), and pst_debug_write().

unsigned int max_items = 0 curr_items=0 [static]
 

Definition at line 84 of file debug.c.


Generated on Fri Apr 17 12:59:08 2009 for 'LibPst' by  doxygen 1.3.9.1