tesseract-doxygen/ccutil/memblk.cpp File Reference

#include "mfcpch.h"
#include <stdlib.h>
#include <string.h>
#include "stderr.h"
#include "errcode.h"
#include "hashfn.h"
#include "tprintf.h"
#include "memry.h"
#include "varable.h"

Classes

class  UWREC

Defines

#define EXTERN

Functions

void * trace_caller (inT32 depth)
inT32 identify_struct_owner (inT32 struct_count, const char *name)
void check_struct (inT8 level, inT32 count)
void check_structs (inT8 level)
void * new_struct_block ()
void old_struct_block (MEMUNION *deadblock)

Variables

MEMUNIONfree_block = NULL
EXTERN MEM_ALLOCATOR big_mem
EXTERN MEM_ALLOCATOR main_mem
EXTERN MEMUNIONfree_structs [MAX_STRUCTS]
EXTERN inT32 structs_in_use [MAX_STRUCTS]
EXTERN inT32 blocks_in_use [MAX_STRUCTS]
EXTERN MEMUNIONstruct_blocks [MAX_STRUCTS]
EXTERN const char * owner_names [MAX_STRUCTS][MAX_CLASSES]
EXTERN inT32 owner_counts [MAX_STRUCTS][MAX_CLASSES]
EXTERN inT16 name_counts [MAX_STRUCTS]
EXTERN inT32 free_struct_blocks
EXTERN int mem_mallocdepth = 0
EXTERN int mem_mallocbits = 8
EXTERN int mem_freedepth = 0
EXTERN int mem_freebits = 8
EXTERN int mem_countbuckets = 16
EXTERN int mem_checkfreq = 0

Define Documentation

#define EXTERN

Function Documentation

void check_struct ( inT8  level,
inT32  count 
)
void check_structs ( inT8  level  ) 
inT32 identify_struct_owner ( inT32  struct_count,
const char *  name 
)
void* new_struct_block (  ) 
void old_struct_block ( MEMUNION deadblock  ) 
void* trace_caller ( inT32  depth  ) 

Variable Documentation

EXTERN inT32 blocks_in_use[MAX_STRUCTS]
EXTERN MEMUNION* free_structs[MAX_STRUCTS]
EXTERN int mem_checkfreq = 0

"Calls to alloc_mem between owner counts"

EXTERN int mem_countbuckets = 16

"No of buckets for histogram"

EXTERN int mem_freebits = 8

"Log 2 of hash table size"

EXTERN int mem_freedepth = 0

"Free stack dpeth to trace"

EXTERN int mem_mallocbits = 8

"Log 2 of hash table size"

EXTERN int mem_mallocdepth = 0

"Malloc stack depth to trace"

EXTERN inT16 name_counts[MAX_STRUCTS]
EXTERN inT32 owner_counts[MAX_STRUCTS][MAX_CLASSES]
EXTERN const char* owner_names[MAX_STRUCTS][MAX_CLASSES]
EXTERN MEMUNION* struct_blocks[MAX_STRUCTS]
EXTERN inT32 structs_in_use[MAX_STRUCTS]
Generated on Sun Jul 18 17:10:50 2010 for Tesseract by  doxygen 1.6.3