Merge branch 'master' into linux-update
This commit is contained in:
commit
2051b73cb2
20
4ed.cpp
20
4ed.cpp
|
@ -45,8 +45,6 @@ init_command_line_settings(App_Settings *settings, Plat_Settings *plat_settings,
|
||||||
case 'd': action = CLAct_CustomDLL; strict = false; break;
|
case 'd': action = CLAct_CustomDLL; strict = false; break;
|
||||||
case 'D': action = CLAct_CustomDLL; strict = true; break;
|
case 'D': action = CLAct_CustomDLL; strict = true; break;
|
||||||
|
|
||||||
case 'i': action = CLAct_InitialFilePosition; break;
|
|
||||||
|
|
||||||
case 'w': action = CLAct_WindowSize; break;
|
case 'w': action = CLAct_WindowSize; break;
|
||||||
case 'W': action = CLAct_WindowMaximize; break;
|
case 'W': action = CLAct_WindowMaximize; break;
|
||||||
case 'p': action = CLAct_WindowPosition; break;
|
case 'p': action = CLAct_WindowPosition; break;
|
||||||
|
@ -73,14 +71,6 @@ init_command_line_settings(App_Settings *settings, Plat_Settings *plat_settings,
|
||||||
action = CLAct_Nothing;
|
action = CLAct_Nothing;
|
||||||
}break;
|
}break;
|
||||||
|
|
||||||
case CLAct_InitialFilePosition:
|
|
||||||
{
|
|
||||||
if (i < argc){
|
|
||||||
settings->initial_line = (i32)string_to_integer(SCu8(argv[i]), 10);
|
|
||||||
}
|
|
||||||
action = CLAct_Nothing;
|
|
||||||
}break;
|
|
||||||
|
|
||||||
case CLAct_WindowSize:
|
case CLAct_WindowSize:
|
||||||
{
|
{
|
||||||
if (i + 1 < argc){
|
if (i + 1 < argc){
|
||||||
|
@ -204,7 +194,7 @@ App_Init_Sig(app_init){
|
||||||
models->hard_exit = false;
|
models->hard_exit = false;
|
||||||
|
|
||||||
models->config_api = api;
|
models->config_api = api;
|
||||||
models->virtual_event_arena = reserve_arena(tctx);
|
models->virtual_event_arena = make_arena_system();
|
||||||
|
|
||||||
profile_init(&models->profile_list);
|
profile_init(&models->profile_list);
|
||||||
|
|
||||||
|
@ -258,7 +248,7 @@ App_Init_Sig(app_init){
|
||||||
|
|
||||||
// NOTE(allen): style setup
|
// NOTE(allen): style setup
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(tctx);
|
Scratch_Block scratch(tctx, arena);
|
||||||
Face_Description description = {};
|
Face_Description description = {};
|
||||||
description.font.file_name = get_file_path_in_fonts_folder(scratch, string_u8_litexpr("liberation-mono.ttf"));
|
description.font.file_name = get_file_path_in_fonts_folder(scratch, string_u8_litexpr("liberation-mono.ttf"));
|
||||||
description.parameters.pt_size = 12;
|
description.parameters.pt_size = 12;
|
||||||
|
@ -435,7 +425,7 @@ App_Step_Sig(app_step){
|
||||||
event.kind = InputEventKind_MouseWheel;
|
event.kind = InputEventKind_MouseWheel;
|
||||||
event.mouse_wheel.value = (f32)(input->mouse.wheel);
|
event.mouse_wheel.value = (f32)(input->mouse.wheel);
|
||||||
event.mouse_wheel.p = input->mouse.p;
|
event.mouse_wheel.p = input->mouse.p;
|
||||||
event.mouse.modifiers = copy_modifier_set(scratch, &modifiers);
|
event.mouse_wheel.modifiers = copy_modifier_set(scratch, &modifiers);
|
||||||
push_input_event(scratch, &input_list, &event);
|
push_input_event(scratch, &input_list, &event);
|
||||||
}
|
}
|
||||||
if (input->mouse.p != models->prev_p){
|
if (input->mouse.p != models->prev_p){
|
||||||
|
@ -445,7 +435,7 @@ App_Step_Sig(app_step){
|
||||||
Input_Event event = {};
|
Input_Event event = {};
|
||||||
event.kind = InputEventKind_MouseMove;
|
event.kind = InputEventKind_MouseMove;
|
||||||
event.mouse_move.p = input->mouse.p;
|
event.mouse_move.p = input->mouse.p;
|
||||||
event.mouse.modifiers = copy_modifier_set(scratch, &modifiers);
|
event.mouse_move.modifiers = copy_modifier_set(scratch, &modifiers);
|
||||||
push_input_event(scratch, &input_list, &event);
|
push_input_event(scratch, &input_list, &event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -650,7 +640,7 @@ App_Step_Sig(app_step){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
linalloc_clear(models->virtual_event_arena);
|
linalloc_clear(&models->virtual_event_arena);
|
||||||
models->free_virtual_event = 0;
|
models->free_virtual_event = 0;
|
||||||
models->first_virtual_event = 0;
|
models->first_virtual_event = 0;
|
||||||
models->last_virtual_event = 0;
|
models->last_virtual_event = 0;
|
||||||
|
|
|
@ -64,13 +64,13 @@ function void
|
||||||
models_push_virtual_event(Models *models, Input_Event *event){
|
models_push_virtual_event(Models *models, Input_Event *event){
|
||||||
Model_Input_Event_Node *node = models->free_virtual_event;
|
Model_Input_Event_Node *node = models->free_virtual_event;
|
||||||
if (node == 0){
|
if (node == 0){
|
||||||
node = push_array(models->virtual_event_arena, Model_Input_Event_Node, 1);
|
node = push_array(&models->virtual_event_arena, Model_Input_Event_Node, 1);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
sll_stack_pop(models->free_virtual_event);
|
sll_stack_pop(models->free_virtual_event);
|
||||||
}
|
}
|
||||||
sll_queue_push(models->first_virtual_event, models->last_virtual_event, node);
|
sll_queue_push(models->first_virtual_event, models->last_virtual_event, node);
|
||||||
node->event = copy_input_event(models->virtual_event_arena, event);
|
node->event = copy_input_event(&models->virtual_event_arena, event);
|
||||||
}
|
}
|
||||||
|
|
||||||
function Input_Event
|
function Input_Event
|
||||||
|
@ -901,7 +901,7 @@ buffer_save(Application_Links *app, Buffer_ID buffer_id, String_Const_u8 file_na
|
||||||
|
|
||||||
if (!skip_save){
|
if (!skip_save){
|
||||||
Thread_Context *tctx = app->tctx;
|
Thread_Context *tctx = app->tctx;
|
||||||
Scratch_Block scratch(app->tctx, Scratch_Share);
|
Scratch_Block scratch(tctx);
|
||||||
String_Const_u8 name = push_string_copy(scratch, file_name);
|
String_Const_u8 name = push_string_copy(scratch, file_name);
|
||||||
save_file_to_name(tctx, models, file, name.str);
|
save_file_to_name(tctx, models, file, name.str);
|
||||||
result = true;
|
result = true;
|
||||||
|
@ -973,7 +973,7 @@ buffer_reopen(Application_Links *app, Buffer_ID buffer_id, Buffer_Reopen_Flag fl
|
||||||
{
|
{
|
||||||
Models *models = (Models*)app->cmd_context;
|
Models *models = (Models*)app->cmd_context;
|
||||||
Thread_Context *tctx = app->tctx;
|
Thread_Context *tctx = app->tctx;
|
||||||
Scratch_Block scratch(tctx, Scratch_Share);
|
Scratch_Block scratch(tctx);
|
||||||
Editing_File *file = imp_get_file(models, buffer_id);
|
Editing_File *file = imp_get_file(models, buffer_id);
|
||||||
Buffer_Reopen_Result result = BufferReopenResult_Failed;
|
Buffer_Reopen_Result result = BufferReopenResult_Failed;
|
||||||
if (api_check_buffer(file)){
|
if (api_check_buffer(file)){
|
||||||
|
@ -1825,7 +1825,7 @@ get_managed_scope_with_multiple_dependencies(Application_Links *app, Managed_Sco
|
||||||
Models *models = (Models*)app->cmd_context;
|
Models *models = (Models*)app->cmd_context;
|
||||||
Lifetime_Allocator *lifetime_allocator = &models->lifetime_allocator;
|
Lifetime_Allocator *lifetime_allocator = &models->lifetime_allocator;
|
||||||
|
|
||||||
Scratch_Block scratch(app->tctx, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
|
|
||||||
// TODO(allen): revisit this
|
// TODO(allen): revisit this
|
||||||
struct Node_Ptr{
|
struct Node_Ptr{
|
||||||
|
@ -1978,7 +1978,7 @@ managed_scope_get_attachment(Application_Links *app, Managed_Scope scope, Manage
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
#define M \
|
#define M \
|
||||||
"ERROR: scope attachment already exists with a size smaller than the requested size; no attachment pointer can be returned."
|
"ERROR: scope attachment already exists with a size smaller than the requested size; no attachment pointer can be returned."
|
||||||
print_message(app, string_u8_litexpr(M));
|
print_message(app, string_u8_litexpr(M));
|
||||||
#undef M
|
#undef M
|
||||||
}
|
}
|
||||||
|
@ -2831,8 +2831,6 @@ text_layout_create(Application_Links *app, Buffer_ID buffer_id, Rect_f32 rect, B
|
||||||
Text_Layout_ID result = 0;
|
Text_Layout_ID result = 0;
|
||||||
if (api_check_buffer(file)){
|
if (api_check_buffer(file)){
|
||||||
Thread_Context *tctx = app->tctx;
|
Thread_Context *tctx = app->tctx;
|
||||||
Scratch_Block scratch(tctx);
|
|
||||||
Arena *arena = reserve_arena(tctx);
|
|
||||||
Face *face = file_get_face(models, file);
|
Face *face = file_get_face(models, file);
|
||||||
|
|
||||||
Gap_Buffer *buffer = &file->state.buffer;
|
Gap_Buffer *buffer = &file->state.buffer;
|
||||||
|
@ -2861,8 +2859,12 @@ text_layout_create(Application_Links *app, Buffer_ID buffer_id, Rect_f32 rect, B
|
||||||
buffer_get_last_pos_from_line_number(buffer, visible_line_number_range.max));
|
buffer_get_last_pos_from_line_number(buffer, visible_line_number_range.max));
|
||||||
|
|
||||||
i64 item_count = range_size_inclusive(visible_range);
|
i64 item_count = range_size_inclusive(visible_range);
|
||||||
ARGB_Color *colors_array = push_array_zero(arena, ARGB_Color, item_count);
|
|
||||||
result = text_layout_new(&models->text_layouts, arena, buffer_id, buffer_point,
|
Arena arena = make_arena_system();
|
||||||
|
Arena *arena_ptr = push_array_zero(&arena, Arena, 1);
|
||||||
|
*arena_ptr = arena;
|
||||||
|
ARGB_Color *colors_array = push_array_zero(arena_ptr, ARGB_Color, item_count);
|
||||||
|
result = text_layout_new(&models->text_layouts, arena_ptr, buffer_id, buffer_point,
|
||||||
visible_range, visible_line_number_range, rect, colors_array,
|
visible_range, visible_line_number_range, rect, colors_array,
|
||||||
layout_func);
|
layout_func);
|
||||||
}
|
}
|
||||||
|
@ -3094,13 +3096,11 @@ buffer_find_all_matches(Application_Links *app, Arena *arena, Buffer_ID buffer,
|
||||||
String_Match_List list = {};
|
String_Match_List list = {};
|
||||||
if (api_check_buffer(file)){
|
if (api_check_buffer(file)){
|
||||||
if (needle.size > 0){
|
if (needle.size > 0){
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app, arena);
|
||||||
List_String_Const_u8 chunks = buffer_get_chunks(scratch,
|
List_String_Const_u8 chunks = buffer_get_chunks(scratch, &file->state.buffer);
|
||||||
&file->state.buffer);
|
|
||||||
buffer_chunks_clamp(&chunks, range);
|
buffer_chunks_clamp(&chunks, range);
|
||||||
if (chunks.node_count > 0){
|
if (chunks.node_count > 0){
|
||||||
u64_Array jump_table = string_compute_needle_jump_table(arena, needle,
|
u64_Array jump_table = string_compute_needle_jump_table(arena, needle, direction);
|
||||||
direction);
|
|
||||||
Character_Predicate dummy = {};
|
Character_Predicate dummy = {};
|
||||||
if (predicate == 0){
|
if (predicate == 0){
|
||||||
predicate = &dummy;
|
predicate = &dummy;
|
||||||
|
|
|
@ -20,7 +20,6 @@ struct App_Settings{
|
||||||
char **custom_flags;
|
char **custom_flags;
|
||||||
i32 custom_flags_count;
|
i32 custom_flags_count;
|
||||||
|
|
||||||
i32 initial_line;
|
|
||||||
b32 lctrl_lalt_is_altgr;
|
b32 lctrl_lalt_is_altgr;
|
||||||
|
|
||||||
i32 font_size;
|
i32 font_size;
|
||||||
|
@ -83,7 +82,7 @@ struct Models{
|
||||||
Model_View_Command_Function *first_view_cmd_func;
|
Model_View_Command_Function *first_view_cmd_func;
|
||||||
Model_View_Command_Function *last_view_cmd_func;
|
Model_View_Command_Function *last_view_cmd_func;
|
||||||
|
|
||||||
Arena *virtual_event_arena;
|
Arena virtual_event_arena;
|
||||||
Model_Input_Event_Node *free_virtual_event;
|
Model_Input_Event_Node *free_virtual_event;
|
||||||
Model_Input_Event_Node *first_virtual_event;
|
Model_Input_Event_Node *first_virtual_event;
|
||||||
Model_Input_Event_Node *last_virtual_event;
|
Model_Input_Event_Node *last_virtual_event;
|
||||||
|
@ -175,7 +174,6 @@ enum Command_Line_Action{
|
||||||
CLAct_Ignore,
|
CLAct_Ignore,
|
||||||
CLAct_UserFile,
|
CLAct_UserFile,
|
||||||
CLAct_CustomDLL,
|
CLAct_CustomDLL,
|
||||||
CLAct_InitialFilePosition,
|
|
||||||
CLAct_WindowSize,
|
CLAct_WindowSize,
|
||||||
CLAct_WindowMaximize,
|
CLAct_WindowMaximize,
|
||||||
CLAct_WindowPosition,
|
CLAct_WindowPosition,
|
||||||
|
|
|
@ -117,7 +117,7 @@ edit_fix_markers(Thread_Context *tctx, Models *models, Editing_File *file, Batch
|
||||||
}
|
}
|
||||||
cursor_max += total_marker_count;
|
cursor_max += total_marker_count;
|
||||||
|
|
||||||
Scratch_Block scratch(tctx, Scratch_Share);
|
Scratch_Block scratch(tctx);
|
||||||
|
|
||||||
Cursor_With_Index *cursors = push_array(scratch, Cursor_With_Index, cursor_max);
|
Cursor_With_Index *cursors = push_array(scratch, Cursor_With_Index, cursor_max);
|
||||||
Cursor_With_Index *r_cursors = push_array(scratch, Cursor_With_Index, cursor_max);
|
Cursor_With_Index *r_cursors = push_array(scratch, Cursor_With_Index, cursor_max);
|
||||||
|
@ -398,7 +398,7 @@ edit_merge_history_range(Thread_Context *tctx, Models *models, Editing_File *fil
|
||||||
}break;
|
}break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Scratch_Block scratch(tctx, Scratch_Share);
|
Scratch_Block scratch(tctx);
|
||||||
history_merge_records(scratch, history, first_index, last_index);
|
history_merge_records(scratch, history, first_index, last_index);
|
||||||
if (current_index >= last_index){
|
if (current_index >= last_index){
|
||||||
current_index -= (last_index - first_index);
|
current_index -= (last_index - first_index);
|
||||||
|
|
|
@ -142,7 +142,7 @@ save_file_to_name(Thread_Context *tctx, Models *models, Editing_File *file, u8 *
|
||||||
Gap_Buffer *buffer = &file->state.buffer;
|
Gap_Buffer *buffer = &file->state.buffer;
|
||||||
b32 dos_write_mode = file->settings.dos_write_mode;
|
b32 dos_write_mode = file->settings.dos_write_mode;
|
||||||
|
|
||||||
Scratch_Block scratch(tctx, Scratch_Share);
|
Scratch_Block scratch(tctx);
|
||||||
|
|
||||||
if (!using_actual_file_name){
|
if (!using_actual_file_name){
|
||||||
String_Const_u8 s_file_name = SCu8(file_name);
|
String_Const_u8 s_file_name = SCu8(file_name);
|
||||||
|
@ -199,7 +199,7 @@ file_get_layout_func(Editing_File *file){
|
||||||
|
|
||||||
internal void
|
internal void
|
||||||
file_create_from_string(Thread_Context *tctx, Models *models, Editing_File *file, String_Const_u8 val, File_Attributes attributes){
|
file_create_from_string(Thread_Context *tctx, Models *models, Editing_File *file, String_Const_u8 val, File_Attributes attributes){
|
||||||
Scratch_Block scratch(tctx, Scratch_Share);
|
Scratch_Block scratch(tctx);
|
||||||
|
|
||||||
Base_Allocator *allocator = tctx->allocator;
|
Base_Allocator *allocator = tctx->allocator;
|
||||||
block_zero_struct(&file->state);
|
block_zero_struct(&file->state);
|
||||||
|
|
|
@ -131,7 +131,7 @@ global_history_adjust_edit_grouping_counter(Global_History *global_history, i32
|
||||||
internal void
|
internal void
|
||||||
history_init(Thread_Context *tctx, Models *models, History *history){
|
history_init(Thread_Context *tctx, Models *models, History *history){
|
||||||
history->activated = true;
|
history->activated = true;
|
||||||
history->arena = reserve_arena(tctx, KB(32));
|
history->arena = make_arena_system();
|
||||||
heap_init(&history->heap, tctx->allocator);
|
heap_init(&history->heap, tctx->allocator);
|
||||||
history->heap_wrapper = base_allocator_on_heap(&history->heap);
|
history->heap_wrapper = base_allocator_on_heap(&history->heap);
|
||||||
dll_init_sentinel(&history->free_records);
|
dll_init_sentinel(&history->free_records);
|
||||||
|
@ -148,7 +148,7 @@ history_is_activated(History *history){
|
||||||
internal void
|
internal void
|
||||||
history_free(Thread_Context *tctx, History *history){
|
history_free(Thread_Context *tctx, History *history){
|
||||||
if (history->activated){
|
if (history->activated){
|
||||||
release_arena(tctx, history->arena);
|
linalloc_clear(&history->arena);
|
||||||
heap_free_all(&history->heap);
|
heap_free_all(&history->heap);
|
||||||
block_zero_struct(history);
|
block_zero_struct(history);
|
||||||
}
|
}
|
||||||
|
@ -248,13 +248,13 @@ history_record_edit(Global_History *global_history, History *history, Gap_Buffer
|
||||||
Record *new_record = history__allocate_record(history);
|
Record *new_record = history__allocate_record(history);
|
||||||
history__stash_record(history, new_record);
|
history__stash_record(history, new_record);
|
||||||
|
|
||||||
new_record->restore_point = begin_temp(history->arena);
|
new_record->restore_point = begin_temp(&history->arena);
|
||||||
new_record->edit_number = global_history_get_edit_number(global_history);
|
new_record->edit_number = global_history_get_edit_number(global_history);
|
||||||
|
|
||||||
new_record->kind = RecordKind_Single;
|
new_record->kind = RecordKind_Single;
|
||||||
|
|
||||||
new_record->single.forward_text = push_string_copy(history->arena, edit.text);
|
new_record->single.forward_text = push_string_copy(&history->arena, edit.text);
|
||||||
new_record->single.backward_text = buffer_stringify(history->arena, buffer, edit.range);
|
new_record->single.backward_text = buffer_stringify(&history->arena, buffer, edit.range);
|
||||||
new_record->single.first = edit.range.first;
|
new_record->single.first = edit.range.first;
|
||||||
|
|
||||||
Assert(history->record_lookup.count == history->record_count);
|
Assert(history->record_lookup.count == history->record_count);
|
||||||
|
@ -344,8 +344,8 @@ history__optimize_group(Arena *scratch, History *history, Record *record){
|
||||||
|
|
||||||
left->edit_number = right->edit_number;
|
left->edit_number = right->edit_number;
|
||||||
left->single.first = merged_first;
|
left->single.first = merged_first;
|
||||||
left->single.forward_text = push_string_copy(history->arena, merged_forward);
|
left->single.forward_text = push_string_copy(&history->arena, merged_forward);
|
||||||
left->single.backward_text = push_string_copy(history->arena, merged_backward);
|
left->single.backward_text = push_string_copy(&history->arena, merged_backward);
|
||||||
|
|
||||||
history__free_single_node(history, &right->node);
|
history__free_single_node(history, &right->node);
|
||||||
record->group.count -= 1;
|
record->group.count -= 1;
|
||||||
|
|
|
@ -44,7 +44,7 @@ struct Record_Ptr_Lookup_Table{
|
||||||
|
|
||||||
struct History{
|
struct History{
|
||||||
b32 activated;
|
b32 activated;
|
||||||
Arena *arena;
|
Arena arena;
|
||||||
Heap heap;
|
Heap heap;
|
||||||
Base_Allocator heap_wrapper;
|
Base_Allocator heap_wrapper;
|
||||||
Node free_records;
|
Node free_records;
|
||||||
|
|
|
@ -92,6 +92,20 @@ define_api(Arena *arena){
|
||||||
api_call(arena, api, "now_time", "u64");
|
api_call(arena, api, "now_time", "u64");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
api_call(arena, api, "now_date_time_universal", "Date_Time");
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
API_Call *call = api_call(arena, api, "local_date_time_from_universal", "Date_Time");
|
||||||
|
api_param(arena, call, "Date_Time*", "date_time");
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
API_Call *call = api_call(arena, api, "universal_date_time_from_local", "Date_Time");
|
||||||
|
api_param(arena, call, "Date_Time*", "date_time");
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
api_call(arena, api, "wake_up_timer_create", "Plat_Handle");
|
api_call(arena, api, "wake_up_timer_create", "Plat_Handle");
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
internal void
|
internal void
|
||||||
text_layout_init(Thread_Context *tctx, Text_Layout_Container *container){
|
text_layout_init(Thread_Context *tctx, Text_Layout_Container *container){
|
||||||
block_zero_struct(container);
|
block_zero_struct(container);
|
||||||
container->node_arena = reserve_arena(tctx);
|
container->node_arena = make_arena_system();
|
||||||
container->table = make_table_u64_u64(tctx->allocator, 20);
|
container->table = make_table_u64_u64(tctx->allocator, 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ internal Text_Layout*
|
||||||
text_layout_new__alloc_layout(Text_Layout_Container *container){
|
text_layout_new__alloc_layout(Text_Layout_Container *container){
|
||||||
Text_Layout *node = container->free_nodes;
|
Text_Layout *node = container->free_nodes;
|
||||||
if (node == 0){
|
if (node == 0){
|
||||||
node = push_array(container->node_arena, Text_Layout, 1);
|
node = push_array(&container->node_arena, Text_Layout, 1);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
sll_stack_pop(container->free_nodes);
|
sll_stack_pop(container->free_nodes);
|
||||||
|
@ -30,7 +30,8 @@ text_layout_new__alloc_layout(Text_Layout_Container *container){
|
||||||
|
|
||||||
internal void
|
internal void
|
||||||
text_layout_release(Thread_Context *tctx, Models *models, Text_Layout_Container *container, Text_Layout *layout){
|
text_layout_release(Thread_Context *tctx, Models *models, Text_Layout_Container *container, Text_Layout *layout){
|
||||||
release_arena(tctx, layout->arena);
|
Arena arena = *layout->arena;
|
||||||
|
linalloc_clear(&arena);
|
||||||
sll_stack_push(container->free_nodes, layout);
|
sll_stack_push(container->free_nodes, layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ union Text_Layout{
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Text_Layout_Container{
|
struct Text_Layout_Container{
|
||||||
Arena *node_arena;
|
Arena node_arena;
|
||||||
Text_Layout *free_nodes;
|
Text_Layout *free_nodes;
|
||||||
Table_u64_u64 table;
|
Table_u64_u64 table;
|
||||||
Text_Layout_ID id_counter;
|
Text_Layout_ID id_counter;
|
||||||
|
|
|
@ -469,12 +469,12 @@ view_set_file(Thread_Context *tctx, Models *models, View *view, Editing_File *fi
|
||||||
|
|
||||||
function void
|
function void
|
||||||
view_push_context(View *view, View_Context *ctx){
|
view_push_context(View *view, View_Context *ctx){
|
||||||
Temp_Memory pop_me = begin_temp(view->node_arena);
|
Temp_Memory pop_me = begin_temp(&view->node_arena);
|
||||||
View_Context_Node *node = push_array_zero(view->node_arena, View_Context_Node, 1);
|
View_Context_Node *node = push_array_zero(&view->node_arena, View_Context_Node, 1);
|
||||||
sll_stack_push(view->ctx, node);
|
sll_stack_push(view->ctx, node);
|
||||||
node->pop_me = pop_me;
|
node->pop_me = pop_me;
|
||||||
block_copy_struct(&node->ctx, ctx);
|
block_copy_struct(&node->ctx, ctx);
|
||||||
node->delta_rule_memory = push_array_zero(view->node_arena, u8, ctx->delta_rule_memory_size);
|
node->delta_rule_memory = push_array_zero(&view->node_arena, u8, ctx->delta_rule_memory_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
function void
|
function void
|
||||||
|
@ -573,7 +573,7 @@ view_init(Thread_Context *tctx, Models *models, View *view, Editing_File *initia
|
||||||
Custom_Command_Function *event_context_base){
|
Custom_Command_Function *event_context_base){
|
||||||
view_set_file(tctx, models, view, initial_buffer);
|
view_set_file(tctx, models, view, initial_buffer);
|
||||||
|
|
||||||
view->node_arena = reserve_arena(tctx);
|
view->node_arena = make_arena_system();
|
||||||
|
|
||||||
View_Context first_ctx = {};
|
View_Context first_ctx = {};
|
||||||
first_ctx.render_caller = models->render_caller;
|
first_ctx.render_caller = models->render_caller;
|
||||||
|
|
|
@ -83,7 +83,7 @@ struct View{
|
||||||
Coroutine *co;
|
Coroutine *co;
|
||||||
Co_Out co_out;
|
Co_Out co_out;
|
||||||
|
|
||||||
Arena *node_arena;
|
Arena node_arena;
|
||||||
View_Context_Node *ctx;
|
View_Context_Node *ctx;
|
||||||
|
|
||||||
b8 hide_scrollbar;
|
b8 hide_scrollbar;
|
||||||
|
|
|
@ -14,7 +14,7 @@ vr=$fake.$maj.$min
|
||||||
fv=$fake-$maj-$min
|
fv=$fake-$maj-$min
|
||||||
|
|
||||||
flags="--fix-permissions --userversion=$vr"
|
flags="--fix-permissions --userversion=$vr"
|
||||||
dir=../current_dist_all_os
|
dir=../distributions
|
||||||
|
|
||||||
butler push $flags $dir/demo_x86/4coder-$fv-demo-linux-x86.zip 4coder/4coder:linux-x86-demo
|
butler push $flags $dir/demo_x86/4coder-$fv-demo-linux-x86.zip 4coder/4coder:linux-x86-demo
|
||||||
butler push $flags $dir/super_x86/4coder-$fv-super-linux-x86.zip 4coder/4coder:linux-x86
|
butler push $flags $dir/super_x86/4coder-$fv-super-linux-x86.zip 4coder/4coder:linux-x86
|
||||||
|
|
|
@ -14,7 +14,7 @@ vr=$fake.$maj.$min
|
||||||
fv=$fake-$maj-$min
|
fv=$fake-$maj-$min
|
||||||
|
|
||||||
flags="--fix-permissions --userversion=$vr"
|
flags="--fix-permissions --userversion=$vr"
|
||||||
dir=../current_dist_all_os
|
dir=../distributions
|
||||||
|
|
||||||
butler push $flags $dir/demo_x64/4coder-$fv-demo-linux-x64.zip 4coder/4coder:linux-x64-demo
|
butler push $flags $dir/demo_x64/4coder-$fv-demo-linux-x64.zip 4coder/4coder:linux-x64-demo
|
||||||
butler push $flags $dir/super_x64/4coder-$fv-super-linux-x64.zip 4coder/4coder:linux-x64
|
butler push $flags $dir/super_x64/4coder-$fv-super-linux-x64.zip 4coder/4coder:linux-x64
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
bin\build.bat /DPACKAGE_DEMO_X64
|
call bin\build.bat /DPACKAGE_DEMO_X64
|
||||||
bin\build.bat /DPACKAGE_DEMO_X86
|
call bin\build.bat /DPACKAGE_DEMO_X86
|
||||||
bin\build.bat /DPACKAGE_SUPER_X64
|
call bin\build.bat /DPACKAGE_SUPER_X64
|
||||||
bin\build.bat /DPACKAGE_SUPER_X86
|
call bin\build.bat /DPACKAGE_SUPER_X86
|
||||||
|
|
|
@ -4,38 +4,28 @@
|
||||||
|
|
||||||
// TOP
|
// TOP
|
||||||
|
|
||||||
Scratch_Block::Scratch_Block(Application_Links *app, Scratch_Share_Code share){
|
|
||||||
scratch_block__init(this, get_thread_context(app), share);
|
|
||||||
}
|
|
||||||
|
|
||||||
Scratch_Block::Scratch_Block(Application_Links *app){
|
Scratch_Block::Scratch_Block(Application_Links *app){
|
||||||
scratch_block__init(this, get_thread_context(app), share_code_default);
|
Thread_Context *t = this->tctx = get_thread_context(app);
|
||||||
|
this->arena = tctx_reserve(t);
|
||||||
|
this->temp = begin_temp(this->arena);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
Scratch_Block::Scratch_Block(Application_Links *app, Arena *a1){
|
||||||
|
Thread_Context *t = this->tctx = get_thread_context(app);
|
||||||
internal Arena*
|
this->arena = tctx_reserve(t, a1);
|
||||||
reserve_arena(Application_Links *app, u64 chunk_size, u64 align){
|
this->temp = begin_temp(this->arena);
|
||||||
Thread_Context *tctx = get_thread_context(app);
|
|
||||||
return(reserve_arena(tctx, chunk_size, align));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
internal Arena*
|
Scratch_Block::Scratch_Block(Application_Links *app, Arena *a1, Arena *a2){
|
||||||
reserve_arena(Application_Links *app, u64 chunk_size){
|
Thread_Context *t = this->tctx = get_thread_context(app);
|
||||||
Thread_Context *tctx = get_thread_context(app);
|
this->arena = tctx_reserve(t, a1, a2);
|
||||||
return(reserve_arena(tctx, chunk_size));
|
this->temp = begin_temp(this->arena);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal Arena*
|
Scratch_Block::Scratch_Block(Application_Links *app, Arena *a1, Arena *a2, Arena *a3){
|
||||||
reserve_arena(Application_Links *app){
|
Thread_Context *t = this->tctx = get_thread_context(app);
|
||||||
Thread_Context *tctx = get_thread_context(app);
|
this->arena = tctx_reserve(t, a1, a2, a3);
|
||||||
return(reserve_arena(tctx));
|
this->temp = begin_temp(this->arena);
|
||||||
}
|
|
||||||
|
|
||||||
internal void
|
|
||||||
release_arena(Application_Links *app, Arena *arena){
|
|
||||||
Thread_Context *tctx = get_thread_context(app);
|
|
||||||
release_arena(tctx, arena);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// BOTTOM
|
// BOTTOM
|
||||||
|
|
|
@ -184,7 +184,7 @@ get_indentation_array(Application_Links *app, Arena *arena, Buffer_ID buffer, Ra
|
||||||
|
|
||||||
Token_Iterator_Array token_it = token_iterator(0, tokens, anchor_token);
|
Token_Iterator_Array token_it = token_iterator(0, tokens, anchor_token);
|
||||||
|
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app, arena);
|
||||||
Nest *nest = 0;
|
Nest *nest = 0;
|
||||||
Nest_Alloc nest_alloc = {};
|
Nest_Alloc nest_alloc = {};
|
||||||
|
|
||||||
|
@ -281,9 +281,9 @@ get_indentation_array(Application_Links *app, Arena *arena, Buffer_ID buffer, Ra
|
||||||
}
|
}
|
||||||
|
|
||||||
#define EMIT(N) \
|
#define EMIT(N) \
|
||||||
Stmnt(if (lines.first <= line_it){shifted_indentations[line_it]=N;} \
|
Stmnt(if (lines.first <= line_it){shifted_indentations[line_it]=N;} \
|
||||||
if (line_it == lines.end){goto finished;} \
|
if (line_it == lines.end){goto finished;} \
|
||||||
actual_indent = N; )
|
actual_indent = N; )
|
||||||
|
|
||||||
i64 line_it = line_last_indented;
|
i64 line_it = line_last_indented;
|
||||||
if (lines.first <= line_cache.where_token_starts){
|
if (lines.first <= line_cache.where_token_starts){
|
||||||
|
|
|
@ -155,16 +155,14 @@ CUSTOM_COMMAND_SIG(backspace_alpha_numeric_boundary)
|
||||||
CUSTOM_DOC("Delete characters between the cursor position and the first alphanumeric boundary to the left.")
|
CUSTOM_DOC("Delete characters between the cursor position and the first alphanumeric boundary to the left.")
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app);
|
||||||
current_view_boundary_delete(app, Scan_Backward,
|
current_view_boundary_delete(app, Scan_Backward, push_boundary_list(scratch, boundary_alpha_numeric));
|
||||||
push_boundary_list(scratch, boundary_alpha_numeric));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CUSTOM_COMMAND_SIG(delete_alpha_numeric_boundary)
|
CUSTOM_COMMAND_SIG(delete_alpha_numeric_boundary)
|
||||||
CUSTOM_DOC("Delete characters between the cursor position and the first alphanumeric boundary to the right.")
|
CUSTOM_DOC("Delete characters between the cursor position and the first alphanumeric boundary to the right.")
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app);
|
||||||
current_view_boundary_delete(app, Scan_Forward,
|
current_view_boundary_delete(app, Scan_Forward, push_boundary_list(scratch, boundary_alpha_numeric));
|
||||||
push_boundary_list(scratch, boundary_alpha_numeric));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function void
|
function void
|
||||||
|
@ -1744,7 +1742,7 @@ CUSTOM_DOC("Advances forwards through the undo history of the current buffer.")
|
||||||
CUSTOM_COMMAND_SIG(undo_all_buffers)
|
CUSTOM_COMMAND_SIG(undo_all_buffers)
|
||||||
CUSTOM_DOC("Advances backward through the undo history in the buffer containing the most recent regular edit.")
|
CUSTOM_DOC("Advances backward through the undo history in the buffer containing the most recent regular edit.")
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
i32 highest_edit_number = -1;
|
i32 highest_edit_number = -1;
|
||||||
Buffer_ID first_buffer_match = 0;
|
Buffer_ID first_buffer_match = 0;
|
||||||
Buffer_ID last_buffer_match = 0;
|
Buffer_ID last_buffer_match = 0;
|
||||||
|
@ -1815,7 +1813,7 @@ CUSTOM_DOC("Advances backward through the undo history in the buffer containing
|
||||||
CUSTOM_COMMAND_SIG(redo_all_buffers)
|
CUSTOM_COMMAND_SIG(redo_all_buffers)
|
||||||
CUSTOM_DOC("Advances forward through the undo history in the buffer containing the most recent regular edit.")
|
CUSTOM_DOC("Advances forward through the undo history in the buffer containing the most recent regular edit.")
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
|
|
||||||
i32 lowest_edit_number = 0x7FFFFFFF;
|
i32 lowest_edit_number = 0x7FFFFFFF;
|
||||||
Buffer_ID first_buffer_match = 0;
|
Buffer_ID first_buffer_match = 0;
|
||||||
|
|
|
@ -2968,9 +2968,7 @@ SCany(String_Const_u32 str){
|
||||||
}
|
}
|
||||||
|
|
||||||
#define string_litexpr(s) SCchar((s), sizeof(s) - 1)
|
#define string_litexpr(s) SCchar((s), sizeof(s) - 1)
|
||||||
#define string_litinit(s) {(s), sizeof(s) - 1}
|
|
||||||
#define string_u8_litexpr(s) SCu8((u8*)(s), (u64)(sizeof(s) - 1))
|
#define string_u8_litexpr(s) SCu8((u8*)(s), (u64)(sizeof(s) - 1))
|
||||||
#define string_u8_litinit(s) {(u8*)(s), sizeof(s) - 1}
|
|
||||||
#define string_u16_litexpr(s) SCu16((u16*)(s), (u64)(sizeof(s)/2 - 1))
|
#define string_u16_litexpr(s) SCu16((u16*)(s), (u64)(sizeof(s)/2 - 1))
|
||||||
|
|
||||||
#define string_expand(s) (i32)(s).size, (char*)(s).str
|
#define string_expand(s) (i32)(s).size, (char*)(s).str
|
||||||
|
@ -3270,87 +3268,137 @@ thread_ctx_release(Thread_Context *tctx){
|
||||||
node = node->next){
|
node = node->next){
|
||||||
linalloc_clear(&node->arena);
|
linalloc_clear(&node->arena);
|
||||||
}
|
}
|
||||||
|
for (Arena_Node *node = tctx->used_first;
|
||||||
|
node != 0;
|
||||||
|
node = node->next){
|
||||||
|
linalloc_clear(&node->arena);
|
||||||
|
}
|
||||||
linalloc_clear(&tctx->node_arena);
|
linalloc_clear(&tctx->node_arena);
|
||||||
block_zero_struct(tctx);
|
block_zero_struct(tctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
function Arena*
|
function Arena_Node*
|
||||||
reserve_arena(Thread_Context *tctx, u64 chunk_size, u64 align){
|
tctx__alloc_arena_node(Thread_Context *tctx){
|
||||||
Arena_Node *node = tctx->free_arenas;
|
Arena_Node *result = tctx->free_arenas;
|
||||||
if (node != 0){
|
if (result != 0){
|
||||||
sll_stack_pop(tctx->free_arenas);
|
sll_stack_pop(tctx->free_arenas);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
node = push_array_zero(&tctx->node_arena, Arena_Node, 1);
|
result = push_array_zero(&tctx->node_arena, Arena_Node, 1);
|
||||||
|
result->arena = make_arena(tctx->allocator, KB(16), 8);
|
||||||
}
|
}
|
||||||
node->arena = make_arena(tctx->allocator, chunk_size, align);
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
function void
|
||||||
|
tctx__free_arena_node(Thread_Context *tctx, Arena_Node *node){
|
||||||
|
sll_stack_push(tctx->free_arenas, node);
|
||||||
|
}
|
||||||
|
|
||||||
|
function Arena*
|
||||||
|
tctx_reserve(Thread_Context *tctx){
|
||||||
|
Arena_Node *node = tctx->used_first;
|
||||||
|
if (node == 0){
|
||||||
|
node = tctx__alloc_arena_node(tctx);
|
||||||
|
zdll_push_back(tctx->used_first, tctx->used_last, node);
|
||||||
|
}
|
||||||
|
node->ref_counter += 1;
|
||||||
return(&node->arena);
|
return(&node->arena);
|
||||||
}
|
}
|
||||||
|
|
||||||
function Arena*
|
function Arena*
|
||||||
reserve_arena(Thread_Context *tctx, u64 chunk_size){
|
tctx_reserve(Thread_Context *tctx, Arena *a1){
|
||||||
return(reserve_arena(tctx, chunk_size, 8));
|
Arena_Node *node = tctx->used_first;
|
||||||
|
for (; node != 0; node = node->next){
|
||||||
|
Arena *na = &node->arena;
|
||||||
|
if (na != a1){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (node == 0){
|
||||||
|
node = tctx__alloc_arena_node(tctx);
|
||||||
|
zdll_push_back(tctx->used_first, tctx->used_last, node);
|
||||||
|
}
|
||||||
|
node->ref_counter += 1;
|
||||||
|
return(&node->arena);
|
||||||
}
|
}
|
||||||
|
|
||||||
function Arena*
|
function Arena*
|
||||||
reserve_arena(Thread_Context *tctx){
|
tctx_reserve(Thread_Context *tctx, Arena *a1, Arena *a2){
|
||||||
return(reserve_arena(tctx, KB(64), 8));
|
Arena_Node *node = tctx->used_first;
|
||||||
|
for (; node != 0; node = node->next){
|
||||||
|
Arena *na = &node->arena;
|
||||||
|
if (na != a1 && na != a2){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (node == 0){
|
||||||
|
node = tctx__alloc_arena_node(tctx);
|
||||||
|
zdll_push_back(tctx->used_first, tctx->used_last, node);
|
||||||
|
}
|
||||||
|
node->ref_counter += 1;
|
||||||
|
return(&node->arena);
|
||||||
|
}
|
||||||
|
|
||||||
|
function Arena*
|
||||||
|
tctx_reserve(Thread_Context *tctx, Arena *a1, Arena *a2, Arena *a3){
|
||||||
|
Arena_Node *node = tctx->used_first;
|
||||||
|
for (; node != 0; node = node->next){
|
||||||
|
Arena *na = &node->arena;
|
||||||
|
if (na != a1 && na != a2 && na != a3){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (node == 0){
|
||||||
|
node = tctx__alloc_arena_node(tctx);
|
||||||
|
zdll_push_back(tctx->used_first, tctx->used_last, node);
|
||||||
|
}
|
||||||
|
node->ref_counter += 1;
|
||||||
|
return(&node->arena);
|
||||||
}
|
}
|
||||||
|
|
||||||
function void
|
function void
|
||||||
release_arena(Thread_Context *tctx, Arena *arena){
|
tctx_release(Thread_Context *tctx, Arena *arena){
|
||||||
Arena_Node *node = CastFromMember(Arena_Node, arena, arena);
|
Arena_Node *node = CastFromMember(Arena_Node, arena, arena);
|
||||||
linalloc_clear(arena);
|
node->ref_counter -= 1;
|
||||||
|
if (node->ref_counter == 0){
|
||||||
|
// TODO(allen): make a version of clear that keeps memory allocated from the sytem level
|
||||||
|
// but still resets to zero.
|
||||||
|
linalloc_clear(&node->arena);
|
||||||
|
zdll_remove(tctx->used_first, tctx->used_last, node);
|
||||||
sll_stack_push(tctx->free_arenas, node);
|
sll_stack_push(tctx->free_arenas, node);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|
||||||
function void
|
Scratch_Block::Scratch_Block(Thread_Context *t){
|
||||||
scratch_block__init(Scratch_Block *block, Thread_Context *tctx, Scratch_Share_Code share){
|
this->tctx = t;
|
||||||
Arena *arena = tctx->sharable_scratch;
|
this->arena = tctx_reserve(t);
|
||||||
if (arena != 0){
|
this->temp = begin_temp(this->arena);
|
||||||
block->arena = arena;
|
|
||||||
block->temp = begin_temp(arena);
|
|
||||||
block->do_full_clear = false;
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
arena = reserve_arena(tctx);
|
|
||||||
block->arena = arena;
|
|
||||||
block_zero_struct(&block->temp);
|
|
||||||
block->do_full_clear = true;
|
|
||||||
}
|
|
||||||
block->tctx = tctx;
|
|
||||||
block->sharable_restore = tctx->sharable_scratch;
|
|
||||||
if (share == Scratch_Share){
|
|
||||||
tctx->sharable_scratch = arena;
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
tctx->sharable_scratch = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
global_const Scratch_Share_Code share_code_default = Scratch_DontShare;
|
Scratch_Block::Scratch_Block(Thread_Context *t, Arena *a1){
|
||||||
|
this->tctx = t;
|
||||||
Scratch_Block::Scratch_Block(Thread_Context *tctx, Scratch_Share_Code share){
|
this->arena = tctx_reserve(t, a1);
|
||||||
scratch_block__init(this, tctx, share);
|
this->temp = begin_temp(this->arena);
|
||||||
}
|
}
|
||||||
|
|
||||||
Scratch_Block::Scratch_Block(Thread_Context *tctx){
|
Scratch_Block::Scratch_Block(Thread_Context *t, Arena *a1, Arena *a2){
|
||||||
scratch_block__init(this, tctx, share_code_default);
|
this->tctx = t;
|
||||||
|
this->arena = tctx_reserve(t, a1, a2);
|
||||||
|
this->temp = begin_temp(this->arena);
|
||||||
|
}
|
||||||
|
|
||||||
|
Scratch_Block::Scratch_Block(Thread_Context *t, Arena *a1, Arena *a2, Arena *a3){
|
||||||
|
this->tctx = t;
|
||||||
|
this->arena = tctx_reserve(t, a1, a2, a3);
|
||||||
|
this->temp = begin_temp(this->arena);
|
||||||
}
|
}
|
||||||
|
|
||||||
Scratch_Block::~Scratch_Block(){
|
Scratch_Block::~Scratch_Block(){
|
||||||
if (this->do_full_clear){
|
|
||||||
Assert(this->tctx != 0);
|
|
||||||
release_arena(this->tctx, this->arena);
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
end_temp(this->temp);
|
end_temp(this->temp);
|
||||||
}
|
tctx_release(this->tctx, this->arena);
|
||||||
if (this->tctx != 0){
|
|
||||||
this->tctx->sharable_scratch = this->sharable_restore;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Scratch_Block::operator Arena*(){
|
Scratch_Block::operator Arena*(){
|
||||||
|
@ -3359,12 +3407,7 @@ Scratch_Block::operator Arena*(){
|
||||||
|
|
||||||
void
|
void
|
||||||
Scratch_Block::restore(void){
|
Scratch_Block::restore(void){
|
||||||
if (this->do_full_clear){
|
|
||||||
linalloc_clear(this->arena);
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
end_temp(this->temp);
|
end_temp(this->temp);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Temp_Memory_Block::Temp_Memory_Block(Temp_Memory t){
|
Temp_Memory_Block::Temp_Memory_Block(Temp_Memory t){
|
||||||
|
@ -7230,6 +7273,46 @@ data_decode_from_base64(Arena *arena, u8 *str, u64 size){
|
||||||
return(data);
|
return(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
|
||||||
|
function u64
|
||||||
|
time_stamp_from_date_time(Date_Time *date_time){
|
||||||
|
u64 result = 0;
|
||||||
|
result += date_time->year;
|
||||||
|
result *= 12;
|
||||||
|
result += date_time->mon;
|
||||||
|
result *= 30;
|
||||||
|
result += date_time->day;
|
||||||
|
result *= 24;
|
||||||
|
result += date_time->hour;
|
||||||
|
result *= 60;
|
||||||
|
result += date_time->min;
|
||||||
|
result *= 61;
|
||||||
|
result += date_time->sec;
|
||||||
|
result *= 1000;
|
||||||
|
result += date_time->msec;
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
function Date_Time
|
||||||
|
date_time_from_time_stamp(u64 time_stamp){
|
||||||
|
Date_Time result = {};
|
||||||
|
result.msec = time_stamp%1000;
|
||||||
|
time_stamp /= 1000;
|
||||||
|
result.sec = time_stamp%61;
|
||||||
|
time_stamp /= 61;
|
||||||
|
result.min = time_stamp%60;
|
||||||
|
time_stamp /= 60;
|
||||||
|
result.hour = time_stamp%24;
|
||||||
|
time_stamp /= 24;
|
||||||
|
result.day = time_stamp%30;
|
||||||
|
time_stamp /= 30;
|
||||||
|
result.mon = time_stamp%12;
|
||||||
|
time_stamp /= 12;
|
||||||
|
result.year = (u32)time_stamp;
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// BOTTOM
|
// BOTTOM
|
||||||
|
|
|
@ -933,6 +933,9 @@ struct String_Const_Any{
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define string_litinit(s) {(s), sizeof(s) - 1}
|
||||||
|
#define string_u8_litinit(s) {(u8*)(s), sizeof(s) - 1}
|
||||||
|
|
||||||
struct Node_String_Const_char{
|
struct Node_String_Const_char{
|
||||||
Node_String_Const_char *next;
|
Node_String_Const_char *next;
|
||||||
String_Const_char string;
|
String_Const_char string;
|
||||||
|
@ -1103,6 +1106,151 @@ enum{
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|
||||||
|
struct Date_Time{
|
||||||
|
u32 year; // Real year, no adjustment
|
||||||
|
u8 mon; // [0,11]
|
||||||
|
u8 day; // [0,30]
|
||||||
|
u8 hour; // [0,23]
|
||||||
|
u8 min; // [0,59]
|
||||||
|
u8 sec; // [0,60]
|
||||||
|
u16 msec; // [0,999]
|
||||||
|
};
|
||||||
|
|
||||||
|
global String_Const_u8 month_full_name[] = {
|
||||||
|
string_u8_litinit("January"),
|
||||||
|
string_u8_litinit("February"),
|
||||||
|
string_u8_litinit("March"),
|
||||||
|
string_u8_litinit("April"),
|
||||||
|
string_u8_litinit("May"),
|
||||||
|
string_u8_litinit("June"),
|
||||||
|
string_u8_litinit("July"),
|
||||||
|
string_u8_litinit("August"),
|
||||||
|
string_u8_litinit("September"),
|
||||||
|
string_u8_litinit("October"),
|
||||||
|
string_u8_litinit("November"),
|
||||||
|
string_u8_litinit("December"),
|
||||||
|
};
|
||||||
|
|
||||||
|
global String_Const_u8 month_abrev_name[] = {
|
||||||
|
string_u8_litinit("Jan"),
|
||||||
|
string_u8_litinit("Feb"),
|
||||||
|
string_u8_litinit("Mar"),
|
||||||
|
string_u8_litinit("Apr"),
|
||||||
|
string_u8_litinit("May"),
|
||||||
|
string_u8_litinit("Jun"),
|
||||||
|
string_u8_litinit("Jul"),
|
||||||
|
string_u8_litinit("Aug"),
|
||||||
|
string_u8_litinit("Sep"),
|
||||||
|
string_u8_litinit("Oct"),
|
||||||
|
string_u8_litinit("Nov"),
|
||||||
|
string_u8_litinit("Dec"),
|
||||||
|
};
|
||||||
|
|
||||||
|
global String_Const_u8 ordinal_numeric_name[] = {
|
||||||
|
string_u8_litinit("1st"),
|
||||||
|
string_u8_litinit("2nd"),
|
||||||
|
string_u8_litinit("3rd"),
|
||||||
|
string_u8_litinit("4th"),
|
||||||
|
string_u8_litinit("5th"),
|
||||||
|
string_u8_litinit("6th"),
|
||||||
|
string_u8_litinit("7th"),
|
||||||
|
string_u8_litinit("8th"),
|
||||||
|
string_u8_litinit("9th"),
|
||||||
|
string_u8_litinit("10th"),
|
||||||
|
string_u8_litinit("11th"),
|
||||||
|
string_u8_litinit("12th"),
|
||||||
|
string_u8_litinit("13th"),
|
||||||
|
string_u8_litinit("14th"),
|
||||||
|
string_u8_litinit("15th"),
|
||||||
|
string_u8_litinit("16th"),
|
||||||
|
string_u8_litinit("17th"),
|
||||||
|
string_u8_litinit("18th"),
|
||||||
|
string_u8_litinit("19th"),
|
||||||
|
string_u8_litinit("20th"),
|
||||||
|
string_u8_litinit("21st"),
|
||||||
|
string_u8_litinit("22nd"),
|
||||||
|
string_u8_litinit("23rd"),
|
||||||
|
string_u8_litinit("24th"),
|
||||||
|
string_u8_litinit("25th"),
|
||||||
|
string_u8_litinit("26th"),
|
||||||
|
string_u8_litinit("27th"),
|
||||||
|
string_u8_litinit("28th"),
|
||||||
|
string_u8_litinit("29th"),
|
||||||
|
string_u8_litinit("30th"),
|
||||||
|
string_u8_litinit("31st"),
|
||||||
|
string_u8_litinit("32nd"),
|
||||||
|
string_u8_litinit("33rd"),
|
||||||
|
string_u8_litinit("34th"),
|
||||||
|
string_u8_litinit("35th"),
|
||||||
|
string_u8_litinit("36th"),
|
||||||
|
string_u8_litinit("37th"),
|
||||||
|
string_u8_litinit("38th"),
|
||||||
|
string_u8_litinit("39th"),
|
||||||
|
string_u8_litinit("40th"),
|
||||||
|
string_u8_litinit("41st"),
|
||||||
|
string_u8_litinit("42nd"),
|
||||||
|
string_u8_litinit("43rd"),
|
||||||
|
string_u8_litinit("44th"),
|
||||||
|
string_u8_litinit("45th"),
|
||||||
|
string_u8_litinit("46th"),
|
||||||
|
string_u8_litinit("47th"),
|
||||||
|
string_u8_litinit("48th"),
|
||||||
|
string_u8_litinit("49th"),
|
||||||
|
string_u8_litinit("50th"),
|
||||||
|
string_u8_litinit("51st"),
|
||||||
|
string_u8_litinit("52nd"),
|
||||||
|
string_u8_litinit("53rd"),
|
||||||
|
string_u8_litinit("54th"),
|
||||||
|
string_u8_litinit("55th"),
|
||||||
|
string_u8_litinit("56th"),
|
||||||
|
string_u8_litinit("57th"),
|
||||||
|
string_u8_litinit("58th"),
|
||||||
|
string_u8_litinit("59th"),
|
||||||
|
string_u8_litinit("60th"),
|
||||||
|
string_u8_litinit("61st"),
|
||||||
|
string_u8_litinit("62nd"),
|
||||||
|
string_u8_litinit("63rd"),
|
||||||
|
string_u8_litinit("64th"),
|
||||||
|
string_u8_litinit("65th"),
|
||||||
|
string_u8_litinit("66th"),
|
||||||
|
string_u8_litinit("67th"),
|
||||||
|
string_u8_litinit("68th"),
|
||||||
|
string_u8_litinit("69th"),
|
||||||
|
string_u8_litinit("70th"),
|
||||||
|
string_u8_litinit("71st"),
|
||||||
|
string_u8_litinit("72nd"),
|
||||||
|
string_u8_litinit("73rd"),
|
||||||
|
string_u8_litinit("74th"),
|
||||||
|
string_u8_litinit("75th"),
|
||||||
|
string_u8_litinit("76th"),
|
||||||
|
string_u8_litinit("77th"),
|
||||||
|
string_u8_litinit("78th"),
|
||||||
|
string_u8_litinit("79th"),
|
||||||
|
string_u8_litinit("80th"),
|
||||||
|
string_u8_litinit("81st"),
|
||||||
|
string_u8_litinit("82nd"),
|
||||||
|
string_u8_litinit("83rd"),
|
||||||
|
string_u8_litinit("84th"),
|
||||||
|
string_u8_litinit("85th"),
|
||||||
|
string_u8_litinit("86th"),
|
||||||
|
string_u8_litinit("87th"),
|
||||||
|
string_u8_litinit("88th"),
|
||||||
|
string_u8_litinit("89th"),
|
||||||
|
string_u8_litinit("90th"),
|
||||||
|
string_u8_litinit("91st"),
|
||||||
|
string_u8_litinit("92nd"),
|
||||||
|
string_u8_litinit("93rd"),
|
||||||
|
string_u8_litinit("94th"),
|
||||||
|
string_u8_litinit("95th"),
|
||||||
|
string_u8_litinit("96th"),
|
||||||
|
string_u8_litinit("97th"),
|
||||||
|
string_u8_litinit("98th"),
|
||||||
|
string_u8_litinit("99th"),
|
||||||
|
string_u8_litinit("100th"),
|
||||||
|
};
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
|
||||||
typedef void *Base_Allocator_Reserve_Signature(void *user_data, u64 size, u64 *size_out, String_Const_u8 location);
|
typedef void *Base_Allocator_Reserve_Signature(void *user_data, u64 size, u64 *size_out, String_Const_u8 location);
|
||||||
typedef void Base_Allocator_Commit_Signature(void *user_data, void *ptr, u64 size);
|
typedef void Base_Allocator_Commit_Signature(void *user_data, void *ptr, u64 size);
|
||||||
typedef void Base_Allocator_Uncommit_Signature(void *user_data, void *ptr, u64 size);
|
typedef void Base_Allocator_Uncommit_Signature(void *user_data, void *ptr, u64 size);
|
||||||
|
@ -1157,11 +1305,6 @@ struct Temp_Memory{
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Arena_Node{
|
|
||||||
Arena_Node *next;
|
|
||||||
Arena arena;
|
|
||||||
};
|
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|
||||||
typedef u64 Profile_ID;
|
typedef u64 Profile_ID;
|
||||||
|
@ -1200,12 +1343,20 @@ enum{
|
||||||
ThreadKind_AsyncTasks,
|
ThreadKind_AsyncTasks,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct Arena_Node{
|
||||||
|
Arena_Node *next;
|
||||||
|
Arena_Node *prev;
|
||||||
|
Arena arena;
|
||||||
|
i32 ref_counter;
|
||||||
|
};
|
||||||
|
|
||||||
struct Thread_Context{
|
struct Thread_Context{
|
||||||
Thread_Kind kind;
|
Thread_Kind kind;
|
||||||
Base_Allocator *allocator;
|
Base_Allocator *allocator;
|
||||||
Arena node_arena;
|
Arena node_arena;
|
||||||
|
Arena_Node *used_first;
|
||||||
|
Arena_Node *used_last;
|
||||||
Arena_Node *free_arenas;
|
Arena_Node *free_arenas;
|
||||||
Arena *sharable_scratch;
|
|
||||||
|
|
||||||
Base_Allocator *prof_allocator;
|
Base_Allocator *prof_allocator;
|
||||||
Profile_ID prof_id_counter;
|
Profile_ID prof_id_counter;
|
||||||
|
@ -1217,23 +1368,19 @@ struct Thread_Context{
|
||||||
void *user_data;
|
void *user_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef i32 Scratch_Share_Code;
|
|
||||||
enum{
|
|
||||||
Scratch_DontShare,
|
|
||||||
Scratch_Share,
|
|
||||||
};
|
|
||||||
|
|
||||||
struct Scratch_Block{
|
struct Scratch_Block{
|
||||||
|
Thread_Context *tctx;
|
||||||
Arena *arena;
|
Arena *arena;
|
||||||
Temp_Memory temp;
|
Temp_Memory temp;
|
||||||
b32 do_full_clear;
|
|
||||||
Thread_Context *tctx;
|
|
||||||
Arena *sharable_restore;
|
|
||||||
|
|
||||||
Scratch_Block(struct Thread_Context *tctx, Scratch_Share_Code share);
|
|
||||||
Scratch_Block(struct Thread_Context *tctx);
|
Scratch_Block(struct Thread_Context *tctx);
|
||||||
Scratch_Block(struct Application_Links *app, Scratch_Share_Code share);
|
Scratch_Block(struct Thread_Context *tctx, Arena *a1);
|
||||||
|
Scratch_Block(struct Thread_Context *tctx, Arena *a1, Arena *a2);
|
||||||
|
Scratch_Block(struct Thread_Context *tctx, Arena *a1, Arena *a2, Arena *a3);
|
||||||
Scratch_Block(struct Application_Links *app);
|
Scratch_Block(struct Application_Links *app);
|
||||||
|
Scratch_Block(struct Application_Links *app, Arena *a1);
|
||||||
|
Scratch_Block(struct Application_Links *app, Arena *a1, Arena *a2);
|
||||||
|
Scratch_Block(struct Application_Links *app, Arena *a1, Arena *a2, Arena *a3);
|
||||||
~Scratch_Block();
|
~Scratch_Block();
|
||||||
operator Arena*();
|
operator Arena*();
|
||||||
void restore(void);
|
void restore(void);
|
||||||
|
|
|
@ -221,7 +221,9 @@ CUSTOM_DOC("Clears the history of the clipboard")
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|
||||||
CUSTOM_COMMAND_SIG(multi_paste){
|
CUSTOM_COMMAND_SIG(multi_paste)
|
||||||
|
CUSTOM_DOC("Paste multiple entries from the clipboard at once")
|
||||||
|
{
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app);
|
||||||
|
|
||||||
i32 count = clipboard_count(0);
|
i32 count = clipboard_count(0);
|
||||||
|
|
|
@ -880,7 +880,7 @@ layout_token_score_wrap_token(Token_Pair *pair, Token_Cpp_Kind kind){
|
||||||
|
|
||||||
function Layout_Item_List
|
function Layout_Item_List
|
||||||
layout_index__inner(Application_Links *app, Arena *arena, Buffer_ID buffer, Range_i64 range, Face_ID face, f32 width, Code_Index_File *file, Layout_Wrap_Kind kind){
|
layout_index__inner(Application_Links *app, Arena *arena, Buffer_ID buffer, Range_i64 range, Face_ID face, f32 width, Code_Index_File *file, Layout_Wrap_Kind kind){
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app, arena);
|
||||||
|
|
||||||
Token_Array tokens = get_token_array_from_buffer(app, buffer);
|
Token_Array tokens = get_token_array_from_buffer(app, buffer);
|
||||||
Token_Array *tokens_ptr = &tokens;
|
Token_Array *tokens_ptr = &tokens;
|
||||||
|
|
|
@ -210,7 +210,7 @@ write_snippet(Application_Links *app, View_ID view, Buffer_ID buffer,
|
||||||
function Snippet*
|
function Snippet*
|
||||||
get_snippet_from_user(Application_Links *app, Snippet *snippets, i32 snippet_count,
|
get_snippet_from_user(Application_Links *app, Snippet *snippets, i32 snippet_count,
|
||||||
String_Const_u8 query){
|
String_Const_u8 query){
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
Lister_Block lister(app, scratch);
|
Lister_Block lister(app, scratch);
|
||||||
lister_set_query(lister, query);
|
lister_set_query(lister, query);
|
||||||
lister_set_default_handlers(lister);
|
lister_set_default_handlers(lister);
|
||||||
|
|
|
@ -42,7 +42,7 @@ mapping__alloc_map(Mapping *mapping){
|
||||||
sll_stack_pop(mapping->free_maps);
|
sll_stack_pop(mapping->free_maps);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
result = push_array(mapping->node_arena, Command_Map, 1);
|
result = push_array(&mapping->node_arena, Command_Map, 1);
|
||||||
}
|
}
|
||||||
zdll_push_back(mapping->first_map, mapping->last_map, result);
|
zdll_push_back(mapping->first_map, mapping->last_map, result);
|
||||||
return(result);
|
return(result);
|
||||||
|
@ -61,7 +61,7 @@ mapping__alloc_modified_binding(Mapping *mapping){
|
||||||
sll_stack_pop(mapping->free_bindings);
|
sll_stack_pop(mapping->free_bindings);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
result = push_array(mapping->node_arena, Command_Modified_Binding, 1);
|
result = push_array(&mapping->node_arena, Command_Modified_Binding, 1);
|
||||||
}
|
}
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ mapping__alloc_binding_list(Mapping *mapping){
|
||||||
sll_stack_pop(mapping->free_lists);
|
sll_stack_pop(mapping->free_lists);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
result = push_array(mapping->node_arena, Command_Binding_List, 1);
|
result = push_array(&mapping->node_arena, Command_Binding_List, 1);
|
||||||
}
|
}
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
@ -117,8 +117,8 @@ map__get_or_make_list(Mapping *mapping, Command_Map *map, u64 key){
|
||||||
function void
|
function void
|
||||||
mapping_init(Thread_Context *tctx, Mapping *mapping){
|
mapping_init(Thread_Context *tctx, Mapping *mapping){
|
||||||
block_zero_struct(mapping);
|
block_zero_struct(mapping);
|
||||||
mapping->node_arena = reserve_arena(tctx);
|
mapping->node_arena = make_arena_system();
|
||||||
heap_init(&mapping->heap, mapping->node_arena);
|
heap_init(&mapping->heap, &mapping->node_arena);
|
||||||
mapping->heap_wrapper = base_allocator_on_heap(&mapping->heap);
|
mapping->heap_wrapper = base_allocator_on_heap(&mapping->heap);
|
||||||
mapping->id_to_map = make_table_u64_u64(tctx->allocator, 10);
|
mapping->id_to_map = make_table_u64_u64(tctx->allocator, 10);
|
||||||
mapping->id_counter = 1;
|
mapping->id_counter = 1;
|
||||||
|
@ -126,10 +126,8 @@ mapping_init(Thread_Context *tctx, Mapping *mapping){
|
||||||
|
|
||||||
function void
|
function void
|
||||||
mapping_release(Thread_Context *tctx, Mapping *mapping){
|
mapping_release(Thread_Context *tctx, Mapping *mapping){
|
||||||
if (mapping->node_arena != 0){
|
linalloc_clear(&mapping->node_arena);
|
||||||
release_arena(tctx, mapping->node_arena);
|
|
||||||
table_free(&mapping->id_to_map);
|
table_free(&mapping->id_to_map);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function void
|
function void
|
||||||
|
@ -199,85 +197,130 @@ mapping_release_map(Mapping *mapping, Command_Map *map){
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|
||||||
|
function b32
|
||||||
|
map_strict_match(Input_Modifier_Set *binding_mod_set, Input_Modifier_Set *event_mod_set, Key_Code skip_self_mod){
|
||||||
|
b32 result = true;
|
||||||
|
i32 binding_mod_count = binding_mod_set->count;
|
||||||
|
Key_Code *binding_mods = binding_mod_set->mods;
|
||||||
|
for (i32 i = 0; i < binding_mod_count; i += 1){
|
||||||
|
if (!has_modifier(event_mod_set, binding_mods[i])){
|
||||||
|
result = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
i32 mod_count = event_mod_set->count;
|
||||||
|
Key_Code *mods = event_mod_set->mods;
|
||||||
|
for (i32 i = 0; i < mod_count; i += 1){
|
||||||
|
if (mods[i] != skip_self_mod && !has_modifier(binding_mod_set, mods[i])){
|
||||||
|
result = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
function b32
|
||||||
|
map_loose_match(Input_Modifier_Set *binding_mod_set, Input_Modifier_Set *event_mod_set){
|
||||||
|
b32 result = true;
|
||||||
|
i32 binding_mod_count = binding_mod_set->count;
|
||||||
|
Key_Code *binding_mods = binding_mod_set->mods;
|
||||||
|
for (i32 i = 0; i < binding_mod_count; i += 1){
|
||||||
|
if (!has_modifier(event_mod_set, binding_mods[i])){
|
||||||
|
result = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
function Map_Event_Breakdown
|
||||||
|
map_get_event_breakdown(Input_Event *event){
|
||||||
|
Map_Event_Breakdown result = {};
|
||||||
|
|
||||||
|
switch (event->kind){
|
||||||
|
case InputEventKind_KeyStroke:
|
||||||
|
{
|
||||||
|
result.key = mapping__key(InputEventKind_KeyStroke, event->key.code);
|
||||||
|
result.mod_set = &event->key.modifiers;
|
||||||
|
result.skip_self_mod = event->key.code;
|
||||||
|
}break;
|
||||||
|
|
||||||
|
case InputEventKind_MouseButton:
|
||||||
|
{
|
||||||
|
result.key = mapping__key(InputEventKind_MouseButton, event->mouse.code);
|
||||||
|
result.mod_set = &event->mouse.modifiers;
|
||||||
|
}break;
|
||||||
|
|
||||||
|
case InputEventKind_MouseWheel:
|
||||||
|
{
|
||||||
|
result.key = mapping__key(InputEventKind_MouseWheel, 0);
|
||||||
|
result.mod_set = &event->mouse_wheel.modifiers;
|
||||||
|
}break;
|
||||||
|
|
||||||
|
case InputEventKind_MouseMove:
|
||||||
|
{
|
||||||
|
result.key = mapping__key(InputEventKind_MouseMove, 0);
|
||||||
|
result.mod_set = &event->mouse_move.modifiers;
|
||||||
|
}break;
|
||||||
|
|
||||||
|
case InputEventKind_Core:
|
||||||
|
{
|
||||||
|
result.key = mapping__key(InputEventKind_Core, event->core.code);
|
||||||
|
}break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
function Command_Binding
|
function Command_Binding
|
||||||
map_get_binding_non_recursive(Command_Map *map, Input_Event *event){
|
map_get_binding_non_recursive(Command_Map *map, Input_Event *event, Binding_Match_Rule rule){
|
||||||
Command_Binding result = {};
|
Command_Binding result = {};
|
||||||
|
|
||||||
if (event->kind == InputEventKind_CustomFunction){
|
if (event->kind == InputEventKind_CustomFunction){
|
||||||
result.custom = event->custom_func;
|
result.custom = event->custom_func;
|
||||||
}
|
}
|
||||||
else if (map != 0){
|
else if (map != 0){
|
||||||
b32 do_table_lookup = false;
|
if (event->kind == InputEventKind_TextInsert){
|
||||||
Input_Modifier_Set *mods = 0;
|
|
||||||
u64 key = 0;
|
|
||||||
|
|
||||||
switch (event->kind){
|
|
||||||
case InputEventKind_TextInsert:
|
|
||||||
{
|
|
||||||
result = map->text_input_command;
|
result = map->text_input_command;
|
||||||
}break;
|
|
||||||
|
|
||||||
case InputEventKind_KeyStroke:
|
|
||||||
{
|
|
||||||
key = mapping__key(InputEventKind_KeyStroke, event->key.code);
|
|
||||||
do_table_lookup = true;
|
|
||||||
mods = &event->key.modifiers;
|
|
||||||
}break;
|
|
||||||
|
|
||||||
case InputEventKind_MouseButton:
|
|
||||||
{
|
|
||||||
key = mapping__key(InputEventKind_MouseButton, event->mouse.code);
|
|
||||||
do_table_lookup = true;
|
|
||||||
mods = &event->mouse.modifiers;
|
|
||||||
}break;
|
|
||||||
|
|
||||||
case InputEventKind_MouseWheel:
|
|
||||||
{
|
|
||||||
key = mapping__key(InputEventKind_MouseWheel, 0);
|
|
||||||
do_table_lookup = true;
|
|
||||||
mods = &event->mouse_wheel.modifiers;
|
|
||||||
}break;
|
|
||||||
|
|
||||||
case InputEventKind_MouseMove:
|
|
||||||
{
|
|
||||||
key = mapping__key(InputEventKind_MouseMove, 0);
|
|
||||||
do_table_lookup = true;
|
|
||||||
mods = &event->mouse_move.modifiers;
|
|
||||||
}break;
|
|
||||||
|
|
||||||
case InputEventKind_Core:
|
|
||||||
{
|
|
||||||
key = mapping__key(InputEventKind_Core, event->core.code);
|
|
||||||
do_table_lookup = true;
|
|
||||||
}break;
|
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
if (do_table_lookup){
|
Map_Event_Breakdown breakdown = map_get_event_breakdown(event);
|
||||||
Table_Lookup lookup = table_lookup(&map->event_code_to_binding_list, key);
|
Table_Lookup lookup = table_lookup(&map->event_code_to_binding_list, breakdown.key);
|
||||||
if (lookup.found_match){
|
if (lookup.found_match){
|
||||||
u64 val = 0;
|
u64 val = 0;
|
||||||
table_read(&map->event_code_to_binding_list, lookup, &val);
|
table_read(&map->event_code_to_binding_list, lookup, &val);
|
||||||
Command_Binding_List *list = (Command_Binding_List*)IntAsPtr(val);
|
Command_Binding_List *list = (Command_Binding_List*)IntAsPtr(val);
|
||||||
if (mods != 0){
|
if (breakdown.mod_set != 0){
|
||||||
|
switch (rule){
|
||||||
|
case BindingMatchRule_Strict:
|
||||||
|
{
|
||||||
for (SNode *node = list->first;
|
for (SNode *node = list->first;
|
||||||
node != 0;
|
node != 0;
|
||||||
node = node->next){
|
node = node->next){
|
||||||
Command_Modified_Binding *mod_binding = CastFromMember(Command_Modified_Binding, order_node, node);
|
Command_Modified_Binding *mod_binding = CastFromMember(Command_Modified_Binding, order_node, node);
|
||||||
Input_Modifier_Set *binding_mod_set = &mod_binding->mods;
|
Input_Modifier_Set *binding_mod_set = &mod_binding->mods;
|
||||||
b32 is_a_match = true;
|
if (map_strict_match(binding_mod_set, breakdown.mod_set, breakdown.skip_self_mod)){
|
||||||
i32 binding_mod_count = binding_mod_set->count;
|
|
||||||
Key_Code *binding_mods = binding_mod_set->mods;
|
|
||||||
for (i32 i = 0; i < binding_mod_count; i += 1){
|
|
||||||
if (!has_modifier(mods, binding_mods[i])){
|
|
||||||
is_a_match = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (is_a_match){
|
|
||||||
result = mod_binding->binding;
|
result = mod_binding->binding;
|
||||||
break;
|
goto done;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}break;
|
||||||
|
|
||||||
|
case BindingMatchRule_Loose:
|
||||||
|
{
|
||||||
|
for (SNode *node = list->first;
|
||||||
|
node != 0;
|
||||||
|
node = node->next){
|
||||||
|
Command_Modified_Binding *mod_binding = CastFromMember(Command_Modified_Binding, order_node, node);
|
||||||
|
Input_Modifier_Set *binding_mod_set = &mod_binding->mods;
|
||||||
|
if (map_loose_match(binding_mod_set, breakdown.mod_set)){
|
||||||
|
result = mod_binding->binding;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}break;
|
||||||
|
}
|
||||||
|
done:;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Command_Modified_Binding *mod_binding = CastFromMember(Command_Modified_Binding, order_node, list->first);
|
Command_Modified_Binding *mod_binding = CastFromMember(Command_Modified_Binding, order_node, list->first);
|
||||||
|
@ -291,12 +334,21 @@ map_get_binding_non_recursive(Command_Map *map, Input_Event *event){
|
||||||
}
|
}
|
||||||
|
|
||||||
function Command_Binding
|
function Command_Binding
|
||||||
map_get_binding_recursive(Mapping *mapping, Command_Map *map, Input_Event *event){
|
map_get_binding_non_recursive(Command_Map *map, Input_Event *event){
|
||||||
|
Command_Binding result = map_get_binding_non_recursive(map, event, BindingMatchRule_Strict);
|
||||||
|
if (result.custom == 0){
|
||||||
|
result = map_get_binding_non_recursive(map, event, BindingMatchRule_Loose);
|
||||||
|
}
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
function Command_Binding
|
||||||
|
map_get_binding_recursive(Mapping *mapping, Command_Map *map, Input_Event *event, Binding_Match_Rule rule){
|
||||||
Command_Binding result = {};
|
Command_Binding result = {};
|
||||||
for (i32 safety_counter = 0;
|
for (i32 safety_counter = 0;
|
||||||
map != 0 && safety_counter < 40;
|
map != 0 && safety_counter < 40;
|
||||||
safety_counter += 1){
|
safety_counter += 1){
|
||||||
result = map_get_binding_non_recursive(map, event);
|
result = map_get_binding_non_recursive(map, event, rule);
|
||||||
if (result.custom != 0){
|
if (result.custom != 0){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -305,6 +357,15 @@ map_get_binding_recursive(Mapping *mapping, Command_Map *map, Input_Event *event
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Command_Binding
|
||||||
|
map_get_binding_recursive(Mapping *mapping, Command_Map *map, Input_Event *event){
|
||||||
|
Command_Binding result = map_get_binding_recursive(mapping, map, event, BindingMatchRule_Strict);
|
||||||
|
if (result.custom == 0){
|
||||||
|
result = map_get_binding_recursive(mapping, map, event, BindingMatchRule_Loose);
|
||||||
|
}
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
function void
|
function void
|
||||||
map_set_parent(Command_Map *map, Command_Map *parent){
|
map_set_parent(Command_Map *map, Command_Map *parent){
|
||||||
if (map != 0 && parent != 0){
|
if (map != 0 && parent != 0){
|
||||||
|
|
|
@ -67,7 +67,7 @@ struct Command_Map{
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Mapping{
|
struct Mapping{
|
||||||
Arena *node_arena;
|
Arena node_arena;
|
||||||
Heap heap;
|
Heap heap;
|
||||||
Base_Allocator heap_wrapper;
|
Base_Allocator heap_wrapper;
|
||||||
Table_u64_u64 id_to_map;
|
Table_u64_u64 id_to_map;
|
||||||
|
@ -79,6 +79,18 @@ struct Mapping{
|
||||||
Command_Binding_List *free_lists;
|
Command_Binding_List *free_lists;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
typedef i32 Binding_Match_Rule;
|
||||||
|
enum{
|
||||||
|
BindingMatchRule_Strict,
|
||||||
|
BindingMatchRule_Loose,
|
||||||
|
};
|
||||||
|
|
||||||
|
struct Map_Event_Breakdown{
|
||||||
|
Input_Modifier_Set *mod_set;
|
||||||
|
u64 key;
|
||||||
|
Key_Code skip_self_mod;
|
||||||
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// BOTTOM
|
// BOTTOM
|
|
@ -1383,7 +1383,7 @@ theme_parse__data(Application_Links *app, Arena *arena, String_Const_u8 file_nam
|
||||||
for (Config_Assignment *node = parsed->first;
|
for (Config_Assignment *node = parsed->first;
|
||||||
node != 0;
|
node != 0;
|
||||||
node = node->next){
|
node = node->next){
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app, arena);
|
||||||
Config_LValue *l = node->l;
|
Config_LValue *l = node->l;
|
||||||
String_Const_u8 l_name = push_string_copy(scratch, l->identifier);
|
String_Const_u8 l_name = push_string_copy(scratch, l->identifier);
|
||||||
Managed_ID id = managed_id_get(app, string_u8_litexpr("colors"), l_name);
|
Managed_ID id = managed_id_get(app, string_u8_litexpr("colors"), l_name);
|
||||||
|
@ -1454,8 +1454,8 @@ theme_parse__file_name(Application_Links *app, Arena *arena, char *file_name, Ar
|
||||||
parsed = theme_parse__data(app, arena, SCu8(file_name), SCu8(data), color_arena, color_table);
|
parsed = theme_parse__data(app, arena, SCu8(file_name), SCu8(data), color_arena, color_table);
|
||||||
}
|
}
|
||||||
if (parsed == 0){
|
if (parsed == 0){
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app, arena);
|
||||||
String_Const_u8 str = push_u8_stringf(arena, "Did not find %s, theme not loaded", file_name);
|
String_Const_u8 str = push_u8_stringf(scratch, "Did not find %s, theme not loaded", file_name);
|
||||||
print_message(app, str);
|
print_message(app, str);
|
||||||
}
|
}
|
||||||
return(parsed);
|
return(parsed);
|
||||||
|
@ -1499,7 +1499,7 @@ config_feedback_int(Arena *arena, List_String_Const_u8 *list, char *name, i32 va
|
||||||
function void
|
function void
|
||||||
load_config_and_apply(Application_Links *app, Arena *out_arena, Config_Data *config,
|
load_config_and_apply(Application_Links *app, Arena *out_arena, Config_Data *config,
|
||||||
i32 override_font_size, b32 override_hinting){
|
i32 override_font_size, b32 override_hinting){
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app, out_arena);
|
||||||
|
|
||||||
linalloc_clear(out_arena);
|
linalloc_clear(out_arena);
|
||||||
Config *parsed = config_parse__file_name(app, out_arena, "config.4coder", config);
|
Config *parsed = config_parse__file_name(app, out_arena, "config.4coder", config);
|
||||||
|
@ -1611,7 +1611,7 @@ function void
|
||||||
load_theme_file_into_live_set(Application_Links *app, char *file_name){
|
load_theme_file_into_live_set(Application_Links *app, char *file_name){
|
||||||
Arena *arena = &global_theme_arena;
|
Arena *arena = &global_theme_arena;
|
||||||
Color_Table color_table = make_color_table(app, arena);
|
Color_Table color_table = make_color_table(app, arena);
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app, arena);
|
||||||
Config *config = theme_parse__file_name(app, scratch, file_name, arena, &color_table);
|
Config *config = theme_parse__file_name(app, scratch, file_name, arena, &color_table);
|
||||||
String_Const_u8 error_text = config_stringize_errors(app, scratch, config);
|
String_Const_u8 error_text = config_stringize_errors(app, scratch, config);
|
||||||
print_message(app, error_text);
|
print_message(app, error_text);
|
||||||
|
@ -1643,7 +1643,7 @@ CUSTOM_DOC("Parse the current buffer as a theme file and add the theme to the th
|
||||||
if (color_table.count < defcolor_line_numbers_text){
|
if (color_table.count < defcolor_line_numbers_text){
|
||||||
problem_score = defcolor_line_numbers_text - color_table.count;
|
problem_score = defcolor_line_numbers_text - color_table.count;
|
||||||
}
|
}
|
||||||
for (u32 i = 0; i < color_table.count; i += 1){
|
for (i32 i = 0; i < color_table.count; i += 1){
|
||||||
if (color_table.arrays[i].count == 0){
|
if (color_table.arrays[i].count == 0){
|
||||||
problem_score += 1;
|
problem_score += 1;
|
||||||
}
|
}
|
||||||
|
@ -1670,7 +1670,7 @@ CUSTOM_DOC("Parse the current buffer as a theme file and add the theme to the th
|
||||||
|
|
||||||
function void
|
function void
|
||||||
load_folder_of_themes_into_live_set(Application_Links *app, String_Const_u8 path){
|
load_folder_of_themes_into_live_set(Application_Links *app, String_Const_u8 path){
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
|
|
||||||
File_List list = system_get_file_list(scratch, path);
|
File_List list = system_get_file_list(scratch, path);
|
||||||
for (File_Info **ptr = list.infos, **end = list.infos + list.count;
|
for (File_Info **ptr = list.infos, **end = list.infos + list.count;
|
||||||
|
|
|
@ -11,7 +11,9 @@
|
||||||
|
|
||||||
// NOTE(allen): Users can declare their own managed IDs here.
|
// NOTE(allen): Users can declare their own managed IDs here.
|
||||||
|
|
||||||
|
#if !defined(META_PASS)
|
||||||
#include "generated/managed_id_metadata.cpp"
|
#include "generated/managed_id_metadata.cpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
custom_layer_init(Application_Links *app){
|
custom_layer_init(Application_Links *app){
|
||||||
|
|
|
@ -94,7 +94,7 @@ make_color_table(Application_Links *app, Arena *arena){
|
||||||
result.arrays = push_array(arena, Color_Array, result.count);
|
result.arrays = push_array(arena, Color_Array, result.count);
|
||||||
u32 *dummy = push_array(arena, u32, 1);
|
u32 *dummy = push_array(arena, u32, 1);
|
||||||
*dummy = 0xFF990099;
|
*dummy = 0xFF990099;
|
||||||
for (u32 i = 0; i < result.count; i += 1){
|
for (i32 i = 0; i < result.count; i += 1){
|
||||||
result.arrays[i].vals = dummy;
|
result.arrays[i].vals = dummy;
|
||||||
result.arrays[i].count = 1;
|
result.arrays[i].count = 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,7 +221,7 @@ ui_fallback_command_dispatch(Application_Links *app, View_ID view, User_Input *i
|
||||||
function void
|
function void
|
||||||
view_buffer_set(Application_Links *app, Buffer_ID *buffers, i32 *positions, i32 count){
|
view_buffer_set(Application_Links *app, Buffer_ID *buffers, i32 *positions, i32 count){
|
||||||
if (count > 0){
|
if (count > 0){
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
|
|
||||||
struct View_Node{
|
struct View_Node{
|
||||||
View_Node *next;
|
View_Node *next;
|
||||||
|
@ -511,7 +511,7 @@ default_4coder_initialize(Application_Links *app, String_Const_u8_Array file_nam
|
||||||
print_message(app, string_u8_litexpr(M));
|
print_message(app, string_u8_litexpr(M));
|
||||||
#undef M
|
#undef M
|
||||||
|
|
||||||
load_config_and_apply(app, global_config_arena, &global_config, override_font_size, override_hinting);
|
load_config_and_apply(app, &global_config_arena, &global_config, override_font_size, override_hinting);
|
||||||
|
|
||||||
// open command line files
|
// open command line files
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app);
|
||||||
|
@ -901,7 +901,7 @@ default_framework_init(Application_Links *app){
|
||||||
initialize_managed_id_metadata(app);
|
initialize_managed_id_metadata(app);
|
||||||
set_default_color_scheme(app);
|
set_default_color_scheme(app);
|
||||||
heap_init(&global_heap, tctx->allocator);
|
heap_init(&global_heap, tctx->allocator);
|
||||||
global_config_arena = reserve_arena(app);
|
global_config_arena = make_arena_system();
|
||||||
fade_range_arena = make_arena_system(KB(8));
|
fade_range_arena = make_arena_system(KB(8));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ global i32 fcoder_mode = FCoderMode_Original;
|
||||||
global ID_Pos_Jump_Location prev_location = {};
|
global ID_Pos_Jump_Location prev_location = {};
|
||||||
|
|
||||||
|
|
||||||
global Arena *global_config_arena = {};
|
global Arena global_config_arena = {};
|
||||||
global Config_Data global_config = {};
|
global Config_Data global_config = {};
|
||||||
|
|
||||||
global char previous_isearch_query[256] = {};
|
global char previous_isearch_query[256] = {};
|
||||||
|
|
|
@ -864,7 +864,15 @@ BUFFER_HOOK_SIG(default_new_file){
|
||||||
}
|
}
|
||||||
String_Const_u8 guard = string_list_flatten(scratch, guard_list);
|
String_Const_u8 guard = string_list_flatten(scratch, guard_list);
|
||||||
|
|
||||||
|
Date_Time date_time = system_now_date_time_universal();
|
||||||
|
date_time = system_local_date_time_from_universal(&date_time);
|
||||||
|
String_Const_u8 date_string = date_time_format(scratch, "month day yyyy h:mimi ampm", &date_time);
|
||||||
|
|
||||||
Buffer_Insertion insert = begin_buffer_insertion_at_buffered(app, buffer_id, 0, scratch, KB(16));
|
Buffer_Insertion insert = begin_buffer_insertion_at_buffered(app, buffer_id, 0, scratch, KB(16));
|
||||||
|
insertf(&insert,
|
||||||
|
"/* date = %.*s */\n"
|
||||||
|
"\n",
|
||||||
|
string_expand(date_string));
|
||||||
insertf(&insert,
|
insertf(&insert,
|
||||||
"#ifndef %.*s\n"
|
"#ifndef %.*s\n"
|
||||||
"#define %.*s\n"
|
"#define %.*s\n"
|
||||||
|
|
|
@ -23,7 +23,9 @@
|
||||||
#include "4coder_system_types.h"
|
#include "4coder_system_types.h"
|
||||||
#define DYNAMIC_LINK_API
|
#define DYNAMIC_LINK_API
|
||||||
#include "generated/system_api.h"
|
#include "generated/system_api.h"
|
||||||
|
#if !defined(META_PASS)
|
||||||
#include "generated/command_metadata.h"
|
#include "generated/command_metadata.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "4coder_profile.h"
|
#include "4coder_profile.h"
|
||||||
#include "4coder_async_tasks.h"
|
#include "4coder_async_tasks.h"
|
||||||
|
|
|
@ -37,6 +37,7 @@ setup_default_mapping(Mapping *mapping, i64 global_id, i64 file_id, i64 code_id)
|
||||||
Bind(command_lister, KeyCode_X, KeyCode_Alt);
|
Bind(command_lister, KeyCode_X, KeyCode_Alt);
|
||||||
Bind(project_command_lister, KeyCode_X, KeyCode_Alt, KeyCode_Shift);
|
Bind(project_command_lister, KeyCode_X, KeyCode_Alt, KeyCode_Shift);
|
||||||
Bind(list_all_functions_current_buffer_lister, KeyCode_I, KeyCode_Control, KeyCode_Shift);
|
Bind(list_all_functions_current_buffer_lister, KeyCode_I, KeyCode_Control, KeyCode_Shift);
|
||||||
|
Bind(exit_4coder, KeyCode_F4, KeyCode_Alt);
|
||||||
Bind(project_fkey_command, KeyCode_F1);
|
Bind(project_fkey_command, KeyCode_F1);
|
||||||
Bind(project_fkey_command, KeyCode_F2);
|
Bind(project_fkey_command, KeyCode_F2);
|
||||||
Bind(project_fkey_command, KeyCode_F3);
|
Bind(project_fkey_command, KeyCode_F3);
|
||||||
|
@ -53,7 +54,6 @@ setup_default_mapping(Mapping *mapping, i64 global_id, i64 file_id, i64 code_id)
|
||||||
Bind(project_fkey_command, KeyCode_F14);
|
Bind(project_fkey_command, KeyCode_F14);
|
||||||
Bind(project_fkey_command, KeyCode_F15);
|
Bind(project_fkey_command, KeyCode_F15);
|
||||||
Bind(project_fkey_command, KeyCode_F16);
|
Bind(project_fkey_command, KeyCode_F16);
|
||||||
Bind(exit_4coder, KeyCode_F4, KeyCode_Alt);
|
|
||||||
BindMouseWheel(mouse_wheel_scroll);
|
BindMouseWheel(mouse_wheel_scroll);
|
||||||
BindMouseWheel(mouse_wheel_change_face_size, KeyCode_Control);
|
BindMouseWheel(mouse_wheel_change_face_size, KeyCode_Control);
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
function Doc_Page*
|
function Doc_Page*
|
||||||
get_doc_page_from_user(Application_Links *app, Doc_Cluster *doc, String_Const_u8 query){
|
get_doc_page_from_user(Application_Links *app, Doc_Cluster *doc, String_Const_u8 query){
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
Lister_Block lister(app, scratch);
|
Lister_Block lister(app, scratch);
|
||||||
lister_set_query(lister, query);
|
lister_set_query(lister, query);
|
||||||
lister_set_default_handlers(lister);
|
lister_set_default_handlers(lister);
|
||||||
|
|
|
@ -388,7 +388,7 @@ draw_line_number_margin(Application_Links *app, View_ID view_id, Buffer_ID buffe
|
||||||
i64 line_count = buffer_get_line_count(app, buffer);
|
i64 line_count = buffer_get_line_count(app, buffer);
|
||||||
i64 line_count_digit_count = digit_count_from_integer(line_count, 10);
|
i64 line_count_digit_count = digit_count_from_integer(line_count, 10);
|
||||||
|
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
|
|
||||||
Buffer_Cursor cursor = view_compute_cursor(app, view_id, seek_pos(visible_range.first));
|
Buffer_Cursor cursor = view_compute_cursor(app, view_id, seek_pos(visible_range.first));
|
||||||
i64 line_number = cursor.line;
|
i64 line_number = cursor.line;
|
||||||
|
@ -411,8 +411,7 @@ draw_line_number_margin(Application_Links *app, View_ID view_id, Buffer_ID buffe
|
||||||
}
|
}
|
||||||
|
|
||||||
function void
|
function void
|
||||||
draw_fps_hud(Application_Links *app, Frame_Info frame_info,
|
draw_fps_hud(Application_Links *app, Frame_Info frame_info, Face_ID face_id, Rect_f32 rect){
|
||||||
Face_ID face_id, Rect_f32 rect){
|
|
||||||
Face_Metrics face_metrics = get_face_metrics(app, face_id);
|
Face_Metrics face_metrics = get_face_metrics(app, face_id);
|
||||||
f32 line_height = face_metrics.line_height;
|
f32 line_height = face_metrics.line_height;
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
//
|
//
|
||||||
// NOTE(allen|b4.1.0): This routine assumes C++ sub_kinds in the tokens of the buffer.
|
// NOTE(allen|b4.1.0): This routine assumes C++ sub_kinds in the tokens of the buffer.
|
||||||
|
|
||||||
static Get_Positions_Results
|
function Get_Positions_Results
|
||||||
get_function_positions(Application_Links *app, Buffer_ID buffer, i64 first_token_index, Function_Positions *positions_array, i64 positions_max){
|
get_function_positions(Application_Links *app, Buffer_ID buffer, i64 first_token_index, Function_Positions *positions_array, i64 positions_max){
|
||||||
Get_Positions_Results result = {};
|
Get_Positions_Results result = {};
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ get_function_positions(Application_Links *app, Buffer_ID buffer, i64 first_token
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
function void
|
||||||
print_positions_buffered(Application_Links *app, Buffer_Insertion *out, Buffer_ID buffer, Function_Positions *positions_array, i64 positions_count){
|
print_positions_buffered(Application_Links *app, Buffer_Insertion *out, Buffer_ID buffer, Function_Positions *positions_array, i64 positions_count){
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app);
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ print_positions_buffered(Application_Links *app, Buffer_Insertion *out, Buffer_I
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
function void
|
||||||
list_all_functions(Application_Links *app, Buffer_ID optional_target_buffer){
|
list_all_functions(Application_Links *app, Buffer_ID optional_target_buffer){
|
||||||
// TODO(allen): Use create or switch to buffer and clear here?
|
// TODO(allen): Use create or switch to buffer and clear here?
|
||||||
String_Const_u8 decls_name = string_u8_litexpr("*decls*");
|
String_Const_u8 decls_name = string_u8_litexpr("*decls*");
|
||||||
|
|
|
@ -20,7 +20,7 @@ keyboard_macro_play_single_line(Application_Links *app, String_Const_u8 macro_li
|
||||||
|
|
||||||
function void
|
function void
|
||||||
keyboard_macro_play(Application_Links *app, String_Const_u8 macro){
|
keyboard_macro_play(Application_Links *app, String_Const_u8 macro){
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
List_String_Const_u8 lines = string_split(scratch, macro, (u8*)"\n", 1);
|
List_String_Const_u8 lines = string_split(scratch, macro, (u8*)"\n", 1);
|
||||||
for (Node_String_Const_u8 *node = lines.first;
|
for (Node_String_Const_u8 *node = lines.first;
|
||||||
node != 0;
|
node != 0;
|
||||||
|
@ -83,12 +83,8 @@ CUSTOM_DOC("Replay the most recently recorded keyboard macro")
|
||||||
}
|
}
|
||||||
|
|
||||||
Buffer_ID buffer = get_keyboard_log_buffer(app);
|
Buffer_ID buffer = get_keyboard_log_buffer(app);
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
String_Const_u8 macro = push_buffer_range(app, scratch, buffer, global_keyboard_macro_range);
|
String_Const_u8 macro = push_buffer_range(app, scratch, buffer, global_keyboard_macro_range);
|
||||||
#if 0
|
|
||||||
print_message(app, string_u8_litexpr("replaying:\n"));
|
|
||||||
print_message(app, macro);
|
|
||||||
#endif
|
|
||||||
keyboard_macro_play(app, macro);
|
keyboard_macro_play(app, macro);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -399,7 +399,8 @@ lister_update_selection_values(Lister *lister){
|
||||||
|
|
||||||
function void
|
function void
|
||||||
lister_update_filtered_list(Application_Links *app, Lister *lister){
|
lister_update_filtered_list(Application_Links *app, Lister *lister){
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Arena *arena = lister->arena;
|
||||||
|
Scratch_Block scratch(app, arena);
|
||||||
|
|
||||||
Lister_Filtered filtered = lister_get_filtered(scratch, lister);
|
Lister_Filtered filtered = lister_get_filtered(scratch, lister);
|
||||||
|
|
||||||
|
@ -409,7 +410,6 @@ lister_update_filtered_list(Application_Links *app, Lister *lister){
|
||||||
filtered.substring_matches,
|
filtered.substring_matches,
|
||||||
};
|
};
|
||||||
|
|
||||||
Arena *arena = lister->arena;
|
|
||||||
end_temp(lister->filter_restore_point);
|
end_temp(lister->filter_restore_point);
|
||||||
|
|
||||||
i32 total_count = 0;
|
i32 total_count = 0;
|
||||||
|
|
|
@ -15,7 +15,7 @@ generate_all_buffers_list__output_buffer(Application_Links *app, Lister *lister,
|
||||||
case DirtyState_UnloadedChanges: status = string_u8_litexpr("!"); break;
|
case DirtyState_UnloadedChanges: status = string_u8_litexpr("!"); break;
|
||||||
case DirtyState_UnsavedChangesAndUnloadedChanges: status = string_u8_litexpr("*!"); break;
|
case DirtyState_UnsavedChangesAndUnloadedChanges: status = string_u8_litexpr("*!"); break;
|
||||||
}
|
}
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app, lister->arena);
|
||||||
String_Const_u8 buffer_name = push_buffer_unique_name(app, scratch, buffer);
|
String_Const_u8 buffer_name = push_buffer_unique_name(app, scratch, buffer);
|
||||||
lister_add_item(lister, buffer_name, status, IntAsPtr(buffer), 0);
|
lister_add_item(lister, buffer_name, status, IntAsPtr(buffer), 0);
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,7 @@ get_command_from_user(Application_Links *app, String_Const_u8 query, i32 *comman
|
||||||
command_id_count = command_one_past_last_id;
|
command_id_count = command_one_past_last_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
Lister_Block lister(app, scratch);
|
Lister_Block lister(app, scratch);
|
||||||
lister_set_query(lister, query);
|
lister_set_query(lister, query);
|
||||||
lister_set_default_handlers(lister);
|
lister_set_default_handlers(lister);
|
||||||
|
@ -205,7 +205,7 @@ get_color_table_from_user(Application_Links *app, String_Const_u8 query, Color_T
|
||||||
color_table_list = &global_theme_list;
|
color_table_list = &global_theme_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
Lister_Block lister(app, scratch);
|
Lister_Block lister(app, scratch);
|
||||||
lister_set_query(lister, query);
|
lister_set_query(lister, query);
|
||||||
lister_set_default_handlers(lister);
|
lister_set_default_handlers(lister);
|
||||||
|
@ -301,7 +301,7 @@ lister__backspace_text_field__file_path(Application_Links *app){
|
||||||
|
|
||||||
function void
|
function void
|
||||||
generate_hot_directory_file_list(Application_Links *app, Lister *lister){
|
generate_hot_directory_file_list(Application_Links *app, Lister *lister){
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app, lister->arena);
|
||||||
|
|
||||||
Temp_Memory temp = begin_temp(lister->arena);
|
Temp_Memory temp = begin_temp(lister->arena);
|
||||||
String_Const_u8 hot = push_hot_directory(app, lister->arena);
|
String_Const_u8 hot = push_hot_directory(app, lister->arena);
|
||||||
|
@ -575,8 +575,7 @@ query_create_folder(Application_Links *app, String_Const_u8 folder_name){
|
||||||
|
|
||||||
function Lister_Activation_Code
|
function Lister_Activation_Code
|
||||||
activate_open_or_new__generic(Application_Links *app, View_ID view,
|
activate_open_or_new__generic(Application_Links *app, View_ID view,
|
||||||
String_Const_u8 path, String_Const_u8 file_name,
|
String_Const_u8 path, String_Const_u8 file_name, b32 is_folder,
|
||||||
b32 is_folder,
|
|
||||||
Buffer_Create_Flag flags){
|
Buffer_Create_Flag flags){
|
||||||
Lister_Activation_Code result = 0;
|
Lister_Activation_Code result = 0;
|
||||||
|
|
||||||
|
@ -587,7 +586,7 @@ activate_open_or_new__generic(Application_Links *app, View_ID view,
|
||||||
result = ListerActivation_Finished;
|
result = ListerActivation_Finished;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
String_Const_u8 full_file_name = {};
|
String_Const_u8 full_file_name = {};
|
||||||
if (character_is_slash(string_get_character(path, path.size - 1))){
|
if (character_is_slash(string_get_character(path, path.size - 1))){
|
||||||
path = string_chop(path, 1);
|
path = string_chop(path, 1);
|
||||||
|
|
|
@ -367,7 +367,7 @@ log_event_array_from_list(Arena *arena, Log_Event_List list){
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|
||||||
global View_ID log_view = 0;
|
global View_ID log_view = 0;
|
||||||
global Arena *log_arena = {};
|
global Arena log_arena = {};
|
||||||
global Log_Parse log_parse = {};
|
global Log_Parse log_parse = {};
|
||||||
global Log_Graph log_graph = {};
|
global Log_Graph log_graph = {};
|
||||||
global Log_Filter_Set log_filter_set = {};
|
global Log_Filter_Set log_filter_set = {};
|
||||||
|
@ -438,7 +438,7 @@ log_graph_fill(Application_Links *app, Rect_f32 layout_region, Face_ID face_id){
|
||||||
}
|
}
|
||||||
block_zero_struct(&log_graph);
|
block_zero_struct(&log_graph);
|
||||||
log_graph.holding_temp = true;
|
log_graph.holding_temp = true;
|
||||||
log_graph.temp = begin_temp(log_arena);
|
log_graph.temp = begin_temp(&log_arena);
|
||||||
log_graph.layout_region = layout_region;
|
log_graph.layout_region = layout_region;
|
||||||
log_graph.face_id = face_id;
|
log_graph.face_id = face_id;
|
||||||
log_graph.filter_alter_counter = log_filter_set.alter_counter;
|
log_graph.filter_alter_counter = log_filter_set.alter_counter;
|
||||||
|
@ -465,7 +465,7 @@ log_graph_fill(Application_Links *app, Rect_f32 layout_region, Face_ID face_id){
|
||||||
for (Log_Event *event = log_parse.first_event;
|
for (Log_Event *event = log_parse.first_event;
|
||||||
event != 0;
|
event != 0;
|
||||||
event = event->next){
|
event = event->next){
|
||||||
Log_Event_Ptr_Node *node = push_array(log_arena, Log_Event_Ptr_Node, 1);
|
Log_Event_Ptr_Node *node = push_array(&log_arena, Log_Event_Ptr_Node, 1);
|
||||||
node->event = event;
|
node->event = event;
|
||||||
sll_queue_push(log_graph.filtered_list.first, log_graph.filtered_list.last, node);
|
sll_queue_push(log_graph.filtered_list.first, log_graph.filtered_list.last, node);
|
||||||
log_graph.filtered_list.count += 1;
|
log_graph.filtered_list.count += 1;
|
||||||
|
@ -489,7 +489,7 @@ log_graph_fill(Application_Links *app, Rect_f32 layout_region, Face_ID face_id){
|
||||||
for (Log_Event_Ptr_Node *node = filter_list->first;
|
for (Log_Event_Ptr_Node *node = filter_list->first;
|
||||||
node != 0;
|
node != 0;
|
||||||
node = node->next){
|
node = node->next){
|
||||||
Log_Event_Ptr_Node *new_node = push_array(log_arena, Log_Event_Ptr_Node, 1);
|
Log_Event_Ptr_Node *new_node = push_array(&log_arena, Log_Event_Ptr_Node, 1);
|
||||||
new_node->event = node->event;
|
new_node->event = node->event;
|
||||||
sll_queue_push(log_graph.filtered_list.first, log_graph.filtered_list.last, new_node);
|
sll_queue_push(log_graph.filtered_list.first, log_graph.filtered_list.last, new_node);
|
||||||
log_graph.filtered_list.count += 1;
|
log_graph.filtered_list.count += 1;
|
||||||
|
@ -525,9 +525,8 @@ log_graph_fill(Application_Links *app, Rect_f32 layout_region, Face_ID face_id){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log_graph.event_array = log_event_array_from_list(log_arena,
|
log_graph.event_array = log_event_array_from_list(&log_arena, log_graph.filtered_list);
|
||||||
log_graph.filtered_list);
|
log_events_sort_by_tag(&log_arena, log_graph.event_array, thread_code);
|
||||||
log_events_sort_by_tag(log_arena, log_graph.event_array, thread_code);
|
|
||||||
|
|
||||||
b32 had_a_tag = true;
|
b32 had_a_tag = true;
|
||||||
u64 thread_id_value = 0;
|
u64 thread_id_value = 0;
|
||||||
|
@ -561,7 +560,7 @@ log_graph_fill(Application_Links *app, Rect_f32 layout_region, Face_ID face_id){
|
||||||
}
|
}
|
||||||
|
|
||||||
if (emit_next_bucket){
|
if (emit_next_bucket){
|
||||||
Log_Graph_Thread_Bucket *bucket = push_array(log_arena, Log_Graph_Thread_Bucket, 1);
|
Log_Graph_Thread_Bucket *bucket = push_array(&log_arena, Log_Graph_Thread_Bucket, 1);
|
||||||
sll_queue_push(log_graph.first_bucket, log_graph.last_bucket, bucket);
|
sll_queue_push(log_graph.first_bucket, log_graph.last_bucket, bucket);
|
||||||
log_graph.bucket_count += 1;
|
log_graph.bucket_count += 1;
|
||||||
bucket->range.first = i;
|
bucket->range.first = i;
|
||||||
|
@ -612,7 +611,7 @@ log_graph_fill(Application_Links *app, Rect_f32 layout_region, Face_ID face_id){
|
||||||
|
|
||||||
bucket_with_next_event->range.first += 1;
|
bucket_with_next_event->range.first += 1;
|
||||||
|
|
||||||
Log_Graph_Box *box_node = push_array(log_arena, Log_Graph_Box, 1);
|
Log_Graph_Box *box_node = push_array(&log_arena, Log_Graph_Box, 1);
|
||||||
sll_queue_push(log_graph.first_box, log_graph.last_box, box_node);
|
sll_queue_push(log_graph.first_box, log_graph.last_box, box_node);
|
||||||
log_graph.box_count += 1;
|
log_graph.box_count += 1;
|
||||||
Rect_f32 rect = Rf32(box_w*bucket_with_next_event_index , y_cursor,
|
Rect_f32 rect = Rf32(box_w*bucket_with_next_event_index , y_cursor,
|
||||||
|
@ -632,17 +631,17 @@ log_graph_fill(Application_Links *app, Rect_f32 layout_region, Face_ID face_id){
|
||||||
|
|
||||||
internal void
|
internal void
|
||||||
log_parse_fill(Application_Links *app, Buffer_ID buffer){
|
log_parse_fill(Application_Links *app, Buffer_ID buffer){
|
||||||
if (log_arena == 0){
|
if (log_arena.base_allocator == 0){
|
||||||
log_arena = reserve_arena(app);
|
log_arena = make_arena_system();
|
||||||
}
|
}
|
||||||
|
|
||||||
linalloc_clear(log_arena);
|
linalloc_clear(&log_arena);
|
||||||
block_zero_struct(&log_graph);
|
block_zero_struct(&log_graph);
|
||||||
log_filter_set_init(&log_filter_set);
|
log_filter_set_init(&log_filter_set);
|
||||||
log_filter_set_init(&log_preview_set);
|
log_filter_set_init(&log_preview_set);
|
||||||
|
|
||||||
String_Const_u8 log_text = push_whole_buffer(app, log_arena, buffer);
|
String_Const_u8 log_text = push_whole_buffer(app, &log_arena, buffer);
|
||||||
log_parse = make_log_parse(log_arena, log_text);
|
log_parse = make_log_parse(&log_arena, log_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
internal void
|
internal void
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
// TOP
|
// TOP
|
||||||
|
|
||||||
global Project current_project = {};
|
global Project current_project = {};
|
||||||
global Arena *current_project_arena = {};
|
global Arena current_project_arena = {};
|
||||||
|
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
|
|
||||||
|
@ -631,13 +631,13 @@ set_current_project(Application_Links *app, Project *project, Config *parsed){
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app);
|
||||||
|
|
||||||
if (parsed != 0 && project != 0){
|
if (parsed != 0 && project != 0){
|
||||||
if (current_project_arena == 0){
|
if (current_project_arena.base_allocator == 0){
|
||||||
current_project_arena = reserve_arena(app);
|
current_project_arena = make_arena_system();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy project to current_project
|
// Copy project to current_project
|
||||||
linalloc_clear(current_project_arena);
|
linalloc_clear(¤t_project_arena);
|
||||||
Project new_project = project_deep_copy(current_project_arena, project);
|
Project new_project = project_deep_copy(¤t_project_arena, project);
|
||||||
if (new_project.loaded){
|
if (new_project.loaded){
|
||||||
current_project = new_project;
|
current_project = new_project;
|
||||||
|
|
||||||
|
@ -728,15 +728,14 @@ set_current_project(Application_Links *app, Project *project, Config *parsed){
|
||||||
function void
|
function void
|
||||||
set_current_project_from_data(Application_Links *app, String_Const_u8 file_name,
|
set_current_project_from_data(Application_Links *app, String_Const_u8 file_name,
|
||||||
Data data, String_Const_u8 file_dir){
|
Data data, String_Const_u8 file_dir){
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
Project_Parse_Result project_parse = parse_project__data(app, scratch, file_name,
|
Project_Parse_Result project_parse = parse_project__data(app, scratch, file_name, data, file_dir);
|
||||||
data, file_dir);
|
|
||||||
set_current_project(app, project_parse.project, project_parse.parsed);
|
set_current_project(app, project_parse.project, project_parse.parsed);
|
||||||
}
|
}
|
||||||
|
|
||||||
function void
|
function void
|
||||||
set_current_project_from_nearest_project_file(Application_Links *app){
|
set_current_project_from_nearest_project_file(Application_Links *app){
|
||||||
Scratch_Block scratch(app, Scratch_Share);
|
Scratch_Block scratch(app);
|
||||||
Project_Parse_Result project_parse = parse_project__nearest_file(app, scratch);
|
Project_Parse_Result project_parse = parse_project__nearest_file(app, scratch);
|
||||||
set_current_project(app, project_parse.project, project_parse.parsed);
|
set_current_project(app, project_parse.project, project_parse.parsed);
|
||||||
}
|
}
|
||||||
|
@ -1256,8 +1255,7 @@ CUSTOM_DOC("Queries the user for several configuration options and initializes a
|
||||||
///////////////////////////////
|
///////////////////////////////
|
||||||
|
|
||||||
function Project_Command_Lister_Result
|
function Project_Command_Lister_Result
|
||||||
get_project_command_from_user(Application_Links *app, Project *project,
|
get_project_command_from_user(Application_Links *app, Project *project, String_Const_u8 query){
|
||||||
String_Const_u8 query){
|
|
||||||
Project_Command_Lister_Result result = {};
|
Project_Command_Lister_Result result = {};
|
||||||
if (project != 0){
|
if (project != 0){
|
||||||
Scratch_Block scratch(app);
|
Scratch_Block scratch(app);
|
||||||
|
|
|
@ -382,13 +382,15 @@ word_complete_iter_is_at_base_slot(Word_Complete_Iterator *it){
|
||||||
|
|
||||||
function Word_Complete_Iterator*
|
function Word_Complete_Iterator*
|
||||||
word_complete_get_shared_iter(Application_Links *app){
|
word_complete_get_shared_iter(Application_Links *app){
|
||||||
local_persist Arena *completion_arena = {};
|
local_persist Arena completion_arena = {};
|
||||||
local_persist Word_Complete_Iterator it = {};
|
local_persist Word_Complete_Iterator it = {};
|
||||||
if (completion_arena == 0){
|
local_persist b32 first_call = true;
|
||||||
completion_arena = reserve_arena(app);
|
if (first_call){
|
||||||
|
first_call = false;
|
||||||
|
completion_arena = make_arena_system();
|
||||||
}
|
}
|
||||||
it.app = app;
|
it.app = app;
|
||||||
it.arena = completion_arena;
|
it.arena = &completion_arena;
|
||||||
return(&it);
|
return(&it);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
static String_Const_u8
|
function String_Const_u8
|
||||||
push_stringfv(Arena *arena, char *format, va_list args){
|
push_stringfv(Arena *arena, char *format, va_list args){
|
||||||
va_list args2;
|
va_list args2;
|
||||||
va_copy(args2, args);
|
va_copy(args2, args);
|
||||||
|
@ -21,7 +21,7 @@ push_stringfv(Arena *arena, char *format, va_list args){
|
||||||
result.str[result.size] = 0;
|
result.str[result.size] = 0;
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
static String_Const_u8
|
function String_Const_u8
|
||||||
push_stringf(Arena *arena, char *format, ...){
|
push_stringf(Arena *arena, char *format, ...){
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
|
@ -29,11 +29,11 @@ push_stringf(Arena *arena, char *format, ...){
|
||||||
va_end(args);
|
va_end(args);
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
static String_Const_u8
|
function String_Const_u8
|
||||||
push_u8_stringfv(Arena *arena, char *format, va_list args){
|
push_u8_stringfv(Arena *arena, char *format, va_list args){
|
||||||
return(push_stringfv(arena, format, args));
|
return(push_stringfv(arena, format, args));
|
||||||
}
|
}
|
||||||
static String_Const_u8
|
function String_Const_u8
|
||||||
push_u8_stringf(Arena *arena, char *format, ...){
|
push_u8_stringf(Arena *arena, char *format, ...){
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
|
@ -42,7 +42,7 @@ push_u8_stringf(Arena *arena, char *format, ...){
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
function void
|
||||||
string_list_pushfv(Arena *arena, List_String_Const_char *list, char *format, va_list args){
|
string_list_pushfv(Arena *arena, List_String_Const_char *list, char *format, va_list args){
|
||||||
String_Const_u8 string = push_stringfv(arena, format, args);
|
String_Const_u8 string = push_stringfv(arena, format, args);
|
||||||
if (arena->alignment < sizeof(u64)){
|
if (arena->alignment < sizeof(u64)){
|
||||||
|
@ -50,14 +50,14 @@ string_list_pushfv(Arena *arena, List_String_Const_char *list, char *format, va_
|
||||||
}
|
}
|
||||||
string_list_push(arena, list, SCchar(string));
|
string_list_push(arena, list, SCchar(string));
|
||||||
}
|
}
|
||||||
static void
|
function void
|
||||||
string_list_pushf(Arena *arena, List_String_Const_char *list, char *format, ...){
|
string_list_pushf(Arena *arena, List_String_Const_char *list, char *format, ...){
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
string_list_pushfv(arena, list, format, args);
|
string_list_pushfv(arena, list, format, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
static void
|
function void
|
||||||
string_list_pushfv(Arena *arena, List_String_Const_u8 *list, char *format, va_list args){
|
string_list_pushfv(Arena *arena, List_String_Const_u8 *list, char *format, va_list args){
|
||||||
String_Const_u8 string = push_u8_stringfv(arena, format, args);
|
String_Const_u8 string = push_u8_stringfv(arena, format, args);
|
||||||
if (arena->alignment < sizeof(u64)){
|
if (arena->alignment < sizeof(u64)){
|
||||||
|
@ -65,7 +65,7 @@ string_list_pushfv(Arena *arena, List_String_Const_u8 *list, char *format, va_li
|
||||||
}
|
}
|
||||||
string_list_push(arena, list, string);
|
string_list_push(arena, list, string);
|
||||||
}
|
}
|
||||||
static void
|
function void
|
||||||
string_list_pushf(Arena *arena, List_String_Const_u8 *list, char *format, ...){
|
string_list_pushf(Arena *arena, List_String_Const_u8 *list, char *format, ...){
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start(args, format);
|
va_start(args, format);
|
||||||
|
@ -73,6 +73,244 @@ string_list_pushf(Arena *arena, List_String_Const_u8 *list, char *format, ...){
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////
|
||||||
|
|
||||||
|
// yyyy
|
||||||
|
function void
|
||||||
|
push_year_full(Arena *arena, List_String_Const_u8 *list, u32 year){
|
||||||
|
string_list_pushf(arena, list, "%u", year);
|
||||||
|
}
|
||||||
|
// yy
|
||||||
|
function void
|
||||||
|
push_year_abrev(Arena *arena, List_String_Const_u8 *list, u32 year){
|
||||||
|
string_list_pushf(arena, list, "%u", year % 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
// m
|
||||||
|
function void
|
||||||
|
push_month_num(Arena *arena, List_String_Const_u8 *list, u8 mon){
|
||||||
|
string_list_pushf(arena, list, "%u", mon + 1);
|
||||||
|
}
|
||||||
|
// mm
|
||||||
|
function void
|
||||||
|
push_month_num_zeros(Arena *arena, List_String_Const_u8 *list, u8 mon){
|
||||||
|
string_list_pushf(arena, list, "%02u", mon + 1);
|
||||||
|
}
|
||||||
|
// month
|
||||||
|
function void
|
||||||
|
push_month_name(Arena *arena, List_String_Const_u8 *list, u8 mon){
|
||||||
|
string_list_push(arena, list, month_full_name[mon%12]);
|
||||||
|
}
|
||||||
|
// mon
|
||||||
|
function void
|
||||||
|
push_month_abrev(Arena *arena, List_String_Const_u8 *list, u8 mon){
|
||||||
|
string_list_push(arena, list, month_abrev_name[mon%12]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// d
|
||||||
|
function void
|
||||||
|
push_day_num(Arena *arena, List_String_Const_u8 *list, u8 day){
|
||||||
|
string_list_pushf(arena, list, "%u", day + 1);
|
||||||
|
}
|
||||||
|
// dd
|
||||||
|
function void
|
||||||
|
push_day_num_zeroes(Arena *arena, List_String_Const_u8 *list, u8 day){
|
||||||
|
string_list_pushf(arena, list, "%02u", day + 1);
|
||||||
|
}
|
||||||
|
// day
|
||||||
|
function void
|
||||||
|
push_day_ord(Arena *arena, List_String_Const_u8 *list, u8 day){
|
||||||
|
string_list_push(arena, list, ordinal_numeric_name[day%100]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// h24
|
||||||
|
function void
|
||||||
|
push_hour_24(Arena *arena, List_String_Const_u8 *list, u8 hour){
|
||||||
|
string_list_pushf(arena, list, "%u", hour);
|
||||||
|
}
|
||||||
|
// hh24
|
||||||
|
function void
|
||||||
|
push_hour_24_zeroes(Arena *arena, List_String_Const_u8 *list, u8 hour){
|
||||||
|
string_list_pushf(arena, list, "%02u", hour);
|
||||||
|
}
|
||||||
|
// h
|
||||||
|
function void
|
||||||
|
push_hour_12(Arena *arena, List_String_Const_u8 *list, u8 hour){
|
||||||
|
string_list_pushf(arena, list, "%u", hour%12);
|
||||||
|
}
|
||||||
|
// hh
|
||||||
|
function void
|
||||||
|
push_hour_12_zeroes(Arena *arena, List_String_Const_u8 *list, u8 hour){
|
||||||
|
string_list_pushf(arena, list, "%02u", hour%12);
|
||||||
|
}
|
||||||
|
// ampm
|
||||||
|
function void
|
||||||
|
push_hour_am_pm(Arena *arena, List_String_Const_u8 *list, u8 hour){
|
||||||
|
if (hour >= 12){
|
||||||
|
string_list_push(arena, list, string_u8_litexpr("pm"));
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
string_list_push(arena, list, string_u8_litexpr("am"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// mi
|
||||||
|
function void
|
||||||
|
push_minute(Arena *arena, List_String_Const_u8 *list, u8 min){
|
||||||
|
string_list_pushf(arena, list, "%u", min);
|
||||||
|
}
|
||||||
|
// mimi
|
||||||
|
function void
|
||||||
|
push_minute_zeroes(Arena *arena, List_String_Const_u8 *list, u8 min){
|
||||||
|
string_list_pushf(arena, list, "%02u", min);
|
||||||
|
}
|
||||||
|
|
||||||
|
// s
|
||||||
|
function void
|
||||||
|
push_second(Arena *arena, List_String_Const_u8 *list, u8 sec){
|
||||||
|
string_list_pushf(arena, list, "%u", sec);
|
||||||
|
}
|
||||||
|
// ss
|
||||||
|
function void
|
||||||
|
push_second_zeroes(Arena *arena, List_String_Const_u8 *list, u8 sec){
|
||||||
|
string_list_pushf(arena, list, "%02u", sec);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ms
|
||||||
|
function void
|
||||||
|
push_millisecond_zeroes(Arena *arena, List_String_Const_u8 *list, u16 msec){
|
||||||
|
string_list_pushf(arena, list, "%03u", msec);
|
||||||
|
}
|
||||||
|
|
||||||
|
function void
|
||||||
|
date_time_format(Arena *arena, List_String_Const_u8 *list, String_Const_u8 format, Date_Time *date_time){
|
||||||
|
u8 *ptr = format.str;
|
||||||
|
u8 *end = format.str + format.size;
|
||||||
|
for (;ptr < end;){
|
||||||
|
if (character_is_alpha_numeric(*ptr)){
|
||||||
|
u8 *start = ptr;
|
||||||
|
for (;ptr < end; ptr += 1){
|
||||||
|
if (!character_is_alpha_numeric(*ptr)){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
String_Const_u8 field = SCu8(start, ptr);
|
||||||
|
for (; field.size > 0;){
|
||||||
|
if (string_match(string_prefix(field, 5), string_u8_litexpr("month"))){
|
||||||
|
field = string_skip(field, 5);
|
||||||
|
push_month_name(arena, list, date_time->mon);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (string_match(string_prefix(field, 4), string_u8_litexpr("yyyy"))){
|
||||||
|
field = string_skip(field, 4);
|
||||||
|
push_year_full(arena, list, date_time->year);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 4), string_u8_litexpr("hh24"))){
|
||||||
|
field = string_skip(field, 4);
|
||||||
|
push_hour_24_zeroes(arena, list, date_time->hour);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 4), string_u8_litexpr("ampm"))){
|
||||||
|
field = string_skip(field, 4);
|
||||||
|
push_hour_am_pm(arena, list, date_time->hour);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 4), string_u8_litexpr("mimi"))){
|
||||||
|
field = string_skip(field, 4);
|
||||||
|
push_minute_zeroes(arena, list, date_time->min);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (string_match(string_prefix(field, 3), string_u8_litexpr("mon"))){
|
||||||
|
field = string_skip(field, 3);
|
||||||
|
push_month_abrev(arena, list, date_time->mon);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 3), string_u8_litexpr("day"))){
|
||||||
|
field = string_skip(field, 3);
|
||||||
|
push_day_ord(arena, list, date_time->day);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 3), string_u8_litexpr("h24"))){
|
||||||
|
field = string_skip(field, 3);
|
||||||
|
push_hour_24(arena, list, date_time->hour);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (string_match(string_prefix(field, 2), string_u8_litexpr("yy"))){
|
||||||
|
field = string_skip(field, 2);
|
||||||
|
push_year_abrev(arena, list, date_time->year);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 2), string_u8_litexpr("mm"))){
|
||||||
|
field = string_skip(field, 2);
|
||||||
|
push_month_num_zeros(arena, list, date_time->mon);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 2), string_u8_litexpr("dd"))){
|
||||||
|
field = string_skip(field, 2);
|
||||||
|
push_day_num_zeroes(arena, list, date_time->day);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 2), string_u8_litexpr("hh"))){
|
||||||
|
field = string_skip(field, 2);
|
||||||
|
push_hour_12_zeroes(arena, list, date_time->hour);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 2), string_u8_litexpr("mi"))){
|
||||||
|
field = string_skip(field, 2);
|
||||||
|
push_minute(arena, list, date_time->min);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 2), string_u8_litexpr("ss"))){
|
||||||
|
field = string_skip(field, 2);
|
||||||
|
push_second_zeroes(arena, list, date_time->sec);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 2), string_u8_litexpr("ms"))){
|
||||||
|
field = string_skip(field, 2);
|
||||||
|
push_millisecond_zeroes(arena, list, date_time->msec);
|
||||||
|
}
|
||||||
|
|
||||||
|
else if (string_match(string_prefix(field, 1), string_u8_litexpr("m"))){
|
||||||
|
field = string_skip(field, 1);
|
||||||
|
push_month_num(arena, list, date_time->mon);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 1), string_u8_litexpr("d"))){
|
||||||
|
field = string_skip(field, 1);
|
||||||
|
push_day_num(arena, list, date_time->day);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 1), string_u8_litexpr("h"))){
|
||||||
|
field = string_skip(field, 1);
|
||||||
|
push_hour_12(arena, list, date_time->hour);
|
||||||
|
}
|
||||||
|
else if (string_match(string_prefix(field, 1), string_u8_litexpr("s"))){
|
||||||
|
field = string_skip(field, 1);
|
||||||
|
push_second(arena, list, date_time->sec);
|
||||||
|
}
|
||||||
|
|
||||||
|
else{
|
||||||
|
string_list_push(arena, list, SCu8(start, ptr));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
u8 *start = ptr;
|
||||||
|
for (;ptr < end; ptr += 1){
|
||||||
|
if (character_is_alpha_numeric(*ptr)){
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
string_list_push(arena, list, SCu8(start, ptr));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function void
|
||||||
|
date_time_format(Arena *arena, List_String_Const_u8 *list, char *format, Date_Time *date_time){
|
||||||
|
date_time_format(arena, list, SCu8(format), date_time);
|
||||||
|
}
|
||||||
|
|
||||||
|
function String_Const_u8
|
||||||
|
date_time_format(Arena *arena, String_Const_u8 format, Date_Time *date_time){
|
||||||
|
List_String_Const_u8 list = {};
|
||||||
|
date_time_format(arena, &list, format, date_time);
|
||||||
|
return(string_list_flatten(arena, list));
|
||||||
|
}
|
||||||
|
function String_Const_u8
|
||||||
|
date_time_format(Arena *arena, char *format, Date_Time *date_time){
|
||||||
|
return(date_time_format(arena, SCu8(format), date_time));
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// BOTTOM
|
// BOTTOM
|
||||||
|
|
|
@ -55,7 +55,7 @@ struct Color_Array{
|
||||||
api(custom)
|
api(custom)
|
||||||
struct Color_Table{
|
struct Color_Table{
|
||||||
Color_Array *arrays;
|
Color_Array *arrays;
|
||||||
u32 count;
|
i32 count;
|
||||||
};
|
};
|
||||||
|
|
||||||
api(custom)
|
api(custom)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#define MAJOR 4
|
#define MAJOR 4
|
||||||
#define MINOR 1
|
#define MINOR 1
|
||||||
#define PATCH 3
|
#define PATCH 4
|
||||||
|
|
||||||
// string
|
// string
|
||||||
#define VN__(a,b,c) #a "." #b "." #c
|
#define VN__(a,b,c) #a "." #b "." #c
|
||||||
|
|
|
@ -1,318 +1,318 @@
|
||||||
enum{
|
enum{
|
||||||
KeyCode_A = 1,
|
KeyCode_A = 1,
|
||||||
KeyCode_B = 2,
|
KeyCode_B = 2,
|
||||||
KeyCode_C = 3,
|
KeyCode_C = 3,
|
||||||
KeyCode_D = 4,
|
KeyCode_D = 4,
|
||||||
KeyCode_E = 5,
|
KeyCode_E = 5,
|
||||||
KeyCode_F = 6,
|
KeyCode_F = 6,
|
||||||
KeyCode_G = 7,
|
KeyCode_G = 7,
|
||||||
KeyCode_H = 8,
|
KeyCode_H = 8,
|
||||||
KeyCode_I = 9,
|
KeyCode_I = 9,
|
||||||
KeyCode_J = 10,
|
KeyCode_J = 10,
|
||||||
KeyCode_K = 11,
|
KeyCode_K = 11,
|
||||||
KeyCode_L = 12,
|
KeyCode_L = 12,
|
||||||
KeyCode_M = 13,
|
KeyCode_M = 13,
|
||||||
KeyCode_N = 14,
|
KeyCode_N = 14,
|
||||||
KeyCode_O = 15,
|
KeyCode_O = 15,
|
||||||
KeyCode_P = 16,
|
KeyCode_P = 16,
|
||||||
KeyCode_Q = 17,
|
KeyCode_Q = 17,
|
||||||
KeyCode_R = 18,
|
KeyCode_R = 18,
|
||||||
KeyCode_S = 19,
|
KeyCode_S = 19,
|
||||||
KeyCode_T = 20,
|
KeyCode_T = 20,
|
||||||
KeyCode_U = 21,
|
KeyCode_U = 21,
|
||||||
KeyCode_V = 22,
|
KeyCode_V = 22,
|
||||||
KeyCode_W = 23,
|
KeyCode_W = 23,
|
||||||
KeyCode_X = 24,
|
KeyCode_X = 24,
|
||||||
KeyCode_Y = 25,
|
KeyCode_Y = 25,
|
||||||
KeyCode_Z = 26,
|
KeyCode_Z = 26,
|
||||||
KeyCode_0 = 27,
|
KeyCode_0 = 27,
|
||||||
KeyCode_1 = 28,
|
KeyCode_1 = 28,
|
||||||
KeyCode_2 = 29,
|
KeyCode_2 = 29,
|
||||||
KeyCode_3 = 30,
|
KeyCode_3 = 30,
|
||||||
KeyCode_4 = 31,
|
KeyCode_4 = 31,
|
||||||
KeyCode_5 = 32,
|
KeyCode_5 = 32,
|
||||||
KeyCode_6 = 33,
|
KeyCode_6 = 33,
|
||||||
KeyCode_7 = 34,
|
KeyCode_7 = 34,
|
||||||
KeyCode_8 = 35,
|
KeyCode_8 = 35,
|
||||||
KeyCode_9 = 36,
|
KeyCode_9 = 36,
|
||||||
KeyCode_Space = 37,
|
KeyCode_Space = 37,
|
||||||
KeyCode_Tick = 38,
|
KeyCode_Tick = 38,
|
||||||
KeyCode_Minus = 39,
|
KeyCode_Minus = 39,
|
||||||
KeyCode_Equal = 40,
|
KeyCode_Equal = 40,
|
||||||
KeyCode_LeftBracket = 41,
|
KeyCode_LeftBracket = 41,
|
||||||
KeyCode_RightBracket = 42,
|
KeyCode_RightBracket = 42,
|
||||||
KeyCode_Semicolon = 43,
|
KeyCode_Semicolon = 43,
|
||||||
KeyCode_Quote = 44,
|
KeyCode_Quote = 44,
|
||||||
KeyCode_Comma = 45,
|
KeyCode_Comma = 45,
|
||||||
KeyCode_Period = 46,
|
KeyCode_Period = 46,
|
||||||
KeyCode_ForwardSlash = 47,
|
KeyCode_ForwardSlash = 47,
|
||||||
KeyCode_BackwardSlash = 48,
|
KeyCode_BackwardSlash = 48,
|
||||||
KeyCode_Tab = 49,
|
KeyCode_Tab = 49,
|
||||||
KeyCode_Escape = 50,
|
KeyCode_Escape = 50,
|
||||||
KeyCode_Pause = 51,
|
KeyCode_Pause = 51,
|
||||||
KeyCode_Up = 52,
|
KeyCode_Up = 52,
|
||||||
KeyCode_Down = 53,
|
KeyCode_Down = 53,
|
||||||
KeyCode_Left = 54,
|
KeyCode_Left = 54,
|
||||||
KeyCode_Right = 55,
|
KeyCode_Right = 55,
|
||||||
KeyCode_Backspace = 56,
|
KeyCode_Backspace = 56,
|
||||||
KeyCode_Return = 57,
|
KeyCode_Return = 57,
|
||||||
KeyCode_Delete = 58,
|
KeyCode_Delete = 58,
|
||||||
KeyCode_Insert = 59,
|
KeyCode_Insert = 59,
|
||||||
KeyCode_Home = 60,
|
KeyCode_Home = 60,
|
||||||
KeyCode_End = 61,
|
KeyCode_End = 61,
|
||||||
KeyCode_PageUp = 62,
|
KeyCode_PageUp = 62,
|
||||||
KeyCode_PageDown = 63,
|
KeyCode_PageDown = 63,
|
||||||
KeyCode_CapsLock = 64,
|
KeyCode_CapsLock = 64,
|
||||||
KeyCode_NumLock = 65,
|
KeyCode_NumLock = 65,
|
||||||
KeyCode_ScrollLock = 66,
|
KeyCode_ScrollLock = 66,
|
||||||
KeyCode_Menu = 67,
|
KeyCode_Menu = 67,
|
||||||
KeyCode_Shift = 68,
|
KeyCode_Shift = 68,
|
||||||
KeyCode_Control = 69,
|
KeyCode_Control = 69,
|
||||||
KeyCode_Alt = 70,
|
KeyCode_Alt = 70,
|
||||||
KeyCode_Command = 71,
|
KeyCode_Command = 71,
|
||||||
KeyCode_F1 = 72,
|
KeyCode_F1 = 72,
|
||||||
KeyCode_F2 = 73,
|
KeyCode_F2 = 73,
|
||||||
KeyCode_F3 = 74,
|
KeyCode_F3 = 74,
|
||||||
KeyCode_F4 = 75,
|
KeyCode_F4 = 75,
|
||||||
KeyCode_F5 = 76,
|
KeyCode_F5 = 76,
|
||||||
KeyCode_F6 = 77,
|
KeyCode_F6 = 77,
|
||||||
KeyCode_F7 = 78,
|
KeyCode_F7 = 78,
|
||||||
KeyCode_F8 = 79,
|
KeyCode_F8 = 79,
|
||||||
KeyCode_F9 = 80,
|
KeyCode_F9 = 80,
|
||||||
KeyCode_F10 = 81,
|
KeyCode_F10 = 81,
|
||||||
KeyCode_F11 = 82,
|
KeyCode_F11 = 82,
|
||||||
KeyCode_F12 = 83,
|
KeyCode_F12 = 83,
|
||||||
KeyCode_F13 = 84,
|
KeyCode_F13 = 84,
|
||||||
KeyCode_F14 = 85,
|
KeyCode_F14 = 85,
|
||||||
KeyCode_F15 = 86,
|
KeyCode_F15 = 86,
|
||||||
KeyCode_F16 = 87,
|
KeyCode_F16 = 87,
|
||||||
KeyCode_F17 = 88,
|
KeyCode_F17 = 88,
|
||||||
KeyCode_F18 = 89,
|
KeyCode_F18 = 89,
|
||||||
KeyCode_F19 = 90,
|
KeyCode_F19 = 90,
|
||||||
KeyCode_F20 = 91,
|
KeyCode_F20 = 91,
|
||||||
KeyCode_F21 = 92,
|
KeyCode_F21 = 92,
|
||||||
KeyCode_F22 = 93,
|
KeyCode_F22 = 93,
|
||||||
KeyCode_F23 = 94,
|
KeyCode_F23 = 94,
|
||||||
KeyCode_F24 = 95,
|
KeyCode_F24 = 95,
|
||||||
KeyCode_NumPad0 = 96,
|
KeyCode_NumPad0 = 96,
|
||||||
KeyCode_NumPad1 = 97,
|
KeyCode_NumPad1 = 97,
|
||||||
KeyCode_NumPad2 = 98,
|
KeyCode_NumPad2 = 98,
|
||||||
KeyCode_NumPad3 = 99,
|
KeyCode_NumPad3 = 99,
|
||||||
KeyCode_NumPad4 = 100,
|
KeyCode_NumPad4 = 100,
|
||||||
KeyCode_NumPad5 = 101,
|
KeyCode_NumPad5 = 101,
|
||||||
KeyCode_NumPad6 = 102,
|
KeyCode_NumPad6 = 102,
|
||||||
KeyCode_NumPad7 = 103,
|
KeyCode_NumPad7 = 103,
|
||||||
KeyCode_NumPad8 = 104,
|
KeyCode_NumPad8 = 104,
|
||||||
KeyCode_NumPad9 = 105,
|
KeyCode_NumPad9 = 105,
|
||||||
KeyCode_NumPadStar = 106,
|
KeyCode_NumPadStar = 106,
|
||||||
KeyCode_NumPadPlus = 107,
|
KeyCode_NumPadPlus = 107,
|
||||||
KeyCode_NumPadMinus = 108,
|
KeyCode_NumPadMinus = 108,
|
||||||
KeyCode_NumPadDot = 109,
|
KeyCode_NumPadDot = 109,
|
||||||
KeyCode_NumPadSlash = 110,
|
KeyCode_NumPadSlash = 110,
|
||||||
KeyCode_Ex0 = 111,
|
KeyCode_Ex0 = 111,
|
||||||
KeyCode_Ex1 = 112,
|
KeyCode_Ex1 = 112,
|
||||||
KeyCode_Ex2 = 113,
|
KeyCode_Ex2 = 113,
|
||||||
KeyCode_Ex3 = 114,
|
KeyCode_Ex3 = 114,
|
||||||
KeyCode_Ex4 = 115,
|
KeyCode_Ex4 = 115,
|
||||||
KeyCode_Ex5 = 116,
|
KeyCode_Ex5 = 116,
|
||||||
KeyCode_Ex6 = 117,
|
KeyCode_Ex6 = 117,
|
||||||
KeyCode_Ex7 = 118,
|
KeyCode_Ex7 = 118,
|
||||||
KeyCode_Ex8 = 119,
|
KeyCode_Ex8 = 119,
|
||||||
KeyCode_Ex9 = 120,
|
KeyCode_Ex9 = 120,
|
||||||
KeyCode_Ex10 = 121,
|
KeyCode_Ex10 = 121,
|
||||||
KeyCode_Ex11 = 122,
|
KeyCode_Ex11 = 122,
|
||||||
KeyCode_Ex12 = 123,
|
KeyCode_Ex12 = 123,
|
||||||
KeyCode_Ex13 = 124,
|
KeyCode_Ex13 = 124,
|
||||||
KeyCode_Ex14 = 125,
|
KeyCode_Ex14 = 125,
|
||||||
KeyCode_Ex15 = 126,
|
KeyCode_Ex15 = 126,
|
||||||
KeyCode_Ex16 = 127,
|
KeyCode_Ex16 = 127,
|
||||||
KeyCode_Ex17 = 128,
|
KeyCode_Ex17 = 128,
|
||||||
KeyCode_Ex18 = 129,
|
KeyCode_Ex18 = 129,
|
||||||
KeyCode_Ex19 = 130,
|
KeyCode_Ex19 = 130,
|
||||||
KeyCode_Ex20 = 131,
|
KeyCode_Ex20 = 131,
|
||||||
KeyCode_Ex21 = 132,
|
KeyCode_Ex21 = 132,
|
||||||
KeyCode_Ex22 = 133,
|
KeyCode_Ex22 = 133,
|
||||||
KeyCode_Ex23 = 134,
|
KeyCode_Ex23 = 134,
|
||||||
KeyCode_Ex24 = 135,
|
KeyCode_Ex24 = 135,
|
||||||
KeyCode_Ex25 = 136,
|
KeyCode_Ex25 = 136,
|
||||||
KeyCode_Ex26 = 137,
|
KeyCode_Ex26 = 137,
|
||||||
KeyCode_Ex27 = 138,
|
KeyCode_Ex27 = 138,
|
||||||
KeyCode_Ex28 = 139,
|
KeyCode_Ex28 = 139,
|
||||||
KeyCode_Ex29 = 140,
|
KeyCode_Ex29 = 140,
|
||||||
KeyCode_COUNT = 141,
|
KeyCode_COUNT = 141,
|
||||||
};
|
};
|
||||||
global char* key_code_name[KeyCode_COUNT] = {
|
global char* key_code_name[KeyCode_COUNT] = {
|
||||||
"None",
|
"None",
|
||||||
"A",
|
"A",
|
||||||
"B",
|
"B",
|
||||||
"C",
|
"C",
|
||||||
"D",
|
"D",
|
||||||
"E",
|
"E",
|
||||||
"F",
|
"F",
|
||||||
"G",
|
"G",
|
||||||
"H",
|
"H",
|
||||||
"I",
|
"I",
|
||||||
"J",
|
"J",
|
||||||
"K",
|
"K",
|
||||||
"L",
|
"L",
|
||||||
"M",
|
"M",
|
||||||
"N",
|
"N",
|
||||||
"O",
|
"O",
|
||||||
"P",
|
"P",
|
||||||
"Q",
|
"Q",
|
||||||
"R",
|
"R",
|
||||||
"S",
|
"S",
|
||||||
"T",
|
"T",
|
||||||
"U",
|
"U",
|
||||||
"V",
|
"V",
|
||||||
"W",
|
"W",
|
||||||
"X",
|
"X",
|
||||||
"Y",
|
"Y",
|
||||||
"Z",
|
"Z",
|
||||||
"0",
|
"0",
|
||||||
"1",
|
"1",
|
||||||
"2",
|
"2",
|
||||||
"3",
|
"3",
|
||||||
"4",
|
"4",
|
||||||
"5",
|
"5",
|
||||||
"6",
|
"6",
|
||||||
"7",
|
"7",
|
||||||
"8",
|
"8",
|
||||||
"9",
|
"9",
|
||||||
"Space",
|
"Space",
|
||||||
"Tick",
|
"Tick",
|
||||||
"Minus",
|
"Minus",
|
||||||
"Equal",
|
"Equal",
|
||||||
"LeftBracket",
|
"LeftBracket",
|
||||||
"RightBracket",
|
"RightBracket",
|
||||||
"Semicolon",
|
"Semicolon",
|
||||||
"Quote",
|
"Quote",
|
||||||
"Comma",
|
"Comma",
|
||||||
"Period",
|
"Period",
|
||||||
"ForwardSlash",
|
"ForwardSlash",
|
||||||
"BackwardSlash",
|
"BackwardSlash",
|
||||||
"Tab",
|
"Tab",
|
||||||
"Escape",
|
"Escape",
|
||||||
"Pause",
|
"Pause",
|
||||||
"Up",
|
"Up",
|
||||||
"Down",
|
"Down",
|
||||||
"Left",
|
"Left",
|
||||||
"Right",
|
"Right",
|
||||||
"Backspace",
|
"Backspace",
|
||||||
"Return",
|
"Return",
|
||||||
"Delete",
|
"Delete",
|
||||||
"Insert",
|
"Insert",
|
||||||
"Home",
|
"Home",
|
||||||
"End",
|
"End",
|
||||||
"PageUp",
|
"PageUp",
|
||||||
"PageDown",
|
"PageDown",
|
||||||
"CapsLock",
|
"CapsLock",
|
||||||
"NumLock",
|
"NumLock",
|
||||||
"ScrollLock",
|
"ScrollLock",
|
||||||
"Menu",
|
"Menu",
|
||||||
"Shift",
|
"Shift",
|
||||||
"Control",
|
"Control",
|
||||||
"Alt",
|
"Alt",
|
||||||
"Command",
|
"Command",
|
||||||
"F1",
|
"F1",
|
||||||
"F2",
|
"F2",
|
||||||
"F3",
|
"F3",
|
||||||
"F4",
|
"F4",
|
||||||
"F5",
|
"F5",
|
||||||
"F6",
|
"F6",
|
||||||
"F7",
|
"F7",
|
||||||
"F8",
|
"F8",
|
||||||
"F9",
|
"F9",
|
||||||
"F10",
|
"F10",
|
||||||
"F11",
|
"F11",
|
||||||
"F12",
|
"F12",
|
||||||
"F13",
|
"F13",
|
||||||
"F14",
|
"F14",
|
||||||
"F15",
|
"F15",
|
||||||
"F16",
|
"F16",
|
||||||
"F17",
|
"F17",
|
||||||
"F18",
|
"F18",
|
||||||
"F19",
|
"F19",
|
||||||
"F20",
|
"F20",
|
||||||
"F21",
|
"F21",
|
||||||
"F22",
|
"F22",
|
||||||
"F23",
|
"F23",
|
||||||
"F24",
|
"F24",
|
||||||
"NumPad0",
|
"NumPad0",
|
||||||
"NumPad1",
|
"NumPad1",
|
||||||
"NumPad2",
|
"NumPad2",
|
||||||
"NumPad3",
|
"NumPad3",
|
||||||
"NumPad4",
|
"NumPad4",
|
||||||
"NumPad5",
|
"NumPad5",
|
||||||
"NumPad6",
|
"NumPad6",
|
||||||
"NumPad7",
|
"NumPad7",
|
||||||
"NumPad8",
|
"NumPad8",
|
||||||
"NumPad9",
|
"NumPad9",
|
||||||
"NumPadStar",
|
"NumPadStar",
|
||||||
"NumPadPlus",
|
"NumPadPlus",
|
||||||
"NumPadMinus",
|
"NumPadMinus",
|
||||||
"NumPadDot",
|
"NumPadDot",
|
||||||
"NumPadSlash",
|
"NumPadSlash",
|
||||||
"Ex0",
|
"Ex0",
|
||||||
"Ex1",
|
"Ex1",
|
||||||
"Ex2",
|
"Ex2",
|
||||||
"Ex3",
|
"Ex3",
|
||||||
"Ex4",
|
"Ex4",
|
||||||
"Ex5",
|
"Ex5",
|
||||||
"Ex6",
|
"Ex6",
|
||||||
"Ex7",
|
"Ex7",
|
||||||
"Ex8",
|
"Ex8",
|
||||||
"Ex9",
|
"Ex9",
|
||||||
"Ex10",
|
"Ex10",
|
||||||
"Ex11",
|
"Ex11",
|
||||||
"Ex12",
|
"Ex12",
|
||||||
"Ex13",
|
"Ex13",
|
||||||
"Ex14",
|
"Ex14",
|
||||||
"Ex15",
|
"Ex15",
|
||||||
"Ex16",
|
"Ex16",
|
||||||
"Ex17",
|
"Ex17",
|
||||||
"Ex18",
|
"Ex18",
|
||||||
"Ex19",
|
"Ex19",
|
||||||
"Ex20",
|
"Ex20",
|
||||||
"Ex21",
|
"Ex21",
|
||||||
"Ex22",
|
"Ex22",
|
||||||
"Ex23",
|
"Ex23",
|
||||||
"Ex24",
|
"Ex24",
|
||||||
"Ex25",
|
"Ex25",
|
||||||
"Ex26",
|
"Ex26",
|
||||||
"Ex27",
|
"Ex27",
|
||||||
"Ex28",
|
"Ex28",
|
||||||
"Ex29",
|
"Ex29",
|
||||||
};
|
};
|
||||||
enum{
|
enum{
|
||||||
MouseCode_Left = 1,
|
MouseCode_Left = 1,
|
||||||
MouseCode_Middle = 2,
|
MouseCode_Middle = 2,
|
||||||
MouseCode_Right = 3,
|
MouseCode_Right = 3,
|
||||||
MouseCode_COUNT = 4,
|
MouseCode_COUNT = 4,
|
||||||
};
|
};
|
||||||
global char* mouse_code_name[MouseCode_COUNT] = {
|
global char* mouse_code_name[MouseCode_COUNT] = {
|
||||||
"None",
|
"None",
|
||||||
"Left",
|
"Left",
|
||||||
"Middle",
|
"Middle",
|
||||||
"Right",
|
"Right",
|
||||||
};
|
};
|
||||||
enum{
|
enum{
|
||||||
CoreCode_Startup = 1,
|
CoreCode_Startup = 1,
|
||||||
CoreCode_Animate = 2,
|
CoreCode_Animate = 2,
|
||||||
CoreCode_ClickActivateView = 3,
|
CoreCode_ClickActivateView = 3,
|
||||||
CoreCode_ClickDeactivateView = 4,
|
CoreCode_ClickDeactivateView = 4,
|
||||||
CoreCode_TryExit = 5,
|
CoreCode_TryExit = 5,
|
||||||
CoreCode_FileExternallyModified = 6,
|
CoreCode_FileExternallyModified = 6,
|
||||||
CoreCode_NewClipboardContents = 7,
|
CoreCode_NewClipboardContents = 7,
|
||||||
CoreCode_COUNT = 8,
|
CoreCode_COUNT = 8,
|
||||||
};
|
};
|
||||||
global char* core_code_name[CoreCode_COUNT] = {
|
global char* core_code_name[CoreCode_COUNT] = {
|
||||||
"None",
|
"None",
|
||||||
"Startup",
|
"Startup",
|
||||||
"Animate",
|
"Animate",
|
||||||
"ClickActivateView",
|
"ClickActivateView",
|
||||||
"ClickDeactivateView",
|
"ClickDeactivateView",
|
||||||
"TryExit",
|
"TryExit",
|
||||||
"FileExternallyModified",
|
"FileExternallyModified",
|
||||||
"NewClipboardContents",
|
"NewClipboardContents",
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define command_id(c) (fcoder_metacmd_ID_##c)
|
#define command_id(c) (fcoder_metacmd_ID_##c)
|
||||||
#define command_metadata(c) (&fcoder_metacmd_table[command_id(c)])
|
#define command_metadata(c) (&fcoder_metacmd_table[command_id(c)])
|
||||||
#define command_metadata_by_id(id) (&fcoder_metacmd_table[id])
|
#define command_metadata_by_id(id) (&fcoder_metacmd_table[id])
|
||||||
#define command_one_past_last_id 242
|
#define command_one_past_last_id 243
|
||||||
#if defined(CUSTOM_COMMAND_SIG)
|
#if defined(CUSTOM_COMMAND_SIG)
|
||||||
#define PROC_LINKS(x,y) x
|
#define PROC_LINKS(x,y) x
|
||||||
#else
|
#else
|
||||||
|
@ -142,6 +142,7 @@ CUSTOM_COMMAND_SIG(move_up_10);
|
||||||
CUSTOM_COMMAND_SIG(move_up_to_blank_line);
|
CUSTOM_COMMAND_SIG(move_up_to_blank_line);
|
||||||
CUSTOM_COMMAND_SIG(move_up_to_blank_line_end);
|
CUSTOM_COMMAND_SIG(move_up_to_blank_line_end);
|
||||||
CUSTOM_COMMAND_SIG(move_up_to_blank_line_skip_whitespace);
|
CUSTOM_COMMAND_SIG(move_up_to_blank_line_skip_whitespace);
|
||||||
|
CUSTOM_COMMAND_SIG(multi_paste);
|
||||||
CUSTOM_COMMAND_SIG(multi_paste_interactive);
|
CUSTOM_COMMAND_SIG(multi_paste_interactive);
|
||||||
CUSTOM_COMMAND_SIG(multi_paste_interactive_quick);
|
CUSTOM_COMMAND_SIG(multi_paste_interactive_quick);
|
||||||
CUSTOM_COMMAND_SIG(open_all_code);
|
CUSTOM_COMMAND_SIG(open_all_code);
|
||||||
|
@ -263,249 +264,250 @@ char *source_name;
|
||||||
i32 source_name_len;
|
i32 source_name_len;
|
||||||
i32 line_number;
|
i32 line_number;
|
||||||
};
|
};
|
||||||
static Command_Metadata fcoder_metacmd_table[242] = {
|
static Command_Metadata fcoder_metacmd_table[243] = {
|
||||||
{ PROC_LINKS(allow_mouse, 0), false, "allow_mouse", 11, "Shows the mouse and causes all mouse input to be processed normally.", 68, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 409 },
|
{ PROC_LINKS(allow_mouse, 0), false, "allow_mouse", 11, "Shows the mouse and causes all mouse input to be processed normally.", 68, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 409 },
|
||||||
{ PROC_LINKS(auto_indent_line_at_cursor, 0), false, "auto_indent_line_at_cursor", 26, "Auto-indents the line on which the cursor sits.", 47, "W:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 413 },
|
{ PROC_LINKS(auto_indent_line_at_cursor, 0), false, "auto_indent_line_at_cursor", 26, "Auto-indents the line on which the cursor sits.", 47, "w:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 413 },
|
||||||
{ PROC_LINKS(auto_indent_range, 0), false, "auto_indent_range", 17, "Auto-indents the range between the cursor and the mark.", 55, "W:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 423 },
|
{ PROC_LINKS(auto_indent_range, 0), false, "auto_indent_range", 17, "Auto-indents the range between the cursor and the mark.", 55, "w:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 423 },
|
||||||
{ PROC_LINKS(auto_indent_whole_file, 0), false, "auto_indent_whole_file", 22, "Audo-indents the entire current buffer.", 39, "W:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 404 },
|
{ PROC_LINKS(auto_indent_whole_file, 0), false, "auto_indent_whole_file", 22, "Audo-indents the entire current buffer.", 39, "w:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 404 },
|
||||||
{ PROC_LINKS(backspace_alpha_numeric_boundary, 0), false, "backspace_alpha_numeric_boundary", 32, "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 154 },
|
{ PROC_LINKS(backspace_alpha_numeric_boundary, 0), false, "backspace_alpha_numeric_boundary", 32, "Delete characters between the cursor position and the first alphanumeric boundary to the left.", 94, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 154 },
|
||||||
{ PROC_LINKS(backspace_char, 0), false, "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 96 },
|
{ PROC_LINKS(backspace_char, 0), false, "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 96 },
|
||||||
{ PROC_LINKS(basic_change_active_panel, 0), false, "basic_change_active_panel", 25, "Change the currently active panel, moving to the panel with the next highest view_id. Will not skipe the build panel if it is open.", 132, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 647 },
|
{ PROC_LINKS(basic_change_active_panel, 0), false, "basic_change_active_panel", 25, "Change the currently active panel, moving to the panel with the next highest view_id. Will not skipe the build panel if it is open.", 132, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 645 },
|
||||||
{ PROC_LINKS(begin_clipboard_collection_mode, 0), true, "begin_clipboard_collection_mode", 31, "Allows the user to copy multiple strings from other applications before switching to 4coder and pasting them all.", 113, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 68 },
|
{ PROC_LINKS(begin_clipboard_collection_mode, 0), true, "begin_clipboard_collection_mode", 31, "Allows the user to copy multiple strings from other applications before switching to 4coder and pasting them all.", 113, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 68 },
|
||||||
{ PROC_LINKS(build_in_build_panel, 0), false, "build_in_build_panel", 20, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*. Puts the *compilation* buffer in a panel at the footer of the current view.", 230, "W:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 159 },
|
{ PROC_LINKS(build_in_build_panel, 0), false, "build_in_build_panel", 20, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*. Puts the *compilation* buffer in a panel at the footer of the current view.", 230, "w:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 159 },
|
||||||
{ PROC_LINKS(build_search, 0), false, "build_search", 12, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*.", 153, "W:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 122 },
|
{ PROC_LINKS(build_search, 0), false, "build_search", 12, "Looks for a build.bat, build.sh, or makefile in the current and parent directories. Runs the first that it finds and prints the output to *compilation*.", 153, "w:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 122 },
|
||||||
{ PROC_LINKS(center_view, 0), false, "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 197 },
|
{ PROC_LINKS(center_view, 0), false, "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 195 },
|
||||||
{ PROC_LINKS(change_active_panel, 0), false, "change_active_panel", 19, "Change the currently active panel, moving to the panel with the next highest view_id.", 85, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 284 },
|
{ PROC_LINKS(change_active_panel, 0), false, "change_active_panel", 19, "Change the currently active panel, moving to the panel with the next highest view_id.", 85, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 284 },
|
||||||
{ PROC_LINKS(change_active_panel_backwards, 0), false, "change_active_panel_backwards", 29, "Change the currently active panel, moving to the panel with the next lowest view_id.", 84, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 290 },
|
{ PROC_LINKS(change_active_panel_backwards, 0), false, "change_active_panel_backwards", 29, "Change the currently active panel, moving to the panel with the next lowest view_id.", 84, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 290 },
|
||||||
{ PROC_LINKS(change_to_build_panel, 0), false, "change_to_build_panel", 21, "If the special build panel is open, makes the build panel the active panel.", 75, "W:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 180 },
|
{ PROC_LINKS(change_to_build_panel, 0), false, "change_to_build_panel", 21, "If the special build panel is open, makes the build panel the active panel.", 75, "w:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 180 },
|
||||||
{ PROC_LINKS(clean_all_lines, 0), false, "clean_all_lines", 15, "Removes trailing whitespace from all lines in the current buffer.", 65, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 636 },
|
{ PROC_LINKS(clean_all_lines, 0), false, "clean_all_lines", 15, "Removes trailing whitespace from all lines in the current buffer.", 65, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 634 },
|
||||||
{ PROC_LINKS(clear_all_themes, 0), false, "clear_all_themes", 16, "Clear the theme list", 20, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 480 },
|
{ PROC_LINKS(clear_all_themes, 0), false, "clear_all_themes", 16, "Clear the theme list", 20, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 480 },
|
||||||
{ PROC_LINKS(clear_clipboard, 0), false, "clear_clipboard", 15, "Clears the history of the clipboard", 35, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 216 },
|
{ PROC_LINKS(clear_clipboard, 0), false, "clear_clipboard", 15, "Clears the history of the clipboard", 35, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 216 },
|
||||||
{ PROC_LINKS(click_set_cursor, 0), false, "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 233 },
|
{ PROC_LINKS(click_set_cursor, 0), false, "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 231 },
|
||||||
{ PROC_LINKS(click_set_cursor_and_mark, 0), false, "click_set_cursor_and_mark", 25, "Sets the cursor position and mark to the mouse position.", 56, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 223 },
|
{ PROC_LINKS(click_set_cursor_and_mark, 0), false, "click_set_cursor_and_mark", 25, "Sets the cursor position and mark to the mouse position.", 56, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 221 },
|
||||||
{ PROC_LINKS(click_set_cursor_if_lbutton, 0), false, "click_set_cursor_if_lbutton", 27, "If the mouse left button is pressed, sets the cursor position to the mouse position.", 84, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 243 },
|
{ PROC_LINKS(click_set_cursor_if_lbutton, 0), false, "click_set_cursor_if_lbutton", 27, "If the mouse left button is pressed, sets the cursor position to the mouse position.", 84, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 241 },
|
||||||
{ PROC_LINKS(click_set_mark, 0), false, "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 255 },
|
{ PROC_LINKS(click_set_mark, 0), false, "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 253 },
|
||||||
{ PROC_LINKS(clipboard_record_clip, 0), false, "clipboard_record_clip", 21, "In response to a new clipboard contents events, saves the new clip onto the clipboard history", 93, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 7 },
|
{ PROC_LINKS(clipboard_record_clip, 0), false, "clipboard_record_clip", 21, "In response to a new clipboard contents events, saves the new clip onto the clipboard history", 93, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 7 },
|
||||||
{ PROC_LINKS(close_all_code, 0), false, "close_all_code", 14, "Closes any buffer with a filename ending with an extension configured to be recognized as a code file type.", 107, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 843 },
|
{ PROC_LINKS(close_all_code, 0), false, "close_all_code", 14, "Closes any buffer with a filename ending with an extension configured to be recognized as a code file type.", 107, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 842 },
|
||||||
{ PROC_LINKS(close_build_panel, 0), false, "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "W:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 174 },
|
{ PROC_LINKS(close_build_panel, 0), false, "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "w:\\4ed\\code\\custom\\4coder_build_commands.cpp", 44, 174 },
|
||||||
{ PROC_LINKS(close_panel, 0), false, "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 655 },
|
{ PROC_LINKS(close_panel, 0), false, "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 653 },
|
||||||
{ PROC_LINKS(command_documentation, 0), true, "command_documentation", 21, "Prompts the user to select a command then loads a doc buffer for that item", 74, "W:\\4ed\\code\\custom\\4coder_docs.cpp", 34, 190 },
|
{ PROC_LINKS(command_documentation, 0), true, "command_documentation", 21, "Prompts the user to select a command then loads a doc buffer for that item", 74, "w:\\4ed\\code\\custom\\4coder_docs.cpp", 34, 190 },
|
||||||
{ PROC_LINKS(command_lister, 0), true, "command_lister", 14, "Opens an interactive list of all registered commands.", 53, "W:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 761 },
|
{ PROC_LINKS(command_lister, 0), true, "command_lister", 14, "Opens an interactive list of all registered commands.", 53, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 760 },
|
||||||
{ PROC_LINKS(comment_line, 0), false, "comment_line", 12, "Insert '//' at the beginning of the line after leading whitespace.", 66, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 125 },
|
{ PROC_LINKS(comment_line, 0), false, "comment_line", 12, "Insert '//' at the beginning of the line after leading whitespace.", 66, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 125 },
|
||||||
{ PROC_LINKS(comment_line_toggle, 0), false, "comment_line_toggle", 19, "Turns uncommented lines into commented lines and vice versa for comments starting with '//'.", 92, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 149 },
|
{ PROC_LINKS(comment_line_toggle, 0), false, "comment_line_toggle", 19, "Turns uncommented lines into commented lines and vice versa for comments starting with '//'.", 92, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 149 },
|
||||||
{ PROC_LINKS(copy, 0), false, "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 107 },
|
{ PROC_LINKS(copy, 0), false, "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 107 },
|
||||||
{ PROC_LINKS(cursor_mark_swap, 0), false, "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 124 },
|
{ PROC_LINKS(cursor_mark_swap, 0), false, "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 124 },
|
||||||
{ PROC_LINKS(custom_api_documentation, 0), true, "custom_api_documentation", 24, "Prompts the user to select a Custom API item then loads a doc buffer for that item", 82, "W:\\4ed\\code\\custom\\4coder_docs.cpp", 34, 175 },
|
{ PROC_LINKS(custom_api_documentation, 0), true, "custom_api_documentation", 24, "Prompts the user to select a Custom API item then loads a doc buffer for that item", 82, "w:\\4ed\\code\\custom\\4coder_docs.cpp", 34, 175 },
|
||||||
{ PROC_LINKS(cut, 0), false, "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 116 },
|
{ PROC_LINKS(cut, 0), false, "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 116 },
|
||||||
{ PROC_LINKS(decrease_face_size, 0), false, "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 738 },
|
{ PROC_LINKS(decrease_face_size, 0), false, "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 736 },
|
||||||
{ PROC_LINKS(default_file_externally_modified, 0), false, "default_file_externally_modified", 32, "Notes the external modification of attached files by printing a message.", 72, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1897 },
|
{ PROC_LINKS(default_file_externally_modified, 0), false, "default_file_externally_modified", 32, "Notes the external modification of attached files by printing a message.", 72, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1895 },
|
||||||
{ PROC_LINKS(default_startup, 0), false, "default_startup", 15, "Default command for responding to a startup event", 49, "W:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 7 },
|
{ PROC_LINKS(default_startup, 0), false, "default_startup", 15, "Default command for responding to a startup event", 49, "w:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 7 },
|
||||||
{ PROC_LINKS(default_try_exit, 0), false, "default_try_exit", 16, "Default command for responding to a try-exit event", 50, "W:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 23 },
|
{ PROC_LINKS(default_try_exit, 0), false, "default_try_exit", 16, "Default command for responding to a try-exit event", 50, "w:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 23 },
|
||||||
{ PROC_LINKS(default_view_input_handler, 0), false, "default_view_input_handler", 26, "Input consumption loop for default view behavior", 48, "W:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 51 },
|
{ PROC_LINKS(default_view_input_handler, 0), false, "default_view_input_handler", 26, "Input consumption loop for default view behavior", 48, "w:\\4ed\\code\\custom\\4coder_default_hooks.cpp", 43, 51 },
|
||||||
{ PROC_LINKS(delete_alpha_numeric_boundary, 0), false, "delete_alpha_numeric_boundary", 29, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 162 },
|
{ PROC_LINKS(delete_alpha_numeric_boundary, 0), false, "delete_alpha_numeric_boundary", 29, "Delete characters between the cursor position and the first alphanumeric boundary to the right.", 95, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 161 },
|
||||||
{ PROC_LINKS(delete_char, 0), false, "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 79 },
|
{ PROC_LINKS(delete_char, 0), false, "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 79 },
|
||||||
{ PROC_LINKS(delete_current_scope, 0), false, "delete_current_scope", 20, "Deletes the braces surrounding the currently selected scope. Leaves the contents within the scope.", 99, "W:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 112 },
|
{ PROC_LINKS(delete_current_scope, 0), false, "delete_current_scope", 20, "Deletes the braces surrounding the currently selected scope. Leaves the contents within the scope.", 99, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 112 },
|
||||||
{ PROC_LINKS(delete_file_query, 0), false, "delete_file_query", 17, "Deletes the file of the current buffer if 4coder has the appropriate access rights. Will ask the user for confirmation first.", 125, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1323 },
|
{ PROC_LINKS(delete_file_query, 0), false, "delete_file_query", 17, "Deletes the file of the current buffer if 4coder has the appropriate access rights. Will ask the user for confirmation first.", 125, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1321 },
|
||||||
{ PROC_LINKS(delete_line, 0), false, "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1495 },
|
{ PROC_LINKS(delete_line, 0), false, "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1493 },
|
||||||
{ PROC_LINKS(delete_range, 0), false, "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 134 },
|
{ PROC_LINKS(delete_range, 0), false, "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 134 },
|
||||||
{ PROC_LINKS(display_key_codes, 0), false, "display_key_codes", 17, "Example of input handling loop", 30, "W:\\4ed\\code\\custom\\4coder_examples.cpp", 38, 90 },
|
{ PROC_LINKS(display_key_codes, 0), false, "display_key_codes", 17, "Example of input handling loop", 30, "w:\\4ed\\code\\custom\\4coder_examples.cpp", 38, 90 },
|
||||||
{ PROC_LINKS(display_text_input, 0), false, "display_text_input", 18, "Example of to_writable and leave_current_input_unhandled", 56, "W:\\4ed\\code\\custom\\4coder_examples.cpp", 38, 134 },
|
{ PROC_LINKS(display_text_input, 0), false, "display_text_input", 18, "Example of to_writable and leave_current_input_unhandled", 56, "w:\\4ed\\code\\custom\\4coder_examples.cpp", 38, 134 },
|
||||||
{ PROC_LINKS(double_backspace, 0), false, "double_backspace", 16, "Example of history group helpers", 32, "W:\\4ed\\code\\custom\\4coder_examples.cpp", 38, 10 },
|
{ PROC_LINKS(double_backspace, 0), false, "double_backspace", 16, "Example of history group helpers", 32, "w:\\4ed\\code\\custom\\4coder_examples.cpp", 38, 10 },
|
||||||
{ PROC_LINKS(duplicate_line, 0), false, "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1481 },
|
{ PROC_LINKS(duplicate_line, 0), false, "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1479 },
|
||||||
{ PROC_LINKS(execute_any_cli, 0), false, "execute_any_cli", 15, "Queries for an output buffer name and system command, runs the system command as a CLI and prints the output to the specified buffer.", 133, "W:\\4ed\\code\\custom\\4coder_cli_command.cpp", 41, 22 },
|
{ PROC_LINKS(execute_any_cli, 0), false, "execute_any_cli", 15, "Queries for an output buffer name and system command, runs the system command as a CLI and prints the output to the specified buffer.", 133, "w:\\4ed\\code\\custom\\4coder_cli_command.cpp", 41, 22 },
|
||||||
{ PROC_LINKS(execute_previous_cli, 0), false, "execute_previous_cli", 20, "If the command execute_any_cli has already been used, this will execute a CLI reusing the most recent buffer name and command.", 126, "W:\\4ed\\code\\custom\\4coder_cli_command.cpp", 41, 7 },
|
{ PROC_LINKS(execute_previous_cli, 0), false, "execute_previous_cli", 20, "If the command execute_any_cli has already been used, this will execute a CLI reusing the most recent buffer name and command.", 126, "w:\\4ed\\code\\custom\\4coder_cli_command.cpp", 41, 7 },
|
||||||
{ PROC_LINKS(exit_4coder, 0), false, "exit_4coder", 11, "Attempts to close 4coder.", 25, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 825 },
|
{ PROC_LINKS(exit_4coder, 0), false, "exit_4coder", 11, "Attempts to close 4coder.", 25, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 823 },
|
||||||
{ PROC_LINKS(goto_beginning_of_file, 0), false, "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "W:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2224 },
|
{ PROC_LINKS(goto_beginning_of_file, 0), false, "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2224 },
|
||||||
{ PROC_LINKS(goto_end_of_file, 0), false, "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "W:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2232 },
|
{ PROC_LINKS(goto_end_of_file, 0), false, "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2232 },
|
||||||
{ PROC_LINKS(goto_first_jump, 0), false, "goto_first_jump", 15, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "W:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 525 },
|
{ PROC_LINKS(goto_first_jump, 0), false, "goto_first_jump", 15, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer.", 95, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 525 },
|
||||||
{ PROC_LINKS(goto_first_jump_same_panel_sticky, 0), false, "goto_first_jump_same_panel_sticky", 33, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer and views the buffer in the panel where the jump list was.", 153, "W:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 542 },
|
{ PROC_LINKS(goto_first_jump_same_panel_sticky, 0), false, "goto_first_jump_same_panel_sticky", 33, "If a buffer containing jump locations has been locked in, goes to the first jump in the buffer and views the buffer in the panel where the jump list was.", 153, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 542 },
|
||||||
{ PROC_LINKS(goto_jump_at_cursor, 0), false, "goto_jump_at_cursor", 19, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "W:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 348 },
|
{ PROC_LINKS(goto_jump_at_cursor, 0), false, "goto_jump_at_cursor", 19, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.", 187, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 348 },
|
||||||
{ PROC_LINKS(goto_jump_at_cursor_same_panel, 0), false, "goto_jump_at_cursor_same_panel", 30, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list.", 167, "W:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 375 },
|
{ PROC_LINKS(goto_jump_at_cursor_same_panel, 0), false, "goto_jump_at_cursor_same_panel", 30, "If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list.", 167, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 375 },
|
||||||
{ PROC_LINKS(goto_line, 0), false, "goto_line", 9, "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 833 },
|
{ PROC_LINKS(goto_line, 0), false, "goto_line", 9, "Queries the user for a number, and jumps the cursor to the corresponding line.", 78, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 831 },
|
||||||
{ PROC_LINKS(goto_next_jump, 0), false, "goto_next_jump", 14, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "W:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 464 },
|
{ PROC_LINKS(goto_next_jump, 0), false, "goto_next_jump", 14, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, skipping sub jump locations.", 123, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 464 },
|
||||||
{ PROC_LINKS(goto_next_jump_no_skips, 0), false, "goto_next_jump_no_skips", 23, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "W:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 494 },
|
{ PROC_LINKS(goto_next_jump_no_skips, 0), false, "goto_next_jump_no_skips", 23, "If a buffer containing jump locations has been locked in, goes to the next jump in the buffer, and does not skip sub jump locations.", 132, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 494 },
|
||||||
{ PROC_LINKS(goto_prev_jump, 0), false, "goto_prev_jump", 14, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "W:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 481 },
|
{ PROC_LINKS(goto_prev_jump, 0), false, "goto_prev_jump", 14, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, skipping sub jump locations.", 127, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 481 },
|
||||||
{ PROC_LINKS(goto_prev_jump_no_skips, 0), false, "goto_prev_jump_no_skips", 23, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "W:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 511 },
|
{ PROC_LINKS(goto_prev_jump_no_skips, 0), false, "goto_prev_jump_no_skips", 23, "If a buffer containing jump locations has been locked in, goes to the previous jump in the buffer, and does not skip sub jump locations.", 136, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 511 },
|
||||||
{ PROC_LINKS(hide_filebar, 0), false, "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 685 },
|
{ PROC_LINKS(hide_filebar, 0), false, "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 683 },
|
||||||
{ PROC_LINKS(hide_scrollbar, 0), false, "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 671 },
|
{ PROC_LINKS(hide_scrollbar, 0), false, "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 669 },
|
||||||
{ PROC_LINKS(hms_demo_tutorial, 0), false, "hms_demo_tutorial", 17, "Tutorial for built in 4coder bindings and features.", 51, "W:\\4ed\\code\\custom\\4coder_tutorial.cpp", 38, 869 },
|
{ PROC_LINKS(hms_demo_tutorial, 0), false, "hms_demo_tutorial", 17, "Tutorial for built in 4coder bindings and features.", 51, "w:\\4ed\\code\\custom\\4coder_tutorial.cpp", 38, 869 },
|
||||||
{ PROC_LINKS(if0_off, 0), false, "if0_off", 7, "Surround the range between the cursor and mark with an '#if 0' and an '#endif'", 78, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 70 },
|
{ PROC_LINKS(if0_off, 0), false, "if0_off", 7, "Surround the range between the cursor and mark with an '#if 0' and an '#endif'", 78, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 70 },
|
||||||
{ PROC_LINKS(if_read_only_goto_position, 0), false, "if_read_only_goto_position", 26, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "W:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 564 },
|
{ PROC_LINKS(if_read_only_goto_position, 0), false, "if_read_only_goto_position", 26, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor.", 106, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 564 },
|
||||||
{ PROC_LINKS(if_read_only_goto_position_same_panel, 0), false, "if_read_only_goto_position_same_panel", 37, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "W:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 581 },
|
{ PROC_LINKS(if_read_only_goto_position_same_panel, 0), false, "if_read_only_goto_position_same_panel", 37, "If the buffer in the active view is writable, inserts a character, otherwise performs goto_jump_at_cursor_same_panel.", 117, "w:\\4ed\\code\\custom\\4coder_jump_sticky.cpp", 41, 581 },
|
||||||
{ PROC_LINKS(increase_face_size, 0), false, "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 727 },
|
{ PROC_LINKS(increase_face_size, 0), false, "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 725 },
|
||||||
{ PROC_LINKS(interactive_kill_buffer, 0), true, "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "W:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 520 },
|
{ PROC_LINKS(interactive_kill_buffer, 0), true, "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 520 },
|
||||||
{ PROC_LINKS(interactive_new, 0), true, "interactive_new", 15, "Interactively creates a new file.", 33, "W:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 661 },
|
{ PROC_LINKS(interactive_new, 0), true, "interactive_new", 15, "Interactively creates a new file.", 33, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 660 },
|
||||||
{ PROC_LINKS(interactive_open, 0), true, "interactive_open", 16, "Interactively opens a file.", 27, "W:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 715 },
|
{ PROC_LINKS(interactive_open, 0), true, "interactive_open", 16, "Interactively opens a file.", 27, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 714 },
|
||||||
{ PROC_LINKS(interactive_open_or_new, 0), true, "interactive_open_or_new", 23, "Interactively open a file out of the file system.", 49, "W:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 612 },
|
{ PROC_LINKS(interactive_open_or_new, 0), true, "interactive_open_or_new", 23, "Interactively open a file out of the file system.", 49, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 611 },
|
||||||
{ PROC_LINKS(interactive_switch_buffer, 0), true, "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "W:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 510 },
|
{ PROC_LINKS(interactive_switch_buffer, 0), true, "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 510 },
|
||||||
{ PROC_LINKS(jump_to_definition, 0), true, "jump_to_definition", 18, "List all definitions in the code index and jump to one chosen by the user.", 74, "W:\\4ed\\code\\custom\\4coder_code_index_listers.cpp", 48, 12 },
|
{ PROC_LINKS(jump_to_definition, 0), true, "jump_to_definition", 18, "List all definitions in the code index and jump to one chosen by the user.", 74, "w:\\4ed\\code\\custom\\4coder_code_index_listers.cpp", 48, 12 },
|
||||||
{ PROC_LINKS(keyboard_macro_finish_recording, 0), false, "keyboard_macro_finish_recording", 31, "Stop macro recording, do nothing if macro recording is not already started", 74, "W:\\4ed\\code\\custom\\4coder_keyboard_macro.cpp", 44, 54 },
|
{ PROC_LINKS(keyboard_macro_finish_recording, 0), false, "keyboard_macro_finish_recording", 31, "Stop macro recording, do nothing if macro recording is not already started", 74, "w:\\4ed\\code\\custom\\4coder_keyboard_macro.cpp", 44, 54 },
|
||||||
{ PROC_LINKS(keyboard_macro_replay, 0), false, "keyboard_macro_replay", 21, "Replay the most recently recorded keyboard macro", 48, "W:\\4ed\\code\\custom\\4coder_keyboard_macro.cpp", 44, 77 },
|
{ PROC_LINKS(keyboard_macro_replay, 0), false, "keyboard_macro_replay", 21, "Replay the most recently recorded keyboard macro", 48, "w:\\4ed\\code\\custom\\4coder_keyboard_macro.cpp", 44, 77 },
|
||||||
{ PROC_LINKS(keyboard_macro_start_recording, 0), false, "keyboard_macro_start_recording", 30, "Start macro recording, do nothing if macro recording is already started", 71, "W:\\4ed\\code\\custom\\4coder_keyboard_macro.cpp", 44, 41 },
|
{ PROC_LINKS(keyboard_macro_start_recording, 0), false, "keyboard_macro_start_recording", 30, "Start macro recording, do nothing if macro recording is already started", 71, "w:\\4ed\\code\\custom\\4coder_keyboard_macro.cpp", 44, 41 },
|
||||||
{ PROC_LINKS(kill_buffer, 0), false, "kill_buffer", 11, "Kills the current buffer.", 25, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1641 },
|
{ PROC_LINKS(kill_buffer, 0), false, "kill_buffer", 11, "Kills the current buffer.", 25, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1639 },
|
||||||
{ PROC_LINKS(kill_tutorial, 0), false, "kill_tutorial", 13, "If there is an active tutorial, kill it.", 40, "W:\\4ed\\code\\custom\\4coder_tutorial.cpp", 38, 9 },
|
{ PROC_LINKS(kill_tutorial, 0), false, "kill_tutorial", 13, "If there is an active tutorial, kill it.", 40, "w:\\4ed\\code\\custom\\4coder_tutorial.cpp", 38, 9 },
|
||||||
{ PROC_LINKS(left_adjust_view, 0), false, "left_adjust_view", 16, "Sets the left size of the view near the x position of the cursor.", 65, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 211 },
|
{ PROC_LINKS(left_adjust_view, 0), false, "left_adjust_view", 16, "Sets the left size of the view near the x position of the cursor.", 65, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 209 },
|
||||||
{ PROC_LINKS(list_all_functions_all_buffers, 0), false, "list_all_functions_all_buffers", 30, "Creates a jump list of lines from all buffers that appear to define or declare functions.", 89, "W:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 295 },
|
{ PROC_LINKS(list_all_functions_all_buffers, 0), false, "list_all_functions_all_buffers", 30, "Creates a jump list of lines from all buffers that appear to define or declare functions.", 89, "w:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 295 },
|
||||||
{ PROC_LINKS(list_all_functions_all_buffers_lister, 0), true, "list_all_functions_all_buffers_lister", 37, "Creates a lister of locations that look like function definitions and declarations all buffers.", 95, "W:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 301 },
|
{ PROC_LINKS(list_all_functions_all_buffers_lister, 0), true, "list_all_functions_all_buffers_lister", 37, "Creates a lister of locations that look like function definitions and declarations all buffers.", 95, "w:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 301 },
|
||||||
{ PROC_LINKS(list_all_functions_current_buffer, 0), false, "list_all_functions_current_buffer", 33, "Creates a jump list of lines of the current buffer that appear to define or declare functions.", 94, "W:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 267 },
|
{ PROC_LINKS(list_all_functions_current_buffer, 0), false, "list_all_functions_current_buffer", 33, "Creates a jump list of lines of the current buffer that appear to define or declare functions.", 94, "w:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 267 },
|
||||||
{ PROC_LINKS(list_all_functions_current_buffer_lister, 0), true, "list_all_functions_current_buffer_lister", 40, "Creates a lister of locations that look like function definitions and declarations in the buffer.", 97, "W:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 277 },
|
{ PROC_LINKS(list_all_functions_current_buffer_lister, 0), true, "list_all_functions_current_buffer_lister", 40, "Creates a lister of locations that look like function definitions and declarations in the buffer.", 97, "w:\\4ed\\code\\custom\\4coder_function_list.cpp", 43, 277 },
|
||||||
{ PROC_LINKS(list_all_locations, 0), false, "list_all_locations", 18, "Queries the user for a string and lists all exact case-sensitive matches found in all open buffers.", 99, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 165 },
|
{ PROC_LINKS(list_all_locations, 0), false, "list_all_locations", 18, "Queries the user for a string and lists all exact case-sensitive matches found in all open buffers.", 99, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 165 },
|
||||||
{ PROC_LINKS(list_all_locations_case_insensitive, 0), false, "list_all_locations_case_insensitive", 35, "Queries the user for a string and lists all exact case-insensitive matches found in all open buffers.", 101, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 177 },
|
{ PROC_LINKS(list_all_locations_case_insensitive, 0), false, "list_all_locations_case_insensitive", 35, "Queries the user for a string and lists all exact case-insensitive matches found in all open buffers.", 101, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 177 },
|
||||||
{ PROC_LINKS(list_all_locations_of_identifier, 0), false, "list_all_locations_of_identifier", 32, "Reads a token or word under the cursor and lists all exact case-sensitive mathces in all open buffers.", 102, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 189 },
|
{ PROC_LINKS(list_all_locations_of_identifier, 0), false, "list_all_locations_of_identifier", 32, "Reads a token or word under the cursor and lists all exact case-sensitive mathces in all open buffers.", 102, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 189 },
|
||||||
{ PROC_LINKS(list_all_locations_of_identifier_case_insensitive, 0), false, "list_all_locations_of_identifier_case_insensitive", 49, "Reads a token or word under the cursor and lists all exact case-insensitive mathces in all open buffers.", 104, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 195 },
|
{ PROC_LINKS(list_all_locations_of_identifier_case_insensitive, 0), false, "list_all_locations_of_identifier_case_insensitive", 49, "Reads a token or word under the cursor and lists all exact case-insensitive mathces in all open buffers.", 104, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 195 },
|
||||||
{ PROC_LINKS(list_all_locations_of_selection, 0), false, "list_all_locations_of_selection", 31, "Reads the string in the selected range and lists all exact case-sensitive mathces in all open buffers.", 102, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 201 },
|
{ PROC_LINKS(list_all_locations_of_selection, 0), false, "list_all_locations_of_selection", 31, "Reads the string in the selected range and lists all exact case-sensitive mathces in all open buffers.", 102, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 201 },
|
||||||
{ PROC_LINKS(list_all_locations_of_selection_case_insensitive, 0), false, "list_all_locations_of_selection_case_insensitive", 48, "Reads the string in the selected range and lists all exact case-insensitive mathces in all open buffers.", 104, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 207 },
|
{ PROC_LINKS(list_all_locations_of_selection_case_insensitive, 0), false, "list_all_locations_of_selection_case_insensitive", 48, "Reads the string in the selected range and lists all exact case-insensitive mathces in all open buffers.", 104, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 207 },
|
||||||
{ PROC_LINKS(list_all_locations_of_type_definition, 0), false, "list_all_locations_of_type_definition", 37, "Queries user for string, lists all locations of strings that appear to define a type whose name matches the input string.", 121, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 213 },
|
{ PROC_LINKS(list_all_locations_of_type_definition, 0), false, "list_all_locations_of_type_definition", 37, "Queries user for string, lists all locations of strings that appear to define a type whose name matches the input string.", 121, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 213 },
|
||||||
{ PROC_LINKS(list_all_locations_of_type_definition_of_identifier, 0), false, "list_all_locations_of_type_definition_of_identifier", 51, "Reads a token or word under the cursor and lists all locations of strings that appear to define a type whose name matches it.", 125, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 221 },
|
{ PROC_LINKS(list_all_locations_of_type_definition_of_identifier, 0), false, "list_all_locations_of_type_definition_of_identifier", 51, "Reads a token or word under the cursor and lists all locations of strings that appear to define a type whose name matches it.", 125, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 221 },
|
||||||
{ PROC_LINKS(list_all_substring_locations, 0), false, "list_all_substring_locations", 28, "Queries the user for a string and lists all case-sensitive substring matches found in all open buffers.", 103, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 171 },
|
{ PROC_LINKS(list_all_substring_locations, 0), false, "list_all_substring_locations", 28, "Queries the user for a string and lists all case-sensitive substring matches found in all open buffers.", 103, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 171 },
|
||||||
{ PROC_LINKS(list_all_substring_locations_case_insensitive, 0), false, "list_all_substring_locations_case_insensitive", 45, "Queries the user for a string and lists all case-insensitive substring matches found in all open buffers.", 105, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 183 },
|
{ PROC_LINKS(list_all_substring_locations_case_insensitive, 0), false, "list_all_substring_locations_case_insensitive", 45, "Queries the user for a string and lists all case-insensitive substring matches found in all open buffers.", 105, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 183 },
|
||||||
{ PROC_LINKS(load_project, 0), false, "load_project", 12, "Looks for a project.4coder file in the current directory and tries to load it. Looks in parent directories until a project file is found or there are no more parents.", 167, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 863 },
|
{ PROC_LINKS(load_project, 0), false, "load_project", 12, "Looks for a project.4coder file in the current directory and tries to load it. Looks in parent directories until a project file is found or there are no more parents.", 167, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 862 },
|
||||||
{ PROC_LINKS(load_theme_current_buffer, 0), false, "load_theme_current_buffer", 25, "Parse the current buffer as a theme file and add the theme to the theme list. If the buffer has a .4coder postfix in it's name, it is removed when the name is saved.", 165, "W:\\4ed\\code\\custom\\4coder_config.cpp", 36, 1627 },
|
{ PROC_LINKS(load_theme_current_buffer, 0), false, "load_theme_current_buffer", 25, "Parse the current buffer as a theme file and add the theme to the theme list. If the buffer has a .4coder postfix in it's name, it is removed when the name is saved.", 165, "w:\\4ed\\code\\custom\\4coder_config.cpp", 36, 1627 },
|
||||||
{ PROC_LINKS(load_themes_default_folder, 0), false, "load_themes_default_folder", 26, "Loads all the theme files in the default theme folder.", 54, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 457 },
|
{ PROC_LINKS(load_themes_default_folder, 0), false, "load_themes_default_folder", 26, "Loads all the theme files in the default theme folder.", 54, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 457 },
|
||||||
{ PROC_LINKS(load_themes_hot_directory, 0), false, "load_themes_hot_directory", 25, "Loads all the theme files in the current hot directory.", 55, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 469 },
|
{ PROC_LINKS(load_themes_hot_directory, 0), false, "load_themes_hot_directory", 25, "Loads all the theme files in the current hot directory.", 55, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 469 },
|
||||||
{ PROC_LINKS(make_directory_query, 0), false, "make_directory_query", 20, "Queries the user for a name and creates a new directory with the given name.", 76, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1435 },
|
{ PROC_LINKS(make_directory_query, 0), false, "make_directory_query", 20, "Queries the user for a name and creates a new directory with the given name.", 76, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1433 },
|
||||||
{ PROC_LINKS(miblo_decrement_basic, 0), false, "miblo_decrement_basic", 21, "Decrement an integer under the cursor by one.", 45, "W:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 44 },
|
{ PROC_LINKS(miblo_decrement_basic, 0), false, "miblo_decrement_basic", 21, "Decrement an integer under the cursor by one.", 45, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 44 },
|
||||||
{ PROC_LINKS(miblo_decrement_time_stamp, 0), false, "miblo_decrement_time_stamp", 26, "Decrement a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "W:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 237 },
|
{ PROC_LINKS(miblo_decrement_time_stamp, 0), false, "miblo_decrement_time_stamp", 26, "Decrement a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 237 },
|
||||||
{ PROC_LINKS(miblo_decrement_time_stamp_minute, 0), false, "miblo_decrement_time_stamp_minute", 33, "Decrement a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "W:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 249 },
|
{ PROC_LINKS(miblo_decrement_time_stamp_minute, 0), false, "miblo_decrement_time_stamp_minute", 33, "Decrement a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 249 },
|
||||||
{ PROC_LINKS(miblo_increment_basic, 0), false, "miblo_increment_basic", 21, "Increment an integer under the cursor by one.", 45, "W:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 29 },
|
{ PROC_LINKS(miblo_increment_basic, 0), false, "miblo_increment_basic", 21, "Increment an integer under the cursor by one.", 45, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 29 },
|
||||||
{ PROC_LINKS(miblo_increment_time_stamp, 0), false, "miblo_increment_time_stamp", 26, "Increment a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "W:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 231 },
|
{ PROC_LINKS(miblo_increment_time_stamp, 0), false, "miblo_increment_time_stamp", 26, "Increment a time stamp under the cursor by one second. (format [m]m:ss or h:mm:ss", 81, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 231 },
|
||||||
{ PROC_LINKS(miblo_increment_time_stamp_minute, 0), false, "miblo_increment_time_stamp_minute", 33, "Increment a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "W:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 243 },
|
{ PROC_LINKS(miblo_increment_time_stamp_minute, 0), false, "miblo_increment_time_stamp_minute", 33, "Increment a time stamp under the cursor by one minute. (format [m]m:ss or h:mm:ss", 81, "w:\\4ed\\code\\custom\\4coder_miblo_numbers.cpp", 43, 243 },
|
||||||
{ PROC_LINKS(mouse_wheel_change_face_size, 0), false, "mouse_wheel_change_face_size", 28, "Reads the state of the mouse wheel and uses it to either increase or decrease the face size.", 92, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 780 },
|
{ PROC_LINKS(mouse_wheel_change_face_size, 0), false, "mouse_wheel_change_face_size", 28, "Reads the state of the mouse wheel and uses it to either increase or decrease the face size.", 92, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 778 },
|
||||||
{ PROC_LINKS(mouse_wheel_scroll, 0), false, "mouse_wheel_scroll", 18, "Reads the scroll wheel value from the mouse state and scrolls accordingly.", 74, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 265 },
|
{ PROC_LINKS(mouse_wheel_scroll, 0), false, "mouse_wheel_scroll", 18, "Reads the scroll wheel value from the mouse state and scrolls accordingly.", 74, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 263 },
|
||||||
{ PROC_LINKS(move_down, 0), false, "move_down", 9, "Moves the cursor down one line.", 31, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 336 },
|
{ PROC_LINKS(move_down, 0), false, "move_down", 9, "Moves the cursor down one line.", 31, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 334 },
|
||||||
{ PROC_LINKS(move_down_10, 0), false, "move_down_10", 12, "Moves the cursor down ten lines.", 32, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 348 },
|
{ PROC_LINKS(move_down_10, 0), false, "move_down_10", 12, "Moves the cursor down ten lines.", 32, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 346 },
|
||||||
{ PROC_LINKS(move_down_textual, 0), false, "move_down_textual", 17, "Moves down to the next line of actual text, regardless of line wrapping.", 72, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 354 },
|
{ PROC_LINKS(move_down_textual, 0), false, "move_down_textual", 17, "Moves down to the next line of actual text, regardless of line wrapping.", 72, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 352 },
|
||||||
{ PROC_LINKS(move_down_to_blank_line, 0), false, "move_down_to_blank_line", 23, "Seeks the cursor down to the next blank line.", 45, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 407 },
|
{ PROC_LINKS(move_down_to_blank_line, 0), false, "move_down_to_blank_line", 23, "Seeks the cursor down to the next blank line.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 405 },
|
||||||
{ PROC_LINKS(move_down_to_blank_line_end, 0), false, "move_down_to_blank_line_end", 27, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 431 },
|
{ PROC_LINKS(move_down_to_blank_line_end, 0), false, "move_down_to_blank_line_end", 27, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 429 },
|
||||||
{ PROC_LINKS(move_down_to_blank_line_skip_whitespace, 0), false, "move_down_to_blank_line_skip_whitespace", 39, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 419 },
|
{ PROC_LINKS(move_down_to_blank_line_skip_whitespace, 0), false, "move_down_to_blank_line_skip_whitespace", 39, "Seeks the cursor down to the next blank line and places it at the end of the line.", 82, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 417 },
|
||||||
{ PROC_LINKS(move_left, 0), false, "move_left", 9, "Moves the cursor one character to the left.", 43, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 437 },
|
{ PROC_LINKS(move_left, 0), false, "move_left", 9, "Moves the cursor one character to the left.", 43, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 435 },
|
||||||
{ PROC_LINKS(move_left_alpha_numeric_boundary, 0), false, "move_left_alpha_numeric_boundary", 32, "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 514 },
|
{ PROC_LINKS(move_left_alpha_numeric_boundary, 0), false, "move_left_alpha_numeric_boundary", 32, "Seek left for boundary between alphanumeric characters and non-alphanumeric characters.", 87, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 512 },
|
||||||
{ PROC_LINKS(move_left_alpha_numeric_or_camel_boundary, 0), false, "move_left_alpha_numeric_or_camel_boundary", 41, "Seek left for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 106, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 528 },
|
{ PROC_LINKS(move_left_alpha_numeric_or_camel_boundary, 0), false, "move_left_alpha_numeric_or_camel_boundary", 41, "Seek left for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 106, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 526 },
|
||||||
{ PROC_LINKS(move_left_token_boundary, 0), false, "move_left_token_boundary", 24, "Seek left for the next beginning of a token.", 44, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 486 },
|
{ PROC_LINKS(move_left_token_boundary, 0), false, "move_left_token_boundary", 24, "Seek left for the next beginning of a token.", 44, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 484 },
|
||||||
{ PROC_LINKS(move_left_whitespace_boundary, 0), false, "move_left_whitespace_boundary", 29, "Seek left for the next boundary between whitespace and non-whitespace.", 70, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 471 },
|
{ PROC_LINKS(move_left_whitespace_boundary, 0), false, "move_left_whitespace_boundary", 29, "Seek left for the next boundary between whitespace and non-whitespace.", 70, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 469 },
|
||||||
{ PROC_LINKS(move_left_whitespace_or_token_boundary, 0), false, "move_left_whitespace_or_token_boundary", 38, "Seek left for the next end of a token or boundary between whitespace and non-whitespace.", 88, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 500 },
|
{ PROC_LINKS(move_left_whitespace_or_token_boundary, 0), false, "move_left_whitespace_or_token_boundary", 38, "Seek left for the next end of a token or boundary between whitespace and non-whitespace.", 88, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 498 },
|
||||||
{ PROC_LINKS(move_line_down, 0), false, "move_line_down", 14, "Swaps the line under the cursor with the line below it, and moves the cursor down with it.", 90, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1475 },
|
{ PROC_LINKS(move_line_down, 0), false, "move_line_down", 14, "Swaps the line under the cursor with the line below it, and moves the cursor down with it.", 90, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1473 },
|
||||||
{ PROC_LINKS(move_line_up, 0), false, "move_line_up", 12, "Swaps the line under the cursor with the line above it, and moves the cursor up with it.", 88, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1469 },
|
{ PROC_LINKS(move_line_up, 0), false, "move_line_up", 12, "Swaps the line under the cursor with the line above it, and moves the cursor up with it.", 88, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1467 },
|
||||||
{ PROC_LINKS(move_right, 0), false, "move_right", 10, "Moves the cursor one character to the right.", 44, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 445 },
|
{ PROC_LINKS(move_right, 0), false, "move_right", 10, "Moves the cursor one character to the right.", 44, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 443 },
|
||||||
{ PROC_LINKS(move_right_alpha_numeric_boundary, 0), false, "move_right_alpha_numeric_boundary", 33, "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 507 },
|
{ PROC_LINKS(move_right_alpha_numeric_boundary, 0), false, "move_right_alpha_numeric_boundary", 33, "Seek right for boundary between alphanumeric characters and non-alphanumeric characters.", 88, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 505 },
|
||||||
{ PROC_LINKS(move_right_alpha_numeric_or_camel_boundary, 0), false, "move_right_alpha_numeric_or_camel_boundary", 42, "Seek right for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 107, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 521 },
|
{ PROC_LINKS(move_right_alpha_numeric_or_camel_boundary, 0), false, "move_right_alpha_numeric_or_camel_boundary", 42, "Seek right for boundary between alphanumeric characters or camel case word and non-alphanumeric characters.", 107, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 519 },
|
||||||
{ PROC_LINKS(move_right_token_boundary, 0), false, "move_right_token_boundary", 25, "Seek right for the next end of a token.", 39, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 479 },
|
{ PROC_LINKS(move_right_token_boundary, 0), false, "move_right_token_boundary", 25, "Seek right for the next end of a token.", 39, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 477 },
|
||||||
{ PROC_LINKS(move_right_whitespace_boundary, 0), false, "move_right_whitespace_boundary", 30, "Seek right for the next boundary between whitespace and non-whitespace.", 71, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 463 },
|
{ PROC_LINKS(move_right_whitespace_boundary, 0), false, "move_right_whitespace_boundary", 30, "Seek right for the next boundary between whitespace and non-whitespace.", 71, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 461 },
|
||||||
{ PROC_LINKS(move_right_whitespace_or_token_boundary, 0), false, "move_right_whitespace_or_token_boundary", 39, "Seek right for the next end of a token or boundary between whitespace and non-whitespace.", 89, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 493 },
|
{ PROC_LINKS(move_right_whitespace_or_token_boundary, 0), false, "move_right_whitespace_or_token_boundary", 39, "Seek right for the next end of a token or boundary between whitespace and non-whitespace.", 89, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 491 },
|
||||||
{ PROC_LINKS(move_up, 0), false, "move_up", 7, "Moves the cursor up one line.", 29, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 330 },
|
{ PROC_LINKS(move_up, 0), false, "move_up", 7, "Moves the cursor up one line.", 29, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 328 },
|
||||||
{ PROC_LINKS(move_up_10, 0), false, "move_up_10", 10, "Moves the cursor up ten lines.", 30, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 342 },
|
{ PROC_LINKS(move_up_10, 0), false, "move_up_10", 10, "Moves the cursor up ten lines.", 30, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 340 },
|
||||||
{ PROC_LINKS(move_up_to_blank_line, 0), false, "move_up_to_blank_line", 21, "Seeks the cursor up to the next blank line.", 43, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 401 },
|
{ PROC_LINKS(move_up_to_blank_line, 0), false, "move_up_to_blank_line", 21, "Seeks the cursor up to the next blank line.", 43, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 399 },
|
||||||
{ PROC_LINKS(move_up_to_blank_line_end, 0), false, "move_up_to_blank_line_end", 25, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 425 },
|
{ PROC_LINKS(move_up_to_blank_line_end, 0), false, "move_up_to_blank_line_end", 25, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 423 },
|
||||||
{ PROC_LINKS(move_up_to_blank_line_skip_whitespace, 0), false, "move_up_to_blank_line_skip_whitespace", 37, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 413 },
|
{ PROC_LINKS(move_up_to_blank_line_skip_whitespace, 0), false, "move_up_to_blank_line_skip_whitespace", 37, "Seeks the cursor up to the next blank line and places it at the end of the line.", 80, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 411 },
|
||||||
{ PROC_LINKS(multi_paste_interactive, 0), false, "multi_paste_interactive", 23, "Paste multiple lines from the clipboard history, controlled with arrow keys", 75, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 364 },
|
{ PROC_LINKS(multi_paste, 0), false, "multi_paste", 11, "Paste multiple entries from the clipboard at once", 49, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 224 },
|
||||||
{ PROC_LINKS(multi_paste_interactive_quick, 0), false, "multi_paste_interactive_quick", 29, "Paste multiple lines from the clipboard history, controlled by inputing the number of lines to paste", 100, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 373 },
|
{ PROC_LINKS(multi_paste_interactive, 0), false, "multi_paste_interactive", 23, "Paste multiple lines from the clipboard history, controlled with arrow keys", 75, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 366 },
|
||||||
{ PROC_LINKS(open_all_code, 0), false, "open_all_code", 13, "Open all code in the current directory. File types are determined by extensions. An extension is considered code based on the extensions specified in 4coder.config.", 164, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 849 },
|
{ PROC_LINKS(multi_paste_interactive_quick, 0), false, "multi_paste_interactive_quick", 29, "Paste multiple lines from the clipboard history, controlled by inputing the number of lines to paste", 100, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 375 },
|
||||||
{ PROC_LINKS(open_all_code_recursive, 0), false, "open_all_code_recursive", 23, "Works as open_all_code but also runs in all subdirectories.", 59, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 855 },
|
{ PROC_LINKS(open_all_code, 0), false, "open_all_code", 13, "Open all code in the current directory. File types are determined by extensions. An extension is considered code based on the extensions specified in 4coder.config.", 164, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 848 },
|
||||||
{ PROC_LINKS(open_file_in_quotes, 0), false, "open_file_in_quotes", 19, "Reads a filename from surrounding '\"' characters and attempts to open the corresponding file.", 94, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1560 },
|
{ PROC_LINKS(open_all_code_recursive, 0), false, "open_all_code_recursive", 23, "Works as open_all_code but also runs in all subdirectories.", 59, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 854 },
|
||||||
{ PROC_LINKS(open_in_other, 0), false, "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1891 },
|
{ PROC_LINKS(open_file_in_quotes, 0), false, "open_file_in_quotes", 19, "Reads a filename from surrounding '\"' characters and attempts to open the corresponding file.", 94, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1558 },
|
||||||
{ PROC_LINKS(open_long_braces, 0), false, "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 46 },
|
{ PROC_LINKS(open_in_other, 0), false, "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1889 },
|
||||||
{ PROC_LINKS(open_long_braces_break, 0), false, "open_long_braces_break", 22, "At the cursor, insert a '{' and '}break;' separated by a blank line.", 68, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 62 },
|
{ PROC_LINKS(open_long_braces, 0), false, "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 46 },
|
||||||
{ PROC_LINKS(open_long_braces_semicolon, 0), false, "open_long_braces_semicolon", 26, "At the cursor, insert a '{' and '};' separated by a blank line.", 63, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 54 },
|
{ PROC_LINKS(open_long_braces_break, 0), false, "open_long_braces_break", 22, "At the cursor, insert a '{' and '}break;' separated by a blank line.", 68, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 62 },
|
||||||
{ PROC_LINKS(open_matching_file_cpp, 0), false, "open_matching_file_cpp", 22, "If the current file is a *.cpp or *.h, attempts to open the corresponding *.h or *.cpp file in the other view.", 110, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1592 },
|
{ PROC_LINKS(open_long_braces_semicolon, 0), false, "open_long_braces_semicolon", 26, "At the cursor, insert a '{' and '};' separated by a blank line.", 63, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 54 },
|
||||||
{ PROC_LINKS(open_panel_hsplit, 0), false, "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 310 },
|
{ PROC_LINKS(open_matching_file_cpp, 0), false, "open_matching_file_cpp", 22, "If the current file is a *.cpp or *.h, attempts to open the corresponding *.h or *.cpp file in the other view.", 110, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1590 },
|
||||||
{ PROC_LINKS(open_panel_vsplit, 0), false, "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 300 },
|
{ PROC_LINKS(open_panel_hsplit, 0), false, "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 310 },
|
||||||
{ PROC_LINKS(page_down, 0), false, "page_down", 9, "Scrolls the view down one view height and moves the cursor down one view height.", 80, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 372 },
|
{ PROC_LINKS(open_panel_vsplit, 0), false, "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 300 },
|
||||||
{ PROC_LINKS(page_up, 0), false, "page_up", 7, "Scrolls the view up one view height and moves the cursor up one view height.", 76, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 364 },
|
{ PROC_LINKS(page_down, 0), false, "page_down", 9, "Scrolls the view down one view height and moves the cursor down one view height.", 80, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 370 },
|
||||||
{ PROC_LINKS(paste, 0), false, "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 127 },
|
{ PROC_LINKS(page_up, 0), false, "page_up", 7, "Scrolls the view up one view height and moves the cursor up one view height.", 76, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 362 },
|
||||||
{ PROC_LINKS(paste_and_indent, 0), false, "paste_and_indent", 16, "Paste from the top of clipboard and run auto-indent on the newly pasted text.", 77, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 202 },
|
{ PROC_LINKS(paste, 0), false, "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 127 },
|
||||||
{ PROC_LINKS(paste_next, 0), false, "paste_next", 10, "If the previous command was paste or paste_next, replaces the paste range with the next text down on the clipboard, otherwise operates as the paste command.", 156, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 161 },
|
{ PROC_LINKS(paste_and_indent, 0), false, "paste_and_indent", 16, "Paste from the top of clipboard and run auto-indent on the newly pasted text.", 77, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 202 },
|
||||||
{ PROC_LINKS(paste_next_and_indent, 0), false, "paste_next_and_indent", 21, "Paste the next item on the clipboard and run auto-indent on the newly pasted text.", 82, "W:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 209 },
|
{ PROC_LINKS(paste_next, 0), false, "paste_next", 10, "If the previous command was paste or paste_next, replaces the paste range with the next text down on the clipboard, otherwise operates as the paste command.", 156, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 161 },
|
||||||
{ PROC_LINKS(place_in_scope, 0), false, "place_in_scope", 14, "Wraps the code contained in the range between cursor and mark with a new curly brace scope.", 91, "W:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 106 },
|
{ PROC_LINKS(paste_next_and_indent, 0), false, "paste_next_and_indent", 21, "Paste the next item on the clipboard and run auto-indent on the newly pasted text.", 82, "w:\\4ed\\code\\custom\\4coder_clipboard.cpp", 39, 209 },
|
||||||
{ PROC_LINKS(play_with_a_counter, 0), false, "play_with_a_counter", 19, "Example of query bar", 20, "W:\\4ed\\code\\custom\\4coder_examples.cpp", 38, 29 },
|
{ PROC_LINKS(place_in_scope, 0), false, "place_in_scope", 14, "Wraps the code contained in the range between cursor and mark with a new curly brace scope.", 91, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 106 },
|
||||||
{ PROC_LINKS(profile_clear, 0), false, "profile_clear", 13, "Clear all profiling information from 4coder's self profiler.", 60, "W:\\4ed\\code\\custom\\4coder_profile.cpp", 37, 226 },
|
{ PROC_LINKS(play_with_a_counter, 0), false, "play_with_a_counter", 19, "Example of query bar", 20, "w:\\4ed\\code\\custom\\4coder_examples.cpp", 38, 29 },
|
||||||
{ PROC_LINKS(profile_disable, 0), false, "profile_disable", 15, "Prevent 4coder's self profiler from gathering new profiling information.", 72, "W:\\4ed\\code\\custom\\4coder_profile.cpp", 37, 219 },
|
{ PROC_LINKS(profile_clear, 0), false, "profile_clear", 13, "Clear all profiling information from 4coder's self profiler.", 60, "w:\\4ed\\code\\custom\\4coder_profile.cpp", 37, 226 },
|
||||||
{ PROC_LINKS(profile_enable, 0), false, "profile_enable", 14, "Allow 4coder's self profiler to gather new profiling information.", 65, "W:\\4ed\\code\\custom\\4coder_profile.cpp", 37, 212 },
|
{ PROC_LINKS(profile_disable, 0), false, "profile_disable", 15, "Prevent 4coder's self profiler from gathering new profiling information.", 72, "w:\\4ed\\code\\custom\\4coder_profile.cpp", 37, 219 },
|
||||||
{ PROC_LINKS(profile_inspect, 0), true, "profile_inspect", 15, "Inspect all currently collected profiling information in 4coder's self profiler.", 80, "W:\\4ed\\code\\custom\\4coder_profile_inspect.cpp", 45, 886 },
|
{ PROC_LINKS(profile_enable, 0), false, "profile_enable", 14, "Allow 4coder's self profiler to gather new profiling information.", 65, "w:\\4ed\\code\\custom\\4coder_profile.cpp", 37, 212 },
|
||||||
{ PROC_LINKS(project_command_lister, 0), false, "project_command_lister", 22, "Open a lister of all commands in the currently loaded project.", 62, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1290 },
|
{ PROC_LINKS(profile_inspect, 0), true, "profile_inspect", 15, "Inspect all currently collected profiling information in 4coder's self profiler.", 80, "w:\\4ed\\code\\custom\\4coder_profile_inspect.cpp", 45, 886 },
|
||||||
{ PROC_LINKS(project_fkey_command, 0), false, "project_fkey_command", 20, "Run an 'fkey command' configured in a project.4coder file. Determines the index of the 'fkey command' by which function key or numeric key was pressed to trigger the command.", 175, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 871 },
|
{ PROC_LINKS(project_command_lister, 0), false, "project_command_lister", 22, "Open a lister of all commands in the currently loaded project.", 62, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1288 },
|
||||||
{ PROC_LINKS(project_go_to_root_directory, 0), false, "project_go_to_root_directory", 28, "Changes 4coder's hot directory to the root directory of the currently loaded project. With no loaded project nothing hapepns.", 125, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 897 },
|
{ PROC_LINKS(project_fkey_command, 0), false, "project_fkey_command", 20, "Run an 'fkey command' configured in a project.4coder file. Determines the index of the 'fkey command' by which function key or numeric key was pressed to trigger the command.", 175, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 870 },
|
||||||
{ PROC_LINKS(query_replace, 0), false, "query_replace", 13, "Queries the user for two strings, and incrementally replaces every occurence of the first string with the second string.", 120, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1251 },
|
{ PROC_LINKS(project_go_to_root_directory, 0), false, "project_go_to_root_directory", 28, "Changes 4coder's hot directory to the root directory of the currently loaded project. With no loaded project nothing hapepns.", 125, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 896 },
|
||||||
{ PROC_LINKS(query_replace_identifier, 0), false, "query_replace_identifier", 24, "Queries the user for a string, and incrementally replace every occurence of the word or token found at the cursor with the specified string.", 140, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1272 },
|
{ PROC_LINKS(query_replace, 0), false, "query_replace", 13, "Queries the user for two strings, and incrementally replaces every occurence of the first string with the second string.", 120, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1249 },
|
||||||
{ PROC_LINKS(query_replace_selection, 0), false, "query_replace_selection", 23, "Queries the user for a string, and incrementally replace every occurence of the string found in the selected range with the specified string.", 141, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1288 },
|
{ PROC_LINKS(query_replace_identifier, 0), false, "query_replace_identifier", 24, "Queries the user for a string, and incrementally replace every occurence of the word or token found at the cursor with the specified string.", 140, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1270 },
|
||||||
{ PROC_LINKS(redo, 0), false, "redo", 4, "Advances forwards through the undo history of the current buffer.", 65, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1730 },
|
{ PROC_LINKS(query_replace_selection, 0), false, "query_replace_selection", 23, "Queries the user for a string, and incrementally replace every occurence of the string found in the selected range with the specified string.", 141, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1286 },
|
||||||
{ PROC_LINKS(redo_all_buffers, 0), false, "redo_all_buffers", 16, "Advances forward through the undo history in the buffer containing the most recent regular edit.", 96, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1815 },
|
{ PROC_LINKS(redo, 0), false, "redo", 4, "Advances forwards through the undo history of the current buffer.", 65, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1728 },
|
||||||
{ PROC_LINKS(rename_file_query, 0), false, "rename_file_query", 17, "Queries the user for a new name and renames the file of the current buffer, altering the buffer's name too.", 107, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1400 },
|
{ PROC_LINKS(redo_all_buffers, 0), false, "redo_all_buffers", 16, "Advances forward through the undo history in the buffer containing the most recent regular edit.", 96, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1813 },
|
||||||
{ PROC_LINKS(reopen, 0), false, "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1659 },
|
{ PROC_LINKS(rename_file_query, 0), false, "rename_file_query", 17, "Queries the user for a new name and renames the file of the current buffer, altering the buffer's name too.", 107, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1398 },
|
||||||
{ PROC_LINKS(replace_in_all_buffers, 0), false, "replace_in_all_buffers", 22, "Queries the user for a needle and string. Replaces all occurences of needle with string in all editable buffers.", 112, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1161 },
|
{ PROC_LINKS(reopen, 0), false, "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1657 },
|
||||||
{ PROC_LINKS(replace_in_buffer, 0), false, "replace_in_buffer", 17, "Queries the user for a needle and string. Replaces all occurences of needle with string in the active buffer.", 109, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1152 },
|
{ PROC_LINKS(replace_in_all_buffers, 0), false, "replace_in_all_buffers", 22, "Queries the user for a needle and string. Replaces all occurences of needle with string in all editable buffers.", 112, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1159 },
|
||||||
{ PROC_LINKS(replace_in_range, 0), false, "replace_in_range", 16, "Queries the user for a needle and string. Replaces all occurences of needle with string in the range between cursor and the mark in the active buffer.", 150, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1143 },
|
{ PROC_LINKS(replace_in_buffer, 0), false, "replace_in_buffer", 17, "Queries the user for a needle and string. Replaces all occurences of needle with string in the active buffer.", 109, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1150 },
|
||||||
{ PROC_LINKS(reverse_search, 0), false, "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1084 },
|
{ PROC_LINKS(replace_in_range, 0), false, "replace_in_range", 16, "Queries the user for a needle and string. Replaces all occurences of needle with string in the range between cursor and the mark in the active buffer.", 150, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1141 },
|
||||||
{ PROC_LINKS(reverse_search_identifier, 0), false, "reverse_search_identifier", 25, "Begins an incremental search up through the current buffer for the word or token under the cursor.", 98, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1096 },
|
{ PROC_LINKS(reverse_search, 0), false, "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1082 },
|
||||||
{ PROC_LINKS(save, 0), false, "save", 4, "Saves the current buffer.", 25, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1649 },
|
{ PROC_LINKS(reverse_search_identifier, 0), false, "reverse_search_identifier", 25, "Begins an incremental search up through the current buffer for the word or token under the cursor.", 98, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1094 },
|
||||||
{ PROC_LINKS(save_all_dirty_buffers, 0), false, "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 382 },
|
{ PROC_LINKS(save, 0), false, "save", 4, "Saves the current buffer.", 25, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1647 },
|
||||||
{ PROC_LINKS(save_to_query, 0), false, "save_to_query", 13, "Queries the user for a file name and saves the contents of the current buffer, altering the buffer's name too.", 110, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1367 },
|
{ PROC_LINKS(save_all_dirty_buffers, 0), false, "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 382 },
|
||||||
{ PROC_LINKS(search, 0), false, "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1078 },
|
{ PROC_LINKS(save_to_query, 0), false, "save_to_query", 13, "Queries the user for a file name and saves the contents of the current buffer, altering the buffer's name too.", 110, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1365 },
|
||||||
{ PROC_LINKS(search_identifier, 0), false, "search_identifier", 17, "Begins an incremental search down through the current buffer for the word or token under the cursor.", 100, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1090 },
|
{ PROC_LINKS(search, 0), false, "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1076 },
|
||||||
{ PROC_LINKS(seek_beginning_of_line, 0), false, "seek_beginning_of_line", 22, "Seeks the cursor to the beginning of the visual line.", 53, "W:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2212 },
|
{ PROC_LINKS(search_identifier, 0), false, "search_identifier", 17, "Begins an incremental search down through the current buffer for the word or token under the cursor.", 100, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1088 },
|
||||||
{ PROC_LINKS(seek_beginning_of_textual_line, 0), false, "seek_beginning_of_textual_line", 30, "Seeks the cursor to the beginning of the line across all text.", 62, "W:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2200 },
|
{ PROC_LINKS(seek_beginning_of_line, 0), false, "seek_beginning_of_line", 22, "Seeks the cursor to the beginning of the visual line.", 53, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2212 },
|
||||||
{ PROC_LINKS(seek_end_of_line, 0), false, "seek_end_of_line", 16, "Seeks the cursor to the end of the visual line.", 47, "W:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2218 },
|
{ PROC_LINKS(seek_beginning_of_textual_line, 0), false, "seek_beginning_of_textual_line", 30, "Seeks the cursor to the beginning of the line across all text.", 62, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2200 },
|
||||||
{ PROC_LINKS(seek_end_of_textual_line, 0), false, "seek_end_of_textual_line", 24, "Seeks the cursor to the end of the line across all text.", 56, "W:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2206 },
|
{ PROC_LINKS(seek_end_of_line, 0), false, "seek_end_of_line", 16, "Seeks the cursor to the end of the visual line.", 47, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2218 },
|
||||||
{ PROC_LINKS(select_all, 0), false, "select_all", 10, "Puts the cursor at the top of the file, and the mark at the bottom of the file.", 79, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 537 },
|
{ PROC_LINKS(seek_end_of_textual_line, 0), false, "seek_end_of_textual_line", 24, "Seeks the cursor to the end of the line across all text.", 56, "w:\\4ed\\code\\custom\\4coder_helper.cpp", 36, 2206 },
|
||||||
{ PROC_LINKS(select_next_scope_absolute, 0), false, "select_next_scope_absolute", 26, "Finds the first scope started by '{' after the cursor and puts the cursor and mark on the '{' and '}'.", 102, "W:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 57 },
|
{ PROC_LINKS(select_all, 0), false, "select_all", 10, "Puts the cursor at the top of the file, and the mark at the bottom of the file.", 79, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 535 },
|
||||||
{ PROC_LINKS(select_next_scope_after_current, 0), false, "select_next_scope_after_current", 31, "If a scope is selected, find first scope that starts after the selected scope. Otherwise find the first scope that starts after the cursor.", 139, "W:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 66 },
|
{ PROC_LINKS(select_next_scope_absolute, 0), false, "select_next_scope_absolute", 26, "Finds the first scope started by '{' after the cursor and puts the cursor and mark on the '{' and '}'.", 102, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 57 },
|
||||||
{ PROC_LINKS(select_prev_scope_absolute, 0), false, "select_prev_scope_absolute", 26, "Finds the first scope started by '{' before the cursor and puts the cursor and mark on the '{' and '}'.", 103, "W:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 82 },
|
{ PROC_LINKS(select_next_scope_after_current, 0), false, "select_next_scope_after_current", 31, "If a scope is selected, find first scope that starts after the selected scope. Otherwise find the first scope that starts after the cursor.", 139, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 66 },
|
||||||
{ PROC_LINKS(select_prev_top_most_scope, 0), false, "select_prev_top_most_scope", 26, "Finds the first scope that starts before the cursor, then finds the top most scope that contains that scope.", 108, "W:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 99 },
|
{ PROC_LINKS(select_prev_scope_absolute, 0), false, "select_prev_scope_absolute", 26, "Finds the first scope started by '{' before the cursor and puts the cursor and mark on the '{' and '}'.", 103, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 82 },
|
||||||
{ PROC_LINKS(select_surrounding_scope, 0), false, "select_surrounding_scope", 24, "Finds the scope enclosed by '{' '}' surrounding the cursor and puts the cursor and mark on the '{' and '}'.", 107, "W:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 27 },
|
{ PROC_LINKS(select_prev_top_most_scope, 0), false, "select_prev_top_most_scope", 26, "Finds the first scope that starts before the cursor, then finds the top most scope that contains that scope.", 108, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 99 },
|
||||||
{ PROC_LINKS(select_surrounding_scope_maximal, 0), false, "select_surrounding_scope_maximal", 32, "Selects the top-most scope that surrounds the cursor.", 53, "W:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 39 },
|
{ PROC_LINKS(select_surrounding_scope, 0), false, "select_surrounding_scope", 24, "Finds the scope enclosed by '{' '}' surrounding the cursor and puts the cursor and mark on the '{' and '}'.", 107, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 27 },
|
||||||
{ PROC_LINKS(set_eol_mode_from_contents, 0), false, "set_eol_mode_from_contents", 26, "Sets the buffer's line ending mode to match the contents of the buffer.", 71, "W:\\4ed\\code\\custom\\4coder_eol.cpp", 33, 125 },
|
{ PROC_LINKS(select_surrounding_scope_maximal, 0), false, "select_surrounding_scope_maximal", 32, "Selects the top-most scope that surrounds the cursor.", 53, "w:\\4ed\\code\\custom\\4coder_scope_commands.cpp", 44, 39 },
|
||||||
{ PROC_LINKS(set_eol_mode_to_binary, 0), false, "set_eol_mode_to_binary", 22, "Puts the buffer in bin line ending mode.", 40, "W:\\4ed\\code\\custom\\4coder_eol.cpp", 33, 112 },
|
{ PROC_LINKS(set_eol_mode_from_contents, 0), false, "set_eol_mode_from_contents", 26, "Sets the buffer's line ending mode to match the contents of the buffer.", 71, "w:\\4ed\\code\\custom\\4coder_eol.cpp", 33, 125 },
|
||||||
{ PROC_LINKS(set_eol_mode_to_crlf, 0), false, "set_eol_mode_to_crlf", 20, "Puts the buffer in crlf line ending mode.", 41, "W:\\4ed\\code\\custom\\4coder_eol.cpp", 33, 86 },
|
{ PROC_LINKS(set_eol_mode_to_binary, 0), false, "set_eol_mode_to_binary", 22, "Puts the buffer in bin line ending mode.", 40, "w:\\4ed\\code\\custom\\4coder_eol.cpp", 33, 112 },
|
||||||
{ PROC_LINKS(set_eol_mode_to_lf, 0), false, "set_eol_mode_to_lf", 18, "Puts the buffer in lf line ending mode.", 39, "W:\\4ed\\code\\custom\\4coder_eol.cpp", 33, 99 },
|
{ PROC_LINKS(set_eol_mode_to_crlf, 0), false, "set_eol_mode_to_crlf", 20, "Puts the buffer in crlf line ending mode.", 41, "w:\\4ed\\code\\custom\\4coder_eol.cpp", 33, 86 },
|
||||||
{ PROC_LINKS(set_face_size, 0), false, "set_face_size", 13, "Set face size of the face used by the current buffer.", 53, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 707 },
|
{ PROC_LINKS(set_eol_mode_to_lf, 0), false, "set_eol_mode_to_lf", 18, "Puts the buffer in lf line ending mode.", 39, "w:\\4ed\\code\\custom\\4coder_eol.cpp", 33, 99 },
|
||||||
{ PROC_LINKS(set_face_size_this_buffer, 0), false, "set_face_size_this_buffer", 25, "Set face size of the face used by the current buffer; if any other buffers are using the same face a new face is created so that only this buffer is effected", 157, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 749 },
|
{ PROC_LINKS(set_face_size, 0), false, "set_face_size", 13, "Set face size of the face used by the current buffer.", 53, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 705 },
|
||||||
{ PROC_LINKS(set_mark, 0), false, "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 115 },
|
{ PROC_LINKS(set_face_size_this_buffer, 0), false, "set_face_size_this_buffer", 25, "Set face size of the face used by the current buffer; if any other buffers are using the same face a new face is created so that only this buffer is effected", 157, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 747 },
|
||||||
{ PROC_LINKS(set_mode_to_notepad_like, 0), false, "set_mode_to_notepad_like", 24, "Sets the edit mode to Notepad like.", 35, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 427 },
|
{ PROC_LINKS(set_mark, 0), false, "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 115 },
|
||||||
{ PROC_LINKS(set_mode_to_original, 0), false, "set_mode_to_original", 20, "Sets the edit mode to 4coder original.", 38, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 421 },
|
{ PROC_LINKS(set_mode_to_notepad_like, 0), false, "set_mode_to_notepad_like", 24, "Sets the edit mode to Notepad like.", 35, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 427 },
|
||||||
{ PROC_LINKS(setup_build_bat, 0), false, "setup_build_bat", 15, "Queries the user for several configuration options and initializes a new build batch script.", 92, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1238 },
|
{ PROC_LINKS(set_mode_to_original, 0), false, "set_mode_to_original", 20, "Sets the edit mode to 4coder original.", 38, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 421 },
|
||||||
{ PROC_LINKS(setup_build_bat_and_sh, 0), false, "setup_build_bat_and_sh", 22, "Queries the user for several configuration options and initializes a new build batch script.", 92, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1250 },
|
{ PROC_LINKS(setup_build_bat, 0), false, "setup_build_bat", 15, "Queries the user for several configuration options and initializes a new build batch script.", 92, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1237 },
|
||||||
{ PROC_LINKS(setup_build_sh, 0), false, "setup_build_sh", 14, "Queries the user for several configuration options and initializes a new build shell script.", 92, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1244 },
|
{ PROC_LINKS(setup_build_bat_and_sh, 0), false, "setup_build_bat_and_sh", 22, "Queries the user for several configuration options and initializes a new build batch script.", 92, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1249 },
|
||||||
{ PROC_LINKS(setup_new_project, 0), false, "setup_new_project", 17, "Queries the user for several configuration options and initializes a new 4coder project with build scripts for every OS.", 120, "W:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1231 },
|
{ PROC_LINKS(setup_build_sh, 0), false, "setup_build_sh", 14, "Queries the user for several configuration options and initializes a new build shell script.", 92, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1243 },
|
||||||
{ PROC_LINKS(show_filebar, 0), false, "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 678 },
|
{ PROC_LINKS(setup_new_project, 0), false, "setup_new_project", 17, "Queries the user for several configuration options and initializes a new 4coder project with build scripts for every OS.", 120, "w:\\4ed\\code\\custom\\4coder_project_commands.cpp", 46, 1230 },
|
||||||
{ PROC_LINKS(show_scrollbar, 0), false, "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 664 },
|
{ PROC_LINKS(show_filebar, 0), false, "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 676 },
|
||||||
{ PROC_LINKS(show_the_log_graph, 0), true, "show_the_log_graph", 18, "Parses *log* and displays the 'log graph' UI", 44, "W:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 994 },
|
{ PROC_LINKS(show_scrollbar, 0), false, "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 662 },
|
||||||
{ PROC_LINKS(snipe_backward_whitespace_or_token_boundary, 0), false, "snipe_backward_whitespace_or_token_boundary", 43, "Delete a single, whole token on or to the left of the cursor and post it to the clipboard.", 90, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 179 },
|
{ PROC_LINKS(show_the_log_graph, 0), true, "show_the_log_graph", 18, "Parses *log* and displays the 'log graph' UI", 44, "w:\\4ed\\code\\custom\\4coder_log_parser.cpp", 40, 993 },
|
||||||
{ PROC_LINKS(snipe_forward_whitespace_or_token_boundary, 0), false, "snipe_forward_whitespace_or_token_boundary", 42, "Delete a single, whole token on or to the right of the cursor and post it to the clipboard.", 91, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 187 },
|
{ PROC_LINKS(snipe_backward_whitespace_or_token_boundary, 0), false, "snipe_backward_whitespace_or_token_boundary", 43, "Delete a single, whole token on or to the left of the cursor and post it to the clipboard.", 90, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 177 },
|
||||||
{ PROC_LINKS(snippet_lister, 0), true, "snippet_lister", 14, "Opens a snippet lister for inserting whole pre-written snippets of text.", 72, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 237 },
|
{ PROC_LINKS(snipe_forward_whitespace_or_token_boundary, 0), false, "snipe_forward_whitespace_or_token_boundary", 42, "Delete a single, whole token on or to the right of the cursor and post it to the clipboard.", 91, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 185 },
|
||||||
{ PROC_LINKS(string_repeat, 0), false, "string_repeat", 13, "Example of query_user_string and query_user_number", 50, "W:\\4ed\\code\\custom\\4coder_examples.cpp", 38, 176 },
|
{ PROC_LINKS(snippet_lister, 0), true, "snippet_lister", 14, "Opens a snippet lister for inserting whole pre-written snippets of text.", 72, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 237 },
|
||||||
{ PROC_LINKS(suppress_mouse, 0), false, "suppress_mouse", 14, "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 403 },
|
{ PROC_LINKS(string_repeat, 0), false, "string_repeat", 13, "Example of query_user_string and query_user_number", 50, "w:\\4ed\\code\\custom\\4coder_examples.cpp", 38, 176 },
|
||||||
{ PROC_LINKS(swap_panels, 0), false, "swap_panels", 11, "Swaps the active panel with it's sibling.", 41, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1617 },
|
{ PROC_LINKS(suppress_mouse, 0), false, "suppress_mouse", 14, "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 403 },
|
||||||
{ PROC_LINKS(theme_lister, 0), true, "theme_lister", 12, "Opens an interactive list of all registered themes.", 51, "W:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 785 },
|
{ PROC_LINKS(swap_panels, 0), false, "swap_panels", 11, "Swaps the active panel with it's sibling.", 41, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1615 },
|
||||||
{ PROC_LINKS(to_lowercase, 0), false, "to_lowercase", 12, "Converts all ascii text in the range between the cursor and the mark to lowercase.", 82, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 563 },
|
{ PROC_LINKS(theme_lister, 0), true, "theme_lister", 12, "Opens an interactive list of all registered themes.", 51, "w:\\4ed\\code\\custom\\4coder_lists.cpp", 35, 784 },
|
||||||
{ PROC_LINKS(to_uppercase, 0), false, "to_uppercase", 12, "Converts all ascii text in the range between the cursor and the mark to uppercase.", 82, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 550 },
|
{ PROC_LINKS(to_lowercase, 0), false, "to_lowercase", 12, "Converts all ascii text in the range between the cursor and the mark to lowercase.", 82, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 561 },
|
||||||
{ PROC_LINKS(toggle_filebar, 0), false, "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 692 },
|
{ PROC_LINKS(to_uppercase, 0), false, "to_uppercase", 12, "Converts all ascii text in the range between the cursor and the mark to uppercase.", 82, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 548 },
|
||||||
{ PROC_LINKS(toggle_fps_meter, 0), false, "toggle_fps_meter", 16, "Toggles the visibility of the FPS performance meter", 51, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 701 },
|
{ PROC_LINKS(toggle_filebar, 0), false, "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 690 },
|
||||||
{ PROC_LINKS(toggle_fullscreen, 0), false, "toggle_fullscreen", 17, "Toggle fullscreen mode on or off. The change(s) do not take effect until the next frame.", 89, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 451 },
|
{ PROC_LINKS(toggle_fps_meter, 0), false, "toggle_fps_meter", 16, "Toggles the visibility of the FPS performance meter", 51, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 699 },
|
||||||
{ PROC_LINKS(toggle_highlight_enclosing_scopes, 0), false, "toggle_highlight_enclosing_scopes", 33, "In code files scopes surrounding the cursor are highlighted with distinguishing colors.", 87, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 439 },
|
{ PROC_LINKS(toggle_fullscreen, 0), false, "toggle_fullscreen", 17, "Toggle fullscreen mode on or off. The change(s) do not take effect until the next frame.", 89, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 451 },
|
||||||
{ PROC_LINKS(toggle_highlight_line_at_cursor, 0), false, "toggle_highlight_line_at_cursor", 31, "Toggles the line highlight at the cursor.", 41, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 433 },
|
{ PROC_LINKS(toggle_highlight_enclosing_scopes, 0), false, "toggle_highlight_enclosing_scopes", 33, "In code files scopes surrounding the cursor are highlighted with distinguishing colors.", 87, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 439 },
|
||||||
{ PROC_LINKS(toggle_line_numbers, 0), false, "toggle_line_numbers", 19, "Toggles the left margin line numbers.", 37, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 806 },
|
{ PROC_LINKS(toggle_highlight_line_at_cursor, 0), false, "toggle_highlight_line_at_cursor", 31, "Toggles the line highlight at the cursor.", 41, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 433 },
|
||||||
{ PROC_LINKS(toggle_line_wrap, 0), false, "toggle_line_wrap", 16, "Toggles the line wrap setting on this buffer.", 45, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 812 },
|
{ PROC_LINKS(toggle_line_numbers, 0), false, "toggle_line_numbers", 19, "Toggles the left margin line numbers.", 37, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 804 },
|
||||||
{ PROC_LINKS(toggle_mouse, 0), false, "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 415 },
|
{ PROC_LINKS(toggle_line_wrap, 0), false, "toggle_line_wrap", 16, "Toggles the line wrap setting on this buffer.", 45, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 810 },
|
||||||
{ PROC_LINKS(toggle_paren_matching_helper, 0), false, "toggle_paren_matching_helper", 28, "In code files matching parentheses pairs are colored with distinguishing colors.", 80, "W:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 445 },
|
{ PROC_LINKS(toggle_mouse, 0), false, "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 415 },
|
||||||
{ PROC_LINKS(toggle_show_whitespace, 0), false, "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 797 },
|
{ PROC_LINKS(toggle_paren_matching_helper, 0), false, "toggle_paren_matching_helper", 28, "In code files matching parentheses pairs are colored with distinguishing colors.", 80, "w:\\4ed\\code\\custom\\4coder_default_framework.cpp", 47, 445 },
|
||||||
{ PROC_LINKS(toggle_virtual_whitespace, 0), false, "toggle_virtual_whitespace", 25, "Toggles virtual whitespace for all files.", 41, "W:\\4ed\\code\\custom\\4coder_code_index.cpp", 40, 1176 },
|
{ PROC_LINKS(toggle_show_whitespace, 0), false, "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 795 },
|
||||||
{ PROC_LINKS(tutorial_maximize, 0), false, "tutorial_maximize", 17, "Expand the tutorial window", 26, "W:\\4ed\\code\\custom\\4coder_tutorial.cpp", 38, 20 },
|
{ PROC_LINKS(toggle_virtual_whitespace, 0), false, "toggle_virtual_whitespace", 25, "Toggles virtual whitespace for all files.", 41, "w:\\4ed\\code\\custom\\4coder_code_index.cpp", 40, 1176 },
|
||||||
{ PROC_LINKS(tutorial_minimize, 0), false, "tutorial_minimize", 17, "Shrink the tutorial window", 26, "W:\\4ed\\code\\custom\\4coder_tutorial.cpp", 38, 34 },
|
{ PROC_LINKS(tutorial_maximize, 0), false, "tutorial_maximize", 17, "Expand the tutorial window", 26, "w:\\4ed\\code\\custom\\4coder_tutorial.cpp", 38, 20 },
|
||||||
{ PROC_LINKS(uncomment_line, 0), false, "uncomment_line", 14, "If present, delete '//' at the beginning of the line after leading whitespace.", 78, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 137 },
|
{ PROC_LINKS(tutorial_minimize, 0), false, "tutorial_minimize", 17, "Shrink the tutorial window", 26, "w:\\4ed\\code\\custom\\4coder_tutorial.cpp", 38, 34 },
|
||||||
{ PROC_LINKS(undo, 0), false, "undo", 4, "Advances backwards through the undo history of the current buffer.", 66, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1717 },
|
{ PROC_LINKS(uncomment_line, 0), false, "uncomment_line", 14, "If present, delete '//' at the beginning of the line after leading whitespace.", 78, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 137 },
|
||||||
{ PROC_LINKS(undo_all_buffers, 0), false, "undo_all_buffers", 16, "Advances backward through the undo history in the buffer containing the most recent regular edit.", 97, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1744 },
|
{ PROC_LINKS(undo, 0), false, "undo", 4, "Advances backwards through the undo history of the current buffer.", 66, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1715 },
|
||||||
{ PROC_LINKS(view_buffer_other_panel, 0), false, "view_buffer_other_panel", 23, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1605 },
|
{ PROC_LINKS(undo_all_buffers, 0), false, "undo_all_buffers", 16, "Advances backward through the undo history in the buffer containing the most recent regular edit.", 97, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1742 },
|
||||||
{ PROC_LINKS(view_jump_list_with_lister, 0), false, "view_jump_list_with_lister", 26, "When executed on a buffer with jumps, creates a persistent lister for all the jumps", 83, "W:\\4ed\\code\\custom\\4coder_jump_lister.cpp", 41, 59 },
|
{ PROC_LINKS(view_buffer_other_panel, 0), false, "view_buffer_other_panel", 23, "Set the other non-active panel to view the buffer that the active panel views, and switch to that panel.", 104, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 1603 },
|
||||||
{ PROC_LINKS(word_complete, 0), false, "word_complete", 13, "Iteratively tries completing the word to the left of the cursor with other words in open buffers that have the same prefix string.", 130, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 395 },
|
{ PROC_LINKS(view_jump_list_with_lister, 0), false, "view_jump_list_with_lister", 26, "When executed on a buffer with jumps, creates a persistent lister for all the jumps", 83, "w:\\4ed\\code\\custom\\4coder_jump_lister.cpp", 41, 59 },
|
||||||
{ PROC_LINKS(word_complete_drop_down, 0), false, "word_complete_drop_down", 23, "Word complete with drop down menu.", 34, "W:\\4ed\\code\\custom\\4coder_search.cpp", 36, 642 },
|
{ PROC_LINKS(word_complete, 0), false, "word_complete", 13, "Iteratively tries completing the word to the left of the cursor with other words in open buffers that have the same prefix string.", 130, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 397 },
|
||||||
{ PROC_LINKS(write_block, 0), false, "write_block", 11, "At the cursor, insert a block comment.", 38, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 94 },
|
{ PROC_LINKS(word_complete_drop_down, 0), false, "word_complete_drop_down", 23, "Word complete with drop down menu.", 34, "w:\\4ed\\code\\custom\\4coder_search.cpp", 36, 644 },
|
||||||
{ PROC_LINKS(write_hack, 0), false, "write_hack", 10, "At the cursor, insert a '// HACK' comment, includes user name if it was specified in config.4coder.", 99, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 82 },
|
{ PROC_LINKS(write_block, 0), false, "write_block", 11, "At the cursor, insert a block comment.", 38, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 94 },
|
||||||
{ PROC_LINKS(write_note, 0), false, "write_note", 10, "At the cursor, insert a '// NOTE' comment, includes user name if it was specified in config.4coder.", 99, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 88 },
|
{ PROC_LINKS(write_hack, 0), false, "write_hack", 10, "At the cursor, insert a '// HACK' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 82 },
|
||||||
{ PROC_LINKS(write_space, 0), false, "write_space", 11, "Inserts a space.", 16, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 67 },
|
{ PROC_LINKS(write_note, 0), false, "write_note", 10, "At the cursor, insert a '// NOTE' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 88 },
|
||||||
{ PROC_LINKS(write_text_and_auto_indent, 0), false, "write_text_and_auto_indent", 26, "Inserts text and auto-indents the line on which the cursor sits if any of the text contains 'layout punctuation' such as ;:{}()[]# and new lines.", 145, "W:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 433 },
|
{ PROC_LINKS(write_space, 0), false, "write_space", 11, "Inserts a space.", 16, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 67 },
|
||||||
{ PROC_LINKS(write_text_input, 0), false, "write_text_input", 16, "Inserts whatever text was used to trigger this command.", 55, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 59 },
|
{ PROC_LINKS(write_text_and_auto_indent, 0), false, "write_text_and_auto_indent", 26, "Inserts text and auto-indents the line on which the cursor sits if any of the text contains 'layout punctuation' such as ;:{}()[]# and new lines.", 145, "w:\\4ed\\code\\custom\\4coder_auto_indent.cpp", 41, 433 },
|
||||||
{ PROC_LINKS(write_todo, 0), false, "write_todo", 10, "At the cursor, insert a '// TODO' comment, includes user name if it was specified in config.4coder.", 99, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 76 },
|
{ PROC_LINKS(write_text_input, 0), false, "write_text_input", 16, "Inserts whatever text was used to trigger this command.", 55, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 59 },
|
||||||
{ PROC_LINKS(write_underscore, 0), false, "write_underscore", 16, "Inserts an underscore.", 22, "W:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 73 },
|
{ PROC_LINKS(write_todo, 0), false, "write_todo", 10, "At the cursor, insert a '// TODO' comment, includes user name if it was specified in config.4coder.", 99, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 76 },
|
||||||
{ PROC_LINKS(write_zero_struct, 0), false, "write_zero_struct", 17, "At the cursor, insert a ' = {};'.", 33, "W:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 100 },
|
{ PROC_LINKS(write_underscore, 0), false, "write_underscore", 16, "Inserts an underscore.", 22, "w:\\4ed\\code\\custom\\4coder_base_commands.cpp", 43, 73 },
|
||||||
|
{ PROC_LINKS(write_zero_struct, 0), false, "write_zero_struct", 17, "At the cursor, insert a ' = {};'.", 33, "w:\\4ed\\code\\custom\\4coder_combined_write_commands.cpp", 53, 100 },
|
||||||
};
|
};
|
||||||
static i32 fcoder_metacmd_ID_allow_mouse = 0;
|
static i32 fcoder_metacmd_ID_allow_mouse = 0;
|
||||||
static i32 fcoder_metacmd_ID_auto_indent_line_at_cursor = 1;
|
static i32 fcoder_metacmd_ID_auto_indent_line_at_cursor = 1;
|
||||||
|
@ -640,113 +642,114 @@ static i32 fcoder_metacmd_ID_move_up_10 = 129;
|
||||||
static i32 fcoder_metacmd_ID_move_up_to_blank_line = 130;
|
static i32 fcoder_metacmd_ID_move_up_to_blank_line = 130;
|
||||||
static i32 fcoder_metacmd_ID_move_up_to_blank_line_end = 131;
|
static i32 fcoder_metacmd_ID_move_up_to_blank_line_end = 131;
|
||||||
static i32 fcoder_metacmd_ID_move_up_to_blank_line_skip_whitespace = 132;
|
static i32 fcoder_metacmd_ID_move_up_to_blank_line_skip_whitespace = 132;
|
||||||
static i32 fcoder_metacmd_ID_multi_paste_interactive = 133;
|
static i32 fcoder_metacmd_ID_multi_paste = 133;
|
||||||
static i32 fcoder_metacmd_ID_multi_paste_interactive_quick = 134;
|
static i32 fcoder_metacmd_ID_multi_paste_interactive = 134;
|
||||||
static i32 fcoder_metacmd_ID_open_all_code = 135;
|
static i32 fcoder_metacmd_ID_multi_paste_interactive_quick = 135;
|
||||||
static i32 fcoder_metacmd_ID_open_all_code_recursive = 136;
|
static i32 fcoder_metacmd_ID_open_all_code = 136;
|
||||||
static i32 fcoder_metacmd_ID_open_file_in_quotes = 137;
|
static i32 fcoder_metacmd_ID_open_all_code_recursive = 137;
|
||||||
static i32 fcoder_metacmd_ID_open_in_other = 138;
|
static i32 fcoder_metacmd_ID_open_file_in_quotes = 138;
|
||||||
static i32 fcoder_metacmd_ID_open_long_braces = 139;
|
static i32 fcoder_metacmd_ID_open_in_other = 139;
|
||||||
static i32 fcoder_metacmd_ID_open_long_braces_break = 140;
|
static i32 fcoder_metacmd_ID_open_long_braces = 140;
|
||||||
static i32 fcoder_metacmd_ID_open_long_braces_semicolon = 141;
|
static i32 fcoder_metacmd_ID_open_long_braces_break = 141;
|
||||||
static i32 fcoder_metacmd_ID_open_matching_file_cpp = 142;
|
static i32 fcoder_metacmd_ID_open_long_braces_semicolon = 142;
|
||||||
static i32 fcoder_metacmd_ID_open_panel_hsplit = 143;
|
static i32 fcoder_metacmd_ID_open_matching_file_cpp = 143;
|
||||||
static i32 fcoder_metacmd_ID_open_panel_vsplit = 144;
|
static i32 fcoder_metacmd_ID_open_panel_hsplit = 144;
|
||||||
static i32 fcoder_metacmd_ID_page_down = 145;
|
static i32 fcoder_metacmd_ID_open_panel_vsplit = 145;
|
||||||
static i32 fcoder_metacmd_ID_page_up = 146;
|
static i32 fcoder_metacmd_ID_page_down = 146;
|
||||||
static i32 fcoder_metacmd_ID_paste = 147;
|
static i32 fcoder_metacmd_ID_page_up = 147;
|
||||||
static i32 fcoder_metacmd_ID_paste_and_indent = 148;
|
static i32 fcoder_metacmd_ID_paste = 148;
|
||||||
static i32 fcoder_metacmd_ID_paste_next = 149;
|
static i32 fcoder_metacmd_ID_paste_and_indent = 149;
|
||||||
static i32 fcoder_metacmd_ID_paste_next_and_indent = 150;
|
static i32 fcoder_metacmd_ID_paste_next = 150;
|
||||||
static i32 fcoder_metacmd_ID_place_in_scope = 151;
|
static i32 fcoder_metacmd_ID_paste_next_and_indent = 151;
|
||||||
static i32 fcoder_metacmd_ID_play_with_a_counter = 152;
|
static i32 fcoder_metacmd_ID_place_in_scope = 152;
|
||||||
static i32 fcoder_metacmd_ID_profile_clear = 153;
|
static i32 fcoder_metacmd_ID_play_with_a_counter = 153;
|
||||||
static i32 fcoder_metacmd_ID_profile_disable = 154;
|
static i32 fcoder_metacmd_ID_profile_clear = 154;
|
||||||
static i32 fcoder_metacmd_ID_profile_enable = 155;
|
static i32 fcoder_metacmd_ID_profile_disable = 155;
|
||||||
static i32 fcoder_metacmd_ID_profile_inspect = 156;
|
static i32 fcoder_metacmd_ID_profile_enable = 156;
|
||||||
static i32 fcoder_metacmd_ID_project_command_lister = 157;
|
static i32 fcoder_metacmd_ID_profile_inspect = 157;
|
||||||
static i32 fcoder_metacmd_ID_project_fkey_command = 158;
|
static i32 fcoder_metacmd_ID_project_command_lister = 158;
|
||||||
static i32 fcoder_metacmd_ID_project_go_to_root_directory = 159;
|
static i32 fcoder_metacmd_ID_project_fkey_command = 159;
|
||||||
static i32 fcoder_metacmd_ID_query_replace = 160;
|
static i32 fcoder_metacmd_ID_project_go_to_root_directory = 160;
|
||||||
static i32 fcoder_metacmd_ID_query_replace_identifier = 161;
|
static i32 fcoder_metacmd_ID_query_replace = 161;
|
||||||
static i32 fcoder_metacmd_ID_query_replace_selection = 162;
|
static i32 fcoder_metacmd_ID_query_replace_identifier = 162;
|
||||||
static i32 fcoder_metacmd_ID_redo = 163;
|
static i32 fcoder_metacmd_ID_query_replace_selection = 163;
|
||||||
static i32 fcoder_metacmd_ID_redo_all_buffers = 164;
|
static i32 fcoder_metacmd_ID_redo = 164;
|
||||||
static i32 fcoder_metacmd_ID_rename_file_query = 165;
|
static i32 fcoder_metacmd_ID_redo_all_buffers = 165;
|
||||||
static i32 fcoder_metacmd_ID_reopen = 166;
|
static i32 fcoder_metacmd_ID_rename_file_query = 166;
|
||||||
static i32 fcoder_metacmd_ID_replace_in_all_buffers = 167;
|
static i32 fcoder_metacmd_ID_reopen = 167;
|
||||||
static i32 fcoder_metacmd_ID_replace_in_buffer = 168;
|
static i32 fcoder_metacmd_ID_replace_in_all_buffers = 168;
|
||||||
static i32 fcoder_metacmd_ID_replace_in_range = 169;
|
static i32 fcoder_metacmd_ID_replace_in_buffer = 169;
|
||||||
static i32 fcoder_metacmd_ID_reverse_search = 170;
|
static i32 fcoder_metacmd_ID_replace_in_range = 170;
|
||||||
static i32 fcoder_metacmd_ID_reverse_search_identifier = 171;
|
static i32 fcoder_metacmd_ID_reverse_search = 171;
|
||||||
static i32 fcoder_metacmd_ID_save = 172;
|
static i32 fcoder_metacmd_ID_reverse_search_identifier = 172;
|
||||||
static i32 fcoder_metacmd_ID_save_all_dirty_buffers = 173;
|
static i32 fcoder_metacmd_ID_save = 173;
|
||||||
static i32 fcoder_metacmd_ID_save_to_query = 174;
|
static i32 fcoder_metacmd_ID_save_all_dirty_buffers = 174;
|
||||||
static i32 fcoder_metacmd_ID_search = 175;
|
static i32 fcoder_metacmd_ID_save_to_query = 175;
|
||||||
static i32 fcoder_metacmd_ID_search_identifier = 176;
|
static i32 fcoder_metacmd_ID_search = 176;
|
||||||
static i32 fcoder_metacmd_ID_seek_beginning_of_line = 177;
|
static i32 fcoder_metacmd_ID_search_identifier = 177;
|
||||||
static i32 fcoder_metacmd_ID_seek_beginning_of_textual_line = 178;
|
static i32 fcoder_metacmd_ID_seek_beginning_of_line = 178;
|
||||||
static i32 fcoder_metacmd_ID_seek_end_of_line = 179;
|
static i32 fcoder_metacmd_ID_seek_beginning_of_textual_line = 179;
|
||||||
static i32 fcoder_metacmd_ID_seek_end_of_textual_line = 180;
|
static i32 fcoder_metacmd_ID_seek_end_of_line = 180;
|
||||||
static i32 fcoder_metacmd_ID_select_all = 181;
|
static i32 fcoder_metacmd_ID_seek_end_of_textual_line = 181;
|
||||||
static i32 fcoder_metacmd_ID_select_next_scope_absolute = 182;
|
static i32 fcoder_metacmd_ID_select_all = 182;
|
||||||
static i32 fcoder_metacmd_ID_select_next_scope_after_current = 183;
|
static i32 fcoder_metacmd_ID_select_next_scope_absolute = 183;
|
||||||
static i32 fcoder_metacmd_ID_select_prev_scope_absolute = 184;
|
static i32 fcoder_metacmd_ID_select_next_scope_after_current = 184;
|
||||||
static i32 fcoder_metacmd_ID_select_prev_top_most_scope = 185;
|
static i32 fcoder_metacmd_ID_select_prev_scope_absolute = 185;
|
||||||
static i32 fcoder_metacmd_ID_select_surrounding_scope = 186;
|
static i32 fcoder_metacmd_ID_select_prev_top_most_scope = 186;
|
||||||
static i32 fcoder_metacmd_ID_select_surrounding_scope_maximal = 187;
|
static i32 fcoder_metacmd_ID_select_surrounding_scope = 187;
|
||||||
static i32 fcoder_metacmd_ID_set_eol_mode_from_contents = 188;
|
static i32 fcoder_metacmd_ID_select_surrounding_scope_maximal = 188;
|
||||||
static i32 fcoder_metacmd_ID_set_eol_mode_to_binary = 189;
|
static i32 fcoder_metacmd_ID_set_eol_mode_from_contents = 189;
|
||||||
static i32 fcoder_metacmd_ID_set_eol_mode_to_crlf = 190;
|
static i32 fcoder_metacmd_ID_set_eol_mode_to_binary = 190;
|
||||||
static i32 fcoder_metacmd_ID_set_eol_mode_to_lf = 191;
|
static i32 fcoder_metacmd_ID_set_eol_mode_to_crlf = 191;
|
||||||
static i32 fcoder_metacmd_ID_set_face_size = 192;
|
static i32 fcoder_metacmd_ID_set_eol_mode_to_lf = 192;
|
||||||
static i32 fcoder_metacmd_ID_set_face_size_this_buffer = 193;
|
static i32 fcoder_metacmd_ID_set_face_size = 193;
|
||||||
static i32 fcoder_metacmd_ID_set_mark = 194;
|
static i32 fcoder_metacmd_ID_set_face_size_this_buffer = 194;
|
||||||
static i32 fcoder_metacmd_ID_set_mode_to_notepad_like = 195;
|
static i32 fcoder_metacmd_ID_set_mark = 195;
|
||||||
static i32 fcoder_metacmd_ID_set_mode_to_original = 196;
|
static i32 fcoder_metacmd_ID_set_mode_to_notepad_like = 196;
|
||||||
static i32 fcoder_metacmd_ID_setup_build_bat = 197;
|
static i32 fcoder_metacmd_ID_set_mode_to_original = 197;
|
||||||
static i32 fcoder_metacmd_ID_setup_build_bat_and_sh = 198;
|
static i32 fcoder_metacmd_ID_setup_build_bat = 198;
|
||||||
static i32 fcoder_metacmd_ID_setup_build_sh = 199;
|
static i32 fcoder_metacmd_ID_setup_build_bat_and_sh = 199;
|
||||||
static i32 fcoder_metacmd_ID_setup_new_project = 200;
|
static i32 fcoder_metacmd_ID_setup_build_sh = 200;
|
||||||
static i32 fcoder_metacmd_ID_show_filebar = 201;
|
static i32 fcoder_metacmd_ID_setup_new_project = 201;
|
||||||
static i32 fcoder_metacmd_ID_show_scrollbar = 202;
|
static i32 fcoder_metacmd_ID_show_filebar = 202;
|
||||||
static i32 fcoder_metacmd_ID_show_the_log_graph = 203;
|
static i32 fcoder_metacmd_ID_show_scrollbar = 203;
|
||||||
static i32 fcoder_metacmd_ID_snipe_backward_whitespace_or_token_boundary = 204;
|
static i32 fcoder_metacmd_ID_show_the_log_graph = 204;
|
||||||
static i32 fcoder_metacmd_ID_snipe_forward_whitespace_or_token_boundary = 205;
|
static i32 fcoder_metacmd_ID_snipe_backward_whitespace_or_token_boundary = 205;
|
||||||
static i32 fcoder_metacmd_ID_snippet_lister = 206;
|
static i32 fcoder_metacmd_ID_snipe_forward_whitespace_or_token_boundary = 206;
|
||||||
static i32 fcoder_metacmd_ID_string_repeat = 207;
|
static i32 fcoder_metacmd_ID_snippet_lister = 207;
|
||||||
static i32 fcoder_metacmd_ID_suppress_mouse = 208;
|
static i32 fcoder_metacmd_ID_string_repeat = 208;
|
||||||
static i32 fcoder_metacmd_ID_swap_panels = 209;
|
static i32 fcoder_metacmd_ID_suppress_mouse = 209;
|
||||||
static i32 fcoder_metacmd_ID_theme_lister = 210;
|
static i32 fcoder_metacmd_ID_swap_panels = 210;
|
||||||
static i32 fcoder_metacmd_ID_to_lowercase = 211;
|
static i32 fcoder_metacmd_ID_theme_lister = 211;
|
||||||
static i32 fcoder_metacmd_ID_to_uppercase = 212;
|
static i32 fcoder_metacmd_ID_to_lowercase = 212;
|
||||||
static i32 fcoder_metacmd_ID_toggle_filebar = 213;
|
static i32 fcoder_metacmd_ID_to_uppercase = 213;
|
||||||
static i32 fcoder_metacmd_ID_toggle_fps_meter = 214;
|
static i32 fcoder_metacmd_ID_toggle_filebar = 214;
|
||||||
static i32 fcoder_metacmd_ID_toggle_fullscreen = 215;
|
static i32 fcoder_metacmd_ID_toggle_fps_meter = 215;
|
||||||
static i32 fcoder_metacmd_ID_toggle_highlight_enclosing_scopes = 216;
|
static i32 fcoder_metacmd_ID_toggle_fullscreen = 216;
|
||||||
static i32 fcoder_metacmd_ID_toggle_highlight_line_at_cursor = 217;
|
static i32 fcoder_metacmd_ID_toggle_highlight_enclosing_scopes = 217;
|
||||||
static i32 fcoder_metacmd_ID_toggle_line_numbers = 218;
|
static i32 fcoder_metacmd_ID_toggle_highlight_line_at_cursor = 218;
|
||||||
static i32 fcoder_metacmd_ID_toggle_line_wrap = 219;
|
static i32 fcoder_metacmd_ID_toggle_line_numbers = 219;
|
||||||
static i32 fcoder_metacmd_ID_toggle_mouse = 220;
|
static i32 fcoder_metacmd_ID_toggle_line_wrap = 220;
|
||||||
static i32 fcoder_metacmd_ID_toggle_paren_matching_helper = 221;
|
static i32 fcoder_metacmd_ID_toggle_mouse = 221;
|
||||||
static i32 fcoder_metacmd_ID_toggle_show_whitespace = 222;
|
static i32 fcoder_metacmd_ID_toggle_paren_matching_helper = 222;
|
||||||
static i32 fcoder_metacmd_ID_toggle_virtual_whitespace = 223;
|
static i32 fcoder_metacmd_ID_toggle_show_whitespace = 223;
|
||||||
static i32 fcoder_metacmd_ID_tutorial_maximize = 224;
|
static i32 fcoder_metacmd_ID_toggle_virtual_whitespace = 224;
|
||||||
static i32 fcoder_metacmd_ID_tutorial_minimize = 225;
|
static i32 fcoder_metacmd_ID_tutorial_maximize = 225;
|
||||||
static i32 fcoder_metacmd_ID_uncomment_line = 226;
|
static i32 fcoder_metacmd_ID_tutorial_minimize = 226;
|
||||||
static i32 fcoder_metacmd_ID_undo = 227;
|
static i32 fcoder_metacmd_ID_uncomment_line = 227;
|
||||||
static i32 fcoder_metacmd_ID_undo_all_buffers = 228;
|
static i32 fcoder_metacmd_ID_undo = 228;
|
||||||
static i32 fcoder_metacmd_ID_view_buffer_other_panel = 229;
|
static i32 fcoder_metacmd_ID_undo_all_buffers = 229;
|
||||||
static i32 fcoder_metacmd_ID_view_jump_list_with_lister = 230;
|
static i32 fcoder_metacmd_ID_view_buffer_other_panel = 230;
|
||||||
static i32 fcoder_metacmd_ID_word_complete = 231;
|
static i32 fcoder_metacmd_ID_view_jump_list_with_lister = 231;
|
||||||
static i32 fcoder_metacmd_ID_word_complete_drop_down = 232;
|
static i32 fcoder_metacmd_ID_word_complete = 232;
|
||||||
static i32 fcoder_metacmd_ID_write_block = 233;
|
static i32 fcoder_metacmd_ID_word_complete_drop_down = 233;
|
||||||
static i32 fcoder_metacmd_ID_write_hack = 234;
|
static i32 fcoder_metacmd_ID_write_block = 234;
|
||||||
static i32 fcoder_metacmd_ID_write_note = 235;
|
static i32 fcoder_metacmd_ID_write_hack = 235;
|
||||||
static i32 fcoder_metacmd_ID_write_space = 236;
|
static i32 fcoder_metacmd_ID_write_note = 236;
|
||||||
static i32 fcoder_metacmd_ID_write_text_and_auto_indent = 237;
|
static i32 fcoder_metacmd_ID_write_space = 237;
|
||||||
static i32 fcoder_metacmd_ID_write_text_input = 238;
|
static i32 fcoder_metacmd_ID_write_text_and_auto_indent = 238;
|
||||||
static i32 fcoder_metacmd_ID_write_todo = 239;
|
static i32 fcoder_metacmd_ID_write_text_input = 239;
|
||||||
static i32 fcoder_metacmd_ID_write_underscore = 240;
|
static i32 fcoder_metacmd_ID_write_todo = 240;
|
||||||
static i32 fcoder_metacmd_ID_write_zero_struct = 241;
|
static i32 fcoder_metacmd_ID_write_underscore = 241;
|
||||||
|
static i32 fcoder_metacmd_ID_write_zero_struct = 242;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -43,435 +43,439 @@ lexeme_table_lookup(u64 *hash_array, String_Const_u8 *key_array,
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
u64 cpp_main_keys_hash_array[121] = {
|
u64 cpp_main_keys_hash_array[123] = {
|
||||||
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x8349fa730393363b,
|
0xa02d08fced714f21,0x0000000000000000,0x0000000000000000,0x0000000000000000,
|
||||||
0x0000000000000000,0x8349fa730aae0099,0x60ea26a19b756e79,0x0000000000000000,
|
0x0000000000000000,0xe1e7bc4fc6213bcd,0xb87a077de8c9774b,0x0000000000000000,
|
||||||
0xb93f1a8b9f2a32a5,0x0000000000000000,0x70176a7f513b6149,0x83cfadc08adce95d,
|
0x0000000000000000,0x64d42a8d107c54fd,0xb87a040db96309a5,0x2a04794b472fbb33,
|
||||||
0x0000000000000000,0xef2944a1e021a185,0x33d534df660dd7d1,0xef2944a1e020e4ef,
|
0xa02d08fced71bcb9,0xe1e79a4e481c76ef,0x0000000000000000,0x0000000000000000,
|
||||||
0x4925ce049db84f37,0x0000000000000000,0xef2944a1e0217bb9,0x0000000000000000,
|
0x2a04794b476e88ab,0xe1e74cb73ab6e1f1,0xb87a0779b61a05f1,0xa02d08fced7e3d27,
|
||||||
0x83cfadc025927fad,0x9c990ba137331a7b,0x0000000000000000,0xd0ee94c41229223b,
|
|
||||||
0x83cfadc218c1af4b,0x83cfadc05860fa51,0x33d534df65d0b7a1,0x8349fa73053a0c29,
|
|
||||||
0x0000000000000000,0x33d534df666c18fb,0x1af8d017f84db43f,0x0000000000000000,
|
|
||||||
0x0000000000000000,0x1af8d017f84db719,0x0000000000000000,0x0000000000000000,
|
|
||||||
0x33d534df66190e59,0x49275265b1018d2d,0x0000000000000000,0x0000000000000000,
|
|
||||||
0x33d534df6630873d,0x4925e70b40952c2b,0x8349fa731f0043ad,0x0000000000000000,
|
|
||||||
0xef2944a1e026c143,0x83cfadc027d6a375,0x49240a553feb1893,0x0000000000000000,
|
|
||||||
0x0000000000000000,0x9c99072ffa085123,0x83cfadc17d987a33,0x49274937cc2c73ab,
|
|
||||||
0x9c9907648aae4125,0x492415929b88fb15,0x0000000000000000,0x0000000000000000,
|
|
||||||
0x0000000000000000,0x83cfadc226c3a251,0x8349fa731f1a8b89,0x492739e1687c7c73,
|
|
||||||
0x0000000000000000,0x0000000000000000,0x492760d5d9233623,0x83cfadc100295e99,
|
|
||||||
0x83cfadc3f0d53289,0x8349fa731f0596e9,0x0000000000000000,0x0000000000000000,
|
|
||||||
0x8349fa7336b0ba93,0x9c99074f559d0e07,0x8349fa73039058ed,0x0000000000000000,
|
|
||||||
0x0000000000000000,0x8349fa73365331d3,0x9c990ba137331761,0x31d873deecc74ec9,
|
|
||||||
0x83cfadc05d3daf09,0x0000000000000000,0x0000000000000000,0x9c99064c8ae8c92f,
|
|
||||||
0x0000000000000000,0x0000000000000000,0x33d534df6605b333,0x0000000000000000,
|
|
||||||
0x33d534df6772a0a9,0x4925b9bfb359db75,0x0000000000000000,0x0000000000000000,
|
|
||||||
0x0000000000000000,0xb03d472d14c4eec9,0x0000000000000000,0x0000000000000000,
|
|
||||||
0x0000000000000000,0x0000000000000000,0xd3a2eb0b8808f565,0xef2944a1e0216207,
|
|
||||||
0x83cfadc024f06dbb,0x83cfadc1887f2993,0x0000000000000000,0x0000000000000000,
|
|
||||||
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000,
|
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000,
|
||||||
0x33d534df666c8233,0x0000000000000000,0x0000000000000000,0x49274be6eb62115b,
|
0xe1e74df919556531,0x0000000000000000,0x2a04794b4750dcfb,0x0000000000000000,
|
||||||
0x0000000000000000,0x8349fa733124f7c9,0x0000000000000000,0x83cfadc101f1a3f7,
|
0x0000000000000000,0x51ffb9266d716d63,0x0000000000000000,0x2a04794b47752a39,
|
||||||
0x33d534df6605923b,0x33d534df6638d32b,0x0000000000000000,0x0000000000000000,
|
0xb87a077d83720575,0xb87a077d45cb6943,0xed3e02e48879e23f,0xb87a077d75d6927f,
|
||||||
0x0000000000000000,0x83cfadc06ebf6037,0x0000000000000000,0x9c99070bb0253d6d,
|
0x0000000000000000,0x0000000000000000,0xb87a077d7d26c9cb,0x0000000000000000,
|
||||||
0x64fb60a931f3c149,
|
0x0000000000000000,0x64d42a8d15cad6cf,0x0000000000000000,0x64d42a8d2dd99e73,
|
||||||
|
0xbfe1370f14734db3,0x64d42a8d2d9ea4b1,0x2a04794b473db65b,0x0000000000000000,
|
||||||
|
0x9b921ef2e607f94b,0x0000000000000000,0x0000000000000000,0x5cc78b7598d53ab3,
|
||||||
|
0x0000000000000000,0xe1e79a417313f001,0x0000000000000000,0x64d42a8d2f8b19f7,
|
||||||
|
0xb87a077d57e70013,0xe1e7972ee65f58a9,0x0000000000000000,0xb87a077b4f22ee4f,
|
||||||
|
0x0000000000000000,0x2da61e8b7bd67ab3,0x0000000000000000,0x9b921f0be2d5fd73,
|
||||||
|
0x2a04794b472a0c8d,0x0000000000000000,0x0000000000000000,0x64d42a8d237928ff,
|
||||||
|
0x0000000000000000,0x2a04794b47684045,0xe1e74dce4fad968d,0x65c4c58f1f61975b,
|
||||||
|
0x0000000000000000,0x0000000000000000,0x0000000000000000,0xb87a0779acf8f011,
|
||||||
|
0xe1e7b5b7dc6cc403,0x0000000000000000,0x0000000000000000,0x9b921f00474e42b7,
|
||||||
|
0xa02d08fced7290e1,0x64d42a8d15562aa1,0x9b921e2d64c9b5e5,0x0000000000000000,
|
||||||
|
0x0000000000000000,0x0000000000000000,0x0000000000000000,0x9b921f1205118289,
|
||||||
|
0x9b921f0be2d5db6d,0x0000000000000000,0x0000000000000000,0xb87a077b4f3dee75,
|
||||||
|
0xa02d08fced71cd5f,0xe1e79f26608f72a1,0x0000000000000000,0x64d42a8d20677f9b,
|
||||||
|
0xed3e02e48879e015,0x0000000000000000,0x0000000000000000,0x64d42a8d2f99e1d3,
|
||||||
|
0x2a04794b4743887f,0x460dc08932f2f56f,0xb256cc28022d95b3,0x0000000000000000,
|
||||||
|
0x64d42a8d109cb19b,0x2a04794b47697f71,0x0000000000000000,0x0000000000000000,
|
||||||
|
0x0000000000000000,0x0000000000000000,0x9b921e06204b17f1,0x0000000000000000,
|
||||||
|
0xb87a077b04581e67,0x51cfb078bf2f5e01,0x2a04794b47602361,0xb87a077d7d095693,
|
||||||
|
0x0000000000000000,0x0000000000000000,0xe1e1185048b33e43,0xb87a077d45f43325,
|
||||||
|
0x0000000000000000,0x0000000000000000,0x0000000000000000,
|
||||||
};
|
};
|
||||||
u8 cpp_main_keys_key_array_3[] = {0x66,0x61,0x6c,0x73,0x65,};
|
u8 cpp_main_keys_key_array_0[] = {0x66,0x6f,0x72,};
|
||||||
u8 cpp_main_keys_key_array_5[] = {0x73,0x68,0x6f,0x72,0x74,};
|
u8 cpp_main_keys_key_array_5[] = {0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,};
|
||||||
u8 cpp_main_keys_key_array_6[] = {0x73,0x74,0x61,0x74,0x69,0x63,0x5f,0x61,0x73,0x73,0x65,0x72,0x74,};
|
u8 cpp_main_keys_key_array_6[] = {0x70,0x75,0x62,0x6c,0x69,0x63,};
|
||||||
u8 cpp_main_keys_key_array_8[] = {0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x6c,0x6f,0x63,0x61,0x6c,};
|
u8 cpp_main_keys_key_array_9[] = {0x75,0x6e,0x69,0x6f,0x6e,};
|
||||||
u8 cpp_main_keys_key_array_10[] = {0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x5f,0x63,0x61,0x73,0x74,};
|
u8 cpp_main_keys_key_array_10[] = {0x69,0x6e,0x6c,0x69,0x6e,0x65,};
|
||||||
u8 cpp_main_keys_key_array_11[] = {0x74,0x79,0x70,0x65,0x69,0x64,};
|
u8 cpp_main_keys_key_array_11[] = {0x76,0x6f,0x69,0x64,};
|
||||||
u8 cpp_main_keys_key_array_13[] = {0x6e,0x65,0x77,};
|
u8 cpp_main_keys_key_array_12[] = {0x61,0x73,0x6d,};
|
||||||
u8 cpp_main_keys_key_array_14[] = {0x62,0x6f,0x6f,0x6c,};
|
u8 cpp_main_keys_key_array_13[] = {0x6e,0x6f,0x65,0x78,0x63,0x65,0x70,0x74,};
|
||||||
u8 cpp_main_keys_key_array_15[] = {0x74,0x72,0x79,};
|
u8 cpp_main_keys_key_array_16[] = {0x62,0x6f,0x6f,0x6c,};
|
||||||
u8 cpp_main_keys_key_array_16[] = {0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,};
|
u8 cpp_main_keys_key_array_17[] = {0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,};
|
||||||
u8 cpp_main_keys_key_array_18[] = {0x69,0x6e,0x74,};
|
u8 cpp_main_keys_key_array_18[] = {0x64,0x65,0x6c,0x65,0x74,0x65,};
|
||||||
u8 cpp_main_keys_key_array_20[] = {0x73,0x77,0x69,0x74,0x63,0x68,};
|
u8 cpp_main_keys_key_array_19[] = {0x69,0x6e,0x74,};
|
||||||
u8 cpp_main_keys_key_array_21[] = {0x61,0x6c,0x69,0x67,0x6e,0x6f,0x66,};
|
u8 cpp_main_keys_key_array_24[] = {0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,};
|
||||||
u8 cpp_main_keys_key_array_23[] = {0x6e,0x61,0x6d,0x65,0x73,0x70,0x61,0x63,0x65,};
|
u8 cpp_main_keys_key_array_26[] = {0x6c,0x6f,0x6e,0x67,};
|
||||||
u8 cpp_main_keys_key_array_24[] = {0x69,0x6e,0x6c,0x69,0x6e,0x65,};
|
u8 cpp_main_keys_key_array_29[] = {0x70,0x72,0x6f,0x74,0x65,0x63,0x74,0x65,0x64,};
|
||||||
u8 cpp_main_keys_key_array_25[] = {0x73,0x74,0x61,0x74,0x69,0x63,};
|
u8 cpp_main_keys_key_array_31[] = {0x63,0x68,0x61,0x72,};
|
||||||
u8 cpp_main_keys_key_array_26[] = {0x74,0x68,0x69,0x73,};
|
u8 cpp_main_keys_key_array_32[] = {0x72,0x65,0x74,0x75,0x72,0x6e,};
|
||||||
u8 cpp_main_keys_key_array_27[] = {0x62,0x72,0x65,0x61,0x6b,};
|
u8 cpp_main_keys_key_array_33[] = {0x73,0x69,0x67,0x6e,0x65,0x64,};
|
||||||
u8 cpp_main_keys_key_array_29[] = {0x63,0x61,0x73,0x65,};
|
u8 cpp_main_keys_key_array_34[] = {0x64,0x6f,};
|
||||||
u8 cpp_main_keys_key_array_30[] = {0x69,0x66,};
|
u8 cpp_main_keys_key_array_35[] = {0x73,0x77,0x69,0x74,0x63,0x68,};
|
||||||
u8 cpp_main_keys_key_array_33[] = {0x64,0x6f,};
|
u8 cpp_main_keys_key_array_38[] = {0x73,0x74,0x61,0x74,0x69,0x63,};
|
||||||
u8 cpp_main_keys_key_array_36[] = {0x67,0x6f,0x74,0x6f,};
|
u8 cpp_main_keys_key_array_41[] = {0x73,0x68,0x6f,0x72,0x74,};
|
||||||
u8 cpp_main_keys_key_array_37[] = {0x65,0x78,0x70,0x6c,0x69,0x63,0x69,0x74,};
|
u8 cpp_main_keys_key_array_43[] = {0x66,0x6c,0x6f,0x61,0x74,};
|
||||||
u8 cpp_main_keys_key_array_40[] = {0x76,0x6f,0x69,0x64,};
|
u8 cpp_main_keys_key_array_44[] = {0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x5f,0x63,0x61,0x73,0x74,};
|
||||||
u8 cpp_main_keys_key_array_41[] = {0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,};
|
u8 cpp_main_keys_key_array_45[] = {0x66,0x61,0x6c,0x73,0x65,};
|
||||||
u8 cpp_main_keys_key_array_42[] = {0x63,0x61,0x74,0x63,0x68,};
|
u8 cpp_main_keys_key_array_46[] = {0x74,0x68,0x69,0x73,};
|
||||||
u8 cpp_main_keys_key_array_44[] = {0x61,0x73,0x6d,};
|
u8 cpp_main_keys_key_array_48[] = {0x76,0x69,0x72,0x74,0x75,0x61,0x6c,};
|
||||||
u8 cpp_main_keys_key_array_45[] = {0x73,0x69,0x67,0x6e,0x65,0x64,};
|
u8 cpp_main_keys_key_array_51[] = {0x72,0x65,0x69,0x6e,0x74,0x65,0x72,0x70,0x72,0x65,0x74,0x5f,0x63,0x61,0x73,0x74,};
|
||||||
u8 cpp_main_keys_key_array_46[] = {0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,};
|
u8 cpp_main_keys_key_array_53[] = {0x64,0x65,0x63,0x6c,0x74,0x79,0x70,0x65,};
|
||||||
u8 cpp_main_keys_key_array_49[] = {0x70,0x72,0x69,0x76,0x61,0x74,0x65,};
|
u8 cpp_main_keys_key_array_55[] = {0x63,0x6c,0x61,0x73,0x73,};
|
||||||
u8 cpp_main_keys_key_array_50[] = {0x64,0x6f,0x75,0x62,0x6c,0x65,};
|
u8 cpp_main_keys_key_array_56[] = {0x74,0x79,0x70,0x65,0x69,0x64,};
|
||||||
u8 cpp_main_keys_key_array_51[] = {0x74,0x79,0x70,0x65,0x6e,0x61,0x6d,0x65,};
|
u8 cpp_main_keys_key_array_57[] = {0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,};
|
||||||
u8 cpp_main_keys_key_array_52[] = {0x76,0x69,0x72,0x74,0x75,0x61,0x6c,};
|
u8 cpp_main_keys_key_array_59[] = {0x65,0x78,0x70,0x6f,0x72,0x74,};
|
||||||
u8 cpp_main_keys_key_array_53[] = {0x6e,0x6f,0x65,0x78,0x63,0x65,0x70,0x74,};
|
u8 cpp_main_keys_key_array_61[] = {0x63,0x6f,0x6e,0x73,0x74,0x5f,0x63,0x61,0x73,0x74,};
|
||||||
u8 cpp_main_keys_key_array_57[] = {0x70,0x75,0x62,0x6c,0x69,0x63,};
|
u8 cpp_main_keys_key_array_63[] = {0x61,0x6c,0x69,0x67,0x6e,0x61,0x73,};
|
||||||
u8 cpp_main_keys_key_array_58[] = {0x63,0x6c,0x61,0x73,0x73,};
|
u8 cpp_main_keys_key_array_64[] = {0x74,0x72,0x75,0x65,};
|
||||||
u8 cpp_main_keys_key_array_59[] = {0x64,0x65,0x63,0x6c,0x74,0x79,0x70,0x65,};
|
u8 cpp_main_keys_key_array_67[] = {0x63,0x61,0x74,0x63,0x68,};
|
||||||
u8 cpp_main_keys_key_array_62[] = {0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,};
|
u8 cpp_main_keys_key_array_69[] = {0x65,0x6e,0x75,0x6d,};
|
||||||
u8 cpp_main_keys_key_array_63[] = {0x65,0x78,0x70,0x6f,0x72,0x74,};
|
u8 cpp_main_keys_key_array_70[] = {0x74,0x79,0x70,0x65,0x6e,0x61,0x6d,0x65,};
|
||||||
u8 cpp_main_keys_key_array_64[] = {0x66,0x72,0x69,0x65,0x6e,0x64,};
|
u8 cpp_main_keys_key_array_71[] = {0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x6c,0x6f,0x63,0x61,0x6c,};
|
||||||
u8 cpp_main_keys_key_array_65[] = {0x63,0x6f,0x6e,0x73,0x74,};
|
u8 cpp_main_keys_key_array_75[] = {0x64,0x6f,0x75,0x62,0x6c,0x65,};
|
||||||
u8 cpp_main_keys_key_array_68[] = {0x77,0x68,0x69,0x6c,0x65,};
|
u8 cpp_main_keys_key_array_76[] = {0x65,0x78,0x70,0x6c,0x69,0x63,0x69,0x74,};
|
||||||
u8 cpp_main_keys_key_array_69[] = {0x74,0x79,0x70,0x65,0x64,0x65,0x66,};
|
u8 cpp_main_keys_key_array_79[] = {0x64,0x65,0x66,0x61,0x75,0x6c,0x74,};
|
||||||
u8 cpp_main_keys_key_array_70[] = {0x66,0x6c,0x6f,0x61,0x74,};
|
u8 cpp_main_keys_key_array_80[] = {0x74,0x72,0x79,};
|
||||||
u8 cpp_main_keys_key_array_73[] = {0x75,0x6e,0x69,0x6f,0x6e,};
|
u8 cpp_main_keys_key_array_81[] = {0x77,0x68,0x69,0x6c,0x65,};
|
||||||
u8 cpp_main_keys_key_array_74[] = {0x61,0x6c,0x69,0x67,0x6e,0x61,0x73,};
|
u8 cpp_main_keys_key_array_82[] = {0x74,0x79,0x70,0x65,0x64,0x65,0x66,};
|
||||||
u8 cpp_main_keys_key_array_75[] = {0x72,0x65,0x69,0x6e,0x74,0x65,0x72,0x70,0x72,0x65,0x74,0x5f,0x63,0x61,0x73,0x74,};
|
u8 cpp_main_keys_key_array_87[] = {0x6e,0x75,0x6c,0x6c,0x70,0x74,0x72,};
|
||||||
u8 cpp_main_keys_key_array_76[] = {0x73,0x74,0x72,0x75,0x63,0x74,};
|
u8 cpp_main_keys_key_array_88[] = {0x61,0x6c,0x69,0x67,0x6e,0x6f,0x66,};
|
||||||
u8 cpp_main_keys_key_array_79[] = {0x6e,0x75,0x6c,0x6c,0x70,0x74,0x72,};
|
u8 cpp_main_keys_key_array_91[] = {0x65,0x78,0x74,0x65,0x72,0x6e,};
|
||||||
u8 cpp_main_keys_key_array_82[] = {0x65,0x6e,0x75,0x6d,};
|
u8 cpp_main_keys_key_array_92[] = {0x6e,0x65,0x77,};
|
||||||
u8 cpp_main_keys_key_array_84[] = {0x6c,0x6f,0x6e,0x67,};
|
u8 cpp_main_keys_key_array_93[] = {0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,};
|
||||||
u8 cpp_main_keys_key_array_85[] = {0x75,0x6e,0x73,0x69,0x67,0x6e,0x65,0x64,};
|
u8 cpp_main_keys_key_array_95[] = {0x62,0x72,0x65,0x61,0x6b,};
|
||||||
u8 cpp_main_keys_key_array_89[] = {0x63,0x6f,0x6e,0x73,0x74,0x5f,0x63,0x61,0x73,0x74,};
|
u8 cpp_main_keys_key_array_96[] = {0x69,0x66,};
|
||||||
u8 cpp_main_keys_key_array_94[] = {0x70,0x72,0x6f,0x74,0x65,0x63,0x74,0x65,0x64,};
|
u8 cpp_main_keys_key_array_99[] = {0x63,0x6f,0x6e,0x73,0x74,};
|
||||||
u8 cpp_main_keys_key_array_95[] = {0x66,0x6f,0x72,};
|
u8 cpp_main_keys_key_array_100[] = {0x67,0x6f,0x74,0x6f,};
|
||||||
u8 cpp_main_keys_key_array_96[] = {0x73,0x69,0x7a,0x65,0x6f,0x66,};
|
u8 cpp_main_keys_key_array_101[] = {0x73,0x74,0x61,0x74,0x69,0x63,0x5f,0x61,0x73,0x73,0x65,0x72,0x74,};
|
||||||
u8 cpp_main_keys_key_array_97[] = {0x64,0x65,0x6c,0x65,0x74,0x65,};
|
u8 cpp_main_keys_key_array_102[] = {0x73,0x74,0x61,0x74,0x69,0x63,0x5f,0x63,0x61,0x73,0x74,};
|
||||||
u8 cpp_main_keys_key_array_104[] = {0x63,0x68,0x61,0x72,};
|
u8 cpp_main_keys_key_array_104[] = {0x75,0x73,0x69,0x6e,0x67,};
|
||||||
u8 cpp_main_keys_key_array_107[] = {0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,};
|
u8 cpp_main_keys_key_array_105[] = {0x65,0x6c,0x73,0x65,};
|
||||||
u8 cpp_main_keys_key_array_109[] = {0x75,0x73,0x69,0x6e,0x67,};
|
u8 cpp_main_keys_key_array_110[] = {0x70,0x72,0x69,0x76,0x61,0x74,0x65,};
|
||||||
u8 cpp_main_keys_key_array_111[] = {0x65,0x78,0x74,0x65,0x72,0x6e,};
|
u8 cpp_main_keys_key_array_112[] = {0x66,0x72,0x69,0x65,0x6e,0x64,};
|
||||||
u8 cpp_main_keys_key_array_112[] = {0x65,0x6c,0x73,0x65,};
|
u8 cpp_main_keys_key_array_113[] = {0x6e,0x61,0x6d,0x65,0x73,0x70,0x61,0x63,0x65,};
|
||||||
u8 cpp_main_keys_key_array_113[] = {0x74,0x72,0x75,0x65,};
|
u8 cpp_main_keys_key_array_114[] = {0x63,0x61,0x73,0x65,};
|
||||||
u8 cpp_main_keys_key_array_117[] = {0x72,0x65,0x74,0x75,0x72,0x6e,};
|
u8 cpp_main_keys_key_array_115[] = {0x73,0x74,0x72,0x75,0x63,0x74,};
|
||||||
u8 cpp_main_keys_key_array_119[] = {0x64,0x65,0x66,0x61,0x75,0x6c,0x74,};
|
u8 cpp_main_keys_key_array_118[] = {0x75,0x6e,0x73,0x69,0x67,0x6e,0x65,0x64,};
|
||||||
u8 cpp_main_keys_key_array_120[] = {0x73,0x74,0x61,0x74,0x69,0x63,0x5f,0x63,0x61,0x73,0x74,};
|
u8 cpp_main_keys_key_array_119[] = {0x73,0x69,0x7a,0x65,0x6f,0x66,};
|
||||||
String_Const_u8 cpp_main_keys_key_array[121] = {
|
String_Const_u8 cpp_main_keys_key_array[123] = {
|
||||||
|
{cpp_main_keys_key_array_0, 3},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_3, 5},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_5, 5},
|
{cpp_main_keys_key_array_5, 8},
|
||||||
{cpp_main_keys_key_array_6, 13},
|
{cpp_main_keys_key_array_6, 6},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_8, 12},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_10, 12},
|
{cpp_main_keys_key_array_9, 5},
|
||||||
{cpp_main_keys_key_array_11, 6},
|
{cpp_main_keys_key_array_10, 6},
|
||||||
|
{cpp_main_keys_key_array_11, 4},
|
||||||
|
{cpp_main_keys_key_array_12, 3},
|
||||||
|
{cpp_main_keys_key_array_13, 8},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_13, 3},
|
|
||||||
{cpp_main_keys_key_array_14, 4},
|
|
||||||
{cpp_main_keys_key_array_15, 3},
|
|
||||||
{cpp_main_keys_key_array_16, 8},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_18, 3},
|
{cpp_main_keys_key_array_16, 4},
|
||||||
|
{cpp_main_keys_key_array_17, 8},
|
||||||
|
{cpp_main_keys_key_array_18, 6},
|
||||||
|
{cpp_main_keys_key_array_19, 3},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_20, 6},
|
|
||||||
{cpp_main_keys_key_array_21, 7},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_23, 9},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_24, 6},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_25, 6},
|
{cpp_main_keys_key_array_24, 8},
|
||||||
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_26, 4},
|
{cpp_main_keys_key_array_26, 4},
|
||||||
{cpp_main_keys_key_array_27, 5},
|
|
||||||
{0, 0},
|
|
||||||
{cpp_main_keys_key_array_29, 4},
|
|
||||||
{cpp_main_keys_key_array_30, 2},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_33, 2},
|
{cpp_main_keys_key_array_29, 9},
|
||||||
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_31, 4},
|
||||||
|
{cpp_main_keys_key_array_32, 6},
|
||||||
|
{cpp_main_keys_key_array_33, 6},
|
||||||
|
{cpp_main_keys_key_array_34, 2},
|
||||||
|
{cpp_main_keys_key_array_35, 6},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_36, 4},
|
{cpp_main_keys_key_array_38, 6},
|
||||||
{cpp_main_keys_key_array_37, 8},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_40, 4},
|
{cpp_main_keys_key_array_41, 5},
|
||||||
{cpp_main_keys_key_array_41, 8},
|
|
||||||
{cpp_main_keys_key_array_42, 5},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_44, 3},
|
{cpp_main_keys_key_array_43, 5},
|
||||||
{cpp_main_keys_key_array_45, 6},
|
{cpp_main_keys_key_array_44, 12},
|
||||||
{cpp_main_keys_key_array_46, 8},
|
{cpp_main_keys_key_array_45, 5},
|
||||||
|
{cpp_main_keys_key_array_46, 4},
|
||||||
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_48, 7},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_49, 7},
|
{cpp_main_keys_key_array_51, 16},
|
||||||
{cpp_main_keys_key_array_50, 6},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_51, 8},
|
|
||||||
{cpp_main_keys_key_array_52, 7},
|
|
||||||
{cpp_main_keys_key_array_53, 8},
|
{cpp_main_keys_key_array_53, 8},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_55, 5},
|
||||||
|
{cpp_main_keys_key_array_56, 6},
|
||||||
|
{cpp_main_keys_key_array_57, 8},
|
||||||
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_59, 6},
|
||||||
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_61, 10},
|
||||||
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_63, 7},
|
||||||
|
{cpp_main_keys_key_array_64, 4},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_57, 6},
|
{cpp_main_keys_key_array_67, 5},
|
||||||
{cpp_main_keys_key_array_58, 5},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_59, 8},
|
{cpp_main_keys_key_array_69, 4},
|
||||||
|
{cpp_main_keys_key_array_70, 8},
|
||||||
|
{cpp_main_keys_key_array_71, 12},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_62, 8},
|
|
||||||
{cpp_main_keys_key_array_63, 6},
|
|
||||||
{cpp_main_keys_key_array_64, 6},
|
|
||||||
{cpp_main_keys_key_array_65, 5},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{cpp_main_keys_key_array_75, 6},
|
||||||
{cpp_main_keys_key_array_68, 5},
|
{cpp_main_keys_key_array_76, 8},
|
||||||
{cpp_main_keys_key_array_69, 7},
|
|
||||||
{cpp_main_keys_key_array_70, 5},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{cpp_main_keys_key_array_73, 5},
|
|
||||||
{cpp_main_keys_key_array_74, 7},
|
|
||||||
{cpp_main_keys_key_array_75, 16},
|
|
||||||
{cpp_main_keys_key_array_76, 6},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_79, 7},
|
{cpp_main_keys_key_array_79, 7},
|
||||||
{0, 0},
|
{cpp_main_keys_key_array_80, 3},
|
||||||
{0, 0},
|
{cpp_main_keys_key_array_81, 5},
|
||||||
{cpp_main_keys_key_array_82, 4},
|
{cpp_main_keys_key_array_82, 7},
|
||||||
{0, 0},
|
|
||||||
{cpp_main_keys_key_array_84, 4},
|
|
||||||
{cpp_main_keys_key_array_85, 8},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{cpp_main_keys_key_array_89, 10},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_94, 9},
|
{cpp_main_keys_key_array_87, 7},
|
||||||
{cpp_main_keys_key_array_95, 3},
|
{cpp_main_keys_key_array_88, 7},
|
||||||
{cpp_main_keys_key_array_96, 6},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_97, 6},
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_91, 6},
|
||||||
|
{cpp_main_keys_key_array_92, 3},
|
||||||
|
{cpp_main_keys_key_array_93, 8},
|
||||||
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_95, 5},
|
||||||
|
{cpp_main_keys_key_array_96, 2},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_99, 5},
|
||||||
|
{cpp_main_keys_key_array_100, 4},
|
||||||
|
{cpp_main_keys_key_array_101, 13},
|
||||||
|
{cpp_main_keys_key_array_102, 11},
|
||||||
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_104, 5},
|
||||||
|
{cpp_main_keys_key_array_105, 4},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_110, 7},
|
||||||
|
{0, 0},
|
||||||
|
{cpp_main_keys_key_array_112, 6},
|
||||||
|
{cpp_main_keys_key_array_113, 9},
|
||||||
|
{cpp_main_keys_key_array_114, 4},
|
||||||
|
{cpp_main_keys_key_array_115, 6},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_104, 4},
|
{cpp_main_keys_key_array_118, 8},
|
||||||
{0, 0},
|
{cpp_main_keys_key_array_119, 6},
|
||||||
{0, 0},
|
|
||||||
{cpp_main_keys_key_array_107, 8},
|
|
||||||
{0, 0},
|
|
||||||
{cpp_main_keys_key_array_109, 5},
|
|
||||||
{0, 0},
|
|
||||||
{cpp_main_keys_key_array_111, 6},
|
|
||||||
{cpp_main_keys_key_array_112, 4},
|
|
||||||
{cpp_main_keys_key_array_113, 4},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_main_keys_key_array_117, 6},
|
|
||||||
{0, 0},
|
|
||||||
{cpp_main_keys_key_array_119, 7},
|
|
||||||
{cpp_main_keys_key_array_120, 11},
|
|
||||||
};
|
};
|
||||||
Lexeme_Table_Value cpp_main_keys_value_array[121] = {
|
Lexeme_Table_Value cpp_main_keys_value_array[123] = {
|
||||||
|
{4, TokenCppKind_For},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{8, TokenCppKind_LiteralFalse},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Short},
|
|
||||||
{4, TokenCppKind_StaticAssert},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_ThreadLocal},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_DynamicCast},
|
|
||||||
{4, TokenCppKind_TypeID},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_New},
|
|
||||||
{4, TokenCppKind_Bool},
|
|
||||||
{4, TokenCppKind_Try},
|
|
||||||
{4, TokenCppKind_Operator},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Int},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Switch},
|
|
||||||
{4, TokenCppKind_AlignOf},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Namespace},
|
|
||||||
{4, TokenCppKind_Inline},
|
|
||||||
{4, TokenCppKind_Static},
|
|
||||||
{4, TokenCppKind_This},
|
|
||||||
{4, TokenCppKind_Break},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Case},
|
|
||||||
{4, TokenCppKind_If},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Do},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Goto},
|
|
||||||
{4, TokenCppKind_Explicit},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Void},
|
|
||||||
{4, TokenCppKind_Continue},
|
{4, TokenCppKind_Continue},
|
||||||
{4, TokenCppKind_Catch},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Asm},
|
|
||||||
{4, TokenCppKind_Signed},
|
|
||||||
{4, TokenCppKind_Volatile},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Private},
|
|
||||||
{4, TokenCppKind_Double},
|
|
||||||
{4, TokenCppKind_Typename},
|
|
||||||
{4, TokenCppKind_Virtual},
|
|
||||||
{4, TokenCppKind_NoExcept},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Public},
|
{4, TokenCppKind_Public},
|
||||||
{4, TokenCppKind_Class},
|
|
||||||
{4, TokenCppKind_DeclType},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_Template},
|
|
||||||
{4, TokenCppKind_Export},
|
|
||||||
{4, TokenCppKind_Friend},
|
|
||||||
{4, TokenCppKind_Const},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_While},
|
|
||||||
{4, TokenCppKind_Typedef},
|
|
||||||
{4, TokenCppKind_Float},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Union},
|
{4, TokenCppKind_Union},
|
||||||
{4, TokenCppKind_AlignAs},
|
{4, TokenCppKind_Inline},
|
||||||
{4, TokenCppKind_ReinterpretCast},
|
{4, TokenCppKind_Void},
|
||||||
{4, TokenCppKind_Struct},
|
{4, TokenCppKind_Asm},
|
||||||
|
{4, TokenCppKind_NoExcept},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_NullPtr},
|
{4, TokenCppKind_Bool},
|
||||||
|
{4, TokenCppKind_Register},
|
||||||
|
{4, TokenCppKind_Delete},
|
||||||
|
{4, TokenCppKind_Int},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Enum},
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Template},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Long},
|
{4, TokenCppKind_Long},
|
||||||
{4, TokenCppKind_Unsigned},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{4, TokenCppKind_ConstCast},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Protected},
|
{4, TokenCppKind_Protected},
|
||||||
{4, TokenCppKind_For},
|
|
||||||
{4, TokenCppKind_SizeOf},
|
|
||||||
{4, TokenCppKind_Delete},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Char},
|
{4, TokenCppKind_Char},
|
||||||
|
{4, TokenCppKind_Return},
|
||||||
|
{4, TokenCppKind_Signed},
|
||||||
|
{4, TokenCppKind_Do},
|
||||||
|
{4, TokenCppKind_Switch},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Register},
|
{4, TokenCppKind_Static},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Using},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Extern},
|
{4, TokenCppKind_Short},
|
||||||
{4, TokenCppKind_Else},
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Float},
|
||||||
|
{4, TokenCppKind_DynamicCast},
|
||||||
|
{8, TokenCppKind_LiteralFalse},
|
||||||
|
{4, TokenCppKind_This},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Virtual},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_ReinterpretCast},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_DeclType},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Class},
|
||||||
|
{4, TokenCppKind_TypeID},
|
||||||
|
{4, TokenCppKind_Operator},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Export},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_ConstCast},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_AlignAs},
|
||||||
{8, TokenCppKind_LiteralTrue},
|
{8, TokenCppKind_LiteralTrue},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Catch},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Enum},
|
||||||
|
{4, TokenCppKind_Typename},
|
||||||
|
{4, TokenCppKind_ThreadLocal},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Double},
|
||||||
|
{4, TokenCppKind_Explicit},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Return},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{4, TokenCppKind_Default},
|
{4, TokenCppKind_Default},
|
||||||
|
{4, TokenCppKind_Try},
|
||||||
|
{4, TokenCppKind_While},
|
||||||
|
{4, TokenCppKind_Typedef},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_NullPtr},
|
||||||
|
{4, TokenCppKind_AlignOf},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Extern},
|
||||||
|
{4, TokenCppKind_New},
|
||||||
|
{4, TokenCppKind_Volatile},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Break},
|
||||||
|
{4, TokenCppKind_If},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Const},
|
||||||
|
{4, TokenCppKind_Goto},
|
||||||
|
{4, TokenCppKind_StaticAssert},
|
||||||
{4, TokenCppKind_StaticCast},
|
{4, TokenCppKind_StaticCast},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Using},
|
||||||
|
{4, TokenCppKind_Else},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Private},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Friend},
|
||||||
|
{4, TokenCppKind_Namespace},
|
||||||
|
{4, TokenCppKind_Case},
|
||||||
|
{4, TokenCppKind_Struct},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{4, TokenCppKind_Unsigned},
|
||||||
|
{4, TokenCppKind_SizeOf},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
};
|
};
|
||||||
i32 cpp_main_keys_slot_count = 121;
|
i32 cpp_main_keys_slot_count = 123;
|
||||||
u64 cpp_main_keys_seed = 0xbe799f2fde8371d5;
|
u64 cpp_main_keys_seed = 0x9fc85f6cf0f1365f;
|
||||||
u64 cpp_pp_directives_hash_array[25] = {
|
u64 cpp_pp_directives_hash_array[25] = {
|
||||||
0x0000000000000000,0x7374aea13484b05f,0x0000000000000000,0x13df0688ba346a0b,
|
0x5814ac414307a82b,0x0000000000000000,0x0000000000000000,0x0000000000000000,
|
||||||
0x13df0688baa01c5b,0x0000000000000000,0x7608ddc2856c80e7,0x7608ddb7913d492b,
|
0x2e47508e7cd08f1f,0x5814ac4142edd6b7,0x2e47508e701ed6e5,0x0000000000000000,
|
||||||
0xa00a5f761251a671,0x7374abedc5e7bf23,0x0000000000000000,0x7608ddb7b08326a7,
|
0xfdb88a15dccc23db,0x0000000000000000,0x2e47508e7cc8ebdf,0xfdb88a17f1783521,
|
||||||
0x0000000000000000,0x0000000000000000,0x13df0688bc2f3331,0x0000000000000000,
|
0x0000000000000000,0x2e47508e7c97c1a7,0x5814ac4142edd355,0x0000000000000000,
|
||||||
0x7608ddc8a5840d1d,0x13df068884fd102b,0x0000000000000000,0xc7e053324abe568b,
|
0x0000000000000000,0x5ea0915b39dee58b,0x0000000000000000,0x5ea097966fd4a007,
|
||||||
0xa00a5f761208b767,0x0000000000000000,0x0000000000000000,0xa00a5f761251cfeb,
|
0x2e47508e702e571f,0x944103e5867e58b7,0x0000000000000000,0xfdb88af0fb725f2b,
|
||||||
0x13df0688bc39ad2b,
|
0xfdb88a15f2a7671f,
|
||||||
};
|
};
|
||||||
u8 cpp_pp_directives_key_array_1[] = {0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,};
|
u8 cpp_pp_directives_key_array_0[] = {0x6c,0x69,0x6e,0x65,};
|
||||||
u8 cpp_pp_directives_key_array_3[] = {0x65,0x6e,0x64,0x69,0x66,};
|
u8 cpp_pp_directives_key_array_4[] = {0x69,0x66,0x64,0x65,0x66,};
|
||||||
u8 cpp_pp_directives_key_array_4[] = {0x65,0x72,0x72,0x6f,0x72,};
|
u8 cpp_pp_directives_key_array_5[] = {0x65,0x6c,0x69,0x66,};
|
||||||
u8 cpp_pp_directives_key_array_6[] = {0x64,0x65,0x66,0x69,0x6e,0x65,};
|
u8 cpp_pp_directives_key_array_6[] = {0x75,0x73,0x69,0x6e,0x67,};
|
||||||
u8 cpp_pp_directives_key_array_7[] = {0x69,0x66,0x6e,0x64,0x65,0x66,};
|
u8 cpp_pp_directives_key_array_8[] = {0x69,0x6d,0x70,0x6f,0x72,0x74,};
|
||||||
u8 cpp_pp_directives_key_array_8[] = {0x65,0x6c,0x73,0x65,};
|
u8 cpp_pp_directives_key_array_10[] = {0x65,0x72,0x72,0x6f,0x72,};
|
||||||
u8 cpp_pp_directives_key_array_9[] = {0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,};
|
u8 cpp_pp_directives_key_array_11[] = {0x70,0x72,0x61,0x67,0x6d,0x61,};
|
||||||
u8 cpp_pp_directives_key_array_11[] = {0x69,0x6d,0x70,0x6f,0x72,0x74,};
|
u8 cpp_pp_directives_key_array_13[] = {0x65,0x6e,0x64,0x69,0x66,};
|
||||||
u8 cpp_pp_directives_key_array_14[] = {0x75,0x73,0x69,0x6e,0x67,};
|
u8 cpp_pp_directives_key_array_14[] = {0x65,0x6c,0x73,0x65,};
|
||||||
u8 cpp_pp_directives_key_array_16[] = {0x70,0x72,0x61,0x67,0x6d,0x61,};
|
u8 cpp_pp_directives_key_array_17[] = {0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,};
|
||||||
u8 cpp_pp_directives_key_array_17[] = {0x69,0x66,0x64,0x65,0x66,};
|
u8 cpp_pp_directives_key_array_19[] = {0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,};
|
||||||
u8 cpp_pp_directives_key_array_19[] = {0x69,0x66,};
|
u8 cpp_pp_directives_key_array_20[] = {0x75,0x6e,0x64,0x65,0x66,};
|
||||||
u8 cpp_pp_directives_key_array_20[] = {0x6c,0x69,0x6e,0x65,};
|
u8 cpp_pp_directives_key_array_21[] = {0x69,0x66,};
|
||||||
u8 cpp_pp_directives_key_array_23[] = {0x65,0x6c,0x69,0x66,};
|
u8 cpp_pp_directives_key_array_23[] = {0x64,0x65,0x66,0x69,0x6e,0x65,};
|
||||||
u8 cpp_pp_directives_key_array_24[] = {0x75,0x6e,0x64,0x65,0x66,};
|
u8 cpp_pp_directives_key_array_24[] = {0x69,0x66,0x6e,0x64,0x65,0x66,};
|
||||||
String_Const_u8 cpp_pp_directives_key_array[25] = {
|
String_Const_u8 cpp_pp_directives_key_array[25] = {
|
||||||
|
{cpp_pp_directives_key_array_0, 4},
|
||||||
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_pp_directives_key_array_1, 7},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_pp_directives_key_array_3, 5},
|
|
||||||
{cpp_pp_directives_key_array_4, 5},
|
{cpp_pp_directives_key_array_4, 5},
|
||||||
|
{cpp_pp_directives_key_array_5, 4},
|
||||||
|
{cpp_pp_directives_key_array_6, 5},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_pp_directives_key_array_6, 6},
|
{cpp_pp_directives_key_array_8, 6},
|
||||||
{cpp_pp_directives_key_array_7, 6},
|
|
||||||
{cpp_pp_directives_key_array_8, 4},
|
|
||||||
{cpp_pp_directives_key_array_9, 7},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
|
{cpp_pp_directives_key_array_10, 5},
|
||||||
{cpp_pp_directives_key_array_11, 6},
|
{cpp_pp_directives_key_array_11, 6},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{cpp_pp_directives_key_array_13, 5},
|
||||||
{cpp_pp_directives_key_array_14, 5},
|
{cpp_pp_directives_key_array_14, 4},
|
||||||
{0, 0},
|
|
||||||
{cpp_pp_directives_key_array_16, 6},
|
|
||||||
{cpp_pp_directives_key_array_17, 5},
|
|
||||||
{0, 0},
|
|
||||||
{cpp_pp_directives_key_array_19, 2},
|
|
||||||
{cpp_pp_directives_key_array_20, 4},
|
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{cpp_pp_directives_key_array_23, 4},
|
{cpp_pp_directives_key_array_17, 7},
|
||||||
{cpp_pp_directives_key_array_24, 5},
|
{0, 0},
|
||||||
|
{cpp_pp_directives_key_array_19, 7},
|
||||||
|
{cpp_pp_directives_key_array_20, 5},
|
||||||
|
{cpp_pp_directives_key_array_21, 2},
|
||||||
|
{0, 0},
|
||||||
|
{cpp_pp_directives_key_array_23, 6},
|
||||||
|
{cpp_pp_directives_key_array_24, 6},
|
||||||
};
|
};
|
||||||
Lexeme_Table_Value cpp_pp_directives_value_array[25] = {
|
Lexeme_Table_Value cpp_pp_directives_value_array[25] = {
|
||||||
{0, 0},
|
|
||||||
{5, TokenCppKind_PPInclude},
|
|
||||||
{0, 0},
|
|
||||||
{5, TokenCppKind_PPEndIf},
|
|
||||||
{5, TokenCppKind_PPError},
|
|
||||||
{0, 0},
|
|
||||||
{5, TokenCppKind_PPDefine},
|
|
||||||
{5, TokenCppKind_PPIfNDef},
|
|
||||||
{5, TokenCppKind_PPElse},
|
|
||||||
{5, TokenCppKind_PPVersion},
|
|
||||||
{0, 0},
|
|
||||||
{5, TokenCppKind_PPImport},
|
|
||||||
{0, 0},
|
|
||||||
{0, 0},
|
|
||||||
{5, TokenCppKind_PPUsing},
|
|
||||||
{0, 0},
|
|
||||||
{5, TokenCppKind_PPPragma},
|
|
||||||
{5, TokenCppKind_PPIfDef},
|
|
||||||
{0, 0},
|
|
||||||
{5, TokenCppKind_PPIf},
|
|
||||||
{5, TokenCppKind_PPLine},
|
{5, TokenCppKind_PPLine},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
{0, 0},
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{5, TokenCppKind_PPIfDef},
|
||||||
{5, TokenCppKind_PPElIf},
|
{5, TokenCppKind_PPElIf},
|
||||||
|
{5, TokenCppKind_PPUsing},
|
||||||
|
{0, 0},
|
||||||
|
{5, TokenCppKind_PPImport},
|
||||||
|
{0, 0},
|
||||||
|
{5, TokenCppKind_PPError},
|
||||||
|
{5, TokenCppKind_PPPragma},
|
||||||
|
{0, 0},
|
||||||
|
{5, TokenCppKind_PPEndIf},
|
||||||
|
{5, TokenCppKind_PPElse},
|
||||||
|
{0, 0},
|
||||||
|
{0, 0},
|
||||||
|
{5, TokenCppKind_PPInclude},
|
||||||
|
{0, 0},
|
||||||
|
{5, TokenCppKind_PPVersion},
|
||||||
{5, TokenCppKind_PPUndef},
|
{5, TokenCppKind_PPUndef},
|
||||||
|
{5, TokenCppKind_PPIf},
|
||||||
|
{0, 0},
|
||||||
|
{5, TokenCppKind_PPDefine},
|
||||||
|
{5, TokenCppKind_PPIfNDef},
|
||||||
};
|
};
|
||||||
i32 cpp_pp_directives_slot_count = 25;
|
i32 cpp_pp_directives_slot_count = 25;
|
||||||
u64 cpp_pp_directives_seed = 0xd17159c86f8daa32;
|
u64 cpp_pp_directives_seed = 0x299049c4d277a1a6;
|
||||||
u64 cpp_pp_keys_hash_array[2] = {
|
u64 cpp_pp_keys_hash_array[2] = {
|
||||||
0x0000000000000000,0x11c2628dcdcd8d85,
|
0x0000000000000000,0x127e6ba4196c8e41,
|
||||||
};
|
};
|
||||||
u8 cpp_pp_keys_key_array_1[] = {0x64,0x65,0x66,0x69,0x6e,0x65,0x64,};
|
u8 cpp_pp_keys_key_array_1[] = {0x64,0x65,0x66,0x69,0x6e,0x65,0x64,};
|
||||||
String_Const_u8 cpp_pp_keys_key_array[2] = {
|
String_Const_u8 cpp_pp_keys_key_array[2] = {
|
||||||
|
@ -483,7 +487,7 @@ Lexeme_Table_Value cpp_pp_keys_value_array[2] = {
|
||||||
{4, TokenCppKind_PPDefined},
|
{4, TokenCppKind_PPDefined},
|
||||||
};
|
};
|
||||||
i32 cpp_pp_keys_slot_count = 2;
|
i32 cpp_pp_keys_slot_count = 2;
|
||||||
u64 cpp_pp_keys_seed = 0x965fd683eb991685;
|
u64 cpp_pp_keys_seed = 0xf8fc2f6fefbdb6c1;
|
||||||
struct Lex_State_Cpp{
|
struct Lex_State_Cpp{
|
||||||
u32 flags_ZF0;
|
u32 flags_ZF0;
|
||||||
u32 flags_KF0;
|
u32 flags_KF0;
|
||||||
|
|
|
@ -13,6 +13,9 @@ vtable->load_library = system_load_library;
|
||||||
vtable->release_library = system_release_library;
|
vtable->release_library = system_release_library;
|
||||||
vtable->get_proc = system_get_proc;
|
vtable->get_proc = system_get_proc;
|
||||||
vtable->now_time = system_now_time;
|
vtable->now_time = system_now_time;
|
||||||
|
vtable->now_date_time_universal = system_now_date_time_universal;
|
||||||
|
vtable->local_date_time_from_universal = system_local_date_time_from_universal;
|
||||||
|
vtable->universal_date_time_from_local = system_universal_date_time_from_local;
|
||||||
vtable->wake_up_timer_create = system_wake_up_timer_create;
|
vtable->wake_up_timer_create = system_wake_up_timer_create;
|
||||||
vtable->wake_up_timer_release = system_wake_up_timer_release;
|
vtable->wake_up_timer_release = system_wake_up_timer_release;
|
||||||
vtable->wake_up_timer_set = system_wake_up_timer_set;
|
vtable->wake_up_timer_set = system_wake_up_timer_set;
|
||||||
|
@ -67,6 +70,9 @@ system_load_library = vtable->load_library;
|
||||||
system_release_library = vtable->release_library;
|
system_release_library = vtable->release_library;
|
||||||
system_get_proc = vtable->get_proc;
|
system_get_proc = vtable->get_proc;
|
||||||
system_now_time = vtable->now_time;
|
system_now_time = vtable->now_time;
|
||||||
|
system_now_date_time_universal = vtable->now_date_time_universal;
|
||||||
|
system_local_date_time_from_universal = vtable->local_date_time_from_universal;
|
||||||
|
system_universal_date_time_from_local = vtable->universal_date_time_from_local;
|
||||||
system_wake_up_timer_create = vtable->wake_up_timer_create;
|
system_wake_up_timer_create = vtable->wake_up_timer_create;
|
||||||
system_wake_up_timer_release = vtable->wake_up_timer_release;
|
system_wake_up_timer_release = vtable->wake_up_timer_release;
|
||||||
system_wake_up_timer_set = vtable->wake_up_timer_set;
|
system_wake_up_timer_set = vtable->wake_up_timer_set;
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
#define system_release_library_sig() b32 system_release_library(System_Library handle)
|
#define system_release_library_sig() b32 system_release_library(System_Library handle)
|
||||||
#define system_get_proc_sig() Void_Func* system_get_proc(System_Library handle, char* proc_name)
|
#define system_get_proc_sig() Void_Func* system_get_proc(System_Library handle, char* proc_name)
|
||||||
#define system_now_time_sig() u64 system_now_time(void)
|
#define system_now_time_sig() u64 system_now_time(void)
|
||||||
|
#define system_now_date_time_universal_sig() Date_Time system_now_date_time_universal(void)
|
||||||
|
#define system_local_date_time_from_universal_sig() Date_Time system_local_date_time_from_universal(Date_Time* date_time)
|
||||||
|
#define system_universal_date_time_from_local_sig() Date_Time system_universal_date_time_from_local(Date_Time* date_time)
|
||||||
#define system_wake_up_timer_create_sig() Plat_Handle system_wake_up_timer_create(void)
|
#define system_wake_up_timer_create_sig() Plat_Handle system_wake_up_timer_create(void)
|
||||||
#define system_wake_up_timer_release_sig() void system_wake_up_timer_release(Plat_Handle handle)
|
#define system_wake_up_timer_release_sig() void system_wake_up_timer_release(Plat_Handle handle)
|
||||||
#define system_wake_up_timer_set_sig() void system_wake_up_timer_set(Plat_Handle handle, u32 time_milliseconds)
|
#define system_wake_up_timer_set_sig() void system_wake_up_timer_set(Plat_Handle handle, u32 time_milliseconds)
|
||||||
|
@ -61,6 +64,9 @@ typedef b32 system_load_library_type(Arena* scratch, String_Const_u8 file_name,
|
||||||
typedef b32 system_release_library_type(System_Library handle);
|
typedef b32 system_release_library_type(System_Library handle);
|
||||||
typedef Void_Func* system_get_proc_type(System_Library handle, char* proc_name);
|
typedef Void_Func* system_get_proc_type(System_Library handle, char* proc_name);
|
||||||
typedef u64 system_now_time_type(void);
|
typedef u64 system_now_time_type(void);
|
||||||
|
typedef Date_Time system_now_date_time_universal_type(void);
|
||||||
|
typedef Date_Time system_local_date_time_from_universal_type(Date_Time* date_time);
|
||||||
|
typedef Date_Time system_universal_date_time_from_local_type(Date_Time* date_time);
|
||||||
typedef Plat_Handle system_wake_up_timer_create_type(void);
|
typedef Plat_Handle system_wake_up_timer_create_type(void);
|
||||||
typedef void system_wake_up_timer_release_type(Plat_Handle handle);
|
typedef void system_wake_up_timer_release_type(Plat_Handle handle);
|
||||||
typedef void system_wake_up_timer_set_type(Plat_Handle handle, u32 time_milliseconds);
|
typedef void system_wake_up_timer_set_type(Plat_Handle handle, u32 time_milliseconds);
|
||||||
|
@ -112,6 +118,9 @@ system_load_library_type *load_library;
|
||||||
system_release_library_type *release_library;
|
system_release_library_type *release_library;
|
||||||
system_get_proc_type *get_proc;
|
system_get_proc_type *get_proc;
|
||||||
system_now_time_type *now_time;
|
system_now_time_type *now_time;
|
||||||
|
system_now_date_time_universal_type *now_date_time_universal;
|
||||||
|
system_local_date_time_from_universal_type *local_date_time_from_universal;
|
||||||
|
system_universal_date_time_from_local_type *universal_date_time_from_local;
|
||||||
system_wake_up_timer_create_type *wake_up_timer_create;
|
system_wake_up_timer_create_type *wake_up_timer_create;
|
||||||
system_wake_up_timer_release_type *wake_up_timer_release;
|
system_wake_up_timer_release_type *wake_up_timer_release;
|
||||||
system_wake_up_timer_set_type *wake_up_timer_set;
|
system_wake_up_timer_set_type *wake_up_timer_set;
|
||||||
|
@ -164,6 +173,9 @@ internal b32 system_load_library(Arena* scratch, String_Const_u8 file_name, Syst
|
||||||
internal b32 system_release_library(System_Library handle);
|
internal b32 system_release_library(System_Library handle);
|
||||||
internal Void_Func* system_get_proc(System_Library handle, char* proc_name);
|
internal Void_Func* system_get_proc(System_Library handle, char* proc_name);
|
||||||
internal u64 system_now_time(void);
|
internal u64 system_now_time(void);
|
||||||
|
internal Date_Time system_now_date_time_universal(void);
|
||||||
|
internal Date_Time system_local_date_time_from_universal(Date_Time* date_time);
|
||||||
|
internal Date_Time system_universal_date_time_from_local(Date_Time* date_time);
|
||||||
internal Plat_Handle system_wake_up_timer_create(void);
|
internal Plat_Handle system_wake_up_timer_create(void);
|
||||||
internal void system_wake_up_timer_release(Plat_Handle handle);
|
internal void system_wake_up_timer_release(Plat_Handle handle);
|
||||||
internal void system_wake_up_timer_set(Plat_Handle handle, u32 time_milliseconds);
|
internal void system_wake_up_timer_set(Plat_Handle handle, u32 time_milliseconds);
|
||||||
|
@ -216,6 +228,9 @@ global system_load_library_type *system_load_library = 0;
|
||||||
global system_release_library_type *system_release_library = 0;
|
global system_release_library_type *system_release_library = 0;
|
||||||
global system_get_proc_type *system_get_proc = 0;
|
global system_get_proc_type *system_get_proc = 0;
|
||||||
global system_now_time_type *system_now_time = 0;
|
global system_now_time_type *system_now_time = 0;
|
||||||
|
global system_now_date_time_universal_type *system_now_date_time_universal = 0;
|
||||||
|
global system_local_date_time_from_universal_type *system_local_date_time_from_universal = 0;
|
||||||
|
global system_universal_date_time_from_local_type *system_universal_date_time_from_local = 0;
|
||||||
global system_wake_up_timer_create_type *system_wake_up_timer_create = 0;
|
global system_wake_up_timer_create_type *system_wake_up_timer_create = 0;
|
||||||
global system_wake_up_timer_release_type *system_wake_up_timer_release = 0;
|
global system_wake_up_timer_release_type *system_wake_up_timer_release = 0;
|
||||||
global system_wake_up_timer_set_type *system_wake_up_timer_set = 0;
|
global system_wake_up_timer_set_type *system_wake_up_timer_set = 0;
|
||||||
|
|
|
@ -67,6 +67,18 @@ API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("now_ti
|
||||||
(void)call;
|
(void)call;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("now_date_time_universal"), string_u8_litexpr("Date_Time"), string_u8_litexpr(""));
|
||||||
|
(void)call;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("local_date_time_from_universal"), string_u8_litexpr("Date_Time"), string_u8_litexpr(""));
|
||||||
|
api_param(arena, call, "Date_Time*", "date_time");
|
||||||
|
}
|
||||||
|
{
|
||||||
|
API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("universal_date_time_from_local"), string_u8_litexpr("Date_Time"), string_u8_litexpr(""));
|
||||||
|
api_param(arena, call, "Date_Time*", "date_time");
|
||||||
|
}
|
||||||
|
{
|
||||||
API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("wake_up_timer_create"), string_u8_litexpr("Plat_Handle"), string_u8_litexpr(""));
|
API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("wake_up_timer_create"), string_u8_litexpr("Plat_Handle"), string_u8_litexpr(""));
|
||||||
(void)call;
|
(void)call;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,9 @@ api(system) function b32 load_library(Arena* scratch, String_Const_u8 file_name,
|
||||||
api(system) function b32 release_library(System_Library handle);
|
api(system) function b32 release_library(System_Library handle);
|
||||||
api(system) function Void_Func* get_proc(System_Library handle, char* proc_name);
|
api(system) function Void_Func* get_proc(System_Library handle, char* proc_name);
|
||||||
api(system) function u64 now_time(void);
|
api(system) function u64 now_time(void);
|
||||||
|
api(system) function Date_Time now_date_time_universal(void);
|
||||||
|
api(system) function Date_Time local_date_time_from_universal(Date_Time* date_time);
|
||||||
|
api(system) function Date_Time universal_date_time_from_local(Date_Time* date_time);
|
||||||
api(system) function Plat_Handle wake_up_timer_create(void);
|
api(system) function Plat_Handle wake_up_timer_create(void);
|
||||||
api(system) function void wake_up_timer_release(Plat_Handle handle);
|
api(system) function void wake_up_timer_release(Plat_Handle handle);
|
||||||
api(system) function void wake_up_timer_set(Plat_Handle handle, u32 time_milliseconds);
|
api(system) function void wake_up_timer_set(Plat_Handle handle, u32 time_milliseconds);
|
||||||
|
|
|
@ -149,7 +149,7 @@ struct Linux_Memory_Tracker_Node {
|
||||||
|
|
||||||
struct Linux_Vars {
|
struct Linux_Vars {
|
||||||
Thread_Context tctx;
|
Thread_Context tctx;
|
||||||
Arena *frame_arena;
|
Arena frame_arena;
|
||||||
|
|
||||||
Display* dpy;
|
Display* dpy;
|
||||||
Window win;
|
Window win;
|
||||||
|
@ -184,7 +184,7 @@ struct Linux_Vars {
|
||||||
Linux_Memory_Tracker_Node* memory_tracker_tail;
|
Linux_Memory_Tracker_Node* memory_tracker_tail;
|
||||||
int memory_tracker_count;
|
int memory_tracker_count;
|
||||||
|
|
||||||
Arena* clipboard_arena;
|
Arena clipboard_arena;
|
||||||
String_Const_u8 clipboard_contents;
|
String_Const_u8 clipboard_contents;
|
||||||
b32 received_new_clipboard;
|
b32 received_new_clipboard;
|
||||||
b32 clipboard_catch_all;
|
b32 clipboard_catch_all;
|
||||||
|
@ -611,7 +611,7 @@ linux_find_font(Face_Description* desc) {
|
||||||
FcPatternGetString(font, FC_FILE, 0, &filename);
|
FcPatternGetString(font, FC_FILE, 0, &filename);
|
||||||
if(filename) {
|
if(filename) {
|
||||||
LINUX_FN_DEBUG("FONTCONFIG FILENAME = %s\n", filename);
|
LINUX_FN_DEBUG("FONTCONFIG FILENAME = %s\n", filename);
|
||||||
result.font.file_name = push_u8_stringf(linuxvars.frame_arena, "%s", filename);
|
result.font.file_name = push_u8_stringf(&linuxvars.frame_arena, "%s", filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
FcPatternDestroy(font);
|
FcPatternDestroy(font);
|
||||||
|
@ -1288,8 +1288,8 @@ linux_clipboard_recv(XSelectionEvent* ev) {
|
||||||
Scratch_Block scratch(&linuxvars.tctx);
|
Scratch_Block scratch(&linuxvars.tctx);
|
||||||
String_Const_u8 clip = linux_clipboard_recv(scratch);
|
String_Const_u8 clip = linux_clipboard_recv(scratch);
|
||||||
if (clip.size > 0){
|
if (clip.size > 0){
|
||||||
linalloc_clear(linuxvars.clipboard_arena);
|
linalloc_clear(&linuxvars.clipboard_arena);
|
||||||
linuxvars.clipboard_contents = push_string_copy(linuxvars.clipboard_arena, clip);
|
linuxvars.clipboard_contents = push_string_copy(&linuxvars.clipboard_arena, clip);
|
||||||
linuxvars.received_new_clipboard = true;
|
linuxvars.received_new_clipboard = true;
|
||||||
linux_schedule_step();
|
linux_schedule_step();
|
||||||
}
|
}
|
||||||
|
@ -1305,8 +1305,8 @@ internal void
|
||||||
system_post_clipboard(String_Const_u8 str, i32 index){
|
system_post_clipboard(String_Const_u8 str, i32 index){
|
||||||
// TODO(inso): index?
|
// TODO(inso): index?
|
||||||
//LINUX_FN_DEBUG("%.*s", string_expand(str));
|
//LINUX_FN_DEBUG("%.*s", string_expand(str));
|
||||||
linalloc_clear(linuxvars.clipboard_arena);
|
linalloc_clear(&linuxvars.clipboard_arena);
|
||||||
linuxvars.clipboard_contents = push_u8_stringf(linuxvars.clipboard_arena, "%.*s", str.size, str.str);
|
linuxvars.clipboard_contents = push_u8_stringf(&linuxvars.clipboard_arena, "%.*s", str.size, str.str);
|
||||||
XSetSelectionOwner(linuxvars.dpy, linuxvars.atom_CLIPBOARD, linuxvars.win, CurrentTime);
|
XSetSelectionOwner(linuxvars.dpy, linuxvars.atom_CLIPBOARD, linuxvars.win, CurrentTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1387,17 +1387,17 @@ linux_handle_x11_events() {
|
||||||
Input_Event* key_event = NULL;
|
Input_Event* key_event = NULL;
|
||||||
if(key) {
|
if(key) {
|
||||||
add_modifier(mods, key);
|
add_modifier(mods, key);
|
||||||
key_event = push_input_event(linuxvars.frame_arena, &linuxvars.input.trans.event_list);
|
key_event = push_input_event(&linuxvars.frame_arena, &linuxvars.input.trans.event_list);
|
||||||
key_event->kind = InputEventKind_KeyStroke;
|
key_event->kind = InputEventKind_KeyStroke;
|
||||||
key_event->key.code = key;
|
key_event->key.code = key;
|
||||||
key_event->key.modifiers = copy_modifier_set(linuxvars.frame_arena, mods);
|
key_event->key.modifiers = copy_modifier_set(&linuxvars.frame_arena, mods);
|
||||||
}
|
}
|
||||||
|
|
||||||
Input_Event* text_event = NULL;
|
Input_Event* text_event = NULL;
|
||||||
if(status == XLookupChars || status == XLookupBoth) {
|
if(status == XLookupChars || status == XLookupBoth) {
|
||||||
String_Const_u8 str = linux_filter_text(linuxvars.frame_arena, buf, len);
|
String_Const_u8 str = linux_filter_text(&linuxvars.frame_arena, buf, len);
|
||||||
if(str.size) {
|
if(str.size) {
|
||||||
text_event = push_input_event(linuxvars.frame_arena, &linuxvars.input.trans.event_list);
|
text_event = push_input_event(&linuxvars.frame_arena, &linuxvars.input.trans.event_list);
|
||||||
text_event->kind = InputEventKind_TextInsert;
|
text_event->kind = InputEventKind_TextInsert;
|
||||||
text_event->text.string = str;
|
text_event->text.string = str;
|
||||||
}
|
}
|
||||||
|
@ -1425,10 +1425,10 @@ linux_handle_x11_events() {
|
||||||
Input_Event* key_event = NULL;
|
Input_Event* key_event = NULL;
|
||||||
if(key) {
|
if(key) {
|
||||||
remove_modifier(mods, key);
|
remove_modifier(mods, key);
|
||||||
key_event = push_input_event(linuxvars.frame_arena, &linuxvars.input.trans.event_list);
|
key_event = push_input_event(&linuxvars.frame_arena, &linuxvars.input.trans.event_list);
|
||||||
key_event->kind = InputEventKind_KeyRelease;
|
key_event->kind = InputEventKind_KeyRelease;
|
||||||
key_event->key.code = key;
|
key_event->key.code = key;
|
||||||
key_event->key.modifiers = copy_modifier_set(linuxvars.frame_arena, mods);
|
key_event->key.modifiers = copy_modifier_set(&linuxvars.frame_arena, mods);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
@ -1545,7 +1545,7 @@ linux_handle_x11_events() {
|
||||||
|
|
||||||
case SelectionClear: {
|
case SelectionClear: {
|
||||||
if(event.xselectionclear.selection == linuxvars.atom_CLIPBOARD) {
|
if(event.xselectionclear.selection == linuxvars.atom_CLIPBOARD) {
|
||||||
linalloc_clear(linuxvars.clipboard_arena);
|
linalloc_clear(&linuxvars.clipboard_arena);
|
||||||
block_zero_struct(&linuxvars.clipboard_contents);
|
block_zero_struct(&linuxvars.clipboard_contents);
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
@ -1654,8 +1654,8 @@ main(int argc, char **argv){
|
||||||
font_api_fill_vtable(&font_vtable);
|
font_api_fill_vtable(&font_vtable);
|
||||||
|
|
||||||
// NOTE(allen): memory
|
// NOTE(allen): memory
|
||||||
linuxvars.frame_arena = reserve_arena(&linuxvars.tctx);
|
linuxvars.frame_arena = make_arena_system();
|
||||||
linuxvars.clipboard_arena = reserve_arena(&linuxvars.tctx);
|
linuxvars.clipboard_arena = make_arena_system();
|
||||||
render_target.arena = make_arena_system(KB(256));
|
render_target.arena = make_arena_system(KB(256));
|
||||||
|
|
||||||
linuxvars.fontconfig = FcInitLoadConfigAndFonts();
|
linuxvars.fontconfig = FcInitLoadConfigAndFonts();
|
||||||
|
@ -1676,7 +1676,7 @@ main(int argc, char **argv){
|
||||||
App_Functions app = {};
|
App_Functions app = {};
|
||||||
{
|
{
|
||||||
App_Get_Functions *get_funcs = 0;
|
App_Get_Functions *get_funcs = 0;
|
||||||
Scratch_Block scratch(&linuxvars.tctx, Scratch_Share);
|
Scratch_Block scratch(&linuxvars.tctx);
|
||||||
Path_Search_List search_list = {};
|
Path_Search_List search_list = {};
|
||||||
search_list_add_system_path(scratch, &search_list, SystemPath_Binary);
|
search_list_add_system_path(scratch, &search_list, SystemPath_Binary);
|
||||||
|
|
||||||
|
@ -1707,7 +1707,7 @@ main(int argc, char **argv){
|
||||||
Plat_Settings plat_settings = {};
|
Plat_Settings plat_settings = {};
|
||||||
void *base_ptr = 0;
|
void *base_ptr = 0;
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(&linuxvars.tctx, Scratch_Share);
|
Scratch_Block scratch(&linuxvars.tctx);
|
||||||
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
||||||
|
|
||||||
char **files = 0;
|
char **files = 0;
|
||||||
|
@ -1789,7 +1789,7 @@ main(int argc, char **argv){
|
||||||
|
|
||||||
// app init
|
// app init
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(&linuxvars.tctx, Scratch_Share);
|
Scratch_Block scratch(&linuxvars.tctx);
|
||||||
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
||||||
app.init(&linuxvars.tctx, &render_target, base_ptr, curdir, custom);
|
app.init(&linuxvars.tctx, &render_target, base_ptr, curdir, custom);
|
||||||
}
|
}
|
||||||
|
@ -1893,7 +1893,7 @@ main(int argc, char **argv){
|
||||||
|
|
||||||
first_step = false;
|
first_step = false;
|
||||||
|
|
||||||
linalloc_clear(linuxvars.frame_arena);
|
linalloc_clear(&linuxvars.frame_arena);
|
||||||
block_zero_struct(&linuxvars.input.trans);
|
block_zero_struct(&linuxvars.input.trans);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -272,6 +272,58 @@ system_now_time(void){
|
||||||
return linux_us_from_timespec(time);
|
return linux_us_from_timespec(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function void
|
||||||
|
linux_date_time_from_tm(Date_Time *out, struct tm *in){
|
||||||
|
out->year = in->tm_year + 1900;
|
||||||
|
out->mon = in->tm_mon;
|
||||||
|
out->day = in->tm_mday - 1;
|
||||||
|
out->hour = in->tm_hour;
|
||||||
|
out->min = in->tm_min;
|
||||||
|
out->sec = in->tm_sec;
|
||||||
|
out->msec = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function void
|
||||||
|
linux_tm_from_date_time(struct tm *out, Date_Time *in){
|
||||||
|
out->tm_year = in->year - 1900;
|
||||||
|
out->tm_mon = in->mon;
|
||||||
|
out->tm_mday = in->day + 1;
|
||||||
|
out->tm_hour = in->hour;
|
||||||
|
out->tm_min = in->min;
|
||||||
|
out->tm_sec = in->sec;
|
||||||
|
}
|
||||||
|
|
||||||
|
function
|
||||||
|
system_now_date_time_universal_sig(){
|
||||||
|
time_t now_time = time(0);
|
||||||
|
struct tm *now_tm = gmtime(&now_time);
|
||||||
|
Date_Time result = {};
|
||||||
|
linux_date_time_from_tm(&result, now_tm);
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
function
|
||||||
|
system_local_date_time_from_universal_sig(){
|
||||||
|
struct tm univ_tm = {};
|
||||||
|
linux_tm_from_date_time(&univ_tm, date_time);
|
||||||
|
time_t utc_time = timegm(&univ_tm);
|
||||||
|
struct tm *local_tm = localtime(&utc_time);
|
||||||
|
Date_Time result = {};
|
||||||
|
linux_date_time_from_tm(&result, local_tm);
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
function
|
||||||
|
system_universal_date_time_from_local_sig(){
|
||||||
|
struct tm local_tm = {};
|
||||||
|
linux_tm_from_date_time(&local_tm, date_time);
|
||||||
|
time_t loc_time = timelocal(&local_tm);
|
||||||
|
struct tm *utc_tm = gmtime(&loc_time);
|
||||||
|
Date_Time result = {};
|
||||||
|
linux_date_time_from_tm(&result, utc_tm);
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
internal Plat_Handle
|
internal Plat_Handle
|
||||||
system_wake_up_timer_create(void){
|
system_wake_up_timer_create(void){
|
||||||
LINUX_FN_DEBUG();
|
LINUX_FN_DEBUG();
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
#include <sys/syslimits.h> // NOTE(yuval): Used for PATH_MAX
|
#include <sys/syslimits.h> // NOTE(yuval): Used for PATH_MAX
|
||||||
|
|
||||||
#include <stdlib.h> // NOTE(yuval): Used for free
|
#include <stdlib.h> // NOTE(yuval): Used for free
|
||||||
|
#include <time.h> // NOTE(allen): I don't know a better way to get Date_Time data; replace if there is a Mac low-level option time.h doesn't give milliseconds
|
||||||
|
|
||||||
#define function static
|
#define function static
|
||||||
#define internal static
|
#define internal static
|
||||||
|
@ -174,7 +175,7 @@ struct Mac_Vars {
|
||||||
|
|
||||||
Thread_Context *tctx;
|
Thread_Context *tctx;
|
||||||
|
|
||||||
Arena *frame_arena;
|
Arena frame_arena;
|
||||||
Input_Event *active_key_stroke;
|
Input_Event *active_key_stroke;
|
||||||
Input_Event *active_text_input;
|
Input_Event *active_text_input;
|
||||||
Mac_Input_Chunk input_chunk;
|
Mac_Input_Chunk input_chunk;
|
||||||
|
@ -477,6 +478,23 @@ mac_keycode_init(void){
|
||||||
keycode_lookup_table[kVK_F14] = KeyCode_F14;
|
keycode_lookup_table[kVK_F14] = KeyCode_F14;
|
||||||
keycode_lookup_table[kVK_F15] = KeyCode_F15;
|
keycode_lookup_table[kVK_F15] = KeyCode_F15;
|
||||||
keycode_lookup_table[kVK_F16] = KeyCode_F16;
|
keycode_lookup_table[kVK_F16] = KeyCode_F16;
|
||||||
|
|
||||||
|
keycode_lookup_table[kVK_ANSI_Keypad0] = KeyCode_NumPad0;
|
||||||
|
keycode_lookup_table[kVK_ANSI_Keypad1] = KeyCode_NumPad1;
|
||||||
|
keycode_lookup_table[kVK_ANSI_Keypad2] = KeyCode_NumPad2;
|
||||||
|
keycode_lookup_table[kVK_ANSI_Keypad3] = KeyCode_NumPad3;
|
||||||
|
keycode_lookup_table[kVK_ANSI_Keypad4] = KeyCode_NumPad4;
|
||||||
|
keycode_lookup_table[kVK_ANSI_Keypad5] = KeyCode_NumPad5;
|
||||||
|
keycode_lookup_table[kVK_ANSI_Keypad6] = KeyCode_NumPad6;
|
||||||
|
keycode_lookup_table[kVK_ANSI_Keypad7] = KeyCode_NumPad7;
|
||||||
|
keycode_lookup_table[kVK_ANSI_Keypad8] = KeyCode_NumPad8;
|
||||||
|
keycode_lookup_table[kVK_ANSI_Keypad9] = KeyCode_NumPad9;
|
||||||
|
|
||||||
|
keycode_lookup_table[kVK_ANSI_KeypadMultiply] = KeyCode_NumPadStar;
|
||||||
|
keycode_lookup_table[kVK_ANSI_KeypadPlus] = KeyCode_NumPadPlus;
|
||||||
|
keycode_lookup_table[kVK_ANSI_KeypadMinus] = KeyCode_NumPadMinus;
|
||||||
|
keycode_lookup_table[kVK_ANSI_KeypadDecimal] = KeyCode_NumPadDot;
|
||||||
|
keycode_lookup_table[kVK_ANSI_KeypadDivide] = KeyCode_NumPadSlash;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
@ -872,7 +890,7 @@ mac_toggle_fullscreen(void){
|
||||||
MacProfileScope("Cleanup"){
|
MacProfileScope("Cleanup"){
|
||||||
mac_vars.first = false;
|
mac_vars.first = false;
|
||||||
|
|
||||||
linalloc_clear(mac_vars.frame_arena);
|
linalloc_clear(&mac_vars.frame_arena);
|
||||||
|
|
||||||
// NOTE(yuval): Release the global frame mutex until the next drawRect call
|
// NOTE(yuval): Release the global frame mutex until the next drawRect call
|
||||||
system_mutex_release(mac_vars.global_frame_mutex);
|
system_mutex_release(mac_vars.global_frame_mutex);
|
||||||
|
@ -914,9 +932,9 @@ mac_toggle_fullscreen(void){
|
||||||
// NOTE(yuval): Check for a valid text input
|
// NOTE(yuval): Check for a valid text input
|
||||||
if ((c > 127) || ((' ' <= c) && (c <= '~')) || (c == '\t') || (c == '\n') || (c == '\r')){
|
if ((c > 127) || ((' ' <= c) && (c <= '~')) || (c == '\t') || (c == '\n') || (c == '\r')){
|
||||||
String_Const_u16 str_16 = SCu16((u16*)&c, 1);
|
String_Const_u16 str_16 = SCu16((u16*)&c, 1);
|
||||||
String_Const_u8 str_8 = string_u8_from_string_u16(mac_vars.frame_arena, str_16).string;
|
String_Const_u8 str_8 = string_u8_from_string_u16(&mac_vars.frame_arena, str_16).string;
|
||||||
|
|
||||||
Input_Event *event = push_input_event(mac_vars.frame_arena, &mac_vars.input_chunk.trans.event_list);
|
Input_Event *event = push_input_event(&mac_vars.frame_arena, &mac_vars.input_chunk.trans.event_list);
|
||||||
event->kind = InputEventKind_TextInsert;
|
event->kind = InputEventKind_TextInsert;
|
||||||
event->text.string = str_8;
|
event->text.string = str_8;
|
||||||
event->text.next_text = 0;
|
event->text.next_text = 0;
|
||||||
|
@ -1066,10 +1084,10 @@ mac_toggle_fullscreen(void){
|
||||||
if (key != 0){
|
if (key != 0){
|
||||||
add_modifier(mods, key);
|
add_modifier(mods, key);
|
||||||
|
|
||||||
Input_Event *event = push_input_event(mac_vars.frame_arena, &mac_vars.input_chunk.trans.event_list);
|
Input_Event *event = push_input_event(&mac_vars.frame_arena, &mac_vars.input_chunk.trans.event_list);
|
||||||
event->kind = InputEventKind_KeyStroke;
|
event->kind = InputEventKind_KeyStroke;
|
||||||
event->key.code = key;
|
event->key.code = key;
|
||||||
event->key.modifiers = copy_modifier_set(mac_vars.frame_arena, mods);
|
event->key.modifiers = copy_modifier_set(&mac_vars.frame_arena, mods);
|
||||||
|
|
||||||
mac_vars.active_key_stroke = event;
|
mac_vars.active_key_stroke = event;
|
||||||
|
|
||||||
|
@ -1080,10 +1098,10 @@ mac_toggle_fullscreen(void){
|
||||||
mac_vars.active_text_input = 0;
|
mac_vars.active_text_input = 0;
|
||||||
|
|
||||||
if (key != 0){
|
if (key != 0){
|
||||||
Input_Event *event = push_input_event(mac_vars.frame_arena, &mac_vars.input_chunk.trans.event_list);
|
Input_Event *event = push_input_event(&mac_vars.frame_arena, &mac_vars.input_chunk.trans.event_list);
|
||||||
event->kind = InputEventKind_KeyRelease;
|
event->kind = InputEventKind_KeyRelease;
|
||||||
event->key.code = key;
|
event->key.code = key;
|
||||||
event->key.modifiers = copy_modifier_set(mac_vars.frame_arena, mods);
|
event->key.modifiers = copy_modifier_set(&mac_vars.frame_arena, mods);
|
||||||
|
|
||||||
remove_modifier(mods, key);
|
remove_modifier(mods, key);
|
||||||
}
|
}
|
||||||
|
@ -1145,7 +1163,7 @@ main(int arg_count, char **args){
|
||||||
font_api_fill_vtable(&font_vtable);
|
font_api_fill_vtable(&font_vtable);
|
||||||
|
|
||||||
// NOTE(yuval): Memory
|
// NOTE(yuval): Memory
|
||||||
mac_vars.frame_arena = reserve_arena(mac_vars.tctx);
|
mac_vars.frame_arena = make_arena_system();
|
||||||
target.arena = make_arena_system(KB(256));
|
target.arena = make_arena_system(KB(256));
|
||||||
|
|
||||||
dll_init_sentinel(&mac_vars.free_mac_objects);
|
dll_init_sentinel(&mac_vars.free_mac_objects);
|
||||||
|
@ -1167,7 +1185,7 @@ main(int arg_count, char **args){
|
||||||
System_Library core_library = {};
|
System_Library core_library = {};
|
||||||
{
|
{
|
||||||
App_Get_Functions *get_funcs = 0;
|
App_Get_Functions *get_funcs = 0;
|
||||||
Scratch_Block scratch(mac_vars.tctx, Scratch_Share);
|
Scratch_Block scratch(mac_vars.tctx);
|
||||||
Path_Search_List search_list = {};
|
Path_Search_List search_list = {};
|
||||||
search_list_add_system_path(scratch, &search_list, SystemPath_Binary);
|
search_list_add_system_path(scratch, &search_list, SystemPath_Binary);
|
||||||
|
|
||||||
|
@ -1196,7 +1214,7 @@ main(int arg_count, char **args){
|
||||||
Plat_Settings plat_settings = {};
|
Plat_Settings plat_settings = {};
|
||||||
mac_vars.base_ptr = 0;
|
mac_vars.base_ptr = 0;
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(mac_vars.tctx, Scratch_Share);
|
Scratch_Block scratch(mac_vars.tctx);
|
||||||
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
||||||
curdir = string_mod_replace_character(curdir, '\\', '/');
|
curdir = string_mod_replace_character(curdir, '\\', '/');
|
||||||
char **files = 0;
|
char **files = 0;
|
||||||
|
@ -1223,7 +1241,7 @@ main(int arg_count, char **args){
|
||||||
char custom_fail_version_msg[] = "Failed to load custom code due to missing version information or a version mismatch. Try rebuilding with buildsuper.";
|
char custom_fail_version_msg[] = "Failed to load custom code due to missing version information or a version mismatch. Try rebuilding with buildsuper.";
|
||||||
char custom_fail_init_apis[] = "Failed to load custom code due to missing 'init_apis' symbol. Try rebuilding with buildsuper";
|
char custom_fail_init_apis[] = "Failed to load custom code due to missing 'init_apis' symbol. Try rebuilding with buildsuper";
|
||||||
|
|
||||||
Scratch_Block scratch(mac_vars.tctx, Scratch_Share);
|
Scratch_Block scratch(mac_vars.tctx);
|
||||||
String_Const_u8 default_file_name = string_u8_litexpr("custom_4coder.so");
|
String_Const_u8 default_file_name = string_u8_litexpr("custom_4coder.so");
|
||||||
Path_Search_List search_list = {};
|
Path_Search_List search_list = {};
|
||||||
search_list_add_system_path(scratch, &search_list, SystemPath_CurrentDirectory);
|
search_list_add_system_path(scratch, &search_list, SystemPath_CurrentDirectory);
|
||||||
|
@ -1357,7 +1375,7 @@ main(int arg_count, char **args){
|
||||||
//
|
//
|
||||||
|
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(mac_vars.tctx, Scratch_Share);
|
Scratch_Block scratch(mac_vars.tctx);
|
||||||
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
||||||
curdir = string_mod_replace_character(curdir, '\\', '/');
|
curdir = string_mod_replace_character(curdir, '\\', '/');
|
||||||
app.init(mac_vars.tctx, &target, mac_vars.base_ptr, curdir, custom);
|
app.init(mac_vars.tctx, &target, mac_vars.base_ptr, curdir, custom);
|
||||||
|
|
|
@ -370,6 +370,58 @@ system_now_time_sig(){
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function void
|
||||||
|
mac_date_time_from_tm(Date_Time *out, struct tm *in){
|
||||||
|
out->year = in->tm_year + 1900;
|
||||||
|
out->mon = in->tm_mon;
|
||||||
|
out->day = in->tm_mday - 1;
|
||||||
|
out->hour = in->tm_hour;
|
||||||
|
out->min = in->tm_min;
|
||||||
|
out->sec = in->tm_sec;
|
||||||
|
out->msec = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
function void
|
||||||
|
mac_tm_from_date_time(struct tm *out, Date_Time *in){
|
||||||
|
out->tm_year = in->year - 1900;
|
||||||
|
out->tm_mon = in->mon;
|
||||||
|
out->tm_mday = in->day + 1;
|
||||||
|
out->tm_hour = in->hour;
|
||||||
|
out->tm_min = in->min;
|
||||||
|
out->tm_sec = in->sec;
|
||||||
|
}
|
||||||
|
|
||||||
|
function
|
||||||
|
system_now_date_time_universal_sig(){
|
||||||
|
time_t now_time = time(0);
|
||||||
|
struct tm *now_tm = gmtime(&now_time);
|
||||||
|
Date_Time result = {};
|
||||||
|
mac_date_time_from_tm(&result, now_tm);
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
function
|
||||||
|
system_local_date_time_from_universal_sig(){
|
||||||
|
struct tm univ_tm = {};
|
||||||
|
mac_tm_from_date_time(&univ_tm, date_time);
|
||||||
|
time_t utc_time = timegm(&univ_tm);
|
||||||
|
struct tm *local_tm = localtime(&utc_time);
|
||||||
|
Date_Time result = {};
|
||||||
|
mac_date_time_from_tm(&result, local_tm);
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
function
|
||||||
|
system_universal_date_time_from_local_sig(){
|
||||||
|
struct tm local_tm = {};
|
||||||
|
mac_tm_from_date_time(&local_tm, date_time);
|
||||||
|
time_t loc_time = timelocal(&local_tm);
|
||||||
|
struct tm *utc_tm = gmtime(&loc_time);
|
||||||
|
Date_Time result = {};
|
||||||
|
mac_date_time_from_tm(&result, utc_tm);
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
function
|
function
|
||||||
system_wake_up_timer_create_sig(){
|
system_wake_up_timer_create_sig(){
|
||||||
Mac_Object *object = mac_alloc_object(MacObjectKind_Timer);
|
Mac_Object *object = mac_alloc_object(MacObjectKind_Timer);
|
||||||
|
@ -662,7 +714,7 @@ system_mutex_free_sig(){
|
||||||
function
|
function
|
||||||
system_acquire_global_frame_mutex_sig(){
|
system_acquire_global_frame_mutex_sig(){
|
||||||
if (tctx->kind == ThreadKind_AsyncTasks ||
|
if (tctx->kind == ThreadKind_AsyncTasks ||
|
||||||
tctx->kind == ThreadKind_MainCoroutine){
|
tctx->kind == ThreadKind_Main){
|
||||||
system_mutex_acquire(mac_vars.global_frame_mutex);
|
system_mutex_acquire(mac_vars.global_frame_mutex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -670,7 +722,7 @@ system_acquire_global_frame_mutex_sig(){
|
||||||
function
|
function
|
||||||
system_release_global_frame_mutex_sig(){
|
system_release_global_frame_mutex_sig(){
|
||||||
if (tctx->kind == ThreadKind_AsyncTasks ||
|
if (tctx->kind == ThreadKind_AsyncTasks ||
|
||||||
tctx->kind == ThreadKind_MainCoroutine){
|
tctx->kind == ThreadKind_Main){
|
||||||
system_mutex_release(mac_vars.global_frame_mutex);
|
system_mutex_release(mac_vars.global_frame_mutex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,7 +144,7 @@ struct Win32_Object{
|
||||||
struct Win32_Vars{
|
struct Win32_Vars{
|
||||||
Thread_Context *tctx;
|
Thread_Context *tctx;
|
||||||
|
|
||||||
Arena *frame_arena;
|
Arena frame_arena;
|
||||||
Input_Event *active_key_stroke;
|
Input_Event *active_key_stroke;
|
||||||
Input_Event *active_text_input;
|
Input_Event *active_text_input;
|
||||||
Win32_Input_Chunk input_chunk;
|
Win32_Input_Chunk input_chunk;
|
||||||
|
@ -838,6 +838,65 @@ system_now_time_sig(){
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal void
|
||||||
|
date_time_from_win32_system_time(Date_Time *out, SYSTEMTIME *in){
|
||||||
|
out->year = in->wYear;
|
||||||
|
out->mon = (u8)(in->wMonth - 1);
|
||||||
|
out->day = (u8)(in->wDay - 1);
|
||||||
|
out->hour = (u8)(in->wHour);
|
||||||
|
out->min = (u8)(in->wMinute);
|
||||||
|
out->sec = (u8)(in->wSecond);
|
||||||
|
out->msec = in->wMilliseconds;
|
||||||
|
}
|
||||||
|
|
||||||
|
internal void
|
||||||
|
win32_system_time_from_date_time(SYSTEMTIME *out, Date_Time *in){
|
||||||
|
out->wYear = (WORD)(in->year);
|
||||||
|
out->wMonth = in->mon + 1;
|
||||||
|
out->wDay = in->day + 1;
|
||||||
|
out->wHour = in->hour;
|
||||||
|
out->wMinute = in->min;
|
||||||
|
out->wSecond = in->sec;
|
||||||
|
out->wMilliseconds = in->msec;
|
||||||
|
}
|
||||||
|
|
||||||
|
internal
|
||||||
|
system_now_date_time_universal_sig(){
|
||||||
|
SYSTEMTIME systime = {};
|
||||||
|
GetSystemTime(&systime);
|
||||||
|
Date_Time result = {};
|
||||||
|
date_time_from_win32_system_time(&result, &systime);
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
internal
|
||||||
|
system_local_date_time_from_universal_sig(){
|
||||||
|
SYSTEMTIME systime = {};
|
||||||
|
win32_system_time_from_date_time(&systime, date_time);
|
||||||
|
FILETIME ftime = {};
|
||||||
|
SystemTimeToFileTime(&systime, &ftime);
|
||||||
|
FILETIME ftime_local = {};
|
||||||
|
FileTimeToLocalFileTime(&ftime, &ftime_local);
|
||||||
|
FileTimeToSystemTime(&ftime_local, &systime);
|
||||||
|
Date_Time result = {};
|
||||||
|
date_time_from_win32_system_time(&result, &systime);
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
|
internal
|
||||||
|
system_universal_date_time_from_local_sig(){
|
||||||
|
SYSTEMTIME systime = {};
|
||||||
|
win32_system_time_from_date_time(&systime, date_time);
|
||||||
|
FILETIME ftime = {};
|
||||||
|
SystemTimeToFileTime(&systime, &ftime);
|
||||||
|
FILETIME ftime_local = {};
|
||||||
|
LocalFileTimeToFileTime(&ftime, &ftime_local);
|
||||||
|
FileTimeToSystemTime(&ftime_local, &systime);
|
||||||
|
Date_Time result = {};
|
||||||
|
date_time_from_win32_system_time(&result, &systime);
|
||||||
|
return(result);
|
||||||
|
}
|
||||||
|
|
||||||
internal
|
internal
|
||||||
system_wake_up_timer_create_sig(){
|
system_wake_up_timer_create_sig(){
|
||||||
Win32_Object *object = win32_alloc_object(Win32ObjectKind_Timer);
|
Win32_Object *object = win32_alloc_object(Win32ObjectKind_Timer);
|
||||||
|
@ -1087,10 +1146,10 @@ win32_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
|
||||||
if (key != 0){
|
if (key != 0){
|
||||||
add_modifier(mods, key);
|
add_modifier(mods, key);
|
||||||
|
|
||||||
Input_Event *event = push_input_event(win32vars.frame_arena, &win32vars.input_chunk.trans.event_list);
|
Input_Event *event = push_input_event(&win32vars.frame_arena, &win32vars.input_chunk.trans.event_list);
|
||||||
event->kind = InputEventKind_KeyStroke;
|
event->kind = InputEventKind_KeyStroke;
|
||||||
event->key.code = key;
|
event->key.code = key;
|
||||||
event->key.modifiers = copy_modifier_set(win32vars.frame_arena, mods);
|
event->key.modifiers = copy_modifier_set(&win32vars.frame_arena, mods);
|
||||||
win32vars.active_key_stroke = event;
|
win32vars.active_key_stroke = event;
|
||||||
|
|
||||||
win32vars.got_useful_event = true;
|
win32vars.got_useful_event = true;
|
||||||
|
@ -1102,10 +1161,10 @@ win32_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
|
||||||
win32vars.got_useful_event = true;
|
win32vars.got_useful_event = true;
|
||||||
|
|
||||||
if (key != 0){
|
if (key != 0){
|
||||||
Input_Event *event = push_input_event(win32vars.frame_arena, &win32vars.input_chunk.trans.event_list);
|
Input_Event *event = push_input_event(&win32vars.frame_arena, &win32vars.input_chunk.trans.event_list);
|
||||||
event->kind = InputEventKind_KeyRelease;
|
event->kind = InputEventKind_KeyRelease;
|
||||||
event->key.code = key;
|
event->key.code = key;
|
||||||
event->key.modifiers = copy_modifier_set(win32vars.frame_arena, mods);
|
event->key.modifiers = copy_modifier_set(&win32vars.frame_arena, mods);
|
||||||
|
|
||||||
remove_modifier(mods, key);
|
remove_modifier(mods, key);
|
||||||
}
|
}
|
||||||
|
@ -1120,8 +1179,8 @@ win32_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
|
||||||
}
|
}
|
||||||
if (c > 127 || (' ' <= c && c <= '~') || c == '\t' || c == '\n'){
|
if (c > 127 || (' ' <= c && c <= '~') || c == '\t' || c == '\n'){
|
||||||
String_Const_u16 str_16 = SCu16(&c, 1);
|
String_Const_u16 str_16 = SCu16(&c, 1);
|
||||||
String_Const_u8 str_8 = string_u8_from_string_u16(win32vars.frame_arena, str_16).string;
|
String_Const_u8 str_8 = string_u8_from_string_u16(&win32vars.frame_arena, str_16).string;
|
||||||
Input_Event *event = push_input_event(win32vars.frame_arena, &win32vars.input_chunk.trans.event_list);
|
Input_Event *event = push_input_event(&win32vars.frame_arena, &win32vars.input_chunk.trans.event_list);
|
||||||
event->kind = InputEventKind_TextInsert;
|
event->kind = InputEventKind_TextInsert;
|
||||||
event->text.string = str_8;
|
event->text.string = str_8;
|
||||||
event->text.next_text = 0;
|
event->text.next_text = 0;
|
||||||
|
@ -1150,11 +1209,11 @@ win32_proc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
|
||||||
}
|
}
|
||||||
if (c > 127 || (' ' <= c && c <= '~') || c == '\t' || c == '\n'){
|
if (c > 127 || (' ' <= c && c <= '~') || c == '\t' || c == '\n'){
|
||||||
String_Const_u32 str_32 = SCu32(&c, 1);
|
String_Const_u32 str_32 = SCu32(&c, 1);
|
||||||
String_Const_u8 str_8 = string_u8_from_string_u32(win32vars.frame_arena, str_32).string;
|
String_Const_u8 str_8 = string_u8_from_string_u32(&win32vars.frame_arena, str_32).string;
|
||||||
Input_Event event = {};
|
Input_Event event = {};
|
||||||
event.kind = InputEventKind_TextInsert;
|
event.kind = InputEventKind_TextInsert;
|
||||||
event.text.string = str_8;
|
event.text.string = str_8;
|
||||||
push_input_event(win32vars.frame_arena, &win32vars.input_chunk.trans.event_list, &event);
|
push_input_event(&win32vars.frame_arena, &win32vars.input_chunk.trans.event_list, &event);
|
||||||
win32vars.got_useful_event = true;
|
win32vars.got_useful_event = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1373,7 +1432,7 @@ win32_gl_create_window(HWND *wnd_out, HGLRC *context_out, DWORD style, RECT rect
|
||||||
|
|
||||||
// NOTE(allen): Load wgl extensions
|
// NOTE(allen): Load wgl extensions
|
||||||
#define LoadWGL(f,l) Stmnt((f) = (f##_Function*)wglGetProcAddress(#f); \
|
#define LoadWGL(f,l) Stmnt((f) = (f##_Function*)wglGetProcAddress(#f); \
|
||||||
(l) = (l) && win32_wgl_good((Void_Func*)(f));)
|
(l) = (l) && win32_wgl_good((Void_Func*)(f));)
|
||||||
|
|
||||||
b32 load_success = true;
|
b32 load_success = true;
|
||||||
LoadWGL(wglCreateContextAttribsARB, load_success);
|
LoadWGL(wglCreateContextAttribsARB, load_success);
|
||||||
|
@ -1537,7 +1596,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
|
||||||
font_api_fill_vtable(&font_vtable);
|
font_api_fill_vtable(&font_vtable);
|
||||||
|
|
||||||
// NOTE(allen): memory
|
// NOTE(allen): memory
|
||||||
win32vars.frame_arena = reserve_arena(win32vars.tctx);
|
win32vars.frame_arena = make_arena_system();
|
||||||
// TODO(allen): *arena;
|
// TODO(allen): *arena;
|
||||||
target.arena = make_arena_system(KB(256));
|
target.arena = make_arena_system(KB(256));
|
||||||
|
|
||||||
|
@ -1566,7 +1625,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
|
||||||
App_Functions app = {};
|
App_Functions app = {};
|
||||||
{
|
{
|
||||||
App_Get_Functions *get_funcs = 0;
|
App_Get_Functions *get_funcs = 0;
|
||||||
Scratch_Block scratch(win32vars.tctx, Scratch_Share);
|
Scratch_Block scratch(win32vars.tctx);
|
||||||
Path_Search_List search_list = {};
|
Path_Search_List search_list = {};
|
||||||
search_list_add_system_path(scratch, &search_list, SystemPath_Binary);
|
search_list_add_system_path(scratch, &search_list, SystemPath_Binary);
|
||||||
|
|
||||||
|
@ -1595,7 +1654,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
|
||||||
Plat_Settings plat_settings = {};
|
Plat_Settings plat_settings = {};
|
||||||
void *base_ptr = 0;
|
void *base_ptr = 0;
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(win32vars.tctx, Scratch_Share);
|
Scratch_Block scratch(win32vars.tctx);
|
||||||
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
||||||
curdir = string_mod_replace_character(curdir, '\\', '/');
|
curdir = string_mod_replace_character(curdir, '\\', '/');
|
||||||
char **files = 0;
|
char **files = 0;
|
||||||
|
@ -1622,7 +1681,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
|
||||||
char custom_fail_version_msg[] = "Failed to load custom code due to missing version information or a version mismatch. Try rebuilding with buildsuper.";
|
char custom_fail_version_msg[] = "Failed to load custom code due to missing version information or a version mismatch. Try rebuilding with buildsuper.";
|
||||||
char custom_fail_init_apis[] = "Failed to load custom code due to missing 'init_apis' symbol. Try rebuilding with buildsuper";
|
char custom_fail_init_apis[] = "Failed to load custom code due to missing 'init_apis' symbol. Try rebuilding with buildsuper";
|
||||||
|
|
||||||
Scratch_Block scratch(win32vars.tctx, Scratch_Share);
|
Scratch_Block scratch(win32vars.tctx);
|
||||||
String_Const_u8 default_file_name = string_u8_litexpr("custom_4coder.dll");
|
String_Const_u8 default_file_name = string_u8_litexpr("custom_4coder.dll");
|
||||||
Path_Search_List search_list = {};
|
Path_Search_List search_list = {};
|
||||||
search_list_add_system_path(scratch, &search_list, SystemPath_CurrentDirectory);
|
search_list_add_system_path(scratch, &search_list, SystemPath_CurrentDirectory);
|
||||||
|
@ -1699,14 +1758,14 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
|
||||||
//
|
//
|
||||||
|
|
||||||
if (!AddClipboardFormatListener(win32vars.window_handle)){
|
if (!AddClipboardFormatListener(win32vars.window_handle)){
|
||||||
Scratch_Block scratch(win32vars.tctx, Scratch_Share);
|
Scratch_Block scratch(win32vars.tctx);
|
||||||
win32_output_error_string(scratch, ErrorString_UseLog);
|
win32_output_error_string(scratch, ErrorString_UseLog);
|
||||||
}
|
}
|
||||||
|
|
||||||
win32vars.clip_wakeup_timer = system_wake_up_timer_create();
|
win32vars.clip_wakeup_timer = system_wake_up_timer_create();
|
||||||
win32vars.clipboard_sequence = GetClipboardSequenceNumber();
|
win32vars.clipboard_sequence = GetClipboardSequenceNumber();
|
||||||
if (win32vars.clipboard_sequence == 0){
|
if (win32vars.clipboard_sequence == 0){
|
||||||
Scratch_Block scratch(win32vars.tctx, Scratch_Share);
|
Scratch_Block scratch(win32vars.tctx);
|
||||||
win32_post_clipboard(scratch, "", 0);
|
win32_post_clipboard(scratch, "", 0);
|
||||||
win32vars.clipboard_sequence = GetClipboardSequenceNumber();
|
win32vars.clipboard_sequence = GetClipboardSequenceNumber();
|
||||||
win32vars.next_clipboard_is_self = 0;
|
win32vars.next_clipboard_is_self = 0;
|
||||||
|
@ -1737,7 +1796,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
|
||||||
//
|
//
|
||||||
|
|
||||||
{
|
{
|
||||||
Scratch_Block scratch(win32vars.tctx, Scratch_Share);
|
Scratch_Block scratch(win32vars.tctx);
|
||||||
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
String_Const_u8 curdir = system_get_path(scratch, SystemPath_CurrentDirectory);
|
||||||
curdir = string_mod_replace_character(curdir, '\\', '/');
|
curdir = string_mod_replace_character(curdir, '\\', '/');
|
||||||
app.init(win32vars.tctx, &target, base_ptr, curdir, custom);
|
app.init(win32vars.tctx, &target, base_ptr, curdir, custom);
|
||||||
|
@ -1765,7 +1824,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
|
||||||
u64 timer_start = system_now_time();
|
u64 timer_start = system_now_time();
|
||||||
MSG msg;
|
MSG msg;
|
||||||
for (;keep_running;){
|
for (;keep_running;){
|
||||||
linalloc_clear(win32vars.frame_arena);
|
linalloc_clear(&win32vars.frame_arena);
|
||||||
block_zero_struct(&win32vars.input_chunk.trans);
|
block_zero_struct(&win32vars.input_chunk.trans);
|
||||||
win32vars.active_key_stroke = 0;
|
win32vars.active_key_stroke = 0;
|
||||||
win32vars.active_text_input = 0;
|
win32vars.active_text_input = 0;
|
||||||
|
@ -1795,7 +1854,8 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdS
|
||||||
if (get_more_messages){
|
if (get_more_messages){
|
||||||
if (msg.message == WM_QUIT){
|
if (msg.message == WM_QUIT){
|
||||||
keep_running = false;
|
keep_running = false;
|
||||||
}else{
|
}
|
||||||
|
else{
|
||||||
b32 treat_normally = true;
|
b32 treat_normally = true;
|
||||||
if (msg.message == WM_KEYDOWN || msg.message == WM_SYSKEYDOWN){
|
if (msg.message == WM_KEYDOWN || msg.message == WM_SYSKEYDOWN){
|
||||||
switch (msg.wParam){
|
switch (msg.wParam){
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
|
|
||||||
|
4.1.5
|
||||||
|
+ MAJOR: Scratch_Blocks now take arena pointer parameters in their constructor to specify arenas that should be treated as having distinct lifetimes, without doing this it is possible that a local scratch and another arena will actually refer to the same allocator and freeing the local scratch will also free memory that was meant to be in a separate arena.
|
||||||
|
+ New Date_Time system APIs, and Date_Time string formatting
|
||||||
|
+ Fix: when generated/metadata* files are missing buildsuper still succeeds
|
||||||
|
+ Fix: mac does not hang opening multiple files
|
||||||
|
|
||||||
4.1.4
|
4.1.4
|
||||||
+ MAJOR: The clipboard history is now a fully custom layer implemented system. Users maintaining a customization layer should try to update their call sites to the old clipboard API. #define FCODER_TRANSITION_TO 4001004 to disable the transitional function wrappers when you are ready to make the transition.
|
+ MAJOR: The clipboard history is now a fully custom layer implemented system. Users maintaining a customization layer should try to update their call sites to the old clipboard API. #define FCODER_TRANSITION_TO 4001004 to disable the transitional function wrappers when you are ready to make the transition.
|
||||||
+ buildsuper scripts now all come with '-win' '-linux' '-mac' postfixes and pass their OS identifier macro on the build line
|
+ buildsuper scripts now all come with '-win' '-linux' '-mac' postfixes and pass their OS identifier macro on the build line
|
||||||
|
@ -8,6 +14,7 @@
|
||||||
+ show whitespace mode implemented in 'default_render_buffer'
|
+ show whitespace mode implemented in 'default_render_buffer'
|
||||||
+ `set_face_size` and `set_face_size_this_buffer` commands
|
+ `set_face_size` and `set_face_size_this_buffer` commands
|
||||||
+ `HookID_WholeScreenRenderCaller` hook runs once per frame after all views render
|
+ `HookID_WholeScreenRenderCaller` hook runs once per frame after all views render
|
||||||
|
+ Bindings use exact matches for modifiers, instead of most recent sub-set matches
|
||||||
+ Extended key codes list
|
+ Extended key codes list
|
||||||
+ Fix: tabs are measured with the correct amount of width for the user's settings
|
+ Fix: tabs are measured with the correct amount of width for the user's settings
|
||||||
+ Fix: virtual whitespace toggling works when the config initially diabled virtual whitespace
|
+ Fix: virtual whitespace toggling works when the config initially diabled virtual whitespace
|
||||||
|
|
Loading…
Reference in New Issue