#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <sys/stat.h>
#include <dlfcn.h>
#include "kite_object.h"
#include "vm/kite_vm.h"
Defines | |
#define | USER_MODULE_EXTENSION ".kt" |
Typedefs | |
typedef void(* | kite_load_module )(kite_thread_t *, kite_object_t *) |
Functions | |
void | kite_set_dylib_path (char *path) |
void | kite_loader_register (kite_thread_t *thd, char *name, kite_load_module ptr) |
kite_object_t * | kite_dereference_and_load (kite_thread_t *thd, char *class) |
Variables | |
char * | kite_dylib_path = LIBRARY_SEARCH_PATH |
#define USER_MODULE_EXTENSION ".kt" |
typedef void(* kite_load_module)(kite_thread_t *, kite_object_t *) |
kite_object_t* kite_dereference_and_load | ( | kite_thread_t * | thd, | |
char * | name | |||
) |
Load a Kite module (compiled or bytecode) into memory.
thd | The current thread. | |
name | The fully-qualified name of the module to load. |
References kite_add_property(), kite_dylib_path, KITE_FIND_PROPERTY, kite_new_class(), kite_new_exception(), kite_new_list(), kite_set_property(), kite_vm_call_method(), kite_vm_t::root_package, TRUE, kite_symtab_t::value, and kite_thread_t::vm.
Referenced by kite_new_boolean(), kite_new_exception(), kite_new_float(), kite_new_integer(), kite_new_list(), kite_new_method_bytecode(), kite_new_method_compiled(), kite_new_null(), kite_new_string(), kite_new_string_with_length(), kite_new_vm(), kite_vm_compile_from_file(), and kite_vm_compile_from_string().
void kite_loader_register | ( | kite_thread_t * | thd, | |
char * | name, | |||
kite_load_module | ptr | |||
) |
void kite_set_dylib_path | ( | char * | path | ) |
Set the dynamic library path.
path | The new dynamic library path (separated by colons). |
References kite_dylib_path.
char* kite_dylib_path = LIBRARY_SEARCH_PATH |
Referenced by kite_dereference_and_load(), and kite_set_dylib_path().