LispBM
Functions
lispbm.h File Reference
#include "heap.h"
#include "symrepr.h"
#include "extensions.h"
#include "eval_cps.h"
#include "print.h"
#include "tokpar.h"
#include "env.h"
#include "lbm_memory.h"
#include "lbm_types.h"
#include "lbm_c_interop.h"
#include "lbm_variables.h"
#include "lbm_custom_type.h"
#include "lbm_channel.h"
Include dependency graph for lispbm.h:

Go to the source code of this file.

Functions

int lbm_init (lbm_cons_t *heap_storage, lbm_uint heap_size, lbm_uint gc_stack_size, lbm_uint *memory, lbm_uint memory_size, lbm_uint *memory_bitmap, lbm_uint bitmap_size, lbm_uint *print_stack_storage, lbm_uint print_stack_size, extension_fptr *extension_storage, int extension_storage_size)
 

Function Documentation

◆ lbm_init()

int lbm_init ( lbm_cons_t heap_storage,
lbm_uint  heap_size,
lbm_uint  gc_stack_size,
lbm_uint *  memory,
lbm_uint  memory_size,
lbm_uint *  memory_bitmap,
lbm_uint  bitmap_size,
lbm_uint *  print_stack_storage,
lbm_uint  print_stack_size,
extension_fptr extension_storage,
int  extension_storage_size 
)

Initialize lispBM. This function initials all subsystems by calling:

Parameters
heap_storagePointer to array of lbm_cons_t to use as heap. This array must be aligned 4 at least.
heap_sizeSize of heap storage array in number of lm_cons_t.
memoryPointer to lbm_uint array to use for the arrays and symbols memory. This array must be aligned 4 at least.
memory_sizeSize of the memory array.
memory_bitmapPointer to lbm_uint array to use for the memory subsystem meta-data.
bitmap_sizeSize of the memory meta-data array.
print_stack_storagePointer to lbm_uint array to use as print_value stack.
print_stack_sizeSize in number of lbm_uint values of the print stack.
extension_storagePointer to array of extension_fptr.
extension_storage_sizeSize of extension array.
Returns
1 on success and 0 on failure.