#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <sys/stat.h>
#include <dlfcn.h>
#include "kite_object.h"
#include "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(), TRUE, and kite_symtab_t::value.
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_vm_call_method(), and kite_vm_call_operator().
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().