begin prototype, transcript browser
This commit is contained in:
@@ -7,6 +7,7 @@ gb_thread thread_ctx_t global_thread_context = {
|
||||
.log_proc = default_log_proc,
|
||||
}
|
||||
};
|
||||
gb_thread thread_ctx_t *tcx;
|
||||
|
||||
fn void core_init(void) {
|
||||
tcx = &global_thread_context;
|
||||
|
||||
@@ -9,14 +9,12 @@ struct thread_ctx_t {
|
||||
// and which functions have state
|
||||
ma_arena_t perm;
|
||||
|
||||
void *data[32];
|
||||
logger_t log;
|
||||
};
|
||||
void *app_ctx;
|
||||
void *rn_ctx;
|
||||
void *ui_ctx;
|
||||
void *te_ctx;
|
||||
|
||||
enum {
|
||||
tcx_slot_rn,
|
||||
tcx_slot_ui,
|
||||
tcx_slot_app,
|
||||
logger_t log;
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
@@ -36,5 +34,6 @@ fn alo_t malo(ma_arena_t *arena);
|
||||
fn alo_t malot(ma_temp_t temp);
|
||||
fn void dealloc(alo_t alo, void *ptr);
|
||||
fn void *alloc_size(alo_t alo, size_t size);
|
||||
fn int tcx_alloc_id(void);
|
||||
|
||||
gb_thread thread_ctx_t *tcx;
|
||||
extern gb_thread thread_ctx_t *tcx;
|
||||
|
||||
Reference in New Issue
Block a user