Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

l_alloc_new.c File Reference

#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <stdlib.h>
#include "l_alloc_new.h"

Go to the source code of this file.

Functions

L_Alloc_PoolL_create_alloc_pool (char *name, int size, int num_in_block)
void L_free_alloc_pool (L_Alloc_Pool *pool)
void * L_alloc (L_Alloc_Pool *pool)
void L_free (L_Alloc_Pool *pool, void *ptr)
void L_print_alloc_info (FILE *F, L_Alloc_Pool *pool, int verbose)

Variables

char copyright []
int bypass_alloc_routines = 0


Function Documentation

void* L_alloc L_Alloc_Pool pool  ) 
 

Definition at line 206 of file l_alloc_new.c.

References L_Alloc_Pool::allocated, L_Alloc_Pool::block_list, L_Alloc_Pool::block_size, L_Alloc_Pool::blocks_allocated, L_Alloc_Pool::bypass_routines, L_Alloc_Pool::element_size, exit(), fprintf(), L_Alloc_Pool::free, L_Alloc_Pool::head, i, malloc(), L_Alloc_Pool::name, L_Alloc_Pool_Header::next, and L_Alloc_Pool::num_in_block.

Referenced by _MD_set_double(), _MD_set_int(), _MD_set_link(), _MD_set_string(), add_Psymbol(), build_mdes_info(), op_scheduler::BuildReadyTimes(), copy_Mptr(), copy_Pptr(), create_Mbuf(), create_Mfile(), create_Mptr(), create_Pdef(), create_Pptr(), create_Psymbol_Table(), get_for_value_list(), Heap_Insert(), INT_add_symbol(), INT_new_symbol_table(), load_mdes2(), MD_add_symbol(), MD_new_buf(), MD_new_element_req(), MD_new_entry(), MD_new_field(), MD_new_field_decl(), MD_new_md(), MD_new_section(), MD_new_symbol_table(), SM_build_mdes(), STRING_add_symbol(), and STRING_new_symbol_table().

L_Alloc_Pool* L_create_alloc_pool char *  name,
int  size,
int  num_in_block
 

Definition at line 84 of file l_alloc_new.c.

References L_Alloc_Pool::allocated, L_Alloc_Pool::block_list, L_Alloc_Pool::block_size, L_Alloc_Pool::blocks_allocated, bypass_alloc_routines, L_Alloc_Pool::bypass_routines, L_Alloc_Pool::element_size, exit(), fprintf(), L_Alloc_Pool::free, L_Alloc_Pool::head, malloc(), L_Alloc_Pool::name, L_Alloc_Pool::num_in_block, size, strcpy(), and strlen().

Referenced by add_Psymbol(), create_Mbuf(), create_Mfile(), create_Mptr(), create_Psymbol_Table(), Heap_Create(), machine::initialize_lmdes(), INT_new_symbol_table(), L_init_lmdes(), load_mdes2(), main(), MD_new_md(), MD_read_md(), SM_build_mdes(), and STRING_new_symbol_table().

void L_free L_Alloc_Pool pool,
void *  ptr
 

Definition at line 281 of file l_alloc_new.c.

References L_Alloc_Pool::allocated, L_Alloc_Pool::bypass_routines, exit(), fprintf(), L_Alloc_Pool::free, free(), L_Alloc_Pool::head, L_Alloc_Pool::name, and L_Alloc_Pool_Header::next.

Referenced by _MD_free_entry(), _MD_free_field_decl(), _MD_free_section(), delete_Psymbol(), free_Mbuf(), free_mdes_info(), free_Mfile(), free_Mptr(), free_Pdef(), free_Pptr(), free_Psymbol_Table(), Heap_Dispose(), Heap_ExtractTop(), INT_delete_symbol(), INT_delete_symbol_table(), MD_delete_buf(), MD_delete_element(), MD_delete_field(), MD_delete_md(), MD_delete_symbol(), MD_delete_symbol_table(), process_for_directive(), STRING_delete_symbol(), and STRING_delete_symbol_table().

void L_free_alloc_pool L_Alloc_Pool pool  ) 
 

Definition at line 167 of file l_alloc_new.c.

References L_Alloc_Pool::allocated, L_Alloc_Pool::block_list, exit(), fprintf(), L_Alloc_Pool::free, free(), L_Alloc_Pool::name, and L_Alloc_Pool_Header::next.

Referenced by main(), MD_delete_md(), and MD_read_md().

void L_print_alloc_info FILE *  F,
L_Alloc_Pool pool,
int  verbose
 

Definition at line 327 of file l_alloc_new.c.

References L_Alloc_Pool::allocated, L_Alloc_Pool::blocks_allocated, L_Alloc_Pool::bypass_routines, F, fprintf(), L_Alloc_Pool::free, and L_Alloc_Pool::name.

Referenced by main().


Variable Documentation

int bypass_alloc_routines = 0
 

Definition at line 82 of file l_alloc_new.c.

char copyright[] [static]
 

Initial value:

"@(#) Copyright (c) 1993 The Board of Trustees of the University of Illinois.\
\nAll rights reserved.\n"

Definition at line 64 of file l_alloc_new.c.


Generated on Mon Jul 21 20:29:44 2003 for TINKER LEGO DOC by doxygen 1.3.2