From d8d99eefddd5e6663831a82e8bd2959a8210be11 Mon Sep 17 00:00:00 2001 From: Peter Slattery Date: Mon, 7 Jul 2025 19:40:08 -0700 Subject: [PATCH] Removing tracking for generated files --- code/custom/generated/4coder_event_codes.h | 319 - code/custom/generated/command_metadata.h | 872 --- code/custom/generated/custom_api.cpp | 370 -- code/custom/generated/custom_api.h | 908 --- .../generated/custom_api_constructor.cpp | 1046 ---- .../custom/generated/custom_api_master_list.h | 181 - code/custom/generated/lexer_cpp.cpp | 5186 ----------------- code/custom/generated/lexer_cpp.h | 375 -- code/custom/generated/managed_id_metadata.cpp | 65 - code/custom/generated/system_api.cpp | 126 - code/custom/generated/system_api.h | 298 - .../generated/system_api_constructor.cpp | 264 - .../custom/generated/system_api_master_list.h | 59 - 13 files changed, 10069 deletions(-) delete mode 100644 code/custom/generated/4coder_event_codes.h delete mode 100644 code/custom/generated/command_metadata.h delete mode 100644 code/custom/generated/custom_api.cpp delete mode 100644 code/custom/generated/custom_api.h delete mode 100644 code/custom/generated/custom_api_constructor.cpp delete mode 100644 code/custom/generated/custom_api_master_list.h delete mode 100644 code/custom/generated/lexer_cpp.cpp delete mode 100644 code/custom/generated/lexer_cpp.h delete mode 100644 code/custom/generated/managed_id_metadata.cpp delete mode 100644 code/custom/generated/system_api.cpp delete mode 100644 code/custom/generated/system_api.h delete mode 100644 code/custom/generated/system_api_constructor.cpp delete mode 100644 code/custom/generated/system_api_master_list.h diff --git a/code/custom/generated/4coder_event_codes.h b/code/custom/generated/4coder_event_codes.h deleted file mode 100644 index 596ed205..00000000 --- a/code/custom/generated/4coder_event_codes.h +++ /dev/null @@ -1,319 +0,0 @@ -/* Generated by: 4ed_generate_keycodes.cpp */ -enum{ -KeyCode_A = 1, -KeyCode_B = 2, -KeyCode_C = 3, -KeyCode_D = 4, -KeyCode_E = 5, -KeyCode_F = 6, -KeyCode_G = 7, -KeyCode_H = 8, -KeyCode_I = 9, -KeyCode_J = 10, -KeyCode_K = 11, -KeyCode_L = 12, -KeyCode_M = 13, -KeyCode_N = 14, -KeyCode_O = 15, -KeyCode_P = 16, -KeyCode_Q = 17, -KeyCode_R = 18, -KeyCode_S = 19, -KeyCode_T = 20, -KeyCode_U = 21, -KeyCode_V = 22, -KeyCode_W = 23, -KeyCode_X = 24, -KeyCode_Y = 25, -KeyCode_Z = 26, -KeyCode_0 = 27, -KeyCode_1 = 28, -KeyCode_2 = 29, -KeyCode_3 = 30, -KeyCode_4 = 31, -KeyCode_5 = 32, -KeyCode_6 = 33, -KeyCode_7 = 34, -KeyCode_8 = 35, -KeyCode_9 = 36, -KeyCode_Space = 37, -KeyCode_Tick = 38, -KeyCode_Minus = 39, -KeyCode_Equal = 40, -KeyCode_LeftBracket = 41, -KeyCode_RightBracket = 42, -KeyCode_Semicolon = 43, -KeyCode_Quote = 44, -KeyCode_Comma = 45, -KeyCode_Period = 46, -KeyCode_ForwardSlash = 47, -KeyCode_BackwardSlash = 48, -KeyCode_Tab = 49, -KeyCode_Escape = 50, -KeyCode_Pause = 51, -KeyCode_Up = 52, -KeyCode_Down = 53, -KeyCode_Left = 54, -KeyCode_Right = 55, -KeyCode_Backspace = 56, -KeyCode_Return = 57, -KeyCode_Delete = 58, -KeyCode_Insert = 59, -KeyCode_Home = 60, -KeyCode_End = 61, -KeyCode_PageUp = 62, -KeyCode_PageDown = 63, -KeyCode_CapsLock = 64, -KeyCode_NumLock = 65, -KeyCode_ScrollLock = 66, -KeyCode_Menu = 67, -KeyCode_Shift = 68, -KeyCode_Control = 69, -KeyCode_Alt = 70, -KeyCode_Command = 71, -KeyCode_F1 = 72, -KeyCode_F2 = 73, -KeyCode_F3 = 74, -KeyCode_F4 = 75, -KeyCode_F5 = 76, -KeyCode_F6 = 77, -KeyCode_F7 = 78, -KeyCode_F8 = 79, -KeyCode_F9 = 80, -KeyCode_F10 = 81, -KeyCode_F11 = 82, -KeyCode_F12 = 83, -KeyCode_F13 = 84, -KeyCode_F14 = 85, -KeyCode_F15 = 86, -KeyCode_F16 = 87, -KeyCode_F17 = 88, -KeyCode_F18 = 89, -KeyCode_F19 = 90, -KeyCode_F20 = 91, -KeyCode_F21 = 92, -KeyCode_F22 = 93, -KeyCode_F23 = 94, -KeyCode_F24 = 95, -KeyCode_NumPad0 = 96, -KeyCode_NumPad1 = 97, -KeyCode_NumPad2 = 98, -KeyCode_NumPad3 = 99, -KeyCode_NumPad4 = 100, -KeyCode_NumPad5 = 101, -KeyCode_NumPad6 = 102, -KeyCode_NumPad7 = 103, -KeyCode_NumPad8 = 104, -KeyCode_NumPad9 = 105, -KeyCode_NumPadStar = 106, -KeyCode_NumPadPlus = 107, -KeyCode_NumPadMinus = 108, -KeyCode_NumPadDot = 109, -KeyCode_NumPadSlash = 110, -KeyCode_Ex0 = 111, -KeyCode_Ex1 = 112, -KeyCode_Ex2 = 113, -KeyCode_Ex3 = 114, -KeyCode_Ex4 = 115, -KeyCode_Ex5 = 116, -KeyCode_Ex6 = 117, -KeyCode_Ex7 = 118, -KeyCode_Ex8 = 119, -KeyCode_Ex9 = 120, -KeyCode_Ex10 = 121, -KeyCode_Ex11 = 122, -KeyCode_Ex12 = 123, -KeyCode_Ex13 = 124, -KeyCode_Ex14 = 125, -KeyCode_Ex15 = 126, -KeyCode_Ex16 = 127, -KeyCode_Ex17 = 128, -KeyCode_Ex18 = 129, -KeyCode_Ex19 = 130, -KeyCode_Ex20 = 131, -KeyCode_Ex21 = 132, -KeyCode_Ex22 = 133, -KeyCode_Ex23 = 134, -KeyCode_Ex24 = 135, -KeyCode_Ex25 = 136, -KeyCode_Ex26 = 137, -KeyCode_Ex27 = 138, -KeyCode_Ex28 = 139, -KeyCode_Ex29 = 140, -KeyCode_COUNT = 141, -}; -global char* key_code_name[KeyCode_COUNT] = { -"None", -"A", -"B", -"C", -"D", -"E", -"F", -"G", -"H", -"I", -"J", -"K", -"L", -"M", -"N", -"O", -"P", -"Q", -"R", -"S", -"T", -"U", -"V", -"W", -"X", -"Y", -"Z", -"0", -"1", -"2", -"3", -"4", -"5", -"6", -"7", -"8", -"9", -"Space", -"Tick", -"Minus", -"Equal", -"LeftBracket", -"RightBracket", -"Semicolon", -"Quote", -"Comma", -"Period", -"ForwardSlash", -"BackwardSlash", -"Tab", -"Escape", -"Pause", -"Up", -"Down", -"Left", -"Right", -"Backspace", -"Return", -"Delete", -"Insert", -"Home", -"End", -"PageUp", -"PageDown", -"CapsLock", -"NumLock", -"ScrollLock", -"Menu", -"Shift", -"Control", -"Alt", -"Command", -"F1", -"F2", -"F3", -"F4", -"F5", -"F6", -"F7", -"F8", -"F9", -"F10", -"F11", -"F12", -"F13", -"F14", -"F15", -"F16", -"F17", -"F18", -"F19", -"F20", -"F21", -"F22", -"F23", -"F24", -"NumPad0", -"NumPad1", -"NumPad2", -"NumPad3", -"NumPad4", -"NumPad5", -"NumPad6", -"NumPad7", -"NumPad8", -"NumPad9", -"NumPadStar", -"NumPadPlus", -"NumPadMinus", -"NumPadDot", -"NumPadSlash", -"Ex0", -"Ex1", -"Ex2", -"Ex3", -"Ex4", -"Ex5", -"Ex6", -"Ex7", -"Ex8", -"Ex9", -"Ex10", -"Ex11", -"Ex12", -"Ex13", -"Ex14", -"Ex15", -"Ex16", -"Ex17", -"Ex18", -"Ex19", -"Ex20", -"Ex21", -"Ex22", -"Ex23", -"Ex24", -"Ex25", -"Ex26", -"Ex27", -"Ex28", -"Ex29", -}; -enum{ -MouseCode_Left = 1, -MouseCode_Middle = 2, -MouseCode_Right = 3, -MouseCode_COUNT = 4, -}; -global char* mouse_code_name[MouseCode_COUNT] = { -"None", -"Left", -"Middle", -"Right", -}; -enum{ -CoreCode_Startup = 1, -CoreCode_Animate = 2, -CoreCode_ClickActivateView = 3, -CoreCode_ClickDeactivateView = 4, -CoreCode_TryExit = 5, -CoreCode_FileExternallyModified = 6, -CoreCode_NewClipboardContents = 7, -CoreCode_COUNT = 8, -}; -global char* core_code_name[CoreCode_COUNT] = { -"None", -"Startup", -"Animate", -"ClickActivateView", -"ClickDeactivateView", -"TryExit", -"FileExternallyModified", -"NewClipboardContents", -}; diff --git a/code/custom/generated/command_metadata.h b/code/custom/generated/command_metadata.h deleted file mode 100644 index 22332b52..00000000 --- a/code/custom/generated/command_metadata.h +++ /dev/null @@ -1,872 +0,0 @@ -#if !defined(META_PASS) -#define command_id(c) (fcoder_metacmd_ID_##c) -#define command_metadata(c) (&fcoder_metacmd_table[command_id(c)]) -#define command_metadata_by_id(id) (&fcoder_metacmd_table[id]) -#define command_one_past_last_id 282 -#if defined(CUSTOM_COMMAND_SIG) -#define PROC_LINKS(x,y) x -#else -#define PROC_LINKS(x,y) y -#endif -#if defined(CUSTOM_COMMAND_SIG) -CUSTOM_COMMAND_SIG(allow_mouse); -CUSTOM_COMMAND_SIG(auto_indent_line_at_cursor); -CUSTOM_COMMAND_SIG(auto_indent_range); -CUSTOM_COMMAND_SIG(auto_indent_whole_file); -CUSTOM_COMMAND_SIG(backspace_alpha_numeric_boundary); -CUSTOM_COMMAND_SIG(backspace_alpha_numeric_or_camel_boundary); -CUSTOM_COMMAND_SIG(backspace_char); -CUSTOM_COMMAND_SIG(backspace_token_boundary); -CUSTOM_COMMAND_SIG(basic_change_active_panel); -CUSTOM_COMMAND_SIG(begin_clipboard_collection_mode); -CUSTOM_COMMAND_SIG(build_in_build_panel); -CUSTOM_COMMAND_SIG(build_search); -CUSTOM_COMMAND_SIG(center_view); -CUSTOM_COMMAND_SIG(change_active_panel); -CUSTOM_COMMAND_SIG(change_active_panel_backwards); -CUSTOM_COMMAND_SIG(change_to_build_panel); -CUSTOM_COMMAND_SIG(clean_all_lines); -CUSTOM_COMMAND_SIG(clean_trailing_whitespace); -CUSTOM_COMMAND_SIG(clear_all_themes); -CUSTOM_COMMAND_SIG(clear_clipboard); -CUSTOM_COMMAND_SIG(click_set_cursor); -CUSTOM_COMMAND_SIG(click_set_cursor_and_mark); -CUSTOM_COMMAND_SIG(click_set_cursor_if_lbutton); -CUSTOM_COMMAND_SIG(click_set_mark); -CUSTOM_COMMAND_SIG(clipboard_record_clip); -CUSTOM_COMMAND_SIG(close_all_code); -CUSTOM_COMMAND_SIG(close_build_panel); -CUSTOM_COMMAND_SIG(close_panel); -CUSTOM_COMMAND_SIG(command_documentation); -CUSTOM_COMMAND_SIG(command_lister); -CUSTOM_COMMAND_SIG(comment_line); -CUSTOM_COMMAND_SIG(comment_line_toggle); -CUSTOM_COMMAND_SIG(copy); -CUSTOM_COMMAND_SIG(cursor_mark_swap); -CUSTOM_COMMAND_SIG(custom_api_documentation); -CUSTOM_COMMAND_SIG(cut); -CUSTOM_COMMAND_SIG(decrease_face_size); -CUSTOM_COMMAND_SIG(default_file_externally_modified); -CUSTOM_COMMAND_SIG(default_startup); -CUSTOM_COMMAND_SIG(default_try_exit); -CUSTOM_COMMAND_SIG(default_view_input_handler); -CUSTOM_COMMAND_SIG(delete_alpha_numeric_boundary); -CUSTOM_COMMAND_SIG(delete_char); -CUSTOM_COMMAND_SIG(delete_current_scope); -CUSTOM_COMMAND_SIG(delete_file_query); -CUSTOM_COMMAND_SIG(delete_line); -CUSTOM_COMMAND_SIG(delete_range); -CUSTOM_COMMAND_SIG(delete_to_end_of_line); -CUSTOM_COMMAND_SIG(display_key_codes); -CUSTOM_COMMAND_SIG(display_text_input); -CUSTOM_COMMAND_SIG(double_backspace); -CUSTOM_COMMAND_SIG(duplicate_line); -CUSTOM_COMMAND_SIG(execute_any_cli); -CUSTOM_COMMAND_SIG(execute_previous_cli); -CUSTOM_COMMAND_SIG(exit_4coder); -CUSTOM_COMMAND_SIG(go_to_user_directory); -CUSTOM_COMMAND_SIG(goto_beginning_of_file); -CUSTOM_COMMAND_SIG(goto_end_of_file); -CUSTOM_COMMAND_SIG(goto_first_jump); -CUSTOM_COMMAND_SIG(goto_first_jump_same_panel_sticky); -CUSTOM_COMMAND_SIG(goto_jump_at_cursor); -CUSTOM_COMMAND_SIG(goto_jump_at_cursor_same_panel); -CUSTOM_COMMAND_SIG(goto_line); -CUSTOM_COMMAND_SIG(goto_next_jump); -CUSTOM_COMMAND_SIG(goto_next_jump_no_skips); -CUSTOM_COMMAND_SIG(goto_prev_jump); -CUSTOM_COMMAND_SIG(goto_prev_jump_no_skips); -CUSTOM_COMMAND_SIG(hide_filebar); -CUSTOM_COMMAND_SIG(hide_scrollbar); -CUSTOM_COMMAND_SIG(hms_demo_tutorial); -CUSTOM_COMMAND_SIG(if0_off); -CUSTOM_COMMAND_SIG(if_read_only_goto_position); -CUSTOM_COMMAND_SIG(if_read_only_goto_position_same_panel); -CUSTOM_COMMAND_SIG(increase_face_size); -CUSTOM_COMMAND_SIG(interactive_kill_buffer); -CUSTOM_COMMAND_SIG(interactive_new); -CUSTOM_COMMAND_SIG(interactive_open); -CUSTOM_COMMAND_SIG(interactive_open_or_new); -CUSTOM_COMMAND_SIG(interactive_switch_buffer); -CUSTOM_COMMAND_SIG(jump_to_definition); -CUSTOM_COMMAND_SIG(jump_to_definition_at_cursor); -CUSTOM_COMMAND_SIG(jump_to_last_point); -CUSTOM_COMMAND_SIG(keyboard_macro_finish_recording); -CUSTOM_COMMAND_SIG(keyboard_macro_replay); -CUSTOM_COMMAND_SIG(keyboard_macro_start_recording); -CUSTOM_COMMAND_SIG(kill_buffer); -CUSTOM_COMMAND_SIG(kill_tutorial); -CUSTOM_COMMAND_SIG(left_adjust_view); -CUSTOM_COMMAND_SIG(list_all_functions_all_buffers); -CUSTOM_COMMAND_SIG(list_all_functions_all_buffers_lister); -CUSTOM_COMMAND_SIG(list_all_functions_current_buffer); -CUSTOM_COMMAND_SIG(list_all_functions_current_buffer_lister); -CUSTOM_COMMAND_SIG(list_all_locations); -CUSTOM_COMMAND_SIG(list_all_locations_case_insensitive); -CUSTOM_COMMAND_SIG(list_all_locations_of_identifier); -CUSTOM_COMMAND_SIG(list_all_locations_of_identifier_case_insensitive); -CUSTOM_COMMAND_SIG(list_all_locations_of_selection); -CUSTOM_COMMAND_SIG(list_all_locations_of_selection_case_insensitive); -CUSTOM_COMMAND_SIG(list_all_locations_of_type_definition); -CUSTOM_COMMAND_SIG(list_all_locations_of_type_definition_of_identifier); -CUSTOM_COMMAND_SIG(list_all_substring_locations); -CUSTOM_COMMAND_SIG(list_all_substring_locations_case_insensitive); -CUSTOM_COMMAND_SIG(lister_search_all); -CUSTOM_COMMAND_SIG(load_project); -CUSTOM_COMMAND_SIG(load_theme_current_buffer); -CUSTOM_COMMAND_SIG(load_themes_default_folder); -CUSTOM_COMMAND_SIG(load_themes_hot_directory); -CUSTOM_COMMAND_SIG(loco_jump_between_yeet); -CUSTOM_COMMAND_SIG(loco_load_yeet_snapshot_1); -CUSTOM_COMMAND_SIG(loco_load_yeet_snapshot_2); -CUSTOM_COMMAND_SIG(loco_load_yeet_snapshot_3); -CUSTOM_COMMAND_SIG(loco_save_yeet_snapshot_1); -CUSTOM_COMMAND_SIG(loco_save_yeet_snapshot_2); -CUSTOM_COMMAND_SIG(loco_save_yeet_snapshot_3); -CUSTOM_COMMAND_SIG(loco_yeet_clear); -CUSTOM_COMMAND_SIG(loco_yeet_remove_marker_pair); -CUSTOM_COMMAND_SIG(loco_yeet_reset_all); -CUSTOM_COMMAND_SIG(loco_yeet_selected_range_or_jump); -CUSTOM_COMMAND_SIG(loco_yeet_surrounding_function); -CUSTOM_COMMAND_SIG(loco_yeet_tag); -CUSTOM_COMMAND_SIG(make_directory_query); -CUSTOM_COMMAND_SIG(miblo_decrement_basic); -CUSTOM_COMMAND_SIG(miblo_decrement_time_stamp); -CUSTOM_COMMAND_SIG(miblo_decrement_time_stamp_minute); -CUSTOM_COMMAND_SIG(miblo_increment_basic); -CUSTOM_COMMAND_SIG(miblo_increment_time_stamp); -CUSTOM_COMMAND_SIG(miblo_increment_time_stamp_minute); -CUSTOM_COMMAND_SIG(mouse_wheel_change_face_size); -CUSTOM_COMMAND_SIG(mouse_wheel_scroll); -CUSTOM_COMMAND_SIG(move_down); -CUSTOM_COMMAND_SIG(move_down_10); -CUSTOM_COMMAND_SIG(move_down_textual); -CUSTOM_COMMAND_SIG(move_down_to_blank_line); -CUSTOM_COMMAND_SIG(move_down_to_blank_line_end); -CUSTOM_COMMAND_SIG(move_down_to_blank_line_skip_whitespace); -CUSTOM_COMMAND_SIG(move_left); -CUSTOM_COMMAND_SIG(move_left_alpha_numeric_boundary); -CUSTOM_COMMAND_SIG(move_left_alpha_numeric_or_camel_boundary); -CUSTOM_COMMAND_SIG(move_left_token_boundary); -CUSTOM_COMMAND_SIG(move_left_whitespace_boundary); -CUSTOM_COMMAND_SIG(move_left_whitespace_or_token_boundary); -CUSTOM_COMMAND_SIG(move_line_down); -CUSTOM_COMMAND_SIG(move_line_up); -CUSTOM_COMMAND_SIG(move_right); -CUSTOM_COMMAND_SIG(move_right_alpha_numeric_boundary); -CUSTOM_COMMAND_SIG(move_right_alpha_numeric_or_camel_boundary); -CUSTOM_COMMAND_SIG(move_right_token_boundary); -CUSTOM_COMMAND_SIG(move_right_whitespace_boundary); -CUSTOM_COMMAND_SIG(move_right_whitespace_or_token_boundary); -CUSTOM_COMMAND_SIG(move_up); -CUSTOM_COMMAND_SIG(move_up_10); -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_skip_whitespace); -CUSTOM_COMMAND_SIG(multi_paste); -CUSTOM_COMMAND_SIG(multi_paste_interactive); -CUSTOM_COMMAND_SIG(multi_paste_interactive_quick); -CUSTOM_COMMAND_SIG(open_all_code); -CUSTOM_COMMAND_SIG(open_all_code_recursive); -CUSTOM_COMMAND_SIG(open_file_in_quotes); -CUSTOM_COMMAND_SIG(open_in_other); -CUSTOM_COMMAND_SIG(open_long_braces); -CUSTOM_COMMAND_SIG(open_long_braces_break); -CUSTOM_COMMAND_SIG(open_long_braces_semicolon); -CUSTOM_COMMAND_SIG(open_matching_file_cpp); -CUSTOM_COMMAND_SIG(open_panel_hsplit); -CUSTOM_COMMAND_SIG(open_panel_vsplit); -CUSTOM_COMMAND_SIG(page_down); -CUSTOM_COMMAND_SIG(page_up); -CUSTOM_COMMAND_SIG(paste); -CUSTOM_COMMAND_SIG(paste_and_indent); -CUSTOM_COMMAND_SIG(paste_next); -CUSTOM_COMMAND_SIG(paste_next_and_indent); -CUSTOM_COMMAND_SIG(place_in_scope); -CUSTOM_COMMAND_SIG(play_with_a_counter); -CUSTOM_COMMAND_SIG(profile_clear); -CUSTOM_COMMAND_SIG(profile_disable); -CUSTOM_COMMAND_SIG(profile_enable); -CUSTOM_COMMAND_SIG(profile_inspect); -CUSTOM_COMMAND_SIG(project_command_F1); -CUSTOM_COMMAND_SIG(project_command_F10); -CUSTOM_COMMAND_SIG(project_command_F11); -CUSTOM_COMMAND_SIG(project_command_F12); -CUSTOM_COMMAND_SIG(project_command_F13); -CUSTOM_COMMAND_SIG(project_command_F14); -CUSTOM_COMMAND_SIG(project_command_F15); -CUSTOM_COMMAND_SIG(project_command_F16); -CUSTOM_COMMAND_SIG(project_command_F2); -CUSTOM_COMMAND_SIG(project_command_F3); -CUSTOM_COMMAND_SIG(project_command_F4); -CUSTOM_COMMAND_SIG(project_command_F5); -CUSTOM_COMMAND_SIG(project_command_F6); -CUSTOM_COMMAND_SIG(project_command_F7); -CUSTOM_COMMAND_SIG(project_command_F8); -CUSTOM_COMMAND_SIG(project_command_F9); -CUSTOM_COMMAND_SIG(project_command_lister); -CUSTOM_COMMAND_SIG(project_fkey_command); -CUSTOM_COMMAND_SIG(project_go_to_root_directory); -CUSTOM_COMMAND_SIG(project_reprint); -CUSTOM_COMMAND_SIG(query_replace); -CUSTOM_COMMAND_SIG(query_replace_identifier); -CUSTOM_COMMAND_SIG(query_replace_selection); -CUSTOM_COMMAND_SIG(quick_swap_buffer); -CUSTOM_COMMAND_SIG(redo); -CUSTOM_COMMAND_SIG(redo_all_buffers); -CUSTOM_COMMAND_SIG(rename_file_query); -CUSTOM_COMMAND_SIG(reopen); -CUSTOM_COMMAND_SIG(replace_in_all_buffers); -CUSTOM_COMMAND_SIG(replace_in_buffer); -CUSTOM_COMMAND_SIG(replace_in_range); -CUSTOM_COMMAND_SIG(reverse_search); -CUSTOM_COMMAND_SIG(reverse_search_identifier); -CUSTOM_COMMAND_SIG(save); -CUSTOM_COMMAND_SIG(save_all_dirty_buffers); -CUSTOM_COMMAND_SIG(save_to_query); -CUSTOM_COMMAND_SIG(search); -CUSTOM_COMMAND_SIG(search_identifier); -CUSTOM_COMMAND_SIG(seek_beginning_of_line); -CUSTOM_COMMAND_SIG(seek_beginning_of_textual_line); -CUSTOM_COMMAND_SIG(seek_end_of_line); -CUSTOM_COMMAND_SIG(seek_end_of_textual_line); -CUSTOM_COMMAND_SIG(select_all); -CUSTOM_COMMAND_SIG(select_next_scope_absolute); -CUSTOM_COMMAND_SIG(select_next_scope_after_current); -CUSTOM_COMMAND_SIG(select_prev_scope_absolute); -CUSTOM_COMMAND_SIG(select_prev_top_most_scope); -CUSTOM_COMMAND_SIG(select_surrounding_scope); -CUSTOM_COMMAND_SIG(select_surrounding_scope_maximal); -CUSTOM_COMMAND_SIG(set_eol_mode_from_contents); -CUSTOM_COMMAND_SIG(set_eol_mode_to_binary); -CUSTOM_COMMAND_SIG(set_eol_mode_to_crlf); -CUSTOM_COMMAND_SIG(set_eol_mode_to_lf); -CUSTOM_COMMAND_SIG(set_face_size); -CUSTOM_COMMAND_SIG(set_face_size_this_buffer); -CUSTOM_COMMAND_SIG(set_mark); -CUSTOM_COMMAND_SIG(set_mode_to_notepad_like); -CUSTOM_COMMAND_SIG(set_mode_to_original); -CUSTOM_COMMAND_SIG(setup_build_bat); -CUSTOM_COMMAND_SIG(setup_build_bat_and_sh); -CUSTOM_COMMAND_SIG(setup_build_sh); -CUSTOM_COMMAND_SIG(setup_new_project); -CUSTOM_COMMAND_SIG(show_filebar); -CUSTOM_COMMAND_SIG(show_scrollbar); -CUSTOM_COMMAND_SIG(show_the_log_graph); -CUSTOM_COMMAND_SIG(snipe_backward_whitespace_or_token_boundary); -CUSTOM_COMMAND_SIG(snipe_forward_whitespace_or_token_boundary); -CUSTOM_COMMAND_SIG(snippet_lister); -CUSTOM_COMMAND_SIG(string_repeat); -CUSTOM_COMMAND_SIG(suppress_mouse); -CUSTOM_COMMAND_SIG(swap_panels); -CUSTOM_COMMAND_SIG(theme_lister); -CUSTOM_COMMAND_SIG(to_lowercase); -CUSTOM_COMMAND_SIG(to_uppercase); -CUSTOM_COMMAND_SIG(toggle_filebar); -CUSTOM_COMMAND_SIG(toggle_fps_meter); -CUSTOM_COMMAND_SIG(toggle_fullscreen); -CUSTOM_COMMAND_SIG(toggle_highlight_enclosing_scopes); -CUSTOM_COMMAND_SIG(toggle_highlight_line_at_cursor); -CUSTOM_COMMAND_SIG(toggle_line_numbers); -CUSTOM_COMMAND_SIG(toggle_line_wrap); -CUSTOM_COMMAND_SIG(toggle_mouse); -CUSTOM_COMMAND_SIG(toggle_paren_matching_helper); -CUSTOM_COMMAND_SIG(toggle_show_whitespace); -CUSTOM_COMMAND_SIG(toggle_virtual_whitespace); -CUSTOM_COMMAND_SIG(tutorial_maximize); -CUSTOM_COMMAND_SIG(tutorial_minimize); -CUSTOM_COMMAND_SIG(uncomment_line); -CUSTOM_COMMAND_SIG(undo); -CUSTOM_COMMAND_SIG(undo_all_buffers); -CUSTOM_COMMAND_SIG(view_buffer_other_panel); -CUSTOM_COMMAND_SIG(view_jump_list_with_lister); -CUSTOM_COMMAND_SIG(word_complete); -CUSTOM_COMMAND_SIG(word_complete_drop_down); -CUSTOM_COMMAND_SIG(write_block); -CUSTOM_COMMAND_SIG(write_hack); -CUSTOM_COMMAND_SIG(write_note); -CUSTOM_COMMAND_SIG(write_space); -CUSTOM_COMMAND_SIG(write_text_and_auto_indent); -CUSTOM_COMMAND_SIG(write_text_input); -CUSTOM_COMMAND_SIG(write_todo); -CUSTOM_COMMAND_SIG(write_underscore); -CUSTOM_COMMAND_SIG(write_zero_struct); -#endif -struct Command_Metadata{ -PROC_LINKS(Custom_Command_Function, void) *proc; -b32 is_ui; -char *name; -i32 name_len; -char *description; -i32 description_len; -char *source_name; -i32 source_name_len; -i32 line_number; -}; -static Command_Metadata fcoder_metacmd_table[282] = { -{ PROC_LINKS(allow_mouse, 0), false, "allow_mouse", 11, "Shows the mouse and causes all mouse input to be processed normally.", 68, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 481 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_auto_indent.cpp", 63, 420 }, -{ PROC_LINKS(auto_indent_range, 0), false, "auto_indent_range", 17, "Auto-indents the range between the cursor and the mark.", 55, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_auto_indent.cpp", 63, 430 }, -{ PROC_LINKS(auto_indent_whole_file, 0), false, "auto_indent_whole_file", 22, "Audo-indents the entire current buffer.", 39, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_auto_indent.cpp", 63, 411 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 154 }, -{ PROC_LINKS(backspace_alpha_numeric_or_camel_boundary, 0), false, "backspace_alpha_numeric_or_camel_boundary", 41, "Deletes left to a alphanumeric or camel boundary.", 49, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 277 }, -{ PROC_LINKS(backspace_char, 0), false, "backspace_char", 14, "Deletes the character to the left of the cursor.", 48, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 96 }, -{ PROC_LINKS(backspace_token_boundary, 0), false, "backspace_token_boundary", 24, "Deletes left to a token boundary.", 33, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 287 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 801 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 71 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_build_commands.cpp", 66, 160 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_build_commands.cpp", 66, 123 }, -{ PROC_LINKS(center_view, 0), false, "center_view", 11, "Centers the view vertically on the line on which the cursor sits.", 65, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 330 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 356 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 362 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_build_commands.cpp", 66, 181 }, -{ PROC_LINKS(clean_all_lines, 0), false, "clean_all_lines", 15, "Removes trailing whitespace from all lines and removes all blank lines in the current buffer.", 93, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 781 }, -{ PROC_LINKS(clean_trailing_whitespace, 0), false, "clean_trailing_whitespace", 25, "Removes trailing whitespace from all lines in the current buffer.", 65, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 790 }, -{ PROC_LINKS(clear_all_themes, 0), false, "clear_all_themes", 16, "Clear the theme list", 20, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 565 }, -{ PROC_LINKS(clear_clipboard, 0), false, "clear_clipboard", 15, "Clears the history of the clipboard", 35, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 221 }, -{ PROC_LINKS(click_set_cursor, 0), false, "click_set_cursor", 16, "Sets the cursor position to the mouse position.", 47, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 368 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 358 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 378 }, -{ PROC_LINKS(click_set_mark, 0), false, "click_set_mark", 14, "Sets the mark position to the mouse position.", 45, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 391 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 835 }, -{ PROC_LINKS(close_build_panel, 0), false, "close_build_panel", 17, "If the special build panel is open, closes it.", 46, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_build_commands.cpp", 66, 175 }, -{ PROC_LINKS(close_panel, 0), false, "close_panel", 11, "Closes the currently active panel if it is not the only panel open.", 67, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 809 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_docs.cpp", 56, 190 }, -{ PROC_LINKS(command_lister, 0), true, "command_lister", 14, "Opens an interactive list of all registered commands.", 53, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_lists.cpp", 57, 756 }, -{ PROC_LINKS(comment_line, 0), false, "comment_line", 12, "Insert '//' at the beginning of the line after leading whitespace.", 66, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 149 }, -{ PROC_LINKS(copy, 0), false, "copy", 4, "Copy the text in the range from the cursor to the mark onto the clipboard.", 74, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 110 }, -{ PROC_LINKS(cursor_mark_swap, 0), false, "cursor_mark_swap", 16, "Swaps the position of the cursor and the mark.", 46, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_docs.cpp", 56, 175 }, -{ PROC_LINKS(cut, 0), false, "cut", 3, "Cut the text in the range from the cursor to the mark onto the clipboard.", 73, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 119 }, -{ PROC_LINKS(decrease_face_size, 0), false, "decrease_face_size", 18, "Decrease the size of the face used by the current buffer.", 57, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 892 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 2225 }, -{ PROC_LINKS(default_startup, 0), false, "default_startup", 15, "Default command for responding to a startup event", 49, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_hooks.cpp", 65, 7 }, -{ PROC_LINKS(default_try_exit, 0), false, "default_try_exit", 16, "Default command for responding to a try-exit event", 50, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_hooks.cpp", 65, 63 }, -{ PROC_LINKS(default_view_input_handler, 0), false, "default_view_input_handler", 26, "Input consumption loop for default view behavior", 48, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_hooks.cpp", 65, 109 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 295 }, -{ PROC_LINKS(delete_char, 0), false, "delete_char", 11, "Deletes the character to the right of the cursor.", 49, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_scope_commands.cpp", 66, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1518 }, -{ PROC_LINKS(delete_line, 0), false, "delete_line", 11, "Delete the line the on which the cursor sits.", 45, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1690 }, -{ PROC_LINKS(delete_range, 0), false, "delete_range", 12, "Deletes the text in the range between the cursor and the mark.", 62, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 134 }, -{ PROC_LINKS(delete_to_end_of_line, 0), false, "delete_to_end_of_line", 21, "Deletes all text from the cursor to the end of the line", 55, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1709 }, -{ PROC_LINKS(display_key_codes, 0), false, "display_key_codes", 17, "Example of input handling loop", 30, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_examples.cpp", 60, 90 }, -{ PROC_LINKS(display_text_input, 0), false, "display_text_input", 18, "Example of to_writable and leave_current_input_unhandled", 56, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_examples.cpp", 60, 137 }, -{ PROC_LINKS(double_backspace, 0), false, "double_backspace", 16, "Example of history group helpers", 32, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_examples.cpp", 60, 10 }, -{ PROC_LINKS(duplicate_line, 0), false, "duplicate_line", 14, "Create a copy of the line on which the cursor sits.", 51, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1676 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_cli_command.cpp", 63, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_cli_command.cpp", 63, 7 }, -{ PROC_LINKS(exit_4coder, 0), false, "exit_4coder", 11, "Attempts to close 4coder.", 25, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 981 }, -{ PROC_LINKS(go_to_user_directory, 0), false, "go_to_user_directory", 20, "Go to the 4coder user directory", 31, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_config.cpp", 58, 1661 }, -{ PROC_LINKS(goto_beginning_of_file, 0), false, "goto_beginning_of_file", 22, "Sets the cursor to the beginning of the file.", 45, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_helper.cpp", 58, 2258 }, -{ PROC_LINKS(goto_end_of_file, 0), false, "goto_end_of_file", 16, "Sets the cursor to the end of the file.", 39, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_helper.cpp", 58, 2266 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_sticky.cpp", 63, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_sticky.cpp", 63, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_sticky.cpp", 63, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_sticky.cpp", 63, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 989 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_sticky.cpp", 63, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_sticky.cpp", 63, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_sticky.cpp", 63, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_sticky.cpp", 63, 511 }, -{ PROC_LINKS(hide_filebar, 0), false, "hide_filebar", 12, "Sets the current view to hide it's filebar.", 43, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 839 }, -{ PROC_LINKS(hide_scrollbar, 0), false, "hide_scrollbar", 14, "Sets the current view to hide it's scrollbar.", 45, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 825 }, -{ PROC_LINKS(hms_demo_tutorial, 0), false, "hms_demo_tutorial", 17, "Tutorial for built in 4coder bindings and features.", 51, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_tutorial.cpp", 60, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_sticky.cpp", 63, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_sticky.cpp", 63, 581 }, -{ PROC_LINKS(increase_face_size, 0), false, "increase_face_size", 18, "Increase the size of the face used by the current buffer.", 57, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 881 }, -{ PROC_LINKS(interactive_kill_buffer, 0), true, "interactive_kill_buffer", 23, "Interactively kill an open buffer.", 34, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_lists.cpp", 57, 516 }, -{ PROC_LINKS(interactive_new, 0), true, "interactive_new", 15, "Interactively creates a new file.", 33, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_lists.cpp", 57, 656 }, -{ PROC_LINKS(interactive_open, 0), true, "interactive_open", 16, "Interactively opens a file.", 27, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_lists.cpp", 57, 710 }, -{ PROC_LINKS(interactive_open_or_new, 0), true, "interactive_open_or_new", 23, "Interactively open a file out of the file system.", 49, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_lists.cpp", 57, 607 }, -{ PROC_LINKS(interactive_switch_buffer, 0), true, "interactive_switch_buffer", 25, "Interactively switch to an open buffer.", 39, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_lists.cpp", 57, 506 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_code_index_listers.cpp", 70, 12 }, -{ PROC_LINKS(jump_to_definition_at_cursor, 0), true, "jump_to_definition_at_cursor", 28, "Jump to the first definition in the code index matching an identifier at the cursor", 83, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_code_index_listers.cpp", 70, 68 }, -{ PROC_LINKS(jump_to_last_point, 0), false, "jump_to_last_point", 18, "Read from the top of the point stack and jump there; if already there pop the top and go to the next option", 107, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1471 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_keyboard_macro.cpp", 66, 54 }, -{ PROC_LINKS(keyboard_macro_replay, 0), false, "keyboard_macro_replay", 21, "Replay the most recently recorded keyboard macro", 48, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_keyboard_macro.cpp", 66, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_keyboard_macro.cpp", 66, 41 }, -{ PROC_LINKS(kill_buffer, 0), false, "kill_buffer", 11, "Kills the current buffer.", 25, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1886 }, -{ PROC_LINKS(kill_tutorial, 0), false, "kill_tutorial", 13, "If there is an active tutorial, kill it.", 40, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_tutorial.cpp", 60, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 345 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_function_list.cpp", 65, 296 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_function_list.cpp", 65, 302 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_function_list.cpp", 65, 268 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_function_list.cpp", 65, 278 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 168 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 180 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 192 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 198 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 204 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 210 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 216 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 224 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 174 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 186 }, -{ PROC_LINKS(lister_search_all, 0), true, "lister_search_all", 17, "Runs a search lister on all code indices of the project", 55, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_code_index_listers.cpp", 70, 176 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_config.cpp", 58, 1617 }, -{ PROC_LINKS(load_themes_default_folder, 0), false, "load_themes_default_folder", 26, "Loads all the theme files in the default theme folder.", 54, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 535 }, -{ PROC_LINKS(load_themes_hot_directory, 0), false, "load_themes_hot_directory", 25, "Loads all the theme files in the current hot directory.", 55, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 554 }, -{ PROC_LINKS(loco_jump_between_yeet, 0), false, "loco_jump_between_yeet", 22, "Jumps from the yeet sheet to the original buffer or vice versa.", 63, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 716 }, -{ PROC_LINKS(loco_load_yeet_snapshot_1, 0), false, "loco_load_yeet_snapshot_1", 25, "Load yeets snapshot from slot 1.", 32, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 879 }, -{ PROC_LINKS(loco_load_yeet_snapshot_2, 0), false, "loco_load_yeet_snapshot_2", 25, "Load yeets snapshot from slot 2.", 32, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 886 }, -{ PROC_LINKS(loco_load_yeet_snapshot_3, 0), false, "loco_load_yeet_snapshot_3", 25, "Load yeets snapshot from slot 3.", 32, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 893 }, -{ PROC_LINKS(loco_save_yeet_snapshot_1, 0), false, "loco_save_yeet_snapshot_1", 25, "Save yeets snapshot to slot 1.", 30, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 858 }, -{ PROC_LINKS(loco_save_yeet_snapshot_2, 0), false, "loco_save_yeet_snapshot_2", 25, "Save yeets snapshot to slot 2.", 30, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 865 }, -{ PROC_LINKS(loco_save_yeet_snapshot_3, 0), false, "loco_save_yeet_snapshot_3", 25, "Save yeets snapshot to slot 3.", 30, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 872 }, -{ PROC_LINKS(loco_yeet_clear, 0), false, "loco_yeet_clear", 15, "Clears all yeets.", 17, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 764 }, -{ PROC_LINKS(loco_yeet_remove_marker_pair, 0), false, "loco_yeet_remove_marker_pair", 28, "Removes the marker pair the cursor is currently inside.", 55, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 810 }, -{ PROC_LINKS(loco_yeet_reset_all, 0), false, "loco_yeet_reset_all", 19, "Clears all yeets in all snapshots, also clears all the markers.", 63, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 793 }, -{ PROC_LINKS(loco_yeet_selected_range_or_jump, 0), false, "loco_yeet_selected_range_or_jump", 32, "Yeets some code into a yeet buffer.", 35, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 723 }, -{ PROC_LINKS(loco_yeet_surrounding_function, 0), false, "loco_yeet_surrounding_function", 30, "Selects the surrounding function scope and yeets it.", 52, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 738 }, -{ PROC_LINKS(loco_yeet_tag, 0), false, "loco_yeet_tag", 13, "Find all locations of a comment tag (//@tag) in all buffers and yeet the scope they precede.", 92, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_yeet.cpp", 56, 1032 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1630 }, -{ PROC_LINKS(miblo_decrement_basic, 0), false, "miblo_decrement_basic", 21, "Decrement an integer under the cursor by one.", 45, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_miblo_numbers.cpp", 65, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_miblo_numbers.cpp", 65, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_miblo_numbers.cpp", 65, 249 }, -{ PROC_LINKS(miblo_increment_basic, 0), false, "miblo_increment_basic", 21, "Increment an integer under the cursor by one.", 45, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_miblo_numbers.cpp", 65, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_miblo_numbers.cpp", 65, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_miblo_numbers.cpp", 65, 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 934 }, -{ PROC_LINKS(mouse_wheel_scroll, 0), false, "mouse_wheel_scroll", 18, "Reads the scroll wheel value from the mouse state and scrolls accordingly.", 74, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 401 }, -{ PROC_LINKS(move_down, 0), false, "move_down", 9, "Moves the cursor down one line.", 31, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 475 }, -{ PROC_LINKS(move_down_10, 0), false, "move_down_10", 12, "Moves the cursor down ten lines.", 32, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 487 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 493 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 546 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 570 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 558 }, -{ PROC_LINKS(move_left, 0), false, "move_left", 9, "Moves the cursor one character to the left.", 43, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 576 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 653 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 667 }, -{ PROC_LINKS(move_left_token_boundary, 0), false, "move_left_token_boundary", 24, "Seek left for the next beginning of a token.", 44, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 625 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 610 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 639 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1670 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1664 }, -{ PROC_LINKS(move_right, 0), false, "move_right", 10, "Moves the cursor one character to the right.", 44, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 584 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 646 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 660 }, -{ PROC_LINKS(move_right_token_boundary, 0), false, "move_right_token_boundary", 25, "Seek right for the next end of a token.", 39, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 618 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 602 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 632 }, -{ PROC_LINKS(move_up, 0), false, "move_up", 7, "Moves the cursor up one line.", 29, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 469 }, -{ PROC_LINKS(move_up_10, 0), false, "move_up_10", 10, "Moves the cursor up ten lines.", 30, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 481 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 540 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 564 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 552 }, -{ PROC_LINKS(multi_paste, 0), false, "multi_paste", 11, "Paste multiple entries from the clipboard at once", 49, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 229 }, -{ PROC_LINKS(multi_paste_interactive, 0), false, "multi_paste_interactive", 23, "Paste multiple lines from the clipboard history, controlled with arrow keys", 75, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 371 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 380 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 844 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 853 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1736 }, -{ PROC_LINKS(open_in_other, 0), false, "open_in_other", 13, "Interactively opens a file in the other panel.", 46, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 2219 }, -{ PROC_LINKS(open_long_braces, 0), false, "open_long_braces", 16, "At the cursor, insert a '{' and '}' separated by a blank line.", 62, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 46 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 62 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 54 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1819 }, -{ PROC_LINKS(open_panel_hsplit, 0), false, "open_panel_hsplit", 17, "Create a new panel by horizontally splitting the active panel.", 62, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 382 }, -{ PROC_LINKS(open_panel_vsplit, 0), false, "open_panel_vsplit", 17, "Create a new panel by vertically splitting the active panel.", 60, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 372 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 511 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 503 }, -{ PROC_LINKS(paste, 0), false, "paste", 5, "At the cursor, insert the text at the top of the clipboard.", 59, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 130 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 207 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 164 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_clipboard.cpp", 61, 214 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_scope_commands.cpp", 66, 106 }, -{ PROC_LINKS(play_with_a_counter, 0), false, "play_with_a_counter", 19, "Example of query bar", 20, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_examples.cpp", 60, 29 }, -{ PROC_LINKS(profile_clear, 0), false, "profile_clear", 13, "Clear all profiling information from 4coder's self profiler.", 60, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_profile.cpp", 59, 226 }, -{ PROC_LINKS(profile_disable, 0), false, "profile_disable", 15, "Prevent 4coder's self profiler from gathering new profiling information.", 72, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_profile.cpp", 59, 219 }, -{ PROC_LINKS(profile_enable, 0), false, "profile_enable", 14, "Allow 4coder's self profiler to gather new profiling information.", 65, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_profile.cpp", 59, 212 }, -{ PROC_LINKS(profile_inspect, 0), true, "profile_inspect", 15, "Inspect all currently collected profiling information in 4coder's self profiler.", 80, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_profile_inspect.cpp", 67, 886 }, -{ PROC_LINKS(project_command_F1, 0), false, "project_command_F1", 18, "Run the command with index 1", 28, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1090 }, -{ PROC_LINKS(project_command_F10, 0), false, "project_command_F10", 19, "Run the command with index 10", 29, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1144 }, -{ PROC_LINKS(project_command_F11, 0), false, "project_command_F11", 19, "Run the command with index 11", 29, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1150 }, -{ PROC_LINKS(project_command_F12, 0), false, "project_command_F12", 19, "Run the command with index 12", 29, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1156 }, -{ PROC_LINKS(project_command_F13, 0), false, "project_command_F13", 19, "Run the command with index 13", 29, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1162 }, -{ PROC_LINKS(project_command_F14, 0), false, "project_command_F14", 19, "Run the command with index 14", 29, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1168 }, -{ PROC_LINKS(project_command_F15, 0), false, "project_command_F15", 19, "Run the command with index 15", 29, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1174 }, -{ PROC_LINKS(project_command_F16, 0), false, "project_command_F16", 19, "Run the command with index 16", 29, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1180 }, -{ PROC_LINKS(project_command_F2, 0), false, "project_command_F2", 18, "Run the command with index 2", 28, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1096 }, -{ PROC_LINKS(project_command_F3, 0), false, "project_command_F3", 18, "Run the command with index 3", 28, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1102 }, -{ PROC_LINKS(project_command_F4, 0), false, "project_command_F4", 18, "Run the command with index 4", 28, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1108 }, -{ PROC_LINKS(project_command_F5, 0), false, "project_command_F5", 18, "Run the command with index 5", 28, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1114 }, -{ PROC_LINKS(project_command_F6, 0), false, "project_command_F6", 18, "Run the command with index 6", 28, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1120 }, -{ PROC_LINKS(project_command_F7, 0), false, "project_command_F7", 18, "Run the command with index 7", 28, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1126 }, -{ PROC_LINKS(project_command_F8, 0), false, "project_command_F8", 18, "Run the command with index 8", 28, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1132 }, -{ PROC_LINKS(project_command_F9, 0), false, "project_command_F9", 18, "Run the command with index 9", 28, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1138 }, -{ PROC_LINKS(project_command_lister, 0), false, "project_command_lister", 22, "Open a lister of all commands in the currently loaded project.", 62, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1042 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 980 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1006 }, -{ PROC_LINKS(project_reprint, 0), false, "project_reprint", 15, "Prints the current project to the file it was loaded from; prints in the most recent project file version", 105, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1052 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1417 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1438 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1454 }, -{ PROC_LINKS(quick_swap_buffer, 0), false, "quick_swap_buffer", 17, "Change to the most recently used buffer in this view - or to the top of the buffer stack if the most recent doesn't exist anymore", 129, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1866 }, -{ PROC_LINKS(redo, 0), false, "redo", 4, "Advances forwards through the undo history of the current buffer.", 65, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 2046 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 2143 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1595 }, -{ PROC_LINKS(reopen, 0), false, "reopen", 6, "Reopen the current buffer from the hard drive.", 46, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1904 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1327 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1318 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1309 }, -{ PROC_LINKS(reverse_search, 0), false, "reverse_search", 14, "Begins an incremental search up through the current buffer for a user specified string.", 87, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1250 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1262 }, -{ PROC_LINKS(save, 0), false, "save", 4, "Saves the current buffer.", 25, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1894 }, -{ PROC_LINKS(save_all_dirty_buffers, 0), false, "save_all_dirty_buffers", 22, "Saves all buffers marked dirty (showing the '*' indicator).", 59, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 454 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1562 }, -{ PROC_LINKS(search, 0), false, "search", 6, "Begins an incremental search down through the current buffer for a user specified string.", 89, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1244 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1256 }, -{ PROC_LINKS(seek_beginning_of_line, 0), false, "seek_beginning_of_line", 22, "Seeks the cursor to the beginning of the visual line.", 53, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_helper.cpp", 58, 2246 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_helper.cpp", 58, 2234 }, -{ PROC_LINKS(seek_end_of_line, 0), false, "seek_end_of_line", 16, "Seeks the cursor to the end of the visual line.", 47, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_helper.cpp", 58, 2252 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_helper.cpp", 58, 2240 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 676 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_scope_commands.cpp", 66, 57 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_scope_commands.cpp", 66, 66 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_scope_commands.cpp", 66, 82 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_scope_commands.cpp", 66, 99 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_scope_commands.cpp", 66, 27 }, -{ PROC_LINKS(select_surrounding_scope_maximal, 0), false, "select_surrounding_scope_maximal", 32, "Selects the top-most scope that surrounds the cursor.", 53, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_scope_commands.cpp", 66, 39 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_eol.cpp", 55, 125 }, -{ PROC_LINKS(set_eol_mode_to_binary, 0), false, "set_eol_mode_to_binary", 22, "Puts the buffer in bin line ending mode.", 40, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_eol.cpp", 55, 112 }, -{ PROC_LINKS(set_eol_mode_to_crlf, 0), false, "set_eol_mode_to_crlf", 20, "Puts the buffer in crlf line ending mode.", 41, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_eol.cpp", 55, 86 }, -{ PROC_LINKS(set_eol_mode_to_lf, 0), false, "set_eol_mode_to_lf", 18, "Puts the buffer in lf line ending mode.", 39, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_eol.cpp", 55, 99 }, -{ PROC_LINKS(set_face_size, 0), false, "set_face_size", 13, "Set face size of the face used by the current buffer.", 53, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 861 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 903 }, -{ PROC_LINKS(set_mark, 0), false, "set_mark", 8, "Sets the mark to the current position of the cursor.", 52, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 115 }, -{ PROC_LINKS(set_mode_to_notepad_like, 0), false, "set_mode_to_notepad_like", 24, "Sets the edit mode to Notepad like.", 35, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 499 }, -{ PROC_LINKS(set_mode_to_original, 0), false, "set_mode_to_original", 20, "Sets the edit mode to 4coder original.", 38, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 493 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1024 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1036 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1030 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_project_commands.cpp", 68, 1017 }, -{ PROC_LINKS(show_filebar, 0), false, "show_filebar", 12, "Sets the current view to show it's filebar.", 43, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 832 }, -{ PROC_LINKS(show_scrollbar, 0), false, "show_scrollbar", 14, "Sets the current view to show it's scrollbar.", 45, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 818 }, -{ PROC_LINKS(show_the_log_graph, 0), true, "show_the_log_graph", 18, "Parses *log* and displays the 'log graph' UI", 44, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_log_parser.cpp", 62, 991 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 312 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 320 }, -{ PROC_LINKS(snippet_lister, 0), true, "snippet_lister", 14, "Opens a snippet lister for inserting whole pre-written snippets of text.", 72, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 237 }, -{ PROC_LINKS(string_repeat, 0), false, "string_repeat", 13, "Example of query_user_string and query_user_number", 50, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_examples.cpp", 60, 179 }, -{ PROC_LINKS(suppress_mouse, 0), false, "suppress_mouse", 14, "Hides the mouse and causes all mosue input (clicks, position, wheel) to be ignored.", 83, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 475 }, -{ PROC_LINKS(swap_panels, 0), false, "swap_panels", 11, "Swaps the active panel with it's sibling.", 41, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1844 }, -{ PROC_LINKS(theme_lister, 0), true, "theme_lister", 12, "Opens an interactive list of all registered themes.", 51, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_lists.cpp", 57, 780 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 702 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 689 }, -{ PROC_LINKS(toggle_filebar, 0), false, "toggle_filebar", 14, "Toggles the visibility status of the current view's filebar.", 60, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 846 }, -{ PROC_LINKS(toggle_fps_meter, 0), false, "toggle_fps_meter", 16, "Toggles the visibility of the FPS performance meter", 51, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 855 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 529 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 513 }, -{ PROC_LINKS(toggle_highlight_line_at_cursor, 0), false, "toggle_highlight_line_at_cursor", 31, "Toggles the line highlight at the cursor.", 41, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 505 }, -{ PROC_LINKS(toggle_line_numbers, 0), false, "toggle_line_numbers", 19, "Toggles the left margin line numbers.", 37, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 960 }, -{ PROC_LINKS(toggle_line_wrap, 0), false, "toggle_line_wrap", 16, "Toggles the line wrap setting on this buffer.", 45, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 968 }, -{ PROC_LINKS(toggle_mouse, 0), false, "toggle_mouse", 12, "Toggles the mouse suppression mode, see suppress_mouse and allow_mouse.", 71, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 487 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_default_framework.cpp", 69, 521 }, -{ PROC_LINKS(toggle_show_whitespace, 0), false, "toggle_show_whitespace", 22, "Toggles the current buffer's whitespace visibility status.", 58, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 951 }, -{ PROC_LINKS(toggle_virtual_whitespace, 0), false, "toggle_virtual_whitespace", 25, "Toggles virtual whitespace for all files.", 41, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_code_index.cpp", 62, 1238 }, -{ PROC_LINKS(tutorial_maximize, 0), false, "tutorial_maximize", 17, "Expand the tutorial window", 26, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_tutorial.cpp", 60, 20 }, -{ PROC_LINKS(tutorial_minimize, 0), false, "tutorial_minimize", 17, "Shrink the tutorial window", 26, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_tutorial.cpp", 60, 34 }, -{ PROC_LINKS(uncomment_line, 0), false, "uncomment_line", 14, "If present, delete '//' at the beginning of the line after leading whitespace.", 78, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 137 }, -{ PROC_LINKS(undo, 0), false, "undo", 4, "Advances backwards through the undo history of the current buffer.", 66, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1994 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 2072 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 1832 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_jump_lister.cpp", 63, 59 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 433 }, -{ PROC_LINKS(word_complete_drop_down, 0), false, "word_complete_drop_down", 23, "Word complete with drop down menu.", 34, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_search.cpp", 58, 679 }, -{ PROC_LINKS(write_block, 0), false, "write_block", 11, "At the cursor, insert a block comment.", 38, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 94 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 82 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 88 }, -{ PROC_LINKS(write_space, 0), false, "write_space", 11, "Inserts a space.", 16, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 67 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_auto_indent.cpp", 63, 507 }, -{ PROC_LINKS(write_text_input, 0), false, "write_text_input", 16, "Inserts whatever text was used to trigger this command.", 55, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 59 }, -{ 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, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 76 }, -{ PROC_LINKS(write_underscore, 0), false, "write_underscore", 16, "Inserts an underscore.", 22, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_base_commands.cpp", 65, 73 }, -{ PROC_LINKS(write_zero_struct, 0), false, "write_zero_struct", 17, "At the cursor, insert a ' = {};'.", 33, "/Users/ps/work/4coder_CLAUDE/code/custom/4coder_combined_write_commands.cpp", 75, 100 }, -}; -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_range = 2; -static i32 fcoder_metacmd_ID_auto_indent_whole_file = 3; -static i32 fcoder_metacmd_ID_backspace_alpha_numeric_boundary = 4; -static i32 fcoder_metacmd_ID_backspace_alpha_numeric_or_camel_boundary = 5; -static i32 fcoder_metacmd_ID_backspace_char = 6; -static i32 fcoder_metacmd_ID_backspace_token_boundary = 7; -static i32 fcoder_metacmd_ID_basic_change_active_panel = 8; -static i32 fcoder_metacmd_ID_begin_clipboard_collection_mode = 9; -static i32 fcoder_metacmd_ID_build_in_build_panel = 10; -static i32 fcoder_metacmd_ID_build_search = 11; -static i32 fcoder_metacmd_ID_center_view = 12; -static i32 fcoder_metacmd_ID_change_active_panel = 13; -static i32 fcoder_metacmd_ID_change_active_panel_backwards = 14; -static i32 fcoder_metacmd_ID_change_to_build_panel = 15; -static i32 fcoder_metacmd_ID_clean_all_lines = 16; -static i32 fcoder_metacmd_ID_clean_trailing_whitespace = 17; -static i32 fcoder_metacmd_ID_clear_all_themes = 18; -static i32 fcoder_metacmd_ID_clear_clipboard = 19; -static i32 fcoder_metacmd_ID_click_set_cursor = 20; -static i32 fcoder_metacmd_ID_click_set_cursor_and_mark = 21; -static i32 fcoder_metacmd_ID_click_set_cursor_if_lbutton = 22; -static i32 fcoder_metacmd_ID_click_set_mark = 23; -static i32 fcoder_metacmd_ID_clipboard_record_clip = 24; -static i32 fcoder_metacmd_ID_close_all_code = 25; -static i32 fcoder_metacmd_ID_close_build_panel = 26; -static i32 fcoder_metacmd_ID_close_panel = 27; -static i32 fcoder_metacmd_ID_command_documentation = 28; -static i32 fcoder_metacmd_ID_command_lister = 29; -static i32 fcoder_metacmd_ID_comment_line = 30; -static i32 fcoder_metacmd_ID_comment_line_toggle = 31; -static i32 fcoder_metacmd_ID_copy = 32; -static i32 fcoder_metacmd_ID_cursor_mark_swap = 33; -static i32 fcoder_metacmd_ID_custom_api_documentation = 34; -static i32 fcoder_metacmd_ID_cut = 35; -static i32 fcoder_metacmd_ID_decrease_face_size = 36; -static i32 fcoder_metacmd_ID_default_file_externally_modified = 37; -static i32 fcoder_metacmd_ID_default_startup = 38; -static i32 fcoder_metacmd_ID_default_try_exit = 39; -static i32 fcoder_metacmd_ID_default_view_input_handler = 40; -static i32 fcoder_metacmd_ID_delete_alpha_numeric_boundary = 41; -static i32 fcoder_metacmd_ID_delete_char = 42; -static i32 fcoder_metacmd_ID_delete_current_scope = 43; -static i32 fcoder_metacmd_ID_delete_file_query = 44; -static i32 fcoder_metacmd_ID_delete_line = 45; -static i32 fcoder_metacmd_ID_delete_range = 46; -static i32 fcoder_metacmd_ID_delete_to_end_of_line = 47; -static i32 fcoder_metacmd_ID_display_key_codes = 48; -static i32 fcoder_metacmd_ID_display_text_input = 49; -static i32 fcoder_metacmd_ID_double_backspace = 50; -static i32 fcoder_metacmd_ID_duplicate_line = 51; -static i32 fcoder_metacmd_ID_execute_any_cli = 52; -static i32 fcoder_metacmd_ID_execute_previous_cli = 53; -static i32 fcoder_metacmd_ID_exit_4coder = 54; -static i32 fcoder_metacmd_ID_go_to_user_directory = 55; -static i32 fcoder_metacmd_ID_goto_beginning_of_file = 56; -static i32 fcoder_metacmd_ID_goto_end_of_file = 57; -static i32 fcoder_metacmd_ID_goto_first_jump = 58; -static i32 fcoder_metacmd_ID_goto_first_jump_same_panel_sticky = 59; -static i32 fcoder_metacmd_ID_goto_jump_at_cursor = 60; -static i32 fcoder_metacmd_ID_goto_jump_at_cursor_same_panel = 61; -static i32 fcoder_metacmd_ID_goto_line = 62; -static i32 fcoder_metacmd_ID_goto_next_jump = 63; -static i32 fcoder_metacmd_ID_goto_next_jump_no_skips = 64; -static i32 fcoder_metacmd_ID_goto_prev_jump = 65; -static i32 fcoder_metacmd_ID_goto_prev_jump_no_skips = 66; -static i32 fcoder_metacmd_ID_hide_filebar = 67; -static i32 fcoder_metacmd_ID_hide_scrollbar = 68; -static i32 fcoder_metacmd_ID_hms_demo_tutorial = 69; -static i32 fcoder_metacmd_ID_if0_off = 70; -static i32 fcoder_metacmd_ID_if_read_only_goto_position = 71; -static i32 fcoder_metacmd_ID_if_read_only_goto_position_same_panel = 72; -static i32 fcoder_metacmd_ID_increase_face_size = 73; -static i32 fcoder_metacmd_ID_interactive_kill_buffer = 74; -static i32 fcoder_metacmd_ID_interactive_new = 75; -static i32 fcoder_metacmd_ID_interactive_open = 76; -static i32 fcoder_metacmd_ID_interactive_open_or_new = 77; -static i32 fcoder_metacmd_ID_interactive_switch_buffer = 78; -static i32 fcoder_metacmd_ID_jump_to_definition = 79; -static i32 fcoder_metacmd_ID_jump_to_definition_at_cursor = 80; -static i32 fcoder_metacmd_ID_jump_to_last_point = 81; -static i32 fcoder_metacmd_ID_keyboard_macro_finish_recording = 82; -static i32 fcoder_metacmd_ID_keyboard_macro_replay = 83; -static i32 fcoder_metacmd_ID_keyboard_macro_start_recording = 84; -static i32 fcoder_metacmd_ID_kill_buffer = 85; -static i32 fcoder_metacmd_ID_kill_tutorial = 86; -static i32 fcoder_metacmd_ID_left_adjust_view = 87; -static i32 fcoder_metacmd_ID_list_all_functions_all_buffers = 88; -static i32 fcoder_metacmd_ID_list_all_functions_all_buffers_lister = 89; -static i32 fcoder_metacmd_ID_list_all_functions_current_buffer = 90; -static i32 fcoder_metacmd_ID_list_all_functions_current_buffer_lister = 91; -static i32 fcoder_metacmd_ID_list_all_locations = 92; -static i32 fcoder_metacmd_ID_list_all_locations_case_insensitive = 93; -static i32 fcoder_metacmd_ID_list_all_locations_of_identifier = 94; -static i32 fcoder_metacmd_ID_list_all_locations_of_identifier_case_insensitive = 95; -static i32 fcoder_metacmd_ID_list_all_locations_of_selection = 96; -static i32 fcoder_metacmd_ID_list_all_locations_of_selection_case_insensitive = 97; -static i32 fcoder_metacmd_ID_list_all_locations_of_type_definition = 98; -static i32 fcoder_metacmd_ID_list_all_locations_of_type_definition_of_identifier = 99; -static i32 fcoder_metacmd_ID_list_all_substring_locations = 100; -static i32 fcoder_metacmd_ID_list_all_substring_locations_case_insensitive = 101; -static i32 fcoder_metacmd_ID_lister_search_all = 102; -static i32 fcoder_metacmd_ID_load_project = 103; -static i32 fcoder_metacmd_ID_load_theme_current_buffer = 104; -static i32 fcoder_metacmd_ID_load_themes_default_folder = 105; -static i32 fcoder_metacmd_ID_load_themes_hot_directory = 106; -static i32 fcoder_metacmd_ID_loco_jump_between_yeet = 107; -static i32 fcoder_metacmd_ID_loco_load_yeet_snapshot_1 = 108; -static i32 fcoder_metacmd_ID_loco_load_yeet_snapshot_2 = 109; -static i32 fcoder_metacmd_ID_loco_load_yeet_snapshot_3 = 110; -static i32 fcoder_metacmd_ID_loco_save_yeet_snapshot_1 = 111; -static i32 fcoder_metacmd_ID_loco_save_yeet_snapshot_2 = 112; -static i32 fcoder_metacmd_ID_loco_save_yeet_snapshot_3 = 113; -static i32 fcoder_metacmd_ID_loco_yeet_clear = 114; -static i32 fcoder_metacmd_ID_loco_yeet_remove_marker_pair = 115; -static i32 fcoder_metacmd_ID_loco_yeet_reset_all = 116; -static i32 fcoder_metacmd_ID_loco_yeet_selected_range_or_jump = 117; -static i32 fcoder_metacmd_ID_loco_yeet_surrounding_function = 118; -static i32 fcoder_metacmd_ID_loco_yeet_tag = 119; -static i32 fcoder_metacmd_ID_make_directory_query = 120; -static i32 fcoder_metacmd_ID_miblo_decrement_basic = 121; -static i32 fcoder_metacmd_ID_miblo_decrement_time_stamp = 122; -static i32 fcoder_metacmd_ID_miblo_decrement_time_stamp_minute = 123; -static i32 fcoder_metacmd_ID_miblo_increment_basic = 124; -static i32 fcoder_metacmd_ID_miblo_increment_time_stamp = 125; -static i32 fcoder_metacmd_ID_miblo_increment_time_stamp_minute = 126; -static i32 fcoder_metacmd_ID_mouse_wheel_change_face_size = 127; -static i32 fcoder_metacmd_ID_mouse_wheel_scroll = 128; -static i32 fcoder_metacmd_ID_move_down = 129; -static i32 fcoder_metacmd_ID_move_down_10 = 130; -static i32 fcoder_metacmd_ID_move_down_textual = 131; -static i32 fcoder_metacmd_ID_move_down_to_blank_line = 132; -static i32 fcoder_metacmd_ID_move_down_to_blank_line_end = 133; -static i32 fcoder_metacmd_ID_move_down_to_blank_line_skip_whitespace = 134; -static i32 fcoder_metacmd_ID_move_left = 135; -static i32 fcoder_metacmd_ID_move_left_alpha_numeric_boundary = 136; -static i32 fcoder_metacmd_ID_move_left_alpha_numeric_or_camel_boundary = 137; -static i32 fcoder_metacmd_ID_move_left_token_boundary = 138; -static i32 fcoder_metacmd_ID_move_left_whitespace_boundary = 139; -static i32 fcoder_metacmd_ID_move_left_whitespace_or_token_boundary = 140; -static i32 fcoder_metacmd_ID_move_line_down = 141; -static i32 fcoder_metacmd_ID_move_line_up = 142; -static i32 fcoder_metacmd_ID_move_right = 143; -static i32 fcoder_metacmd_ID_move_right_alpha_numeric_boundary = 144; -static i32 fcoder_metacmd_ID_move_right_alpha_numeric_or_camel_boundary = 145; -static i32 fcoder_metacmd_ID_move_right_token_boundary = 146; -static i32 fcoder_metacmd_ID_move_right_whitespace_boundary = 147; -static i32 fcoder_metacmd_ID_move_right_whitespace_or_token_boundary = 148; -static i32 fcoder_metacmd_ID_move_up = 149; -static i32 fcoder_metacmd_ID_move_up_10 = 150; -static i32 fcoder_metacmd_ID_move_up_to_blank_line = 151; -static i32 fcoder_metacmd_ID_move_up_to_blank_line_end = 152; -static i32 fcoder_metacmd_ID_move_up_to_blank_line_skip_whitespace = 153; -static i32 fcoder_metacmd_ID_multi_paste = 154; -static i32 fcoder_metacmd_ID_multi_paste_interactive = 155; -static i32 fcoder_metacmd_ID_multi_paste_interactive_quick = 156; -static i32 fcoder_metacmd_ID_open_all_code = 157; -static i32 fcoder_metacmd_ID_open_all_code_recursive = 158; -static i32 fcoder_metacmd_ID_open_file_in_quotes = 159; -static i32 fcoder_metacmd_ID_open_in_other = 160; -static i32 fcoder_metacmd_ID_open_long_braces = 161; -static i32 fcoder_metacmd_ID_open_long_braces_break = 162; -static i32 fcoder_metacmd_ID_open_long_braces_semicolon = 163; -static i32 fcoder_metacmd_ID_open_matching_file_cpp = 164; -static i32 fcoder_metacmd_ID_open_panel_hsplit = 165; -static i32 fcoder_metacmd_ID_open_panel_vsplit = 166; -static i32 fcoder_metacmd_ID_page_down = 167; -static i32 fcoder_metacmd_ID_page_up = 168; -static i32 fcoder_metacmd_ID_paste = 169; -static i32 fcoder_metacmd_ID_paste_and_indent = 170; -static i32 fcoder_metacmd_ID_paste_next = 171; -static i32 fcoder_metacmd_ID_paste_next_and_indent = 172; -static i32 fcoder_metacmd_ID_place_in_scope = 173; -static i32 fcoder_metacmd_ID_play_with_a_counter = 174; -static i32 fcoder_metacmd_ID_profile_clear = 175; -static i32 fcoder_metacmd_ID_profile_disable = 176; -static i32 fcoder_metacmd_ID_profile_enable = 177; -static i32 fcoder_metacmd_ID_profile_inspect = 178; -static i32 fcoder_metacmd_ID_project_command_F1 = 179; -static i32 fcoder_metacmd_ID_project_command_F10 = 180; -static i32 fcoder_metacmd_ID_project_command_F11 = 181; -static i32 fcoder_metacmd_ID_project_command_F12 = 182; -static i32 fcoder_metacmd_ID_project_command_F13 = 183; -static i32 fcoder_metacmd_ID_project_command_F14 = 184; -static i32 fcoder_metacmd_ID_project_command_F15 = 185; -static i32 fcoder_metacmd_ID_project_command_F16 = 186; -static i32 fcoder_metacmd_ID_project_command_F2 = 187; -static i32 fcoder_metacmd_ID_project_command_F3 = 188; -static i32 fcoder_metacmd_ID_project_command_F4 = 189; -static i32 fcoder_metacmd_ID_project_command_F5 = 190; -static i32 fcoder_metacmd_ID_project_command_F6 = 191; -static i32 fcoder_metacmd_ID_project_command_F7 = 192; -static i32 fcoder_metacmd_ID_project_command_F8 = 193; -static i32 fcoder_metacmd_ID_project_command_F9 = 194; -static i32 fcoder_metacmd_ID_project_command_lister = 195; -static i32 fcoder_metacmd_ID_project_fkey_command = 196; -static i32 fcoder_metacmd_ID_project_go_to_root_directory = 197; -static i32 fcoder_metacmd_ID_project_reprint = 198; -static i32 fcoder_metacmd_ID_query_replace = 199; -static i32 fcoder_metacmd_ID_query_replace_identifier = 200; -static i32 fcoder_metacmd_ID_query_replace_selection = 201; -static i32 fcoder_metacmd_ID_quick_swap_buffer = 202; -static i32 fcoder_metacmd_ID_redo = 203; -static i32 fcoder_metacmd_ID_redo_all_buffers = 204; -static i32 fcoder_metacmd_ID_rename_file_query = 205; -static i32 fcoder_metacmd_ID_reopen = 206; -static i32 fcoder_metacmd_ID_replace_in_all_buffers = 207; -static i32 fcoder_metacmd_ID_replace_in_buffer = 208; -static i32 fcoder_metacmd_ID_replace_in_range = 209; -static i32 fcoder_metacmd_ID_reverse_search = 210; -static i32 fcoder_metacmd_ID_reverse_search_identifier = 211; -static i32 fcoder_metacmd_ID_save = 212; -static i32 fcoder_metacmd_ID_save_all_dirty_buffers = 213; -static i32 fcoder_metacmd_ID_save_to_query = 214; -static i32 fcoder_metacmd_ID_search = 215; -static i32 fcoder_metacmd_ID_search_identifier = 216; -static i32 fcoder_metacmd_ID_seek_beginning_of_line = 217; -static i32 fcoder_metacmd_ID_seek_beginning_of_textual_line = 218; -static i32 fcoder_metacmd_ID_seek_end_of_line = 219; -static i32 fcoder_metacmd_ID_seek_end_of_textual_line = 220; -static i32 fcoder_metacmd_ID_select_all = 221; -static i32 fcoder_metacmd_ID_select_next_scope_absolute = 222; -static i32 fcoder_metacmd_ID_select_next_scope_after_current = 223; -static i32 fcoder_metacmd_ID_select_prev_scope_absolute = 224; -static i32 fcoder_metacmd_ID_select_prev_top_most_scope = 225; -static i32 fcoder_metacmd_ID_select_surrounding_scope = 226; -static i32 fcoder_metacmd_ID_select_surrounding_scope_maximal = 227; -static i32 fcoder_metacmd_ID_set_eol_mode_from_contents = 228; -static i32 fcoder_metacmd_ID_set_eol_mode_to_binary = 229; -static i32 fcoder_metacmd_ID_set_eol_mode_to_crlf = 230; -static i32 fcoder_metacmd_ID_set_eol_mode_to_lf = 231; -static i32 fcoder_metacmd_ID_set_face_size = 232; -static i32 fcoder_metacmd_ID_set_face_size_this_buffer = 233; -static i32 fcoder_metacmd_ID_set_mark = 234; -static i32 fcoder_metacmd_ID_set_mode_to_notepad_like = 235; -static i32 fcoder_metacmd_ID_set_mode_to_original = 236; -static i32 fcoder_metacmd_ID_setup_build_bat = 237; -static i32 fcoder_metacmd_ID_setup_build_bat_and_sh = 238; -static i32 fcoder_metacmd_ID_setup_build_sh = 239; -static i32 fcoder_metacmd_ID_setup_new_project = 240; -static i32 fcoder_metacmd_ID_show_filebar = 241; -static i32 fcoder_metacmd_ID_show_scrollbar = 242; -static i32 fcoder_metacmd_ID_show_the_log_graph = 243; -static i32 fcoder_metacmd_ID_snipe_backward_whitespace_or_token_boundary = 244; -static i32 fcoder_metacmd_ID_snipe_forward_whitespace_or_token_boundary = 245; -static i32 fcoder_metacmd_ID_snippet_lister = 246; -static i32 fcoder_metacmd_ID_string_repeat = 247; -static i32 fcoder_metacmd_ID_suppress_mouse = 248; -static i32 fcoder_metacmd_ID_swap_panels = 249; -static i32 fcoder_metacmd_ID_theme_lister = 250; -static i32 fcoder_metacmd_ID_to_lowercase = 251; -static i32 fcoder_metacmd_ID_to_uppercase = 252; -static i32 fcoder_metacmd_ID_toggle_filebar = 253; -static i32 fcoder_metacmd_ID_toggle_fps_meter = 254; -static i32 fcoder_metacmd_ID_toggle_fullscreen = 255; -static i32 fcoder_metacmd_ID_toggle_highlight_enclosing_scopes = 256; -static i32 fcoder_metacmd_ID_toggle_highlight_line_at_cursor = 257; -static i32 fcoder_metacmd_ID_toggle_line_numbers = 258; -static i32 fcoder_metacmd_ID_toggle_line_wrap = 259; -static i32 fcoder_metacmd_ID_toggle_mouse = 260; -static i32 fcoder_metacmd_ID_toggle_paren_matching_helper = 261; -static i32 fcoder_metacmd_ID_toggle_show_whitespace = 262; -static i32 fcoder_metacmd_ID_toggle_virtual_whitespace = 263; -static i32 fcoder_metacmd_ID_tutorial_maximize = 264; -static i32 fcoder_metacmd_ID_tutorial_minimize = 265; -static i32 fcoder_metacmd_ID_uncomment_line = 266; -static i32 fcoder_metacmd_ID_undo = 267; -static i32 fcoder_metacmd_ID_undo_all_buffers = 268; -static i32 fcoder_metacmd_ID_view_buffer_other_panel = 269; -static i32 fcoder_metacmd_ID_view_jump_list_with_lister = 270; -static i32 fcoder_metacmd_ID_word_complete = 271; -static i32 fcoder_metacmd_ID_word_complete_drop_down = 272; -static i32 fcoder_metacmd_ID_write_block = 273; -static i32 fcoder_metacmd_ID_write_hack = 274; -static i32 fcoder_metacmd_ID_write_note = 275; -static i32 fcoder_metacmd_ID_write_space = 276; -static i32 fcoder_metacmd_ID_write_text_and_auto_indent = 277; -static i32 fcoder_metacmd_ID_write_text_input = 278; -static i32 fcoder_metacmd_ID_write_todo = 279; -static i32 fcoder_metacmd_ID_write_underscore = 280; -static i32 fcoder_metacmd_ID_write_zero_struct = 281; -#endif diff --git a/code/custom/generated/custom_api.cpp b/code/custom/generated/custom_api.cpp deleted file mode 100644 index d0d02fdb..00000000 --- a/code/custom/generated/custom_api.cpp +++ /dev/null @@ -1,370 +0,0 @@ -/* Generated by "code/4ed_api_parser_main.exe 4ed_api_implementation.cpp" */ - -function void -custom_api_fill_vtable(API_VTable_custom *vtable){ - vtable->global_set_setting = global_set_setting; - vtable->global_get_screen_rectangle = global_get_screen_rectangle; - vtable->get_thread_context = get_thread_context; - vtable->create_child_process = create_child_process; - vtable->child_process_set_target_buffer = child_process_set_target_buffer; - vtable->buffer_get_attached_child_process = buffer_get_attached_child_process; - vtable->child_process_get_attached_buffer = child_process_get_attached_buffer; - vtable->child_process_get_state = child_process_get_state; - vtable->enqueue_virtual_event = enqueue_virtual_event; - vtable->get_buffer_count = get_buffer_count; - vtable->get_buffer_next = get_buffer_next; - vtable->get_buffer_by_name = get_buffer_by_name; - vtable->get_buffer_by_file_name = get_buffer_by_file_name; - vtable->buffer_read_range = buffer_read_range; - vtable->buffer_replace_range = buffer_replace_range; - vtable->buffer_batch_edit = buffer_batch_edit; - vtable->buffer_seek_string = buffer_seek_string; - vtable->buffer_seek_character_class = buffer_seek_character_class; - vtable->buffer_line_y_difference = buffer_line_y_difference; - vtable->buffer_line_shift_y = buffer_line_shift_y; - vtable->buffer_pos_at_relative_xy = buffer_pos_at_relative_xy; - vtable->buffer_relative_box_of_pos = buffer_relative_box_of_pos; - vtable->buffer_padded_box_of_pos = buffer_padded_box_of_pos; - vtable->buffer_relative_character_from_pos = buffer_relative_character_from_pos; - vtable->buffer_pos_from_relative_character = buffer_pos_from_relative_character; - vtable->view_line_y_difference = view_line_y_difference; - vtable->view_line_shift_y = view_line_shift_y; - vtable->view_pos_at_relative_xy = view_pos_at_relative_xy; - vtable->view_relative_box_of_pos = view_relative_box_of_pos; - vtable->view_padded_box_of_pos = view_padded_box_of_pos; - vtable->view_relative_character_from_pos = view_relative_character_from_pos; - vtable->view_pos_from_relative_character = view_pos_from_relative_character; - vtable->buffer_exists = buffer_exists; - vtable->buffer_get_access_flags = buffer_get_access_flags; - vtable->buffer_get_size = buffer_get_size; - vtable->buffer_get_line_count = buffer_get_line_count; - vtable->push_buffer_base_name = push_buffer_base_name; - vtable->push_buffer_unique_name = push_buffer_unique_name; - vtable->push_buffer_file_name = push_buffer_file_name; - vtable->buffer_get_dirty_state = buffer_get_dirty_state; - vtable->buffer_set_dirty_state = buffer_set_dirty_state; - vtable->buffer_set_layout = buffer_set_layout; - vtable->buffer_clear_layout_cache = buffer_clear_layout_cache; - vtable->buffer_get_layout = buffer_get_layout; - vtable->buffer_get_setting = buffer_get_setting; - vtable->buffer_set_setting = buffer_set_setting; - vtable->buffer_get_managed_scope = buffer_get_managed_scope; - vtable->buffer_send_end_signal = buffer_send_end_signal; - vtable->create_buffer = create_buffer; - vtable->buffer_save = buffer_save; - vtable->buffer_kill = buffer_kill; - vtable->buffer_reopen = buffer_reopen; - vtable->buffer_get_file_attributes = buffer_get_file_attributes; - vtable->get_view_next = get_view_next; - vtable->get_view_prev = get_view_prev; - vtable->get_this_ctx_view = get_this_ctx_view; - vtable->get_active_view = get_active_view; - vtable->view_exists = view_exists; - vtable->view_get_buffer = view_get_buffer; - vtable->view_get_cursor_pos = view_get_cursor_pos; - vtable->view_get_mark_pos = view_get_mark_pos; - vtable->view_get_preferred_x = view_get_preferred_x; - vtable->view_set_preferred_x = view_set_preferred_x; - vtable->view_get_screen_rect = view_get_screen_rect; - vtable->view_get_panel = view_get_panel; - vtable->panel_get_view = panel_get_view; - vtable->panel_is_split = panel_is_split; - vtable->panel_is_leaf = panel_is_leaf; - vtable->panel_split = panel_split; - vtable->panel_set_split = panel_set_split; - vtable->panel_swap_children = panel_swap_children; - vtable->panel_get_root = panel_get_root; - vtable->panel_get_parent = panel_get_parent; - vtable->panel_get_child = panel_get_child; - vtable->view_close = view_close; - vtable->view_get_buffer_region = view_get_buffer_region; - vtable->view_get_buffer_scroll = view_get_buffer_scroll; - vtable->view_set_active = view_set_active; - vtable->view_enqueue_command_function = view_enqueue_command_function; - vtable->view_get_setting = view_get_setting; - vtable->view_set_setting = view_set_setting; - vtable->view_get_managed_scope = view_get_managed_scope; - vtable->buffer_compute_cursor = buffer_compute_cursor; - vtable->view_compute_cursor = view_compute_cursor; - vtable->view_set_camera_bounds = view_set_camera_bounds; - vtable->view_get_camera_bounds = view_get_camera_bounds; - vtable->view_set_cursor = view_set_cursor; - vtable->view_set_buffer_scroll = view_set_buffer_scroll; - vtable->view_set_mark = view_set_mark; - vtable->view_quit_ui = view_quit_ui; - vtable->view_set_buffer = view_set_buffer; - vtable->view_push_context = view_push_context; - vtable->view_pop_context = view_pop_context; - vtable->view_alter_context = view_alter_context; - vtable->view_current_context = view_current_context; - vtable->view_current_context_hook_memory = view_current_context_hook_memory; - vtable->create_user_managed_scope = create_user_managed_scope; - vtable->destroy_user_managed_scope = destroy_user_managed_scope; - vtable->get_global_managed_scope = get_global_managed_scope; - vtable->get_managed_scope_with_multiple_dependencies = get_managed_scope_with_multiple_dependencies; - vtable->managed_scope_clear_contents = managed_scope_clear_contents; - vtable->managed_scope_clear_self_all_dependent_scopes = managed_scope_clear_self_all_dependent_scopes; - vtable->managed_scope_allocator = managed_scope_allocator; - vtable->managed_id_group_highest_id = managed_id_group_highest_id; - vtable->managed_id_declare = managed_id_declare; - vtable->managed_id_get = managed_id_get; - vtable->managed_scope_get_attachment = managed_scope_get_attachment; - vtable->managed_scope_attachment_erase = managed_scope_attachment_erase; - vtable->alloc_managed_memory_in_scope = alloc_managed_memory_in_scope; - vtable->alloc_buffer_markers_on_buffer = alloc_buffer_markers_on_buffer; - vtable->managed_object_get_item_size = managed_object_get_item_size; - vtable->managed_object_get_item_count = managed_object_get_item_count; - vtable->managed_object_get_pointer = managed_object_get_pointer; - vtable->managed_object_get_type = managed_object_get_type; - vtable->managed_object_get_containing_scope = managed_object_get_containing_scope; - vtable->managed_object_free = managed_object_free; - vtable->managed_object_store_data = managed_object_store_data; - vtable->managed_object_load_data = managed_object_load_data; - vtable->get_next_input_raw = get_next_input_raw; - vtable->get_current_input_sequence_number = get_current_input_sequence_number; - vtable->get_current_input = get_current_input; - vtable->set_current_input = set_current_input; - vtable->leave_current_input_unhandled = leave_current_input_unhandled; - vtable->set_custom_hook = set_custom_hook; - vtable->get_custom_hook = get_custom_hook; - vtable->set_custom_hook_memory_size = set_custom_hook_memory_size; - vtable->get_mouse_state = get_mouse_state; - vtable->get_active_query_bars = get_active_query_bars; - vtable->start_query_bar = start_query_bar; - vtable->end_query_bar = end_query_bar; - vtable->clear_all_query_bars = clear_all_query_bars; - vtable->print_message = print_message; - vtable->log_string = log_string; - vtable->get_largest_face_id = get_largest_face_id; - vtable->set_global_face = set_global_face; - vtable->buffer_history_get_max_record_index = buffer_history_get_max_record_index; - vtable->buffer_history_get_record_info = buffer_history_get_record_info; - vtable->buffer_history_get_group_sub_record = buffer_history_get_group_sub_record; - vtable->buffer_history_get_current_state_index = buffer_history_get_current_state_index; - vtable->buffer_history_set_current_state_index = buffer_history_set_current_state_index; - vtable->buffer_history_merge_record_range = buffer_history_merge_record_range; - vtable->buffer_history_clear_after_current_state = buffer_history_clear_after_current_state; - vtable->global_history_edit_group_begin = global_history_edit_group_begin; - vtable->global_history_edit_group_end = global_history_edit_group_end; - vtable->buffer_set_face = buffer_set_face; - vtable->get_face_description = get_face_description; - vtable->get_face_metrics = get_face_metrics; - vtable->get_face_advance_map = get_face_advance_map; - vtable->get_face_id = get_face_id; - vtable->try_create_new_face = try_create_new_face; - vtable->try_modify_face = try_modify_face; - vtable->try_release_face = try_release_face; - vtable->push_hot_directory = push_hot_directory; - vtable->set_hot_directory = set_hot_directory; - vtable->send_exit_signal = send_exit_signal; - vtable->hard_exit = hard_exit; - vtable->set_window_title = set_window_title; - vtable->acquire_global_frame_mutex = acquire_global_frame_mutex; - vtable->release_global_frame_mutex = release_global_frame_mutex; - vtable->draw_string_oriented = draw_string_oriented; - vtable->get_string_advance = get_string_advance; - vtable->draw_rectangle = draw_rectangle; - vtable->draw_rectangle_outline = draw_rectangle_outline; - vtable->draw_set_clip = draw_set_clip; - vtable->text_layout_create = text_layout_create; - vtable->text_layout_region = text_layout_region; - vtable->text_layout_get_buffer = text_layout_get_buffer; - vtable->text_layout_get_visible_range = text_layout_get_visible_range; - vtable->text_layout_line_on_screen = text_layout_line_on_screen; - vtable->text_layout_character_on_screen = text_layout_character_on_screen; - vtable->paint_text_color = paint_text_color; - vtable->paint_text_color_blend = paint_text_color_blend; - vtable->text_layout_free = text_layout_free; - vtable->draw_text_layout = draw_text_layout; - vtable->open_color_picker = open_color_picker; - vtable->animate_in_n_milliseconds = animate_in_n_milliseconds; - vtable->buffer_find_all_matches = buffer_find_all_matches; - vtable->get_core_profile_list = get_core_profile_list; - vtable->get_custom_layer_boundary_docs = get_custom_layer_boundary_docs; -} - -#if defined(DYNAMIC_LINK_API) -function void -custom_api_read_vtable(API_VTable_custom *vtable){ - global_set_setting = vtable->global_set_setting; - global_get_screen_rectangle = vtable->global_get_screen_rectangle; - get_thread_context = vtable->get_thread_context; - create_child_process = vtable->create_child_process; - child_process_set_target_buffer = vtable->child_process_set_target_buffer; - buffer_get_attached_child_process = vtable->buffer_get_attached_child_process; - child_process_get_attached_buffer = vtable->child_process_get_attached_buffer; - child_process_get_state = vtable->child_process_get_state; - enqueue_virtual_event = vtable->enqueue_virtual_event; - get_buffer_count = vtable->get_buffer_count; - get_buffer_next = vtable->get_buffer_next; - get_buffer_by_name = vtable->get_buffer_by_name; - get_buffer_by_file_name = vtable->get_buffer_by_file_name; - buffer_read_range = vtable->buffer_read_range; - buffer_replace_range = vtable->buffer_replace_range; - buffer_batch_edit = vtable->buffer_batch_edit; - buffer_seek_string = vtable->buffer_seek_string; - buffer_seek_character_class = vtable->buffer_seek_character_class; - buffer_line_y_difference = vtable->buffer_line_y_difference; - buffer_line_shift_y = vtable->buffer_line_shift_y; - buffer_pos_at_relative_xy = vtable->buffer_pos_at_relative_xy; - buffer_relative_box_of_pos = vtable->buffer_relative_box_of_pos; - buffer_padded_box_of_pos = vtable->buffer_padded_box_of_pos; - buffer_relative_character_from_pos = vtable->buffer_relative_character_from_pos; - buffer_pos_from_relative_character = vtable->buffer_pos_from_relative_character; - view_line_y_difference = vtable->view_line_y_difference; - view_line_shift_y = vtable->view_line_shift_y; - view_pos_at_relative_xy = vtable->view_pos_at_relative_xy; - view_relative_box_of_pos = vtable->view_relative_box_of_pos; - view_padded_box_of_pos = vtable->view_padded_box_of_pos; - view_relative_character_from_pos = vtable->view_relative_character_from_pos; - view_pos_from_relative_character = vtable->view_pos_from_relative_character; - buffer_exists = vtable->buffer_exists; - buffer_get_access_flags = vtable->buffer_get_access_flags; - buffer_get_size = vtable->buffer_get_size; - buffer_get_line_count = vtable->buffer_get_line_count; - push_buffer_base_name = vtable->push_buffer_base_name; - push_buffer_unique_name = vtable->push_buffer_unique_name; - push_buffer_file_name = vtable->push_buffer_file_name; - buffer_get_dirty_state = vtable->buffer_get_dirty_state; - buffer_set_dirty_state = vtable->buffer_set_dirty_state; - buffer_set_layout = vtable->buffer_set_layout; - buffer_clear_layout_cache = vtable->buffer_clear_layout_cache; - buffer_get_layout = vtable->buffer_get_layout; - buffer_get_setting = vtable->buffer_get_setting; - buffer_set_setting = vtable->buffer_set_setting; - buffer_get_managed_scope = vtable->buffer_get_managed_scope; - buffer_send_end_signal = vtable->buffer_send_end_signal; - create_buffer = vtable->create_buffer; - buffer_save = vtable->buffer_save; - buffer_kill = vtable->buffer_kill; - buffer_reopen = vtable->buffer_reopen; - buffer_get_file_attributes = vtable->buffer_get_file_attributes; - get_view_next = vtable->get_view_next; - get_view_prev = vtable->get_view_prev; - get_this_ctx_view = vtable->get_this_ctx_view; - get_active_view = vtable->get_active_view; - view_exists = vtable->view_exists; - view_get_buffer = vtable->view_get_buffer; - view_get_cursor_pos = vtable->view_get_cursor_pos; - view_get_mark_pos = vtable->view_get_mark_pos; - view_get_preferred_x = vtable->view_get_preferred_x; - view_set_preferred_x = vtable->view_set_preferred_x; - view_get_screen_rect = vtable->view_get_screen_rect; - view_get_panel = vtable->view_get_panel; - panel_get_view = vtable->panel_get_view; - panel_is_split = vtable->panel_is_split; - panel_is_leaf = vtable->panel_is_leaf; - panel_split = vtable->panel_split; - panel_set_split = vtable->panel_set_split; - panel_swap_children = vtable->panel_swap_children; - panel_get_root = vtable->panel_get_root; - panel_get_parent = vtable->panel_get_parent; - panel_get_child = vtable->panel_get_child; - view_close = vtable->view_close; - view_get_buffer_region = vtable->view_get_buffer_region; - view_get_buffer_scroll = vtable->view_get_buffer_scroll; - view_set_active = vtable->view_set_active; - view_enqueue_command_function = vtable->view_enqueue_command_function; - view_get_setting = vtable->view_get_setting; - view_set_setting = vtable->view_set_setting; - view_get_managed_scope = vtable->view_get_managed_scope; - buffer_compute_cursor = vtable->buffer_compute_cursor; - view_compute_cursor = vtable->view_compute_cursor; - view_set_camera_bounds = vtable->view_set_camera_bounds; - view_get_camera_bounds = vtable->view_get_camera_bounds; - view_set_cursor = vtable->view_set_cursor; - view_set_buffer_scroll = vtable->view_set_buffer_scroll; - view_set_mark = vtable->view_set_mark; - view_quit_ui = vtable->view_quit_ui; - view_set_buffer = vtable->view_set_buffer; - view_push_context = vtable->view_push_context; - view_pop_context = vtable->view_pop_context; - view_alter_context = vtable->view_alter_context; - view_current_context = vtable->view_current_context; - view_current_context_hook_memory = vtable->view_current_context_hook_memory; - create_user_managed_scope = vtable->create_user_managed_scope; - destroy_user_managed_scope = vtable->destroy_user_managed_scope; - get_global_managed_scope = vtable->get_global_managed_scope; - get_managed_scope_with_multiple_dependencies = vtable->get_managed_scope_with_multiple_dependencies; - managed_scope_clear_contents = vtable->managed_scope_clear_contents; - managed_scope_clear_self_all_dependent_scopes = vtable->managed_scope_clear_self_all_dependent_scopes; - managed_scope_allocator = vtable->managed_scope_allocator; - managed_id_group_highest_id = vtable->managed_id_group_highest_id; - managed_id_declare = vtable->managed_id_declare; - managed_id_get = vtable->managed_id_get; - managed_scope_get_attachment = vtable->managed_scope_get_attachment; - managed_scope_attachment_erase = vtable->managed_scope_attachment_erase; - alloc_managed_memory_in_scope = vtable->alloc_managed_memory_in_scope; - alloc_buffer_markers_on_buffer = vtable->alloc_buffer_markers_on_buffer; - managed_object_get_item_size = vtable->managed_object_get_item_size; - managed_object_get_item_count = vtable->managed_object_get_item_count; - managed_object_get_pointer = vtable->managed_object_get_pointer; - managed_object_get_type = vtable->managed_object_get_type; - managed_object_get_containing_scope = vtable->managed_object_get_containing_scope; - managed_object_free = vtable->managed_object_free; - managed_object_store_data = vtable->managed_object_store_data; - managed_object_load_data = vtable->managed_object_load_data; - get_next_input_raw = vtable->get_next_input_raw; - get_current_input_sequence_number = vtable->get_current_input_sequence_number; - get_current_input = vtable->get_current_input; - set_current_input = vtable->set_current_input; - leave_current_input_unhandled = vtable->leave_current_input_unhandled; - set_custom_hook = vtable->set_custom_hook; - get_custom_hook = vtable->get_custom_hook; - set_custom_hook_memory_size = vtable->set_custom_hook_memory_size; - get_mouse_state = vtable->get_mouse_state; - get_active_query_bars = vtable->get_active_query_bars; - start_query_bar = vtable->start_query_bar; - end_query_bar = vtable->end_query_bar; - clear_all_query_bars = vtable->clear_all_query_bars; - print_message = vtable->print_message; - log_string = vtable->log_string; - get_largest_face_id = vtable->get_largest_face_id; - set_global_face = vtable->set_global_face; - buffer_history_get_max_record_index = vtable->buffer_history_get_max_record_index; - buffer_history_get_record_info = vtable->buffer_history_get_record_info; - buffer_history_get_group_sub_record = vtable->buffer_history_get_group_sub_record; - buffer_history_get_current_state_index = vtable->buffer_history_get_current_state_index; - buffer_history_set_current_state_index = vtable->buffer_history_set_current_state_index; - buffer_history_merge_record_range = vtable->buffer_history_merge_record_range; - buffer_history_clear_after_current_state = vtable->buffer_history_clear_after_current_state; - global_history_edit_group_begin = vtable->global_history_edit_group_begin; - global_history_edit_group_end = vtable->global_history_edit_group_end; - buffer_set_face = vtable->buffer_set_face; - get_face_description = vtable->get_face_description; - get_face_metrics = vtable->get_face_metrics; - get_face_advance_map = vtable->get_face_advance_map; - get_face_id = vtable->get_face_id; - try_create_new_face = vtable->try_create_new_face; - try_modify_face = vtable->try_modify_face; - try_release_face = vtable->try_release_face; - push_hot_directory = vtable->push_hot_directory; - set_hot_directory = vtable->set_hot_directory; - send_exit_signal = vtable->send_exit_signal; - hard_exit = vtable->hard_exit; - set_window_title = vtable->set_window_title; - acquire_global_frame_mutex = vtable->acquire_global_frame_mutex; - release_global_frame_mutex = vtable->release_global_frame_mutex; - draw_string_oriented = vtable->draw_string_oriented; - get_string_advance = vtable->get_string_advance; - draw_rectangle = vtable->draw_rectangle; - draw_rectangle_outline = vtable->draw_rectangle_outline; - draw_set_clip = vtable->draw_set_clip; - text_layout_create = vtable->text_layout_create; - text_layout_region = vtable->text_layout_region; - text_layout_get_buffer = vtable->text_layout_get_buffer; - text_layout_get_visible_range = vtable->text_layout_get_visible_range; - text_layout_line_on_screen = vtable->text_layout_line_on_screen; - text_layout_character_on_screen = vtable->text_layout_character_on_screen; - paint_text_color = vtable->paint_text_color; - paint_text_color_blend = vtable->paint_text_color_blend; - text_layout_free = vtable->text_layout_free; - draw_text_layout = vtable->draw_text_layout; - open_color_picker = vtable->open_color_picker; - animate_in_n_milliseconds = vtable->animate_in_n_milliseconds; - buffer_find_all_matches = vtable->buffer_find_all_matches; - get_core_profile_list = vtable->get_core_profile_list; - get_custom_layer_boundary_docs = vtable->get_custom_layer_boundary_docs; -} -#undef DYNAMIC_LINK_API -#endif diff --git a/code/custom/generated/custom_api.h b/code/custom/generated/custom_api.h deleted file mode 100644 index e7ef7e3c..00000000 --- a/code/custom/generated/custom_api.h +++ /dev/null @@ -1,908 +0,0 @@ -/* Generated by "code/4ed_api_parser_main.exe 4ed_api_implementation.cpp" */ - -#define custom_global_set_setting_sig() b32 custom_global_set_setting(Application_Links* app, Global_Setting_ID setting, i64 value) -#define custom_global_get_screen_rectangle_sig() Rect_f32 custom_global_get_screen_rectangle(Application_Links* app) -#define custom_get_thread_context_sig() Thread_Context* custom_get_thread_context(Application_Links* app) -#define custom_create_child_process_sig() Child_Process_ID custom_create_child_process(Application_Links* app, String_Const_u8 path, String_Const_u8 command) -#define custom_child_process_set_target_buffer_sig() b32 custom_child_process_set_target_buffer(Application_Links* app, Child_Process_ID child_process_id, Buffer_ID buffer_id, Child_Process_Set_Target_Flags flags) -#define custom_buffer_get_attached_child_process_sig() Child_Process_ID custom_buffer_get_attached_child_process(Application_Links* app, Buffer_ID buffer_id) -#define custom_child_process_get_attached_buffer_sig() Buffer_ID custom_child_process_get_attached_buffer(Application_Links* app, Child_Process_ID child_process_id) -#define custom_child_process_get_state_sig() Process_State custom_child_process_get_state(Application_Links* app, Child_Process_ID child_process_id) -#define custom_enqueue_virtual_event_sig() b32 custom_enqueue_virtual_event(Application_Links* app, Input_Event* event) -#define custom_get_buffer_count_sig() i32 custom_get_buffer_count(Application_Links* app) -#define custom_get_buffer_next_sig() Buffer_ID custom_get_buffer_next(Application_Links* app, Buffer_ID buffer_id, Access_Flag access) -#define custom_get_buffer_by_name_sig() Buffer_ID custom_get_buffer_by_name(Application_Links* app, String_Const_u8 name, Access_Flag access) -#define custom_get_buffer_by_file_name_sig() Buffer_ID custom_get_buffer_by_file_name(Application_Links* app, String_Const_u8 file_name, Access_Flag access) -#define custom_buffer_read_range_sig() b32 custom_buffer_read_range(Application_Links* app, Buffer_ID buffer_id, Range_i64 range, u8* out) -#define custom_buffer_replace_range_sig() b32 custom_buffer_replace_range(Application_Links* app, Buffer_ID buffer_id, Range_i64 range, String_Const_u8 string) -#define custom_buffer_batch_edit_sig() b32 custom_buffer_batch_edit(Application_Links* app, Buffer_ID buffer_id, Batch_Edit* batch) -#define custom_buffer_seek_string_sig() String_Match custom_buffer_seek_string(Application_Links* app, Buffer_ID buffer, String_Const_u8 needle, Scan_Direction direction, i64 start_pos) -#define custom_buffer_seek_character_class_sig() String_Match custom_buffer_seek_character_class(Application_Links* app, Buffer_ID buffer, Character_Predicate* predicate, Scan_Direction direction, i64 start_pos) -#define custom_buffer_line_y_difference_sig() f32 custom_buffer_line_y_difference(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 line_a, i64 line_b) -#define custom_buffer_line_shift_y_sig() Line_Shift_Vertical custom_buffer_line_shift_y(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 line, f32 y_shift) -#define custom_buffer_pos_at_relative_xy_sig() i64 custom_buffer_pos_at_relative_xy(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, Vec2_f32 relative_xy) -#define custom_buffer_relative_box_of_pos_sig() Rect_f32 custom_buffer_relative_box_of_pos(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos) -#define custom_buffer_padded_box_of_pos_sig() Rect_f32 custom_buffer_padded_box_of_pos(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos) -#define custom_buffer_relative_character_from_pos_sig() i64 custom_buffer_relative_character_from_pos(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos) -#define custom_buffer_pos_from_relative_character_sig() i64 custom_buffer_pos_from_relative_character(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 relative_character) -#define custom_view_line_y_difference_sig() f32 custom_view_line_y_difference(Application_Links* app, View_ID view_id, i64 line_a, i64 line_b) -#define custom_view_line_shift_y_sig() Line_Shift_Vertical custom_view_line_shift_y(Application_Links* app, View_ID view_id, i64 line, f32 y_shift) -#define custom_view_pos_at_relative_xy_sig() i64 custom_view_pos_at_relative_xy(Application_Links* app, View_ID view_id, i64 base_line, Vec2_f32 relative_xy) -#define custom_view_relative_box_of_pos_sig() Rect_f32 custom_view_relative_box_of_pos(Application_Links* app, View_ID view_id, i64 base_line, i64 pos) -#define custom_view_padded_box_of_pos_sig() Rect_f32 custom_view_padded_box_of_pos(Application_Links* app, View_ID view_id, i64 base_line, i64 pos) -#define custom_view_relative_character_from_pos_sig() i64 custom_view_relative_character_from_pos(Application_Links* app, View_ID view_id, i64 base_line, i64 pos) -#define custom_view_pos_from_relative_character_sig() i64 custom_view_pos_from_relative_character(Application_Links* app, View_ID view_id, i64 base_line, i64 character) -#define custom_buffer_exists_sig() b32 custom_buffer_exists(Application_Links* app, Buffer_ID buffer_id) -#define custom_buffer_get_access_flags_sig() Access_Flag custom_buffer_get_access_flags(Application_Links* app, Buffer_ID buffer_id) -#define custom_buffer_get_size_sig() i64 custom_buffer_get_size(Application_Links* app, Buffer_ID buffer_id) -#define custom_buffer_get_line_count_sig() i64 custom_buffer_get_line_count(Application_Links* app, Buffer_ID buffer_id) -#define custom_push_buffer_base_name_sig() String_Const_u8 custom_push_buffer_base_name(Application_Links* app, Arena* arena, Buffer_ID buffer_id) -#define custom_push_buffer_unique_name_sig() String_Const_u8 custom_push_buffer_unique_name(Application_Links* app, Arena* out, Buffer_ID buffer_id) -#define custom_push_buffer_file_name_sig() String_Const_u8 custom_push_buffer_file_name(Application_Links* app, Arena* arena, Buffer_ID buffer_id) -#define custom_buffer_get_dirty_state_sig() Dirty_State custom_buffer_get_dirty_state(Application_Links* app, Buffer_ID buffer_id) -#define custom_buffer_set_dirty_state_sig() b32 custom_buffer_set_dirty_state(Application_Links* app, Buffer_ID buffer_id, Dirty_State dirty_state) -#define custom_buffer_set_layout_sig() b32 custom_buffer_set_layout(Application_Links* app, Buffer_ID buffer_id, Layout_Function* layout_func) -#define custom_buffer_clear_layout_cache_sig() b32 custom_buffer_clear_layout_cache(Application_Links* app, Buffer_ID buffer_id) -#define custom_buffer_get_layout_sig() Layout_Function* custom_buffer_get_layout(Application_Links* app, Buffer_ID buffer_id) -#define custom_buffer_get_setting_sig() b32 custom_buffer_get_setting(Application_Links* app, Buffer_ID buffer_id, Buffer_Setting_ID setting, i64* value_out) -#define custom_buffer_set_setting_sig() b32 custom_buffer_set_setting(Application_Links* app, Buffer_ID buffer_id, Buffer_Setting_ID setting, i64 value) -#define custom_buffer_get_managed_scope_sig() Managed_Scope custom_buffer_get_managed_scope(Application_Links* app, Buffer_ID buffer_id) -#define custom_buffer_send_end_signal_sig() b32 custom_buffer_send_end_signal(Application_Links* app, Buffer_ID buffer_id) -#define custom_create_buffer_sig() Buffer_ID custom_create_buffer(Application_Links* app, String_Const_u8 file_name, Buffer_Create_Flag flags) -#define custom_buffer_save_sig() b32 custom_buffer_save(Application_Links* app, Buffer_ID buffer_id, String_Const_u8 file_name, Buffer_Save_Flag flags) -#define custom_buffer_kill_sig() Buffer_Kill_Result custom_buffer_kill(Application_Links* app, Buffer_ID buffer_id, Buffer_Kill_Flag flags) -#define custom_buffer_reopen_sig() Buffer_Reopen_Result custom_buffer_reopen(Application_Links* app, Buffer_ID buffer_id, Buffer_Reopen_Flag flags) -#define custom_buffer_get_file_attributes_sig() File_Attributes custom_buffer_get_file_attributes(Application_Links* app, Buffer_ID buffer_id) -#define custom_get_view_next_sig() View_ID custom_get_view_next(Application_Links* app, View_ID view_id, Access_Flag access) -#define custom_get_view_prev_sig() View_ID custom_get_view_prev(Application_Links* app, View_ID view_id, Access_Flag access) -#define custom_get_this_ctx_view_sig() View_ID custom_get_this_ctx_view(Application_Links* app, Access_Flag access) -#define custom_get_active_view_sig() View_ID custom_get_active_view(Application_Links* app, Access_Flag access) -#define custom_view_exists_sig() b32 custom_view_exists(Application_Links* app, View_ID view_id) -#define custom_view_get_buffer_sig() Buffer_ID custom_view_get_buffer(Application_Links* app, View_ID view_id, Access_Flag access) -#define custom_view_get_cursor_pos_sig() i64 custom_view_get_cursor_pos(Application_Links* app, View_ID view_id) -#define custom_view_get_mark_pos_sig() i64 custom_view_get_mark_pos(Application_Links* app, View_ID view_id) -#define custom_view_get_preferred_x_sig() f32 custom_view_get_preferred_x(Application_Links* app, View_ID view_id) -#define custom_view_set_preferred_x_sig() b32 custom_view_set_preferred_x(Application_Links* app, View_ID view_id, f32 x) -#define custom_view_get_screen_rect_sig() Rect_f32 custom_view_get_screen_rect(Application_Links* app, View_ID view_id) -#define custom_view_get_panel_sig() Panel_ID custom_view_get_panel(Application_Links* app, View_ID view_id) -#define custom_panel_get_view_sig() View_ID custom_panel_get_view(Application_Links* app, Panel_ID panel_id, Access_Flag access) -#define custom_panel_is_split_sig() b32 custom_panel_is_split(Application_Links* app, Panel_ID panel_id) -#define custom_panel_is_leaf_sig() b32 custom_panel_is_leaf(Application_Links* app, Panel_ID panel_id) -#define custom_panel_split_sig() b32 custom_panel_split(Application_Links* app, Panel_ID panel_id, Dimension split_dim) -#define custom_panel_set_split_sig() b32 custom_panel_set_split(Application_Links* app, Panel_ID panel_id, Panel_Split_Kind kind, f32 t) -#define custom_panel_swap_children_sig() b32 custom_panel_swap_children(Application_Links* app, Panel_ID panel_id) -#define custom_panel_get_root_sig() Panel_ID custom_panel_get_root(Application_Links* app) -#define custom_panel_get_parent_sig() Panel_ID custom_panel_get_parent(Application_Links* app, Panel_ID panel_id) -#define custom_panel_get_child_sig() Panel_ID custom_panel_get_child(Application_Links* app, Panel_ID panel_id, Side which_child) -#define custom_view_close_sig() b32 custom_view_close(Application_Links* app, View_ID view_id) -#define custom_view_get_buffer_region_sig() Rect_f32 custom_view_get_buffer_region(Application_Links* app, View_ID view_id) -#define custom_view_get_buffer_scroll_sig() Buffer_Scroll custom_view_get_buffer_scroll(Application_Links* app, View_ID view_id) -#define custom_view_set_active_sig() b32 custom_view_set_active(Application_Links* app, View_ID view_id) -#define custom_view_enqueue_command_function_sig() b32 custom_view_enqueue_command_function(Application_Links* app, View_ID view_id, Custom_Command_Function* custom_func) -#define custom_view_get_setting_sig() b32 custom_view_get_setting(Application_Links* app, View_ID view_id, View_Setting_ID setting, i64* value_out) -#define custom_view_set_setting_sig() b32 custom_view_set_setting(Application_Links* app, View_ID view_id, View_Setting_ID setting, i64 value) -#define custom_view_get_managed_scope_sig() Managed_Scope custom_view_get_managed_scope(Application_Links* app, View_ID view_id) -#define custom_buffer_compute_cursor_sig() Buffer_Cursor custom_buffer_compute_cursor(Application_Links* app, Buffer_ID buffer, Buffer_Seek seek) -#define custom_view_compute_cursor_sig() Buffer_Cursor custom_view_compute_cursor(Application_Links* app, View_ID view_id, Buffer_Seek seek) -#define custom_view_set_camera_bounds_sig() b32 custom_view_set_camera_bounds(Application_Links* app, View_ID view_id, Vec2_f32 margin, Vec2_f32 push_in_multiplier) -#define custom_view_get_camera_bounds_sig() b32 custom_view_get_camera_bounds(Application_Links* app, View_ID view_id, Vec2_f32* margin, Vec2_f32* push_in_multiplier) -#define custom_view_set_cursor_sig() b32 custom_view_set_cursor(Application_Links* app, View_ID view_id, Buffer_Seek seek) -#define custom_view_set_buffer_scroll_sig() b32 custom_view_set_buffer_scroll(Application_Links* app, View_ID view_id, Buffer_Scroll scroll, Set_Buffer_Scroll_Rule rule) -#define custom_view_set_mark_sig() b32 custom_view_set_mark(Application_Links* app, View_ID view_id, Buffer_Seek seek) -#define custom_view_quit_ui_sig() b32 custom_view_quit_ui(Application_Links* app, View_ID view_id) -#define custom_view_set_buffer_sig() b32 custom_view_set_buffer(Application_Links* app, View_ID view_id, Buffer_ID buffer_id, Set_Buffer_Flag flags) -#define custom_view_push_context_sig() b32 custom_view_push_context(Application_Links* app, View_ID view_id, View_Context* ctx) -#define custom_view_pop_context_sig() b32 custom_view_pop_context(Application_Links* app, View_ID view_id) -#define custom_view_alter_context_sig() b32 custom_view_alter_context(Application_Links* app, View_ID view_id, View_Context* ctx) -#define custom_view_current_context_sig() View_Context custom_view_current_context(Application_Links* app, View_ID view_id) -#define custom_view_current_context_hook_memory_sig() String_Const_u8 custom_view_current_context_hook_memory(Application_Links* app, View_ID view_id, Hook_ID hook_id) -#define custom_create_user_managed_scope_sig() Managed_Scope custom_create_user_managed_scope(Application_Links* app) -#define custom_destroy_user_managed_scope_sig() b32 custom_destroy_user_managed_scope(Application_Links* app, Managed_Scope scope) -#define custom_get_global_managed_scope_sig() Managed_Scope custom_get_global_managed_scope(Application_Links* app) -#define custom_get_managed_scope_with_multiple_dependencies_sig() Managed_Scope custom_get_managed_scope_with_multiple_dependencies(Application_Links* app, Managed_Scope* scopes, i32 count) -#define custom_managed_scope_clear_contents_sig() b32 custom_managed_scope_clear_contents(Application_Links* app, Managed_Scope scope) -#define custom_managed_scope_clear_self_all_dependent_scopes_sig() b32 custom_managed_scope_clear_self_all_dependent_scopes(Application_Links* app, Managed_Scope scope) -#define custom_managed_scope_allocator_sig() Base_Allocator* custom_managed_scope_allocator(Application_Links* app, Managed_Scope scope) -#define custom_managed_id_group_highest_id_sig() u64 custom_managed_id_group_highest_id(Application_Links* app, String_Const_u8 group) -#define custom_managed_id_declare_sig() Managed_ID custom_managed_id_declare(Application_Links* app, String_Const_u8 group, String_Const_u8 name) -#define custom_managed_id_get_sig() Managed_ID custom_managed_id_get(Application_Links* app, String_Const_u8 group, String_Const_u8 name) -#define custom_managed_scope_get_attachment_sig() void* custom_managed_scope_get_attachment(Application_Links* app, Managed_Scope scope, Managed_ID id, u64 size) -#define custom_managed_scope_attachment_erase_sig() b32 custom_managed_scope_attachment_erase(Application_Links* app, Managed_Scope scope, Managed_ID id) -#define custom_alloc_managed_memory_in_scope_sig() Managed_Object custom_alloc_managed_memory_in_scope(Application_Links* app, Managed_Scope scope, i32 item_size, i32 count) -#define custom_alloc_buffer_markers_on_buffer_sig() Managed_Object custom_alloc_buffer_markers_on_buffer(Application_Links* app, Buffer_ID buffer_id, i32 count, Managed_Scope* optional_extra_scope) -#define custom_managed_object_get_item_size_sig() u32 custom_managed_object_get_item_size(Application_Links* app, Managed_Object object) -#define custom_managed_object_get_item_count_sig() u32 custom_managed_object_get_item_count(Application_Links* app, Managed_Object object) -#define custom_managed_object_get_pointer_sig() void* custom_managed_object_get_pointer(Application_Links* app, Managed_Object object) -#define custom_managed_object_get_type_sig() Managed_Object_Type custom_managed_object_get_type(Application_Links* app, Managed_Object object) -#define custom_managed_object_get_containing_scope_sig() Managed_Scope custom_managed_object_get_containing_scope(Application_Links* app, Managed_Object object) -#define custom_managed_object_free_sig() b32 custom_managed_object_free(Application_Links* app, Managed_Object object) -#define custom_managed_object_store_data_sig() b32 custom_managed_object_store_data(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem) -#define custom_managed_object_load_data_sig() b32 custom_managed_object_load_data(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem_out) -#define custom_get_next_input_raw_sig() User_Input custom_get_next_input_raw(Application_Links* app) -#define custom_get_current_input_sequence_number_sig() i64 custom_get_current_input_sequence_number(Application_Links* app) -#define custom_get_current_input_sig() User_Input custom_get_current_input(Application_Links* app) -#define custom_set_current_input_sig() void custom_set_current_input(Application_Links* app, User_Input* input) -#define custom_leave_current_input_unhandled_sig() void custom_leave_current_input_unhandled(Application_Links* app) -#define custom_set_custom_hook_sig() void custom_set_custom_hook(Application_Links* app, Hook_ID hook_id, Void_Func* func_ptr) -#define custom_get_custom_hook_sig() Void_Func* custom_get_custom_hook(Application_Links* app, Hook_ID hook_id) -#define custom_set_custom_hook_memory_size_sig() b32 custom_set_custom_hook_memory_size(Application_Links* app, Hook_ID hook_id, u64 size) -#define custom_get_mouse_state_sig() Mouse_State custom_get_mouse_state(Application_Links* app) -#define custom_get_active_query_bars_sig() b32 custom_get_active_query_bars(Application_Links* app, View_ID view_id, i32 max_result_count, Query_Bar_Ptr_Array* array_out) -#define custom_start_query_bar_sig() b32 custom_start_query_bar(Application_Links* app, Query_Bar* bar, u32 flags) -#define custom_end_query_bar_sig() void custom_end_query_bar(Application_Links* app, Query_Bar* bar, u32 flags) -#define custom_clear_all_query_bars_sig() void custom_clear_all_query_bars(Application_Links* app, View_ID view_id) -#define custom_print_message_sig() void custom_print_message(Application_Links* app, String_Const_u8 message) -#define custom_log_string_sig() b32 custom_log_string(Application_Links* app, String_Const_u8 str) -#define custom_get_largest_face_id_sig() Face_ID custom_get_largest_face_id(Application_Links* app) -#define custom_set_global_face_sig() b32 custom_set_global_face(Application_Links* app, Face_ID id) -#define custom_buffer_history_get_max_record_index_sig() History_Record_Index custom_buffer_history_get_max_record_index(Application_Links* app, Buffer_ID buffer_id) -#define custom_buffer_history_get_record_info_sig() Record_Info custom_buffer_history_get_record_info(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index) -#define custom_buffer_history_get_group_sub_record_sig() Record_Info custom_buffer_history_get_group_sub_record(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index, i32 sub_index) -#define custom_buffer_history_get_current_state_index_sig() History_Record_Index custom_buffer_history_get_current_state_index(Application_Links* app, Buffer_ID buffer_id) -#define custom_buffer_history_set_current_state_index_sig() b32 custom_buffer_history_set_current_state_index(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index) -#define custom_buffer_history_merge_record_range_sig() b32 custom_buffer_history_merge_record_range(Application_Links* app, Buffer_ID buffer_id, History_Record_Index first_index, History_Record_Index last_index, Record_Merge_Flag flags) -#define custom_buffer_history_clear_after_current_state_sig() b32 custom_buffer_history_clear_after_current_state(Application_Links* app, Buffer_ID buffer_id) -#define custom_global_history_edit_group_begin_sig() void custom_global_history_edit_group_begin(Application_Links* app) -#define custom_global_history_edit_group_end_sig() void custom_global_history_edit_group_end(Application_Links* app) -#define custom_buffer_set_face_sig() b32 custom_buffer_set_face(Application_Links* app, Buffer_ID buffer_id, Face_ID id) -#define custom_get_face_description_sig() Face_Description custom_get_face_description(Application_Links* app, Face_ID face_id) -#define custom_get_face_metrics_sig() Face_Metrics custom_get_face_metrics(Application_Links* app, Face_ID face_id) -#define custom_get_face_advance_map_sig() Face_Advance_Map custom_get_face_advance_map(Application_Links* app, Face_ID face_id) -#define custom_get_face_id_sig() Face_ID custom_get_face_id(Application_Links* app, Buffer_ID buffer_id) -#define custom_try_create_new_face_sig() Face_ID custom_try_create_new_face(Application_Links* app, Face_Description* description) -#define custom_try_modify_face_sig() b32 custom_try_modify_face(Application_Links* app, Face_ID id, Face_Description* description) -#define custom_try_release_face_sig() b32 custom_try_release_face(Application_Links* app, Face_ID id, Face_ID replacement_id) -#define custom_push_hot_directory_sig() String_Const_u8 custom_push_hot_directory(Application_Links* app, Arena* arena) -#define custom_set_hot_directory_sig() void custom_set_hot_directory(Application_Links* app, String_Const_u8 string) -#define custom_send_exit_signal_sig() void custom_send_exit_signal(Application_Links* app) -#define custom_hard_exit_sig() void custom_hard_exit(Application_Links* app) -#define custom_set_window_title_sig() void custom_set_window_title(Application_Links* app, String_Const_u8 title) -#define custom_acquire_global_frame_mutex_sig() void custom_acquire_global_frame_mutex(Application_Links* app) -#define custom_release_global_frame_mutex_sig() void custom_release_global_frame_mutex(Application_Links* app) -#define custom_draw_string_oriented_sig() Vec2_f32 custom_draw_string_oriented(Application_Links* app, Face_ID font_id, ARGB_Color color, String_Const_u8 str, Vec2_f32 point, u32 flags, Vec2_f32 delta) -#define custom_get_string_advance_sig() f32 custom_get_string_advance(Application_Links* app, Face_ID font_id, String_Const_u8 str) -#define custom_draw_rectangle_sig() void custom_draw_rectangle(Application_Links* app, Rect_f32 rect, f32 roundness, ARGB_Color color) -#define custom_draw_rectangle_outline_sig() void custom_draw_rectangle_outline(Application_Links* app, Rect_f32 rect, f32 roundness, f32 thickness, ARGB_Color color) -#define custom_draw_set_clip_sig() Rect_f32 custom_draw_set_clip(Application_Links* app, Rect_f32 new_clip) -#define custom_text_layout_create_sig() Text_Layout_ID custom_text_layout_create(Application_Links* app, Buffer_ID buffer_id, Rect_f32 rect, Buffer_Point buffer_point) -#define custom_text_layout_region_sig() Rect_f32 custom_text_layout_region(Application_Links* app, Text_Layout_ID text_layout_id) -#define custom_text_layout_get_buffer_sig() Buffer_ID custom_text_layout_get_buffer(Application_Links* app, Text_Layout_ID text_layout_id) -#define custom_text_layout_get_visible_range_sig() Range_i64 custom_text_layout_get_visible_range(Application_Links* app, Text_Layout_ID text_layout_id) -#define custom_text_layout_line_on_screen_sig() Range_f32 custom_text_layout_line_on_screen(Application_Links* app, Text_Layout_ID layout_id, i64 line_number) -#define custom_text_layout_character_on_screen_sig() Rect_f32 custom_text_layout_character_on_screen(Application_Links* app, Text_Layout_ID layout_id, i64 pos) -#define custom_paint_text_color_sig() void custom_paint_text_color(Application_Links* app, Text_Layout_ID layout_id, Range_i64 range, ARGB_Color color) -#define custom_paint_text_color_blend_sig() void custom_paint_text_color_blend(Application_Links* app, Text_Layout_ID layout_id, Range_i64 range, ARGB_Color color, f32 blend) -#define custom_text_layout_free_sig() b32 custom_text_layout_free(Application_Links* app, Text_Layout_ID text_layout_id) -#define custom_draw_text_layout_sig() void custom_draw_text_layout(Application_Links* app, Text_Layout_ID layout_id, ARGB_Color special_color, ARGB_Color ghost_color) -#define custom_open_color_picker_sig() void custom_open_color_picker(Application_Links* app, Color_Picker* picker) -#define custom_animate_in_n_milliseconds_sig() void custom_animate_in_n_milliseconds(Application_Links* app, u32 n) -#define custom_buffer_find_all_matches_sig() String_Match_List custom_buffer_find_all_matches(Application_Links* app, Arena* arena, Buffer_ID buffer, i32 string_id, Range_i64 range, String_Const_u8 needle, Character_Predicate* predicate, Scan_Direction direction) -#define custom_get_core_profile_list_sig() Profile_Global_List* custom_get_core_profile_list(Application_Links* app) -#define custom_get_custom_layer_boundary_docs_sig() Doc_Cluster* custom_get_custom_layer_boundary_docs(Application_Links* app, Arena* arena) - -typedef b32 custom_global_set_setting_type(Application_Links* app, Global_Setting_ID setting, i64 value); -typedef Rect_f32 custom_global_get_screen_rectangle_type(Application_Links* app); -typedef Thread_Context* custom_get_thread_context_type(Application_Links* app); -typedef Child_Process_ID custom_create_child_process_type(Application_Links* app, String_Const_u8 path, String_Const_u8 command); -typedef b32 custom_child_process_set_target_buffer_type(Application_Links* app, Child_Process_ID child_process_id, Buffer_ID buffer_id, Child_Process_Set_Target_Flags flags); -typedef Child_Process_ID custom_buffer_get_attached_child_process_type(Application_Links* app, Buffer_ID buffer_id); -typedef Buffer_ID custom_child_process_get_attached_buffer_type(Application_Links* app, Child_Process_ID child_process_id); -typedef Process_State custom_child_process_get_state_type(Application_Links* app, Child_Process_ID child_process_id); -typedef b32 custom_enqueue_virtual_event_type(Application_Links* app, Input_Event* event); -typedef i32 custom_get_buffer_count_type(Application_Links* app); -typedef Buffer_ID custom_get_buffer_next_type(Application_Links* app, Buffer_ID buffer_id, Access_Flag access); -typedef Buffer_ID custom_get_buffer_by_name_type(Application_Links* app, String_Const_u8 name, Access_Flag access); -typedef Buffer_ID custom_get_buffer_by_file_name_type(Application_Links* app, String_Const_u8 file_name, Access_Flag access); -typedef b32 custom_buffer_read_range_type(Application_Links* app, Buffer_ID buffer_id, Range_i64 range, u8* out); -typedef b32 custom_buffer_replace_range_type(Application_Links* app, Buffer_ID buffer_id, Range_i64 range, String_Const_u8 string); -typedef b32 custom_buffer_batch_edit_type(Application_Links* app, Buffer_ID buffer_id, Batch_Edit* batch); -typedef String_Match custom_buffer_seek_string_type(Application_Links* app, Buffer_ID buffer, String_Const_u8 needle, Scan_Direction direction, i64 start_pos); -typedef String_Match custom_buffer_seek_character_class_type(Application_Links* app, Buffer_ID buffer, Character_Predicate* predicate, Scan_Direction direction, i64 start_pos); -typedef f32 custom_buffer_line_y_difference_type(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 line_a, i64 line_b); -typedef Line_Shift_Vertical custom_buffer_line_shift_y_type(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 line, f32 y_shift); -typedef i64 custom_buffer_pos_at_relative_xy_type(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, Vec2_f32 relative_xy); -typedef Rect_f32 custom_buffer_relative_box_of_pos_type(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos); -typedef Rect_f32 custom_buffer_padded_box_of_pos_type(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos); -typedef i64 custom_buffer_relative_character_from_pos_type(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos); -typedef i64 custom_buffer_pos_from_relative_character_type(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 relative_character); -typedef f32 custom_view_line_y_difference_type(Application_Links* app, View_ID view_id, i64 line_a, i64 line_b); -typedef Line_Shift_Vertical custom_view_line_shift_y_type(Application_Links* app, View_ID view_id, i64 line, f32 y_shift); -typedef i64 custom_view_pos_at_relative_xy_type(Application_Links* app, View_ID view_id, i64 base_line, Vec2_f32 relative_xy); -typedef Rect_f32 custom_view_relative_box_of_pos_type(Application_Links* app, View_ID view_id, i64 base_line, i64 pos); -typedef Rect_f32 custom_view_padded_box_of_pos_type(Application_Links* app, View_ID view_id, i64 base_line, i64 pos); -typedef i64 custom_view_relative_character_from_pos_type(Application_Links* app, View_ID view_id, i64 base_line, i64 pos); -typedef i64 custom_view_pos_from_relative_character_type(Application_Links* app, View_ID view_id, i64 base_line, i64 character); -typedef b32 custom_buffer_exists_type(Application_Links* app, Buffer_ID buffer_id); -typedef Access_Flag custom_buffer_get_access_flags_type(Application_Links* app, Buffer_ID buffer_id); -typedef i64 custom_buffer_get_size_type(Application_Links* app, Buffer_ID buffer_id); -typedef i64 custom_buffer_get_line_count_type(Application_Links* app, Buffer_ID buffer_id); -typedef String_Const_u8 custom_push_buffer_base_name_type(Application_Links* app, Arena* arena, Buffer_ID buffer_id); -typedef String_Const_u8 custom_push_buffer_unique_name_type(Application_Links* app, Arena* out, Buffer_ID buffer_id); -typedef String_Const_u8 custom_push_buffer_file_name_type(Application_Links* app, Arena* arena, Buffer_ID buffer_id); -typedef Dirty_State custom_buffer_get_dirty_state_type(Application_Links* app, Buffer_ID buffer_id); -typedef b32 custom_buffer_set_dirty_state_type(Application_Links* app, Buffer_ID buffer_id, Dirty_State dirty_state); -typedef b32 custom_buffer_set_layout_type(Application_Links* app, Buffer_ID buffer_id, Layout_Function* layout_func); -typedef b32 custom_buffer_clear_layout_cache_type(Application_Links* app, Buffer_ID buffer_id); -typedef Layout_Function* custom_buffer_get_layout_type(Application_Links* app, Buffer_ID buffer_id); -typedef b32 custom_buffer_get_setting_type(Application_Links* app, Buffer_ID buffer_id, Buffer_Setting_ID setting, i64* value_out); -typedef b32 custom_buffer_set_setting_type(Application_Links* app, Buffer_ID buffer_id, Buffer_Setting_ID setting, i64 value); -typedef Managed_Scope custom_buffer_get_managed_scope_type(Application_Links* app, Buffer_ID buffer_id); -typedef b32 custom_buffer_send_end_signal_type(Application_Links* app, Buffer_ID buffer_id); -typedef Buffer_ID custom_create_buffer_type(Application_Links* app, String_Const_u8 file_name, Buffer_Create_Flag flags); -typedef b32 custom_buffer_save_type(Application_Links* app, Buffer_ID buffer_id, String_Const_u8 file_name, Buffer_Save_Flag flags); -typedef Buffer_Kill_Result custom_buffer_kill_type(Application_Links* app, Buffer_ID buffer_id, Buffer_Kill_Flag flags); -typedef Buffer_Reopen_Result custom_buffer_reopen_type(Application_Links* app, Buffer_ID buffer_id, Buffer_Reopen_Flag flags); -typedef File_Attributes custom_buffer_get_file_attributes_type(Application_Links* app, Buffer_ID buffer_id); -typedef View_ID custom_get_view_next_type(Application_Links* app, View_ID view_id, Access_Flag access); -typedef View_ID custom_get_view_prev_type(Application_Links* app, View_ID view_id, Access_Flag access); -typedef View_ID custom_get_this_ctx_view_type(Application_Links* app, Access_Flag access); -typedef View_ID custom_get_active_view_type(Application_Links* app, Access_Flag access); -typedef b32 custom_view_exists_type(Application_Links* app, View_ID view_id); -typedef Buffer_ID custom_view_get_buffer_type(Application_Links* app, View_ID view_id, Access_Flag access); -typedef i64 custom_view_get_cursor_pos_type(Application_Links* app, View_ID view_id); -typedef i64 custom_view_get_mark_pos_type(Application_Links* app, View_ID view_id); -typedef f32 custom_view_get_preferred_x_type(Application_Links* app, View_ID view_id); -typedef b32 custom_view_set_preferred_x_type(Application_Links* app, View_ID view_id, f32 x); -typedef Rect_f32 custom_view_get_screen_rect_type(Application_Links* app, View_ID view_id); -typedef Panel_ID custom_view_get_panel_type(Application_Links* app, View_ID view_id); -typedef View_ID custom_panel_get_view_type(Application_Links* app, Panel_ID panel_id, Access_Flag access); -typedef b32 custom_panel_is_split_type(Application_Links* app, Panel_ID panel_id); -typedef b32 custom_panel_is_leaf_type(Application_Links* app, Panel_ID panel_id); -typedef b32 custom_panel_split_type(Application_Links* app, Panel_ID panel_id, Dimension split_dim); -typedef b32 custom_panel_set_split_type(Application_Links* app, Panel_ID panel_id, Panel_Split_Kind kind, f32 t); -typedef b32 custom_panel_swap_children_type(Application_Links* app, Panel_ID panel_id); -typedef Panel_ID custom_panel_get_root_type(Application_Links* app); -typedef Panel_ID custom_panel_get_parent_type(Application_Links* app, Panel_ID panel_id); -typedef Panel_ID custom_panel_get_child_type(Application_Links* app, Panel_ID panel_id, Side which_child); -typedef b32 custom_view_close_type(Application_Links* app, View_ID view_id); -typedef Rect_f32 custom_view_get_buffer_region_type(Application_Links* app, View_ID view_id); -typedef Buffer_Scroll custom_view_get_buffer_scroll_type(Application_Links* app, View_ID view_id); -typedef b32 custom_view_set_active_type(Application_Links* app, View_ID view_id); -typedef b32 custom_view_enqueue_command_function_type(Application_Links* app, View_ID view_id, Custom_Command_Function* custom_func); -typedef b32 custom_view_get_setting_type(Application_Links* app, View_ID view_id, View_Setting_ID setting, i64* value_out); -typedef b32 custom_view_set_setting_type(Application_Links* app, View_ID view_id, View_Setting_ID setting, i64 value); -typedef Managed_Scope custom_view_get_managed_scope_type(Application_Links* app, View_ID view_id); -typedef Buffer_Cursor custom_buffer_compute_cursor_type(Application_Links* app, Buffer_ID buffer, Buffer_Seek seek); -typedef Buffer_Cursor custom_view_compute_cursor_type(Application_Links* app, View_ID view_id, Buffer_Seek seek); -typedef b32 custom_view_set_camera_bounds_type(Application_Links* app, View_ID view_id, Vec2_f32 margin, Vec2_f32 push_in_multiplier); -typedef b32 custom_view_get_camera_bounds_type(Application_Links* app, View_ID view_id, Vec2_f32* margin, Vec2_f32* push_in_multiplier); -typedef b32 custom_view_set_cursor_type(Application_Links* app, View_ID view_id, Buffer_Seek seek); -typedef b32 custom_view_set_buffer_scroll_type(Application_Links* app, View_ID view_id, Buffer_Scroll scroll, Set_Buffer_Scroll_Rule rule); -typedef b32 custom_view_set_mark_type(Application_Links* app, View_ID view_id, Buffer_Seek seek); -typedef b32 custom_view_quit_ui_type(Application_Links* app, View_ID view_id); -typedef b32 custom_view_set_buffer_type(Application_Links* app, View_ID view_id, Buffer_ID buffer_id, Set_Buffer_Flag flags); -typedef b32 custom_view_push_context_type(Application_Links* app, View_ID view_id, View_Context* ctx); -typedef b32 custom_view_pop_context_type(Application_Links* app, View_ID view_id); -typedef b32 custom_view_alter_context_type(Application_Links* app, View_ID view_id, View_Context* ctx); -typedef View_Context custom_view_current_context_type(Application_Links* app, View_ID view_id); -typedef String_Const_u8 custom_view_current_context_hook_memory_type(Application_Links* app, View_ID view_id, Hook_ID hook_id); -typedef Managed_Scope custom_create_user_managed_scope_type(Application_Links* app); -typedef b32 custom_destroy_user_managed_scope_type(Application_Links* app, Managed_Scope scope); -typedef Managed_Scope custom_get_global_managed_scope_type(Application_Links* app); -typedef Managed_Scope custom_get_managed_scope_with_multiple_dependencies_type(Application_Links* app, Managed_Scope* scopes, i32 count); -typedef b32 custom_managed_scope_clear_contents_type(Application_Links* app, Managed_Scope scope); -typedef b32 custom_managed_scope_clear_self_all_dependent_scopes_type(Application_Links* app, Managed_Scope scope); -typedef Base_Allocator* custom_managed_scope_allocator_type(Application_Links* app, Managed_Scope scope); -typedef u64 custom_managed_id_group_highest_id_type(Application_Links* app, String_Const_u8 group); -typedef Managed_ID custom_managed_id_declare_type(Application_Links* app, String_Const_u8 group, String_Const_u8 name); -typedef Managed_ID custom_managed_id_get_type(Application_Links* app, String_Const_u8 group, String_Const_u8 name); -typedef void* custom_managed_scope_get_attachment_type(Application_Links* app, Managed_Scope scope, Managed_ID id, u64 size); -typedef b32 custom_managed_scope_attachment_erase_type(Application_Links* app, Managed_Scope scope, Managed_ID id); -typedef Managed_Object custom_alloc_managed_memory_in_scope_type(Application_Links* app, Managed_Scope scope, i32 item_size, i32 count); -typedef Managed_Object custom_alloc_buffer_markers_on_buffer_type(Application_Links* app, Buffer_ID buffer_id, i32 count, Managed_Scope* optional_extra_scope); -typedef u32 custom_managed_object_get_item_size_type(Application_Links* app, Managed_Object object); -typedef u32 custom_managed_object_get_item_count_type(Application_Links* app, Managed_Object object); -typedef void* custom_managed_object_get_pointer_type(Application_Links* app, Managed_Object object); -typedef Managed_Object_Type custom_managed_object_get_type_type(Application_Links* app, Managed_Object object); -typedef Managed_Scope custom_managed_object_get_containing_scope_type(Application_Links* app, Managed_Object object); -typedef b32 custom_managed_object_free_type(Application_Links* app, Managed_Object object); -typedef b32 custom_managed_object_store_data_type(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem); -typedef b32 custom_managed_object_load_data_type(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem_out); -typedef User_Input custom_get_next_input_raw_type(Application_Links* app); -typedef i64 custom_get_current_input_sequence_number_type(Application_Links* app); -typedef User_Input custom_get_current_input_type(Application_Links* app); -typedef void custom_set_current_input_type(Application_Links* app, User_Input* input); -typedef void custom_leave_current_input_unhandled_type(Application_Links* app); -typedef void custom_set_custom_hook_type(Application_Links* app, Hook_ID hook_id, Void_Func* func_ptr); -typedef Void_Func* custom_get_custom_hook_type(Application_Links* app, Hook_ID hook_id); -typedef b32 custom_set_custom_hook_memory_size_type(Application_Links* app, Hook_ID hook_id, u64 size); -typedef Mouse_State custom_get_mouse_state_type(Application_Links* app); -typedef b32 custom_get_active_query_bars_type(Application_Links* app, View_ID view_id, i32 max_result_count, Query_Bar_Ptr_Array* array_out); -typedef b32 custom_start_query_bar_type(Application_Links* app, Query_Bar* bar, u32 flags); -typedef void custom_end_query_bar_type(Application_Links* app, Query_Bar* bar, u32 flags); -typedef void custom_clear_all_query_bars_type(Application_Links* app, View_ID view_id); -typedef void custom_print_message_type(Application_Links* app, String_Const_u8 message); -typedef b32 custom_log_string_type(Application_Links* app, String_Const_u8 str); -typedef Face_ID custom_get_largest_face_id_type(Application_Links* app); -typedef b32 custom_set_global_face_type(Application_Links* app, Face_ID id); -typedef History_Record_Index custom_buffer_history_get_max_record_index_type(Application_Links* app, Buffer_ID buffer_id); -typedef Record_Info custom_buffer_history_get_record_info_type(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index); -typedef Record_Info custom_buffer_history_get_group_sub_record_type(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index, i32 sub_index); -typedef History_Record_Index custom_buffer_history_get_current_state_index_type(Application_Links* app, Buffer_ID buffer_id); -typedef b32 custom_buffer_history_set_current_state_index_type(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index); -typedef b32 custom_buffer_history_merge_record_range_type(Application_Links* app, Buffer_ID buffer_id, History_Record_Index first_index, History_Record_Index last_index, Record_Merge_Flag flags); -typedef b32 custom_buffer_history_clear_after_current_state_type(Application_Links* app, Buffer_ID buffer_id); -typedef void custom_global_history_edit_group_begin_type(Application_Links* app); -typedef void custom_global_history_edit_group_end_type(Application_Links* app); -typedef b32 custom_buffer_set_face_type(Application_Links* app, Buffer_ID buffer_id, Face_ID id); -typedef Face_Description custom_get_face_description_type(Application_Links* app, Face_ID face_id); -typedef Face_Metrics custom_get_face_metrics_type(Application_Links* app, Face_ID face_id); -typedef Face_Advance_Map custom_get_face_advance_map_type(Application_Links* app, Face_ID face_id); -typedef Face_ID custom_get_face_id_type(Application_Links* app, Buffer_ID buffer_id); -typedef Face_ID custom_try_create_new_face_type(Application_Links* app, Face_Description* description); -typedef b32 custom_try_modify_face_type(Application_Links* app, Face_ID id, Face_Description* description); -typedef b32 custom_try_release_face_type(Application_Links* app, Face_ID id, Face_ID replacement_id); -typedef String_Const_u8 custom_push_hot_directory_type(Application_Links* app, Arena* arena); -typedef void custom_set_hot_directory_type(Application_Links* app, String_Const_u8 string); -typedef void custom_send_exit_signal_type(Application_Links* app); -typedef void custom_hard_exit_type(Application_Links* app); -typedef void custom_set_window_title_type(Application_Links* app, String_Const_u8 title); -typedef void custom_acquire_global_frame_mutex_type(Application_Links* app); -typedef void custom_release_global_frame_mutex_type(Application_Links* app); -typedef Vec2_f32 custom_draw_string_oriented_type(Application_Links* app, Face_ID font_id, ARGB_Color color, String_Const_u8 str, Vec2_f32 point, u32 flags, Vec2_f32 delta); -typedef f32 custom_get_string_advance_type(Application_Links* app, Face_ID font_id, String_Const_u8 str); -typedef void custom_draw_rectangle_type(Application_Links* app, Rect_f32 rect, f32 roundness, ARGB_Color color); -typedef void custom_draw_rectangle_outline_type(Application_Links* app, Rect_f32 rect, f32 roundness, f32 thickness, ARGB_Color color); -typedef Rect_f32 custom_draw_set_clip_type(Application_Links* app, Rect_f32 new_clip); -typedef Text_Layout_ID custom_text_layout_create_type(Application_Links* app, Buffer_ID buffer_id, Rect_f32 rect, Buffer_Point buffer_point); -typedef Rect_f32 custom_text_layout_region_type(Application_Links* app, Text_Layout_ID text_layout_id); -typedef Buffer_ID custom_text_layout_get_buffer_type(Application_Links* app, Text_Layout_ID text_layout_id); -typedef Range_i64 custom_text_layout_get_visible_range_type(Application_Links* app, Text_Layout_ID text_layout_id); -typedef Range_f32 custom_text_layout_line_on_screen_type(Application_Links* app, Text_Layout_ID layout_id, i64 line_number); -typedef Rect_f32 custom_text_layout_character_on_screen_type(Application_Links* app, Text_Layout_ID layout_id, i64 pos); -typedef void custom_paint_text_color_type(Application_Links* app, Text_Layout_ID layout_id, Range_i64 range, ARGB_Color color); -typedef void custom_paint_text_color_blend_type(Application_Links* app, Text_Layout_ID layout_id, Range_i64 range, ARGB_Color color, f32 blend); -typedef b32 custom_text_layout_free_type(Application_Links* app, Text_Layout_ID text_layout_id); -typedef void custom_draw_text_layout_type(Application_Links* app, Text_Layout_ID layout_id, ARGB_Color special_color, ARGB_Color ghost_color); -typedef void custom_open_color_picker_type(Application_Links* app, Color_Picker* picker); -typedef void custom_animate_in_n_milliseconds_type(Application_Links* app, u32 n); -typedef String_Match_List custom_buffer_find_all_matches_type(Application_Links* app, Arena* arena, Buffer_ID buffer, i32 string_id, Range_i64 range, String_Const_u8 needle, Character_Predicate* predicate, Scan_Direction direction); -typedef Profile_Global_List* custom_get_core_profile_list_type(Application_Links* app); -typedef Doc_Cluster* custom_get_custom_layer_boundary_docs_type(Application_Links* app, Arena* arena); - -struct API_VTable_custom{ - custom_global_set_setting_type *global_set_setting; - custom_global_get_screen_rectangle_type *global_get_screen_rectangle; - custom_get_thread_context_type *get_thread_context; - custom_create_child_process_type *create_child_process; - custom_child_process_set_target_buffer_type *child_process_set_target_buffer; - custom_buffer_get_attached_child_process_type *buffer_get_attached_child_process; - custom_child_process_get_attached_buffer_type *child_process_get_attached_buffer; - custom_child_process_get_state_type *child_process_get_state; - custom_enqueue_virtual_event_type *enqueue_virtual_event; - custom_get_buffer_count_type *get_buffer_count; - custom_get_buffer_next_type *get_buffer_next; - custom_get_buffer_by_name_type *get_buffer_by_name; - custom_get_buffer_by_file_name_type *get_buffer_by_file_name; - custom_buffer_read_range_type *buffer_read_range; - custom_buffer_replace_range_type *buffer_replace_range; - custom_buffer_batch_edit_type *buffer_batch_edit; - custom_buffer_seek_string_type *buffer_seek_string; - custom_buffer_seek_character_class_type *buffer_seek_character_class; - custom_buffer_line_y_difference_type *buffer_line_y_difference; - custom_buffer_line_shift_y_type *buffer_line_shift_y; - custom_buffer_pos_at_relative_xy_type *buffer_pos_at_relative_xy; - custom_buffer_relative_box_of_pos_type *buffer_relative_box_of_pos; - custom_buffer_padded_box_of_pos_type *buffer_padded_box_of_pos; - custom_buffer_relative_character_from_pos_type *buffer_relative_character_from_pos; - custom_buffer_pos_from_relative_character_type *buffer_pos_from_relative_character; - custom_view_line_y_difference_type *view_line_y_difference; - custom_view_line_shift_y_type *view_line_shift_y; - custom_view_pos_at_relative_xy_type *view_pos_at_relative_xy; - custom_view_relative_box_of_pos_type *view_relative_box_of_pos; - custom_view_padded_box_of_pos_type *view_padded_box_of_pos; - custom_view_relative_character_from_pos_type *view_relative_character_from_pos; - custom_view_pos_from_relative_character_type *view_pos_from_relative_character; - custom_buffer_exists_type *buffer_exists; - custom_buffer_get_access_flags_type *buffer_get_access_flags; - custom_buffer_get_size_type *buffer_get_size; - custom_buffer_get_line_count_type *buffer_get_line_count; - custom_push_buffer_base_name_type *push_buffer_base_name; - custom_push_buffer_unique_name_type *push_buffer_unique_name; - custom_push_buffer_file_name_type *push_buffer_file_name; - custom_buffer_get_dirty_state_type *buffer_get_dirty_state; - custom_buffer_set_dirty_state_type *buffer_set_dirty_state; - custom_buffer_set_layout_type *buffer_set_layout; - custom_buffer_clear_layout_cache_type *buffer_clear_layout_cache; - custom_buffer_get_layout_type *buffer_get_layout; - custom_buffer_get_setting_type *buffer_get_setting; - custom_buffer_set_setting_type *buffer_set_setting; - custom_buffer_get_managed_scope_type *buffer_get_managed_scope; - custom_buffer_send_end_signal_type *buffer_send_end_signal; - custom_create_buffer_type *create_buffer; - custom_buffer_save_type *buffer_save; - custom_buffer_kill_type *buffer_kill; - custom_buffer_reopen_type *buffer_reopen; - custom_buffer_get_file_attributes_type *buffer_get_file_attributes; - custom_get_view_next_type *get_view_next; - custom_get_view_prev_type *get_view_prev; - custom_get_this_ctx_view_type *get_this_ctx_view; - custom_get_active_view_type *get_active_view; - custom_view_exists_type *view_exists; - custom_view_get_buffer_type *view_get_buffer; - custom_view_get_cursor_pos_type *view_get_cursor_pos; - custom_view_get_mark_pos_type *view_get_mark_pos; - custom_view_get_preferred_x_type *view_get_preferred_x; - custom_view_set_preferred_x_type *view_set_preferred_x; - custom_view_get_screen_rect_type *view_get_screen_rect; - custom_view_get_panel_type *view_get_panel; - custom_panel_get_view_type *panel_get_view; - custom_panel_is_split_type *panel_is_split; - custom_panel_is_leaf_type *panel_is_leaf; - custom_panel_split_type *panel_split; - custom_panel_set_split_type *panel_set_split; - custom_panel_swap_children_type *panel_swap_children; - custom_panel_get_root_type *panel_get_root; - custom_panel_get_parent_type *panel_get_parent; - custom_panel_get_child_type *panel_get_child; - custom_view_close_type *view_close; - custom_view_get_buffer_region_type *view_get_buffer_region; - custom_view_get_buffer_scroll_type *view_get_buffer_scroll; - custom_view_set_active_type *view_set_active; - custom_view_enqueue_command_function_type *view_enqueue_command_function; - custom_view_get_setting_type *view_get_setting; - custom_view_set_setting_type *view_set_setting; - custom_view_get_managed_scope_type *view_get_managed_scope; - custom_buffer_compute_cursor_type *buffer_compute_cursor; - custom_view_compute_cursor_type *view_compute_cursor; - custom_view_set_camera_bounds_type *view_set_camera_bounds; - custom_view_get_camera_bounds_type *view_get_camera_bounds; - custom_view_set_cursor_type *view_set_cursor; - custom_view_set_buffer_scroll_type *view_set_buffer_scroll; - custom_view_set_mark_type *view_set_mark; - custom_view_quit_ui_type *view_quit_ui; - custom_view_set_buffer_type *view_set_buffer; - custom_view_push_context_type *view_push_context; - custom_view_pop_context_type *view_pop_context; - custom_view_alter_context_type *view_alter_context; - custom_view_current_context_type *view_current_context; - custom_view_current_context_hook_memory_type *view_current_context_hook_memory; - custom_create_user_managed_scope_type *create_user_managed_scope; - custom_destroy_user_managed_scope_type *destroy_user_managed_scope; - custom_get_global_managed_scope_type *get_global_managed_scope; - custom_get_managed_scope_with_multiple_dependencies_type *get_managed_scope_with_multiple_dependencies; - custom_managed_scope_clear_contents_type *managed_scope_clear_contents; - custom_managed_scope_clear_self_all_dependent_scopes_type *managed_scope_clear_self_all_dependent_scopes; - custom_managed_scope_allocator_type *managed_scope_allocator; - custom_managed_id_group_highest_id_type *managed_id_group_highest_id; - custom_managed_id_declare_type *managed_id_declare; - custom_managed_id_get_type *managed_id_get; - custom_managed_scope_get_attachment_type *managed_scope_get_attachment; - custom_managed_scope_attachment_erase_type *managed_scope_attachment_erase; - custom_alloc_managed_memory_in_scope_type *alloc_managed_memory_in_scope; - custom_alloc_buffer_markers_on_buffer_type *alloc_buffer_markers_on_buffer; - custom_managed_object_get_item_size_type *managed_object_get_item_size; - custom_managed_object_get_item_count_type *managed_object_get_item_count; - custom_managed_object_get_pointer_type *managed_object_get_pointer; - custom_managed_object_get_type_type *managed_object_get_type; - custom_managed_object_get_containing_scope_type *managed_object_get_containing_scope; - custom_managed_object_free_type *managed_object_free; - custom_managed_object_store_data_type *managed_object_store_data; - custom_managed_object_load_data_type *managed_object_load_data; - custom_get_next_input_raw_type *get_next_input_raw; - custom_get_current_input_sequence_number_type *get_current_input_sequence_number; - custom_get_current_input_type *get_current_input; - custom_set_current_input_type *set_current_input; - custom_leave_current_input_unhandled_type *leave_current_input_unhandled; - custom_set_custom_hook_type *set_custom_hook; - custom_get_custom_hook_type *get_custom_hook; - custom_set_custom_hook_memory_size_type *set_custom_hook_memory_size; - custom_get_mouse_state_type *get_mouse_state; - custom_get_active_query_bars_type *get_active_query_bars; - custom_start_query_bar_type *start_query_bar; - custom_end_query_bar_type *end_query_bar; - custom_clear_all_query_bars_type *clear_all_query_bars; - custom_print_message_type *print_message; - custom_log_string_type *log_string; - custom_get_largest_face_id_type *get_largest_face_id; - custom_set_global_face_type *set_global_face; - custom_buffer_history_get_max_record_index_type *buffer_history_get_max_record_index; - custom_buffer_history_get_record_info_type *buffer_history_get_record_info; - custom_buffer_history_get_group_sub_record_type *buffer_history_get_group_sub_record; - custom_buffer_history_get_current_state_index_type *buffer_history_get_current_state_index; - custom_buffer_history_set_current_state_index_type *buffer_history_set_current_state_index; - custom_buffer_history_merge_record_range_type *buffer_history_merge_record_range; - custom_buffer_history_clear_after_current_state_type *buffer_history_clear_after_current_state; - custom_global_history_edit_group_begin_type *global_history_edit_group_begin; - custom_global_history_edit_group_end_type *global_history_edit_group_end; - custom_buffer_set_face_type *buffer_set_face; - custom_get_face_description_type *get_face_description; - custom_get_face_metrics_type *get_face_metrics; - custom_get_face_advance_map_type *get_face_advance_map; - custom_get_face_id_type *get_face_id; - custom_try_create_new_face_type *try_create_new_face; - custom_try_modify_face_type *try_modify_face; - custom_try_release_face_type *try_release_face; - custom_push_hot_directory_type *push_hot_directory; - custom_set_hot_directory_type *set_hot_directory; - custom_send_exit_signal_type *send_exit_signal; - custom_hard_exit_type *hard_exit; - custom_set_window_title_type *set_window_title; - custom_acquire_global_frame_mutex_type *acquire_global_frame_mutex; - custom_release_global_frame_mutex_type *release_global_frame_mutex; - custom_draw_string_oriented_type *draw_string_oriented; - custom_get_string_advance_type *get_string_advance; - custom_draw_rectangle_type *draw_rectangle; - custom_draw_rectangle_outline_type *draw_rectangle_outline; - custom_draw_set_clip_type *draw_set_clip; - custom_text_layout_create_type *text_layout_create; - custom_text_layout_region_type *text_layout_region; - custom_text_layout_get_buffer_type *text_layout_get_buffer; - custom_text_layout_get_visible_range_type *text_layout_get_visible_range; - custom_text_layout_line_on_screen_type *text_layout_line_on_screen; - custom_text_layout_character_on_screen_type *text_layout_character_on_screen; - custom_paint_text_color_type *paint_text_color; - custom_paint_text_color_blend_type *paint_text_color_blend; - custom_text_layout_free_type *text_layout_free; - custom_draw_text_layout_type *draw_text_layout; - custom_open_color_picker_type *open_color_picker; - custom_animate_in_n_milliseconds_type *animate_in_n_milliseconds; - custom_buffer_find_all_matches_type *buffer_find_all_matches; - custom_get_core_profile_list_type *get_core_profile_list; - custom_get_custom_layer_boundary_docs_type *get_custom_layer_boundary_docs; -}; - -#if defined(STATIC_LINK_API) -internal b32 global_set_setting(Application_Links* app, Global_Setting_ID setting, i64 value); -internal Rect_f32 global_get_screen_rectangle(Application_Links* app); -internal Thread_Context* get_thread_context(Application_Links* app); -internal Child_Process_ID create_child_process(Application_Links* app, String_Const_u8 path, String_Const_u8 command); -internal b32 child_process_set_target_buffer(Application_Links* app, Child_Process_ID child_process_id, Buffer_ID buffer_id, Child_Process_Set_Target_Flags flags); -internal Child_Process_ID buffer_get_attached_child_process(Application_Links* app, Buffer_ID buffer_id); -internal Buffer_ID child_process_get_attached_buffer(Application_Links* app, Child_Process_ID child_process_id); -internal Process_State child_process_get_state(Application_Links* app, Child_Process_ID child_process_id); -internal b32 enqueue_virtual_event(Application_Links* app, Input_Event* event); -internal i32 get_buffer_count(Application_Links* app); -internal Buffer_ID get_buffer_next(Application_Links* app, Buffer_ID buffer_id, Access_Flag access); -internal Buffer_ID get_buffer_by_name(Application_Links* app, String_Const_u8 name, Access_Flag access); -internal Buffer_ID get_buffer_by_file_name(Application_Links* app, String_Const_u8 file_name, Access_Flag access); -internal b32 buffer_read_range(Application_Links* app, Buffer_ID buffer_id, Range_i64 range, u8* out); -internal b32 buffer_replace_range(Application_Links* app, Buffer_ID buffer_id, Range_i64 range, String_Const_u8 string); -internal b32 buffer_batch_edit(Application_Links* app, Buffer_ID buffer_id, Batch_Edit* batch); -internal String_Match buffer_seek_string(Application_Links* app, Buffer_ID buffer, String_Const_u8 needle, Scan_Direction direction, i64 start_pos); -internal String_Match buffer_seek_character_class(Application_Links* app, Buffer_ID buffer, Character_Predicate* predicate, Scan_Direction direction, i64 start_pos); -internal f32 buffer_line_y_difference(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 line_a, i64 line_b); -internal Line_Shift_Vertical buffer_line_shift_y(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 line, f32 y_shift); -internal i64 buffer_pos_at_relative_xy(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, Vec2_f32 relative_xy); -internal Rect_f32 buffer_relative_box_of_pos(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos); -internal Rect_f32 buffer_padded_box_of_pos(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos); -internal i64 buffer_relative_character_from_pos(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos); -internal i64 buffer_pos_from_relative_character(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 relative_character); -internal f32 view_line_y_difference(Application_Links* app, View_ID view_id, i64 line_a, i64 line_b); -internal Line_Shift_Vertical view_line_shift_y(Application_Links* app, View_ID view_id, i64 line, f32 y_shift); -internal i64 view_pos_at_relative_xy(Application_Links* app, View_ID view_id, i64 base_line, Vec2_f32 relative_xy); -internal Rect_f32 view_relative_box_of_pos(Application_Links* app, View_ID view_id, i64 base_line, i64 pos); -internal Rect_f32 view_padded_box_of_pos(Application_Links* app, View_ID view_id, i64 base_line, i64 pos); -internal i64 view_relative_character_from_pos(Application_Links* app, View_ID view_id, i64 base_line, i64 pos); -internal i64 view_pos_from_relative_character(Application_Links* app, View_ID view_id, i64 base_line, i64 character); -internal b32 buffer_exists(Application_Links* app, Buffer_ID buffer_id); -internal Access_Flag buffer_get_access_flags(Application_Links* app, Buffer_ID buffer_id); -internal i64 buffer_get_size(Application_Links* app, Buffer_ID buffer_id); -internal i64 buffer_get_line_count(Application_Links* app, Buffer_ID buffer_id); -internal String_Const_u8 push_buffer_base_name(Application_Links* app, Arena* arena, Buffer_ID buffer_id); -internal String_Const_u8 push_buffer_unique_name(Application_Links* app, Arena* out, Buffer_ID buffer_id); -internal String_Const_u8 push_buffer_file_name(Application_Links* app, Arena* arena, Buffer_ID buffer_id); -internal Dirty_State buffer_get_dirty_state(Application_Links* app, Buffer_ID buffer_id); -internal b32 buffer_set_dirty_state(Application_Links* app, Buffer_ID buffer_id, Dirty_State dirty_state); -internal b32 buffer_set_layout(Application_Links* app, Buffer_ID buffer_id, Layout_Function* layout_func); -internal b32 buffer_clear_layout_cache(Application_Links* app, Buffer_ID buffer_id); -internal Layout_Function* buffer_get_layout(Application_Links* app, Buffer_ID buffer_id); -internal b32 buffer_get_setting(Application_Links* app, Buffer_ID buffer_id, Buffer_Setting_ID setting, i64* value_out); -internal b32 buffer_set_setting(Application_Links* app, Buffer_ID buffer_id, Buffer_Setting_ID setting, i64 value); -internal Managed_Scope buffer_get_managed_scope(Application_Links* app, Buffer_ID buffer_id); -internal b32 buffer_send_end_signal(Application_Links* app, Buffer_ID buffer_id); -internal Buffer_ID create_buffer(Application_Links* app, String_Const_u8 file_name, Buffer_Create_Flag flags); -internal b32 buffer_save(Application_Links* app, Buffer_ID buffer_id, String_Const_u8 file_name, Buffer_Save_Flag flags); -internal Buffer_Kill_Result buffer_kill(Application_Links* app, Buffer_ID buffer_id, Buffer_Kill_Flag flags); -internal Buffer_Reopen_Result buffer_reopen(Application_Links* app, Buffer_ID buffer_id, Buffer_Reopen_Flag flags); -internal File_Attributes buffer_get_file_attributes(Application_Links* app, Buffer_ID buffer_id); -internal View_ID get_view_next(Application_Links* app, View_ID view_id, Access_Flag access); -internal View_ID get_view_prev(Application_Links* app, View_ID view_id, Access_Flag access); -internal View_ID get_this_ctx_view(Application_Links* app, Access_Flag access); -internal View_ID get_active_view(Application_Links* app, Access_Flag access); -internal b32 view_exists(Application_Links* app, View_ID view_id); -internal Buffer_ID view_get_buffer(Application_Links* app, View_ID view_id, Access_Flag access); -internal i64 view_get_cursor_pos(Application_Links* app, View_ID view_id); -internal i64 view_get_mark_pos(Application_Links* app, View_ID view_id); -internal f32 view_get_preferred_x(Application_Links* app, View_ID view_id); -internal b32 view_set_preferred_x(Application_Links* app, View_ID view_id, f32 x); -internal Rect_f32 view_get_screen_rect(Application_Links* app, View_ID view_id); -internal Panel_ID view_get_panel(Application_Links* app, View_ID view_id); -internal View_ID panel_get_view(Application_Links* app, Panel_ID panel_id, Access_Flag access); -internal b32 panel_is_split(Application_Links* app, Panel_ID panel_id); -internal b32 panel_is_leaf(Application_Links* app, Panel_ID panel_id); -internal b32 panel_split(Application_Links* app, Panel_ID panel_id, Dimension split_dim); -internal b32 panel_set_split(Application_Links* app, Panel_ID panel_id, Panel_Split_Kind kind, f32 t); -internal b32 panel_swap_children(Application_Links* app, Panel_ID panel_id); -internal Panel_ID panel_get_root(Application_Links* app); -internal Panel_ID panel_get_parent(Application_Links* app, Panel_ID panel_id); -internal Panel_ID panel_get_child(Application_Links* app, Panel_ID panel_id, Side which_child); -internal b32 view_close(Application_Links* app, View_ID view_id); -internal Rect_f32 view_get_buffer_region(Application_Links* app, View_ID view_id); -internal Buffer_Scroll view_get_buffer_scroll(Application_Links* app, View_ID view_id); -internal b32 view_set_active(Application_Links* app, View_ID view_id); -internal b32 view_enqueue_command_function(Application_Links* app, View_ID view_id, Custom_Command_Function* custom_func); -internal b32 view_get_setting(Application_Links* app, View_ID view_id, View_Setting_ID setting, i64* value_out); -internal b32 view_set_setting(Application_Links* app, View_ID view_id, View_Setting_ID setting, i64 value); -internal Managed_Scope view_get_managed_scope(Application_Links* app, View_ID view_id); -internal Buffer_Cursor buffer_compute_cursor(Application_Links* app, Buffer_ID buffer, Buffer_Seek seek); -internal Buffer_Cursor view_compute_cursor(Application_Links* app, View_ID view_id, Buffer_Seek seek); -internal b32 view_set_camera_bounds(Application_Links* app, View_ID view_id, Vec2_f32 margin, Vec2_f32 push_in_multiplier); -internal b32 view_get_camera_bounds(Application_Links* app, View_ID view_id, Vec2_f32* margin, Vec2_f32* push_in_multiplier); -internal b32 view_set_cursor(Application_Links* app, View_ID view_id, Buffer_Seek seek); -internal b32 view_set_buffer_scroll(Application_Links* app, View_ID view_id, Buffer_Scroll scroll, Set_Buffer_Scroll_Rule rule); -internal b32 view_set_mark(Application_Links* app, View_ID view_id, Buffer_Seek seek); -internal b32 view_quit_ui(Application_Links* app, View_ID view_id); -internal b32 view_set_buffer(Application_Links* app, View_ID view_id, Buffer_ID buffer_id, Set_Buffer_Flag flags); -internal b32 view_push_context(Application_Links* app, View_ID view_id, View_Context* ctx); -internal b32 view_pop_context(Application_Links* app, View_ID view_id); -internal b32 view_alter_context(Application_Links* app, View_ID view_id, View_Context* ctx); -internal View_Context view_current_context(Application_Links* app, View_ID view_id); -internal String_Const_u8 view_current_context_hook_memory(Application_Links* app, View_ID view_id, Hook_ID hook_id); -internal Managed_Scope create_user_managed_scope(Application_Links* app); -internal b32 destroy_user_managed_scope(Application_Links* app, Managed_Scope scope); -internal Managed_Scope get_global_managed_scope(Application_Links* app); -internal Managed_Scope get_managed_scope_with_multiple_dependencies(Application_Links* app, Managed_Scope* scopes, i32 count); -internal b32 managed_scope_clear_contents(Application_Links* app, Managed_Scope scope); -internal b32 managed_scope_clear_self_all_dependent_scopes(Application_Links* app, Managed_Scope scope); -internal Base_Allocator* managed_scope_allocator(Application_Links* app, Managed_Scope scope); -internal u64 managed_id_group_highest_id(Application_Links* app, String_Const_u8 group); -internal Managed_ID managed_id_declare(Application_Links* app, String_Const_u8 group, String_Const_u8 name); -internal Managed_ID managed_id_get(Application_Links* app, String_Const_u8 group, String_Const_u8 name); -internal void* managed_scope_get_attachment(Application_Links* app, Managed_Scope scope, Managed_ID id, u64 size); -internal b32 managed_scope_attachment_erase(Application_Links* app, Managed_Scope scope, Managed_ID id); -internal Managed_Object alloc_managed_memory_in_scope(Application_Links* app, Managed_Scope scope, i32 item_size, i32 count); -internal Managed_Object alloc_buffer_markers_on_buffer(Application_Links* app, Buffer_ID buffer_id, i32 count, Managed_Scope* optional_extra_scope); -internal u32 managed_object_get_item_size(Application_Links* app, Managed_Object object); -internal u32 managed_object_get_item_count(Application_Links* app, Managed_Object object); -internal void* managed_object_get_pointer(Application_Links* app, Managed_Object object); -internal Managed_Object_Type managed_object_get_type(Application_Links* app, Managed_Object object); -internal Managed_Scope managed_object_get_containing_scope(Application_Links* app, Managed_Object object); -internal b32 managed_object_free(Application_Links* app, Managed_Object object); -internal b32 managed_object_store_data(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem); -internal b32 managed_object_load_data(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem_out); -internal User_Input get_next_input_raw(Application_Links* app); -internal i64 get_current_input_sequence_number(Application_Links* app); -internal User_Input get_current_input(Application_Links* app); -internal void set_current_input(Application_Links* app, User_Input* input); -internal void leave_current_input_unhandled(Application_Links* app); -internal void set_custom_hook(Application_Links* app, Hook_ID hook_id, Void_Func* func_ptr); -internal Void_Func* get_custom_hook(Application_Links* app, Hook_ID hook_id); -internal b32 set_custom_hook_memory_size(Application_Links* app, Hook_ID hook_id, u64 size); -internal Mouse_State get_mouse_state(Application_Links* app); -internal b32 get_active_query_bars(Application_Links* app, View_ID view_id, i32 max_result_count, Query_Bar_Ptr_Array* array_out); -internal b32 start_query_bar(Application_Links* app, Query_Bar* bar, u32 flags); -internal void end_query_bar(Application_Links* app, Query_Bar* bar, u32 flags); -internal void clear_all_query_bars(Application_Links* app, View_ID view_id); -internal void print_message(Application_Links* app, String_Const_u8 message); -internal b32 log_string(Application_Links* app, String_Const_u8 str); -internal Face_ID get_largest_face_id(Application_Links* app); -internal b32 set_global_face(Application_Links* app, Face_ID id); -internal History_Record_Index buffer_history_get_max_record_index(Application_Links* app, Buffer_ID buffer_id); -internal Record_Info buffer_history_get_record_info(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index); -internal Record_Info buffer_history_get_group_sub_record(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index, i32 sub_index); -internal History_Record_Index buffer_history_get_current_state_index(Application_Links* app, Buffer_ID buffer_id); -internal b32 buffer_history_set_current_state_index(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index); -internal b32 buffer_history_merge_record_range(Application_Links* app, Buffer_ID buffer_id, History_Record_Index first_index, History_Record_Index last_index, Record_Merge_Flag flags); -internal b32 buffer_history_clear_after_current_state(Application_Links* app, Buffer_ID buffer_id); -internal void global_history_edit_group_begin(Application_Links* app); -internal void global_history_edit_group_end(Application_Links* app); -internal b32 buffer_set_face(Application_Links* app, Buffer_ID buffer_id, Face_ID id); -internal Face_Description get_face_description(Application_Links* app, Face_ID face_id); -internal Face_Metrics get_face_metrics(Application_Links* app, Face_ID face_id); -internal Face_Advance_Map get_face_advance_map(Application_Links* app, Face_ID face_id); -internal Face_ID get_face_id(Application_Links* app, Buffer_ID buffer_id); -internal Face_ID try_create_new_face(Application_Links* app, Face_Description* description); -internal b32 try_modify_face(Application_Links* app, Face_ID id, Face_Description* description); -internal b32 try_release_face(Application_Links* app, Face_ID id, Face_ID replacement_id); -internal String_Const_u8 push_hot_directory(Application_Links* app, Arena* arena); -internal void set_hot_directory(Application_Links* app, String_Const_u8 string); -internal void send_exit_signal(Application_Links* app); -internal void hard_exit(Application_Links* app); -internal void set_window_title(Application_Links* app, String_Const_u8 title); -internal void acquire_global_frame_mutex(Application_Links* app); -internal void release_global_frame_mutex(Application_Links* app); -internal Vec2_f32 draw_string_oriented(Application_Links* app, Face_ID font_id, ARGB_Color color, String_Const_u8 str, Vec2_f32 point, u32 flags, Vec2_f32 delta); -internal f32 get_string_advance(Application_Links* app, Face_ID font_id, String_Const_u8 str); -internal void draw_rectangle(Application_Links* app, Rect_f32 rect, f32 roundness, ARGB_Color color); -internal void draw_rectangle_outline(Application_Links* app, Rect_f32 rect, f32 roundness, f32 thickness, ARGB_Color color); -internal Rect_f32 draw_set_clip(Application_Links* app, Rect_f32 new_clip); -internal Text_Layout_ID text_layout_create(Application_Links* app, Buffer_ID buffer_id, Rect_f32 rect, Buffer_Point buffer_point); -internal Rect_f32 text_layout_region(Application_Links* app, Text_Layout_ID text_layout_id); -internal Buffer_ID text_layout_get_buffer(Application_Links* app, Text_Layout_ID text_layout_id); -internal Range_i64 text_layout_get_visible_range(Application_Links* app, Text_Layout_ID text_layout_id); -internal Range_f32 text_layout_line_on_screen(Application_Links* app, Text_Layout_ID layout_id, i64 line_number); -internal Rect_f32 text_layout_character_on_screen(Application_Links* app, Text_Layout_ID layout_id, i64 pos); -internal void paint_text_color(Application_Links* app, Text_Layout_ID layout_id, Range_i64 range, ARGB_Color color); -internal void paint_text_color_blend(Application_Links* app, Text_Layout_ID layout_id, Range_i64 range, ARGB_Color color, f32 blend); -internal b32 text_layout_free(Application_Links* app, Text_Layout_ID text_layout_id); -internal void draw_text_layout(Application_Links* app, Text_Layout_ID layout_id, ARGB_Color special_color, ARGB_Color ghost_color); -internal void open_color_picker(Application_Links* app, Color_Picker* picker); -internal void animate_in_n_milliseconds(Application_Links* app, u32 n); -internal String_Match_List buffer_find_all_matches(Application_Links* app, Arena* arena, Buffer_ID buffer, i32 string_id, Range_i64 range, String_Const_u8 needle, Character_Predicate* predicate, Scan_Direction direction); -internal Profile_Global_List* get_core_profile_list(Application_Links* app); -internal Doc_Cluster* get_custom_layer_boundary_docs(Application_Links* app, Arena* arena); -#undef STATIC_LINK_API - -#elif defined(DYNAMIC_LINK_API) -global custom_global_set_setting_type *global_set_setting = 0; -global custom_global_get_screen_rectangle_type *global_get_screen_rectangle = 0; -global custom_get_thread_context_type *get_thread_context = 0; -global custom_create_child_process_type *create_child_process = 0; -global custom_child_process_set_target_buffer_type *child_process_set_target_buffer = 0; -global custom_buffer_get_attached_child_process_type *buffer_get_attached_child_process = 0; -global custom_child_process_get_attached_buffer_type *child_process_get_attached_buffer = 0; -global custom_child_process_get_state_type *child_process_get_state = 0; -global custom_enqueue_virtual_event_type *enqueue_virtual_event = 0; -global custom_get_buffer_count_type *get_buffer_count = 0; -global custom_get_buffer_next_type *get_buffer_next = 0; -global custom_get_buffer_by_name_type *get_buffer_by_name = 0; -global custom_get_buffer_by_file_name_type *get_buffer_by_file_name = 0; -global custom_buffer_read_range_type *buffer_read_range = 0; -global custom_buffer_replace_range_type *buffer_replace_range = 0; -global custom_buffer_batch_edit_type *buffer_batch_edit = 0; -global custom_buffer_seek_string_type *buffer_seek_string = 0; -global custom_buffer_seek_character_class_type *buffer_seek_character_class = 0; -global custom_buffer_line_y_difference_type *buffer_line_y_difference = 0; -global custom_buffer_line_shift_y_type *buffer_line_shift_y = 0; -global custom_buffer_pos_at_relative_xy_type *buffer_pos_at_relative_xy = 0; -global custom_buffer_relative_box_of_pos_type *buffer_relative_box_of_pos = 0; -global custom_buffer_padded_box_of_pos_type *buffer_padded_box_of_pos = 0; -global custom_buffer_relative_character_from_pos_type *buffer_relative_character_from_pos = 0; -global custom_buffer_pos_from_relative_character_type *buffer_pos_from_relative_character = 0; -global custom_view_line_y_difference_type *view_line_y_difference = 0; -global custom_view_line_shift_y_type *view_line_shift_y = 0; -global custom_view_pos_at_relative_xy_type *view_pos_at_relative_xy = 0; -global custom_view_relative_box_of_pos_type *view_relative_box_of_pos = 0; -global custom_view_padded_box_of_pos_type *view_padded_box_of_pos = 0; -global custom_view_relative_character_from_pos_type *view_relative_character_from_pos = 0; -global custom_view_pos_from_relative_character_type *view_pos_from_relative_character = 0; -global custom_buffer_exists_type *buffer_exists = 0; -global custom_buffer_get_access_flags_type *buffer_get_access_flags = 0; -global custom_buffer_get_size_type *buffer_get_size = 0; -global custom_buffer_get_line_count_type *buffer_get_line_count = 0; -global custom_push_buffer_base_name_type *push_buffer_base_name = 0; -global custom_push_buffer_unique_name_type *push_buffer_unique_name = 0; -global custom_push_buffer_file_name_type *push_buffer_file_name = 0; -global custom_buffer_get_dirty_state_type *buffer_get_dirty_state = 0; -global custom_buffer_set_dirty_state_type *buffer_set_dirty_state = 0; -global custom_buffer_set_layout_type *buffer_set_layout = 0; -global custom_buffer_clear_layout_cache_type *buffer_clear_layout_cache = 0; -global custom_buffer_get_layout_type *buffer_get_layout = 0; -global custom_buffer_get_setting_type *buffer_get_setting = 0; -global custom_buffer_set_setting_type *buffer_set_setting = 0; -global custom_buffer_get_managed_scope_type *buffer_get_managed_scope = 0; -global custom_buffer_send_end_signal_type *buffer_send_end_signal = 0; -global custom_create_buffer_type *create_buffer = 0; -global custom_buffer_save_type *buffer_save = 0; -global custom_buffer_kill_type *buffer_kill = 0; -global custom_buffer_reopen_type *buffer_reopen = 0; -global custom_buffer_get_file_attributes_type *buffer_get_file_attributes = 0; -global custom_get_view_next_type *get_view_next = 0; -global custom_get_view_prev_type *get_view_prev = 0; -global custom_get_this_ctx_view_type *get_this_ctx_view = 0; -global custom_get_active_view_type *get_active_view = 0; -global custom_view_exists_type *view_exists = 0; -global custom_view_get_buffer_type *view_get_buffer = 0; -global custom_view_get_cursor_pos_type *view_get_cursor_pos = 0; -global custom_view_get_mark_pos_type *view_get_mark_pos = 0; -global custom_view_get_preferred_x_type *view_get_preferred_x = 0; -global custom_view_set_preferred_x_type *view_set_preferred_x = 0; -global custom_view_get_screen_rect_type *view_get_screen_rect = 0; -global custom_view_get_panel_type *view_get_panel = 0; -global custom_panel_get_view_type *panel_get_view = 0; -global custom_panel_is_split_type *panel_is_split = 0; -global custom_panel_is_leaf_type *panel_is_leaf = 0; -global custom_panel_split_type *panel_split = 0; -global custom_panel_set_split_type *panel_set_split = 0; -global custom_panel_swap_children_type *panel_swap_children = 0; -global custom_panel_get_root_type *panel_get_root = 0; -global custom_panel_get_parent_type *panel_get_parent = 0; -global custom_panel_get_child_type *panel_get_child = 0; -global custom_view_close_type *view_close = 0; -global custom_view_get_buffer_region_type *view_get_buffer_region = 0; -global custom_view_get_buffer_scroll_type *view_get_buffer_scroll = 0; -global custom_view_set_active_type *view_set_active = 0; -global custom_view_enqueue_command_function_type *view_enqueue_command_function = 0; -global custom_view_get_setting_type *view_get_setting = 0; -global custom_view_set_setting_type *view_set_setting = 0; -global custom_view_get_managed_scope_type *view_get_managed_scope = 0; -global custom_buffer_compute_cursor_type *buffer_compute_cursor = 0; -global custom_view_compute_cursor_type *view_compute_cursor = 0; -global custom_view_set_camera_bounds_type *view_set_camera_bounds = 0; -global custom_view_get_camera_bounds_type *view_get_camera_bounds = 0; -global custom_view_set_cursor_type *view_set_cursor = 0; -global custom_view_set_buffer_scroll_type *view_set_buffer_scroll = 0; -global custom_view_set_mark_type *view_set_mark = 0; -global custom_view_quit_ui_type *view_quit_ui = 0; -global custom_view_set_buffer_type *view_set_buffer = 0; -global custom_view_push_context_type *view_push_context = 0; -global custom_view_pop_context_type *view_pop_context = 0; -global custom_view_alter_context_type *view_alter_context = 0; -global custom_view_current_context_type *view_current_context = 0; -global custom_view_current_context_hook_memory_type *view_current_context_hook_memory = 0; -global custom_create_user_managed_scope_type *create_user_managed_scope = 0; -global custom_destroy_user_managed_scope_type *destroy_user_managed_scope = 0; -global custom_get_global_managed_scope_type *get_global_managed_scope = 0; -global custom_get_managed_scope_with_multiple_dependencies_type *get_managed_scope_with_multiple_dependencies = 0; -global custom_managed_scope_clear_contents_type *managed_scope_clear_contents = 0; -global custom_managed_scope_clear_self_all_dependent_scopes_type *managed_scope_clear_self_all_dependent_scopes = 0; -global custom_managed_scope_allocator_type *managed_scope_allocator = 0; -global custom_managed_id_group_highest_id_type *managed_id_group_highest_id = 0; -global custom_managed_id_declare_type *managed_id_declare = 0; -global custom_managed_id_get_type *managed_id_get = 0; -global custom_managed_scope_get_attachment_type *managed_scope_get_attachment = 0; -global custom_managed_scope_attachment_erase_type *managed_scope_attachment_erase = 0; -global custom_alloc_managed_memory_in_scope_type *alloc_managed_memory_in_scope = 0; -global custom_alloc_buffer_markers_on_buffer_type *alloc_buffer_markers_on_buffer = 0; -global custom_managed_object_get_item_size_type *managed_object_get_item_size = 0; -global custom_managed_object_get_item_count_type *managed_object_get_item_count = 0; -global custom_managed_object_get_pointer_type *managed_object_get_pointer = 0; -global custom_managed_object_get_type_type *managed_object_get_type = 0; -global custom_managed_object_get_containing_scope_type *managed_object_get_containing_scope = 0; -global custom_managed_object_free_type *managed_object_free = 0; -global custom_managed_object_store_data_type *managed_object_store_data = 0; -global custom_managed_object_load_data_type *managed_object_load_data = 0; -global custom_get_next_input_raw_type *get_next_input_raw = 0; -global custom_get_current_input_sequence_number_type *get_current_input_sequence_number = 0; -global custom_get_current_input_type *get_current_input = 0; -global custom_set_current_input_type *set_current_input = 0; -global custom_leave_current_input_unhandled_type *leave_current_input_unhandled = 0; -global custom_set_custom_hook_type *set_custom_hook = 0; -global custom_get_custom_hook_type *get_custom_hook = 0; -global custom_set_custom_hook_memory_size_type *set_custom_hook_memory_size = 0; -global custom_get_mouse_state_type *get_mouse_state = 0; -global custom_get_active_query_bars_type *get_active_query_bars = 0; -global custom_start_query_bar_type *start_query_bar = 0; -global custom_end_query_bar_type *end_query_bar = 0; -global custom_clear_all_query_bars_type *clear_all_query_bars = 0; -global custom_print_message_type *print_message = 0; -global custom_log_string_type *log_string = 0; -global custom_get_largest_face_id_type *get_largest_face_id = 0; -global custom_set_global_face_type *set_global_face = 0; -global custom_buffer_history_get_max_record_index_type *buffer_history_get_max_record_index = 0; -global custom_buffer_history_get_record_info_type *buffer_history_get_record_info = 0; -global custom_buffer_history_get_group_sub_record_type *buffer_history_get_group_sub_record = 0; -global custom_buffer_history_get_current_state_index_type *buffer_history_get_current_state_index = 0; -global custom_buffer_history_set_current_state_index_type *buffer_history_set_current_state_index = 0; -global custom_buffer_history_merge_record_range_type *buffer_history_merge_record_range = 0; -global custom_buffer_history_clear_after_current_state_type *buffer_history_clear_after_current_state = 0; -global custom_global_history_edit_group_begin_type *global_history_edit_group_begin = 0; -global custom_global_history_edit_group_end_type *global_history_edit_group_end = 0; -global custom_buffer_set_face_type *buffer_set_face = 0; -global custom_get_face_description_type *get_face_description = 0; -global custom_get_face_metrics_type *get_face_metrics = 0; -global custom_get_face_advance_map_type *get_face_advance_map = 0; -global custom_get_face_id_type *get_face_id = 0; -global custom_try_create_new_face_type *try_create_new_face = 0; -global custom_try_modify_face_type *try_modify_face = 0; -global custom_try_release_face_type *try_release_face = 0; -global custom_push_hot_directory_type *push_hot_directory = 0; -global custom_set_hot_directory_type *set_hot_directory = 0; -global custom_send_exit_signal_type *send_exit_signal = 0; -global custom_hard_exit_type *hard_exit = 0; -global custom_set_window_title_type *set_window_title = 0; -global custom_acquire_global_frame_mutex_type *acquire_global_frame_mutex = 0; -global custom_release_global_frame_mutex_type *release_global_frame_mutex = 0; -global custom_draw_string_oriented_type *draw_string_oriented = 0; -global custom_get_string_advance_type *get_string_advance = 0; -global custom_draw_rectangle_type *draw_rectangle = 0; -global custom_draw_rectangle_outline_type *draw_rectangle_outline = 0; -global custom_draw_set_clip_type *draw_set_clip = 0; -global custom_text_layout_create_type *text_layout_create = 0; -global custom_text_layout_region_type *text_layout_region = 0; -global custom_text_layout_get_buffer_type *text_layout_get_buffer = 0; -global custom_text_layout_get_visible_range_type *text_layout_get_visible_range = 0; -global custom_text_layout_line_on_screen_type *text_layout_line_on_screen = 0; -global custom_text_layout_character_on_screen_type *text_layout_character_on_screen = 0; -global custom_paint_text_color_type *paint_text_color = 0; -global custom_paint_text_color_blend_type *paint_text_color_blend = 0; -global custom_text_layout_free_type *text_layout_free = 0; -global custom_draw_text_layout_type *draw_text_layout = 0; -global custom_open_color_picker_type *open_color_picker = 0; -global custom_animate_in_n_milliseconds_type *animate_in_n_milliseconds = 0; -global custom_buffer_find_all_matches_type *buffer_find_all_matches = 0; -global custom_get_core_profile_list_type *get_core_profile_list = 0; -global custom_get_custom_layer_boundary_docs_type *get_custom_layer_boundary_docs = 0; -#undef DYNAMIC_LINK_API -#endif diff --git a/code/custom/generated/custom_api_constructor.cpp b/code/custom/generated/custom_api_constructor.cpp deleted file mode 100644 index a63d6def..00000000 --- a/code/custom/generated/custom_api_constructor.cpp +++ /dev/null @@ -1,1046 +0,0 @@ -/* Generated by "code/4ed_api_parser_main.exe 4ed_api_implementation.cpp" */ - -function API_Definition* -custom_api_construct(Arena *arena){ - API_Definition *result = begin_api(arena, "custom"); - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("global_set_setting"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Global_Setting_ID", "setting"); - api_param(arena, call, "i64", "value"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("global_get_screen_rectangle"), string_u8_litexpr("Rect_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_thread_context"), string_u8_litexpr("Thread_Context*"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("create_child_process"), string_u8_litexpr("Child_Process_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "path"); - api_param(arena, call, "String_Const_u8", "command"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("child_process_set_target_buffer"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Child_Process_ID", "child_process_id"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Child_Process_Set_Target_Flags", "flags"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_get_attached_child_process"), string_u8_litexpr("Child_Process_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("child_process_get_attached_buffer"), string_u8_litexpr("Buffer_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Child_Process_ID", "child_process_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("child_process_get_state"), string_u8_litexpr("Process_State"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Child_Process_ID", "child_process_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("enqueue_virtual_event"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Input_Event*", "event"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_buffer_count"), string_u8_litexpr("i32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_buffer_next"), string_u8_litexpr("Buffer_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Access_Flag", "access"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_buffer_by_name"), string_u8_litexpr("Buffer_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "name"); - api_param(arena, call, "Access_Flag", "access"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_buffer_by_file_name"), string_u8_litexpr("Buffer_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "file_name"); - api_param(arena, call, "Access_Flag", "access"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_read_range"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Range_i64", "range"); - api_param(arena, call, "u8*", "out"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_replace_range"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Range_i64", "range"); - api_param(arena, call, "String_Const_u8", "string"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_batch_edit"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Batch_Edit*", "batch"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_seek_string"), string_u8_litexpr("String_Match"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer"); - api_param(arena, call, "String_Const_u8", "needle"); - api_param(arena, call, "Scan_Direction", "direction"); - api_param(arena, call, "i64", "start_pos"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_seek_character_class"), string_u8_litexpr("String_Match"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer"); - api_param(arena, call, "Character_Predicate*", "predicate"); - api_param(arena, call, "Scan_Direction", "direction"); - api_param(arena, call, "i64", "start_pos"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_line_y_difference"), string_u8_litexpr("f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "f32", "width"); - api_param(arena, call, "Face_ID", "face_id"); - api_param(arena, call, "i64", "line_a"); - api_param(arena, call, "i64", "line_b"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_line_shift_y"), string_u8_litexpr("Line_Shift_Vertical"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "f32", "width"); - api_param(arena, call, "Face_ID", "face_id"); - api_param(arena, call, "i64", "line"); - api_param(arena, call, "f32", "y_shift"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_pos_at_relative_xy"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "f32", "width"); - api_param(arena, call, "Face_ID", "face_id"); - api_param(arena, call, "i64", "base_line"); - api_param(arena, call, "Vec2_f32", "relative_xy"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_relative_box_of_pos"), string_u8_litexpr("Rect_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "f32", "width"); - api_param(arena, call, "Face_ID", "face_id"); - api_param(arena, call, "i64", "base_line"); - api_param(arena, call, "i64", "pos"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_padded_box_of_pos"), string_u8_litexpr("Rect_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "f32", "width"); - api_param(arena, call, "Face_ID", "face_id"); - api_param(arena, call, "i64", "base_line"); - api_param(arena, call, "i64", "pos"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_relative_character_from_pos"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "f32", "width"); - api_param(arena, call, "Face_ID", "face_id"); - api_param(arena, call, "i64", "base_line"); - api_param(arena, call, "i64", "pos"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_pos_from_relative_character"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "f32", "width"); - api_param(arena, call, "Face_ID", "face_id"); - api_param(arena, call, "i64", "base_line"); - api_param(arena, call, "i64", "relative_character"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_line_y_difference"), string_u8_litexpr("f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "i64", "line_a"); - api_param(arena, call, "i64", "line_b"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_line_shift_y"), string_u8_litexpr("Line_Shift_Vertical"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "i64", "line"); - api_param(arena, call, "f32", "y_shift"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_pos_at_relative_xy"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "i64", "base_line"); - api_param(arena, call, "Vec2_f32", "relative_xy"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_relative_box_of_pos"), string_u8_litexpr("Rect_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "i64", "base_line"); - api_param(arena, call, "i64", "pos"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_padded_box_of_pos"), string_u8_litexpr("Rect_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "i64", "base_line"); - api_param(arena, call, "i64", "pos"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_relative_character_from_pos"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "i64", "base_line"); - api_param(arena, call, "i64", "pos"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_pos_from_relative_character"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "i64", "base_line"); - api_param(arena, call, "i64", "character"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_exists"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_get_access_flags"), string_u8_litexpr("Access_Flag"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_get_size"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_get_line_count"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("push_buffer_base_name"), string_u8_litexpr("String_Const_u8"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Arena*", "arena"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("push_buffer_unique_name"), string_u8_litexpr("String_Const_u8"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Arena*", "out"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("push_buffer_file_name"), string_u8_litexpr("String_Const_u8"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Arena*", "arena"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_get_dirty_state"), string_u8_litexpr("Dirty_State"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_set_dirty_state"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Dirty_State", "dirty_state"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_set_layout"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Layout_Function*", "layout_func"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_clear_layout_cache"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_get_layout"), string_u8_litexpr("Layout_Function*"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_get_setting"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Buffer_Setting_ID", "setting"); - api_param(arena, call, "i64*", "value_out"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_set_setting"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Buffer_Setting_ID", "setting"); - api_param(arena, call, "i64", "value"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_get_managed_scope"), string_u8_litexpr("Managed_Scope"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_send_end_signal"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("create_buffer"), string_u8_litexpr("Buffer_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "file_name"); - api_param(arena, call, "Buffer_Create_Flag", "flags"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_save"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "String_Const_u8", "file_name"); - api_param(arena, call, "Buffer_Save_Flag", "flags"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_kill"), string_u8_litexpr("Buffer_Kill_Result"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Buffer_Kill_Flag", "flags"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_reopen"), string_u8_litexpr("Buffer_Reopen_Result"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Buffer_Reopen_Flag", "flags"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_get_file_attributes"), string_u8_litexpr("File_Attributes"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_view_next"), string_u8_litexpr("View_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Access_Flag", "access"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_view_prev"), string_u8_litexpr("View_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Access_Flag", "access"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_this_ctx_view"), string_u8_litexpr("View_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Access_Flag", "access"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_active_view"), string_u8_litexpr("View_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Access_Flag", "access"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_exists"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_buffer"), string_u8_litexpr("Buffer_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Access_Flag", "access"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_cursor_pos"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_mark_pos"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_preferred_x"), string_u8_litexpr("f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_set_preferred_x"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "f32", "x"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_screen_rect"), string_u8_litexpr("Rect_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_panel"), string_u8_litexpr("Panel_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("panel_get_view"), string_u8_litexpr("View_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Panel_ID", "panel_id"); - api_param(arena, call, "Access_Flag", "access"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("panel_is_split"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Panel_ID", "panel_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("panel_is_leaf"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Panel_ID", "panel_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("panel_split"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Panel_ID", "panel_id"); - api_param(arena, call, "Dimension", "split_dim"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("panel_set_split"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Panel_ID", "panel_id"); - api_param(arena, call, "Panel_Split_Kind", "kind"); - api_param(arena, call, "f32", "t"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("panel_swap_children"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Panel_ID", "panel_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("panel_get_root"), string_u8_litexpr("Panel_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("panel_get_parent"), string_u8_litexpr("Panel_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Panel_ID", "panel_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("panel_get_child"), string_u8_litexpr("Panel_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Panel_ID", "panel_id"); - api_param(arena, call, "Side", "which_child"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_close"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_buffer_region"), string_u8_litexpr("Rect_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_buffer_scroll"), string_u8_litexpr("Buffer_Scroll"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_set_active"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_enqueue_command_function"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Custom_Command_Function*", "custom_func"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_setting"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "View_Setting_ID", "setting"); - api_param(arena, call, "i64*", "value_out"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_set_setting"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "View_Setting_ID", "setting"); - api_param(arena, call, "i64", "value"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_managed_scope"), string_u8_litexpr("Managed_Scope"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_compute_cursor"), string_u8_litexpr("Buffer_Cursor"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer"); - api_param(arena, call, "Buffer_Seek", "seek"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_compute_cursor"), string_u8_litexpr("Buffer_Cursor"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Buffer_Seek", "seek"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_set_camera_bounds"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Vec2_f32", "margin"); - api_param(arena, call, "Vec2_f32", "push_in_multiplier"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_get_camera_bounds"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Vec2_f32*", "margin"); - api_param(arena, call, "Vec2_f32*", "push_in_multiplier"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_set_cursor"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Buffer_Seek", "seek"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_set_buffer_scroll"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Buffer_Scroll", "scroll"); - api_param(arena, call, "Set_Buffer_Scroll_Rule", "rule"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_set_mark"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Buffer_Seek", "seek"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_quit_ui"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_set_buffer"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Set_Buffer_Flag", "flags"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_push_context"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "View_Context*", "ctx"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_pop_context"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_alter_context"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "View_Context*", "ctx"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_current_context"), string_u8_litexpr("View_Context"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("view_current_context_hook_memory"), string_u8_litexpr("String_Const_u8"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "Hook_ID", "hook_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("create_user_managed_scope"), string_u8_litexpr("Managed_Scope"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("destroy_user_managed_scope"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Scope", "scope"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_global_managed_scope"), string_u8_litexpr("Managed_Scope"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_managed_scope_with_multiple_dependencies"), string_u8_litexpr("Managed_Scope"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Scope*", "scopes"); - api_param(arena, call, "i32", "count"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_scope_clear_contents"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Scope", "scope"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_scope_clear_self_all_dependent_scopes"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Scope", "scope"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_scope_allocator"), string_u8_litexpr("Base_Allocator*"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Scope", "scope"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_id_group_highest_id"), string_u8_litexpr("u64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "group"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_id_declare"), string_u8_litexpr("Managed_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "group"); - api_param(arena, call, "String_Const_u8", "name"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_id_get"), string_u8_litexpr("Managed_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "group"); - api_param(arena, call, "String_Const_u8", "name"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_scope_get_attachment"), string_u8_litexpr("void*"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Scope", "scope"); - api_param(arena, call, "Managed_ID", "id"); - api_param(arena, call, "u64", "size"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_scope_attachment_erase"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Scope", "scope"); - api_param(arena, call, "Managed_ID", "id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("alloc_managed_memory_in_scope"), string_u8_litexpr("Managed_Object"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Scope", "scope"); - api_param(arena, call, "i32", "item_size"); - api_param(arena, call, "i32", "count"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("alloc_buffer_markers_on_buffer"), string_u8_litexpr("Managed_Object"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "i32", "count"); - api_param(arena, call, "Managed_Scope*", "optional_extra_scope"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_object_get_item_size"), string_u8_litexpr("u32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Object", "object"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_object_get_item_count"), string_u8_litexpr("u32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Object", "object"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_object_get_pointer"), string_u8_litexpr("void*"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Object", "object"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_object_get_type"), string_u8_litexpr("Managed_Object_Type"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Object", "object"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_object_get_containing_scope"), string_u8_litexpr("Managed_Scope"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Object", "object"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_object_free"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Object", "object"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_object_store_data"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Object", "object"); - api_param(arena, call, "u32", "first_index"); - api_param(arena, call, "u32", "count"); - api_param(arena, call, "void*", "mem"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("managed_object_load_data"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Managed_Object", "object"); - api_param(arena, call, "u32", "first_index"); - api_param(arena, call, "u32", "count"); - api_param(arena, call, "void*", "mem_out"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_next_input_raw"), string_u8_litexpr("User_Input"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_current_input_sequence_number"), string_u8_litexpr("i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_current_input"), string_u8_litexpr("User_Input"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_current_input"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "User_Input*", "input"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("leave_current_input_unhandled"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_custom_hook"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Hook_ID", "hook_id"); - api_param(arena, call, "Void_Func*", "func_ptr"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_custom_hook"), string_u8_litexpr("Void_Func*"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Hook_ID", "hook_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_custom_hook_memory_size"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Hook_ID", "hook_id"); - api_param(arena, call, "u64", "size"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_mouse_state"), string_u8_litexpr("Mouse_State"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_active_query_bars"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - api_param(arena, call, "i32", "max_result_count"); - api_param(arena, call, "Query_Bar_Ptr_Array*", "array_out"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("start_query_bar"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Query_Bar*", "bar"); - api_param(arena, call, "u32", "flags"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("end_query_bar"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Query_Bar*", "bar"); - api_param(arena, call, "u32", "flags"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("clear_all_query_bars"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "View_ID", "view_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("print_message"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "message"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("log_string"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "str"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_largest_face_id"), string_u8_litexpr("Face_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_global_face"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Face_ID", "id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_history_get_max_record_index"), string_u8_litexpr("History_Record_Index"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_history_get_record_info"), string_u8_litexpr("Record_Info"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "History_Record_Index", "index"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_history_get_group_sub_record"), string_u8_litexpr("Record_Info"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "History_Record_Index", "index"); - api_param(arena, call, "i32", "sub_index"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_history_get_current_state_index"), string_u8_litexpr("History_Record_Index"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_history_set_current_state_index"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "History_Record_Index", "index"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_history_merge_record_range"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "History_Record_Index", "first_index"); - api_param(arena, call, "History_Record_Index", "last_index"); - api_param(arena, call, "Record_Merge_Flag", "flags"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_history_clear_after_current_state"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("global_history_edit_group_begin"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("global_history_edit_group_end"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_set_face"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Face_ID", "id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_face_description"), string_u8_litexpr("Face_Description"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Face_ID", "face_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_face_metrics"), string_u8_litexpr("Face_Metrics"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Face_ID", "face_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_face_advance_map"), string_u8_litexpr("Face_Advance_Map"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Face_ID", "face_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_face_id"), string_u8_litexpr("Face_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("try_create_new_face"), string_u8_litexpr("Face_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Face_Description*", "description"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("try_modify_face"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Face_ID", "id"); - api_param(arena, call, "Face_Description*", "description"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("try_release_face"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Face_ID", "id"); - api_param(arena, call, "Face_ID", "replacement_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("push_hot_directory"), string_u8_litexpr("String_Const_u8"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Arena*", "arena"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_hot_directory"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "string"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("send_exit_signal"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("hard_exit"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_window_title"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "String_Const_u8", "title"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("acquire_global_frame_mutex"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("release_global_frame_mutex"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("draw_string_oriented"), string_u8_litexpr("Vec2_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Face_ID", "font_id"); - api_param(arena, call, "ARGB_Color", "color"); - api_param(arena, call, "String_Const_u8", "str"); - api_param(arena, call, "Vec2_f32", "point"); - api_param(arena, call, "u32", "flags"); - api_param(arena, call, "Vec2_f32", "delta"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_string_advance"), string_u8_litexpr("f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Face_ID", "font_id"); - api_param(arena, call, "String_Const_u8", "str"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("draw_rectangle"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Rect_f32", "rect"); - api_param(arena, call, "f32", "roundness"); - api_param(arena, call, "ARGB_Color", "color"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("draw_rectangle_outline"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Rect_f32", "rect"); - api_param(arena, call, "f32", "roundness"); - api_param(arena, call, "f32", "thickness"); - api_param(arena, call, "ARGB_Color", "color"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("draw_set_clip"), string_u8_litexpr("Rect_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Rect_f32", "new_clip"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("text_layout_create"), string_u8_litexpr("Text_Layout_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Buffer_ID", "buffer_id"); - api_param(arena, call, "Rect_f32", "rect"); - api_param(arena, call, "Buffer_Point", "buffer_point"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("text_layout_region"), string_u8_litexpr("Rect_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Text_Layout_ID", "text_layout_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("text_layout_get_buffer"), string_u8_litexpr("Buffer_ID"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Text_Layout_ID", "text_layout_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("text_layout_get_visible_range"), string_u8_litexpr("Range_i64"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Text_Layout_ID", "text_layout_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("text_layout_line_on_screen"), string_u8_litexpr("Range_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Text_Layout_ID", "layout_id"); - api_param(arena, call, "i64", "line_number"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("text_layout_character_on_screen"), string_u8_litexpr("Rect_f32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Text_Layout_ID", "layout_id"); - api_param(arena, call, "i64", "pos"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("paint_text_color"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Text_Layout_ID", "layout_id"); - api_param(arena, call, "Range_i64", "range"); - api_param(arena, call, "ARGB_Color", "color"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("paint_text_color_blend"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Text_Layout_ID", "layout_id"); - api_param(arena, call, "Range_i64", "range"); - api_param(arena, call, "ARGB_Color", "color"); - api_param(arena, call, "f32", "blend"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("text_layout_free"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Text_Layout_ID", "text_layout_id"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("draw_text_layout"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Text_Layout_ID", "layout_id"); - api_param(arena, call, "ARGB_Color", "special_color"); - api_param(arena, call, "ARGB_Color", "ghost_color"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("open_color_picker"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Color_Picker*", "picker"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("animate_in_n_milliseconds"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "u32", "n"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("buffer_find_all_matches"), string_u8_litexpr("String_Match_List"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Arena*", "arena"); - api_param(arena, call, "Buffer_ID", "buffer"); - api_param(arena, call, "i32", "string_id"); - api_param(arena, call, "Range_i64", "range"); - api_param(arena, call, "String_Const_u8", "needle"); - api_param(arena, call, "Character_Predicate*", "predicate"); - api_param(arena, call, "Scan_Direction", "direction"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_core_profile_list"), string_u8_litexpr("Profile_Global_List*"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_custom_layer_boundary_docs"), string_u8_litexpr("Doc_Cluster*"), string_u8_litexpr("")); - api_param(arena, call, "Application_Links*", "app"); - api_param(arena, call, "Arena*", "arena"); - } - return(result); -} diff --git a/code/custom/generated/custom_api_master_list.h b/code/custom/generated/custom_api_master_list.h deleted file mode 100644 index f05f6f73..00000000 --- a/code/custom/generated/custom_api_master_list.h +++ /dev/null @@ -1,181 +0,0 @@ -/* Generated by "code/4ed_api_parser_main.exe 4ed_api_implementation.cpp" */ - -api(custom) function b32 global_set_setting(Application_Links* app, Global_Setting_ID setting, i64 value); -api(custom) function Rect_f32 global_get_screen_rectangle(Application_Links* app); -api(custom) function Thread_Context* get_thread_context(Application_Links* app); -api(custom) function Child_Process_ID create_child_process(Application_Links* app, String_Const_u8 path, String_Const_u8 command); -api(custom) function b32 child_process_set_target_buffer(Application_Links* app, Child_Process_ID child_process_id, Buffer_ID buffer_id, Child_Process_Set_Target_Flags flags); -api(custom) function Child_Process_ID buffer_get_attached_child_process(Application_Links* app, Buffer_ID buffer_id); -api(custom) function Buffer_ID child_process_get_attached_buffer(Application_Links* app, Child_Process_ID child_process_id); -api(custom) function Process_State child_process_get_state(Application_Links* app, Child_Process_ID child_process_id); -api(custom) function b32 enqueue_virtual_event(Application_Links* app, Input_Event* event); -api(custom) function i32 get_buffer_count(Application_Links* app); -api(custom) function Buffer_ID get_buffer_next(Application_Links* app, Buffer_ID buffer_id, Access_Flag access); -api(custom) function Buffer_ID get_buffer_by_name(Application_Links* app, String_Const_u8 name, Access_Flag access); -api(custom) function Buffer_ID get_buffer_by_file_name(Application_Links* app, String_Const_u8 file_name, Access_Flag access); -api(custom) function b32 buffer_read_range(Application_Links* app, Buffer_ID buffer_id, Range_i64 range, u8* out); -api(custom) function b32 buffer_replace_range(Application_Links* app, Buffer_ID buffer_id, Range_i64 range, String_Const_u8 string); -api(custom) function b32 buffer_batch_edit(Application_Links* app, Buffer_ID buffer_id, Batch_Edit* batch); -api(custom) function String_Match buffer_seek_string(Application_Links* app, Buffer_ID buffer, String_Const_u8 needle, Scan_Direction direction, i64 start_pos); -api(custom) function String_Match buffer_seek_character_class(Application_Links* app, Buffer_ID buffer, Character_Predicate* predicate, Scan_Direction direction, i64 start_pos); -api(custom) function f32 buffer_line_y_difference(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 line_a, i64 line_b); -api(custom) function Line_Shift_Vertical buffer_line_shift_y(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 line, f32 y_shift); -api(custom) function i64 buffer_pos_at_relative_xy(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, Vec2_f32 relative_xy); -api(custom) function Rect_f32 buffer_relative_box_of_pos(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos); -api(custom) function Rect_f32 buffer_padded_box_of_pos(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos); -api(custom) function i64 buffer_relative_character_from_pos(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 pos); -api(custom) function i64 buffer_pos_from_relative_character(Application_Links* app, Buffer_ID buffer_id, f32 width, Face_ID face_id, i64 base_line, i64 relative_character); -api(custom) function f32 view_line_y_difference(Application_Links* app, View_ID view_id, i64 line_a, i64 line_b); -api(custom) function Line_Shift_Vertical view_line_shift_y(Application_Links* app, View_ID view_id, i64 line, f32 y_shift); -api(custom) function i64 view_pos_at_relative_xy(Application_Links* app, View_ID view_id, i64 base_line, Vec2_f32 relative_xy); -api(custom) function Rect_f32 view_relative_box_of_pos(Application_Links* app, View_ID view_id, i64 base_line, i64 pos); -api(custom) function Rect_f32 view_padded_box_of_pos(Application_Links* app, View_ID view_id, i64 base_line, i64 pos); -api(custom) function i64 view_relative_character_from_pos(Application_Links* app, View_ID view_id, i64 base_line, i64 pos); -api(custom) function i64 view_pos_from_relative_character(Application_Links* app, View_ID view_id, i64 base_line, i64 character); -api(custom) function b32 buffer_exists(Application_Links* app, Buffer_ID buffer_id); -api(custom) function Access_Flag buffer_get_access_flags(Application_Links* app, Buffer_ID buffer_id); -api(custom) function i64 buffer_get_size(Application_Links* app, Buffer_ID buffer_id); -api(custom) function i64 buffer_get_line_count(Application_Links* app, Buffer_ID buffer_id); -api(custom) function String_Const_u8 push_buffer_base_name(Application_Links* app, Arena* arena, Buffer_ID buffer_id); -api(custom) function String_Const_u8 push_buffer_unique_name(Application_Links* app, Arena* out, Buffer_ID buffer_id); -api(custom) function String_Const_u8 push_buffer_file_name(Application_Links* app, Arena* arena, Buffer_ID buffer_id); -api(custom) function Dirty_State buffer_get_dirty_state(Application_Links* app, Buffer_ID buffer_id); -api(custom) function b32 buffer_set_dirty_state(Application_Links* app, Buffer_ID buffer_id, Dirty_State dirty_state); -api(custom) function b32 buffer_set_layout(Application_Links* app, Buffer_ID buffer_id, Layout_Function* layout_func); -api(custom) function b32 buffer_clear_layout_cache(Application_Links* app, Buffer_ID buffer_id); -api(custom) function Layout_Function* buffer_get_layout(Application_Links* app, Buffer_ID buffer_id); -api(custom) function b32 buffer_get_setting(Application_Links* app, Buffer_ID buffer_id, Buffer_Setting_ID setting, i64* value_out); -api(custom) function b32 buffer_set_setting(Application_Links* app, Buffer_ID buffer_id, Buffer_Setting_ID setting, i64 value); -api(custom) function Managed_Scope buffer_get_managed_scope(Application_Links* app, Buffer_ID buffer_id); -api(custom) function b32 buffer_send_end_signal(Application_Links* app, Buffer_ID buffer_id); -api(custom) function Buffer_ID create_buffer(Application_Links* app, String_Const_u8 file_name, Buffer_Create_Flag flags); -api(custom) function b32 buffer_save(Application_Links* app, Buffer_ID buffer_id, String_Const_u8 file_name, Buffer_Save_Flag flags); -api(custom) function Buffer_Kill_Result buffer_kill(Application_Links* app, Buffer_ID buffer_id, Buffer_Kill_Flag flags); -api(custom) function Buffer_Reopen_Result buffer_reopen(Application_Links* app, Buffer_ID buffer_id, Buffer_Reopen_Flag flags); -api(custom) function File_Attributes buffer_get_file_attributes(Application_Links* app, Buffer_ID buffer_id); -api(custom) function View_ID get_view_next(Application_Links* app, View_ID view_id, Access_Flag access); -api(custom) function View_ID get_view_prev(Application_Links* app, View_ID view_id, Access_Flag access); -api(custom) function View_ID get_this_ctx_view(Application_Links* app, Access_Flag access); -api(custom) function View_ID get_active_view(Application_Links* app, Access_Flag access); -api(custom) function b32 view_exists(Application_Links* app, View_ID view_id); -api(custom) function Buffer_ID view_get_buffer(Application_Links* app, View_ID view_id, Access_Flag access); -api(custom) function i64 view_get_cursor_pos(Application_Links* app, View_ID view_id); -api(custom) function i64 view_get_mark_pos(Application_Links* app, View_ID view_id); -api(custom) function f32 view_get_preferred_x(Application_Links* app, View_ID view_id); -api(custom) function b32 view_set_preferred_x(Application_Links* app, View_ID view_id, f32 x); -api(custom) function Rect_f32 view_get_screen_rect(Application_Links* app, View_ID view_id); -api(custom) function Panel_ID view_get_panel(Application_Links* app, View_ID view_id); -api(custom) function View_ID panel_get_view(Application_Links* app, Panel_ID panel_id, Access_Flag access); -api(custom) function b32 panel_is_split(Application_Links* app, Panel_ID panel_id); -api(custom) function b32 panel_is_leaf(Application_Links* app, Panel_ID panel_id); -api(custom) function b32 panel_split(Application_Links* app, Panel_ID panel_id, Dimension split_dim); -api(custom) function b32 panel_set_split(Application_Links* app, Panel_ID panel_id, Panel_Split_Kind kind, f32 t); -api(custom) function b32 panel_swap_children(Application_Links* app, Panel_ID panel_id); -api(custom) function Panel_ID panel_get_root(Application_Links* app); -api(custom) function Panel_ID panel_get_parent(Application_Links* app, Panel_ID panel_id); -api(custom) function Panel_ID panel_get_child(Application_Links* app, Panel_ID panel_id, Side which_child); -api(custom) function b32 view_close(Application_Links* app, View_ID view_id); -api(custom) function Rect_f32 view_get_buffer_region(Application_Links* app, View_ID view_id); -api(custom) function Buffer_Scroll view_get_buffer_scroll(Application_Links* app, View_ID view_id); -api(custom) function b32 view_set_active(Application_Links* app, View_ID view_id); -api(custom) function b32 view_enqueue_command_function(Application_Links* app, View_ID view_id, Custom_Command_Function* custom_func); -api(custom) function b32 view_get_setting(Application_Links* app, View_ID view_id, View_Setting_ID setting, i64* value_out); -api(custom) function b32 view_set_setting(Application_Links* app, View_ID view_id, View_Setting_ID setting, i64 value); -api(custom) function Managed_Scope view_get_managed_scope(Application_Links* app, View_ID view_id); -api(custom) function Buffer_Cursor buffer_compute_cursor(Application_Links* app, Buffer_ID buffer, Buffer_Seek seek); -api(custom) function Buffer_Cursor view_compute_cursor(Application_Links* app, View_ID view_id, Buffer_Seek seek); -api(custom) function b32 view_set_camera_bounds(Application_Links* app, View_ID view_id, Vec2_f32 margin, Vec2_f32 push_in_multiplier); -api(custom) function b32 view_get_camera_bounds(Application_Links* app, View_ID view_id, Vec2_f32* margin, Vec2_f32* push_in_multiplier); -api(custom) function b32 view_set_cursor(Application_Links* app, View_ID view_id, Buffer_Seek seek); -api(custom) function b32 view_set_buffer_scroll(Application_Links* app, View_ID view_id, Buffer_Scroll scroll, Set_Buffer_Scroll_Rule rule); -api(custom) function b32 view_set_mark(Application_Links* app, View_ID view_id, Buffer_Seek seek); -api(custom) function b32 view_quit_ui(Application_Links* app, View_ID view_id); -api(custom) function b32 view_set_buffer(Application_Links* app, View_ID view_id, Buffer_ID buffer_id, Set_Buffer_Flag flags); -api(custom) function b32 view_push_context(Application_Links* app, View_ID view_id, View_Context* ctx); -api(custom) function b32 view_pop_context(Application_Links* app, View_ID view_id); -api(custom) function b32 view_alter_context(Application_Links* app, View_ID view_id, View_Context* ctx); -api(custom) function View_Context view_current_context(Application_Links* app, View_ID view_id); -api(custom) function String_Const_u8 view_current_context_hook_memory(Application_Links* app, View_ID view_id, Hook_ID hook_id); -api(custom) function Managed_Scope create_user_managed_scope(Application_Links* app); -api(custom) function b32 destroy_user_managed_scope(Application_Links* app, Managed_Scope scope); -api(custom) function Managed_Scope get_global_managed_scope(Application_Links* app); -api(custom) function Managed_Scope get_managed_scope_with_multiple_dependencies(Application_Links* app, Managed_Scope* scopes, i32 count); -api(custom) function b32 managed_scope_clear_contents(Application_Links* app, Managed_Scope scope); -api(custom) function b32 managed_scope_clear_self_all_dependent_scopes(Application_Links* app, Managed_Scope scope); -api(custom) function Base_Allocator* managed_scope_allocator(Application_Links* app, Managed_Scope scope); -api(custom) function u64 managed_id_group_highest_id(Application_Links* app, String_Const_u8 group); -api(custom) function Managed_ID managed_id_declare(Application_Links* app, String_Const_u8 group, String_Const_u8 name); -api(custom) function Managed_ID managed_id_get(Application_Links* app, String_Const_u8 group, String_Const_u8 name); -api(custom) function void* managed_scope_get_attachment(Application_Links* app, Managed_Scope scope, Managed_ID id, u64 size); -api(custom) function b32 managed_scope_attachment_erase(Application_Links* app, Managed_Scope scope, Managed_ID id); -api(custom) function Managed_Object alloc_managed_memory_in_scope(Application_Links* app, Managed_Scope scope, i32 item_size, i32 count); -api(custom) function Managed_Object alloc_buffer_markers_on_buffer(Application_Links* app, Buffer_ID buffer_id, i32 count, Managed_Scope* optional_extra_scope); -api(custom) function u32 managed_object_get_item_size(Application_Links* app, Managed_Object object); -api(custom) function u32 managed_object_get_item_count(Application_Links* app, Managed_Object object); -api(custom) function void* managed_object_get_pointer(Application_Links* app, Managed_Object object); -api(custom) function Managed_Object_Type managed_object_get_type(Application_Links* app, Managed_Object object); -api(custom) function Managed_Scope managed_object_get_containing_scope(Application_Links* app, Managed_Object object); -api(custom) function b32 managed_object_free(Application_Links* app, Managed_Object object); -api(custom) function b32 managed_object_store_data(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem); -api(custom) function b32 managed_object_load_data(Application_Links* app, Managed_Object object, u32 first_index, u32 count, void* mem_out); -api(custom) function User_Input get_next_input_raw(Application_Links* app); -api(custom) function i64 get_current_input_sequence_number(Application_Links* app); -api(custom) function User_Input get_current_input(Application_Links* app); -api(custom) function void set_current_input(Application_Links* app, User_Input* input); -api(custom) function void leave_current_input_unhandled(Application_Links* app); -api(custom) function void set_custom_hook(Application_Links* app, Hook_ID hook_id, Void_Func* func_ptr); -api(custom) function Void_Func* get_custom_hook(Application_Links* app, Hook_ID hook_id); -api(custom) function b32 set_custom_hook_memory_size(Application_Links* app, Hook_ID hook_id, u64 size); -api(custom) function Mouse_State get_mouse_state(Application_Links* app); -api(custom) function b32 get_active_query_bars(Application_Links* app, View_ID view_id, i32 max_result_count, Query_Bar_Ptr_Array* array_out); -api(custom) function b32 start_query_bar(Application_Links* app, Query_Bar* bar, u32 flags); -api(custom) function void end_query_bar(Application_Links* app, Query_Bar* bar, u32 flags); -api(custom) function void clear_all_query_bars(Application_Links* app, View_ID view_id); -api(custom) function void print_message(Application_Links* app, String_Const_u8 message); -api(custom) function b32 log_string(Application_Links* app, String_Const_u8 str); -api(custom) function Face_ID get_largest_face_id(Application_Links* app); -api(custom) function b32 set_global_face(Application_Links* app, Face_ID id); -api(custom) function History_Record_Index buffer_history_get_max_record_index(Application_Links* app, Buffer_ID buffer_id); -api(custom) function Record_Info buffer_history_get_record_info(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index); -api(custom) function Record_Info buffer_history_get_group_sub_record(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index, i32 sub_index); -api(custom) function History_Record_Index buffer_history_get_current_state_index(Application_Links* app, Buffer_ID buffer_id); -api(custom) function b32 buffer_history_set_current_state_index(Application_Links* app, Buffer_ID buffer_id, History_Record_Index index); -api(custom) function b32 buffer_history_merge_record_range(Application_Links* app, Buffer_ID buffer_id, History_Record_Index first_index, History_Record_Index last_index, Record_Merge_Flag flags); -api(custom) function b32 buffer_history_clear_after_current_state(Application_Links* app, Buffer_ID buffer_id); -api(custom) function void global_history_edit_group_begin(Application_Links* app); -api(custom) function void global_history_edit_group_end(Application_Links* app); -api(custom) function b32 buffer_set_face(Application_Links* app, Buffer_ID buffer_id, Face_ID id); -api(custom) function Face_Description get_face_description(Application_Links* app, Face_ID face_id); -api(custom) function Face_Metrics get_face_metrics(Application_Links* app, Face_ID face_id); -api(custom) function Face_Advance_Map get_face_advance_map(Application_Links* app, Face_ID face_id); -api(custom) function Face_ID get_face_id(Application_Links* app, Buffer_ID buffer_id); -api(custom) function Face_ID try_create_new_face(Application_Links* app, Face_Description* description); -api(custom) function b32 try_modify_face(Application_Links* app, Face_ID id, Face_Description* description); -api(custom) function b32 try_release_face(Application_Links* app, Face_ID id, Face_ID replacement_id); -api(custom) function String_Const_u8 push_hot_directory(Application_Links* app, Arena* arena); -api(custom) function void set_hot_directory(Application_Links* app, String_Const_u8 string); -api(custom) function void send_exit_signal(Application_Links* app); -api(custom) function void hard_exit(Application_Links* app); -api(custom) function void set_window_title(Application_Links* app, String_Const_u8 title); -api(custom) function void acquire_global_frame_mutex(Application_Links* app); -api(custom) function void release_global_frame_mutex(Application_Links* app); -api(custom) function Vec2_f32 draw_string_oriented(Application_Links* app, Face_ID font_id, ARGB_Color color, String_Const_u8 str, Vec2_f32 point, u32 flags, Vec2_f32 delta); -api(custom) function f32 get_string_advance(Application_Links* app, Face_ID font_id, String_Const_u8 str); -api(custom) function void draw_rectangle(Application_Links* app, Rect_f32 rect, f32 roundness, ARGB_Color color); -api(custom) function void draw_rectangle_outline(Application_Links* app, Rect_f32 rect, f32 roundness, f32 thickness, ARGB_Color color); -api(custom) function Rect_f32 draw_set_clip(Application_Links* app, Rect_f32 new_clip); -api(custom) function Text_Layout_ID text_layout_create(Application_Links* app, Buffer_ID buffer_id, Rect_f32 rect, Buffer_Point buffer_point); -api(custom) function Rect_f32 text_layout_region(Application_Links* app, Text_Layout_ID text_layout_id); -api(custom) function Buffer_ID text_layout_get_buffer(Application_Links* app, Text_Layout_ID text_layout_id); -api(custom) function Range_i64 text_layout_get_visible_range(Application_Links* app, Text_Layout_ID text_layout_id); -api(custom) function Range_f32 text_layout_line_on_screen(Application_Links* app, Text_Layout_ID layout_id, i64 line_number); -api(custom) function Rect_f32 text_layout_character_on_screen(Application_Links* app, Text_Layout_ID layout_id, i64 pos); -api(custom) function void paint_text_color(Application_Links* app, Text_Layout_ID layout_id, Range_i64 range, ARGB_Color color); -api(custom) function void paint_text_color_blend(Application_Links* app, Text_Layout_ID layout_id, Range_i64 range, ARGB_Color color, f32 blend); -api(custom) function b32 text_layout_free(Application_Links* app, Text_Layout_ID text_layout_id); -api(custom) function void draw_text_layout(Application_Links* app, Text_Layout_ID layout_id, ARGB_Color special_color, ARGB_Color ghost_color); -api(custom) function void open_color_picker(Application_Links* app, Color_Picker* picker); -api(custom) function void animate_in_n_milliseconds(Application_Links* app, u32 n); -api(custom) function String_Match_List buffer_find_all_matches(Application_Links* app, Arena* arena, Buffer_ID buffer, i32 string_id, Range_i64 range, String_Const_u8 needle, Character_Predicate* predicate, Scan_Direction direction); -api(custom) function Profile_Global_List* get_core_profile_list(Application_Links* app); -api(custom) function Doc_Cluster* get_custom_layer_boundary_docs(Application_Links* app, Arena* arena); diff --git a/code/custom/generated/lexer_cpp.cpp b/code/custom/generated/lexer_cpp.cpp deleted file mode 100644 index e192523c..00000000 --- a/code/custom/generated/lexer_cpp.cpp +++ /dev/null @@ -1,5186 +0,0 @@ -#if !defined(FCODER_LEX_GEN_HAND_WRITTEN) -#define FCODER_LEX_GEN_HAND_WRITTEN - -internal u64 -lexeme_hash(u64 seed, u8 *ptr, u64 size){ - u64 result = 0; - for (u64 i = 0; i < size; i += 1, ptr += 1){ - result ^= ((*ptr) ^ result*59) + seed; - } - return(result); -} - -internal Lexeme_Table_Lookup -lexeme_table_lookup(u64 *hash_array, String_Const_u8 *key_array, - Lexeme_Table_Value *value_array, i32 slot_count, u64 seed, - u8 *ptr, u64 size){ - Lexeme_Table_Lookup result = {}; - u64 hash = lexeme_hash(seed, ptr, size); - u64 comparison_hash = hash | 1; - i32 first_index = (hash % slot_count); - i32 index = first_index; - for (;;){ - if (hash_array[index] == comparison_hash){ - if (string_match(SCu8(ptr, size), key_array[index])){ - result.found_match = true; - result.base_kind = value_array[index].base_kind; - result.sub_kind = value_array[index].sub_kind; - break; - } - } - else if (hash_array[index] == 0){ - break; - } - index += 1; - if (index == slot_count){ - index = 0; - } - if (index == first_index){ - break; - } - } - return(result); -} - -#endif -u64 cpp_main_keys_hash_array[123] = { -0x501bbb043c6f3b17,0x0000000000000000,0xa248f50cbfb49827,0x0000000000000000, -0x501bbb043cf5e4bf,0x498dac81beee1321,0x36cd44ff6f94db4f,0x77bd3e8b9640e897, -0x0000000000000000,0x0000000000000000,0xc49883fc8b861c95,0x0000000000000000, -0x7220308743ae51fd,0x36c0eb322792e429,0x0000000000000000,0xdf551300f0160f35, -0x0000000000000000,0x70c4aa9d71e63b07,0x0000000000000000,0x0000000000000000, -0x0000000000000000,0x0000000000000000,0x0000000000000000,0x36cd288337d08f01, -0xf20f041170356707,0xdf55131f9e117a97,0x0000000000000000,0x0000000000000000, -0x2ab3e793ba55b815,0x0000000000000000,0xdf551301097f4997,0x0000000000000000, -0x0000000000000000,0xdf5513f3d9979557,0x0000000000000000,0x498dac827bfe44ef, -0x498dac827ca50977,0x501bbb043c110e47,0x895ba0839cb39307,0x2ab3e793ba547169, -0x0000000000000000,0x501bbb043fb9e499,0x501bbb043f81c977,0x36c0e42233c5ade9, -0xdf5513d79b169045,0x0000000000000000,0x501bbb043f81e277,0x0000000000000000, -0x0000000000000000,0xc4988548a5c90009,0x0000000000000000,0xdf5513017bccd829, -0x0000000000000000,0x0000000000000000,0x0000000000000000,0x36d3bd5686588e39, -0x36c1a49793802309,0x9c86913d58194ba5,0xdf5513f3f8383e91,0x0000000000000000, -0x0000000000000000,0x0000000000000000,0x501bbb043fa5ed73,0x0000000000000000, -0x498dac827bfde9c1,0x501bbb043fba6217,0x498dac827bd7854b,0x498dac81bd1a25dd, -0x2ab3e793ba544c85,0x0000000000000000,0x0000000000000000,0x0000000000000000, -0x36cd4f68e6552e29,0xdf5513f3cc62d54b,0x0000000000000000,0x0000000000000000, -0xc4984de253a27c59,0xc498875291e96007,0xdf5513f3e0f3b6cd,0x36c19e446cabd8cf, -0x36c0eb4337e5bc37,0x0000000000000000,0x0000000000000000,0x0000000000000000, -0x0000000000000000,0x0000000000000000,0x0000000000000000,0x0000000000000000, -0xdf5513f3e11b98cf,0xc4984de8ce4cb0d1,0x0000000000000000,0x0000000000000000, -0x0000000000000000,0x0000000000000000,0x36d3a6ce213afd2f,0x498dac81abc8f409, -0x0000000000000000,0x501bbb043c6d15d1,0xc4984de8ce4ca835,0x0000000000000000, -0xdf551301094a511d,0x0000000000000000,0xe22f9de37f0b1b07,0x0000000000000000, -0x0000000000000000,0x9c86913d58194adf,0x0000000000000000,0x498dac827b04056f, -0x0000000000000000,0xc49876256c9ea873,0x0000000000000000,0x498dac81ab954ab7, -0xdf5513d75396171f,0xdf551303c54a3545,0x0000000000000000,0x2ab3e793ba54cdf5, -0xdf5513f3d9d8f6c9,0x72b2afd011ee3017,0x501bbb043c749f77,0x0000000000000000, -0x498dac81a7218d75,0x0000000000000000,0x2ab3e793ba54777f, -}; -u8 cpp_main_keys_key_array_0[] = {0x74,0x72,0x75,0x65,}; -u8 cpp_main_keys_key_array_2[] = {0x74,0x68,0x72,0x65,0x61,0x64,0x5f,0x6c,0x6f,0x63,0x61,0x6c,}; -u8 cpp_main_keys_key_array_4[] = {0x76,0x6f,0x69,0x64,}; -u8 cpp_main_keys_key_array_5[] = {0x62,0x72,0x65,0x61,0x6b,}; -u8 cpp_main_keys_key_array_6[] = {0x63,0x6f,0x6e,0x74,0x69,0x6e,0x75,0x65,}; -u8 cpp_main_keys_key_array_7[] = {0x70,0x72,0x6f,0x74,0x65,0x63,0x74,0x65,0x64,}; -u8 cpp_main_keys_key_array_10[] = {0x74,0x79,0x70,0x65,0x64,0x65,0x66,}; -u8 cpp_main_keys_key_array_12[] = {0x73,0x74,0x61,0x74,0x69,0x63,0x5f,0x61,0x73,0x73,0x65,0x72,0x74,}; -u8 cpp_main_keys_key_array_13[] = {0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,}; -u8 cpp_main_keys_key_array_15[] = {0x64,0x6f,0x75,0x62,0x6c,0x65,}; -u8 cpp_main_keys_key_array_17[] = {0x73,0x74,0x61,0x74,0x69,0x63,0x5f,0x63,0x61,0x73,0x74,}; -u8 cpp_main_keys_key_array_23[] = {0x72,0x65,0x67,0x69,0x73,0x74,0x65,0x72,}; -u8 cpp_main_keys_key_array_24[] = {0x72,0x65,0x69,0x6e,0x74,0x65,0x72,0x70,0x72,0x65,0x74,0x5f,0x63,0x61,0x73,0x74,}; -u8 cpp_main_keys_key_array_25[] = {0x72,0x65,0x74,0x75,0x72,0x6e,}; -u8 cpp_main_keys_key_array_28[] = {0x74,0x72,0x79,}; -u8 cpp_main_keys_key_array_30[] = {0x65,0x78,0x74,0x65,0x72,0x6e,}; -u8 cpp_main_keys_key_array_33[] = {0x73,0x74,0x72,0x75,0x63,0x74,}; -u8 cpp_main_keys_key_array_35[] = {0x63,0x6f,0x6e,0x73,0x74,}; -u8 cpp_main_keys_key_array_36[] = {0x66,0x61,0x6c,0x73,0x65,}; -u8 cpp_main_keys_key_array_37[] = {0x6c,0x6f,0x6e,0x67,}; -u8 cpp_main_keys_key_array_38[] = {0x63,0x6f,0x6e,0x73,0x74,0x5f,0x63,0x61,0x73,0x74,}; -u8 cpp_main_keys_key_array_39[] = {0x66,0x6f,0x72,}; -u8 cpp_main_keys_key_array_41[] = {0x63,0x68,0x61,0x72,}; -u8 cpp_main_keys_key_array_42[] = {0x65,0x6c,0x73,0x65,}; -u8 cpp_main_keys_key_array_43[] = {0x6f,0x70,0x65,0x72,0x61,0x74,0x6f,0x72,}; -u8 cpp_main_keys_key_array_44[] = {0x69,0x6e,0x6c,0x69,0x6e,0x65,}; -u8 cpp_main_keys_key_array_46[] = {0x65,0x6e,0x75,0x6d,}; -u8 cpp_main_keys_key_array_49[] = {0x70,0x72,0x69,0x76,0x61,0x74,0x65,}; -u8 cpp_main_keys_key_array_51[] = {0x64,0x65,0x6c,0x65,0x74,0x65,}; -u8 cpp_main_keys_key_array_55[] = {0x64,0x65,0x63,0x6c,0x74,0x79,0x70,0x65,}; -u8 cpp_main_keys_key_array_56[] = {0x76,0x6f,0x6c,0x61,0x74,0x69,0x6c,0x65,}; -u8 cpp_main_keys_key_array_57[] = {0x69,0x66,}; -u8 cpp_main_keys_key_array_58[] = {0x70,0x75,0x62,0x6c,0x69,0x63,}; -u8 cpp_main_keys_key_array_62[] = {0x67,0x6f,0x74,0x6f,}; -u8 cpp_main_keys_key_array_64[] = {0x63,0x6c,0x61,0x73,0x73,}; -u8 cpp_main_keys_key_array_65[] = {0x63,0x61,0x73,0x65,}; -u8 cpp_main_keys_key_array_66[] = {0x63,0x61,0x74,0x63,0x68,}; -u8 cpp_main_keys_key_array_67[] = {0x73,0x68,0x6f,0x72,0x74,}; -u8 cpp_main_keys_key_array_68[] = {0x6e,0x65,0x77,}; -u8 cpp_main_keys_key_array_72[] = {0x6e,0x6f,0x65,0x78,0x63,0x65,0x70,0x74,}; -u8 cpp_main_keys_key_array_73[] = {0x73,0x77,0x69,0x74,0x63,0x68,}; -u8 cpp_main_keys_key_array_76[] = {0x64,0x65,0x66,0x61,0x75,0x6c,0x74,}; -u8 cpp_main_keys_key_array_77[] = {0x76,0x69,0x72,0x74,0x75,0x61,0x6c,}; -u8 cpp_main_keys_key_array_78[] = {0x73,0x69,0x7a,0x65,0x6f,0x66,}; -u8 cpp_main_keys_key_array_79[] = {0x75,0x6e,0x73,0x69,0x67,0x6e,0x65,0x64,}; -u8 cpp_main_keys_key_array_80[] = {0x74,0x79,0x70,0x65,0x6e,0x61,0x6d,0x65,}; -u8 cpp_main_keys_key_array_88[] = {0x73,0x69,0x67,0x6e,0x65,0x64,}; -u8 cpp_main_keys_key_array_89[] = {0x61,0x6c,0x69,0x67,0x6e,0x61,0x73,}; -u8 cpp_main_keys_key_array_94[] = {0x65,0x78,0x70,0x6c,0x69,0x63,0x69,0x74,}; -u8 cpp_main_keys_key_array_95[] = {0x77,0x68,0x69,0x6c,0x65,}; -u8 cpp_main_keys_key_array_97[] = {0x74,0x68,0x69,0x73,}; -u8 cpp_main_keys_key_array_98[] = {0x61,0x6c,0x69,0x67,0x6e,0x6f,0x66,}; -u8 cpp_main_keys_key_array_100[] = {0x65,0x78,0x70,0x6f,0x72,0x74,}; -u8 cpp_main_keys_key_array_102[] = {0x64,0x79,0x6e,0x61,0x6d,0x69,0x63,0x5f,0x63,0x61,0x73,0x74,}; -u8 cpp_main_keys_key_array_105[] = {0x64,0x6f,}; -u8 cpp_main_keys_key_array_107[] = {0x66,0x6c,0x6f,0x61,0x74,}; -u8 cpp_main_keys_key_array_109[] = {0x6e,0x75,0x6c,0x6c,0x70,0x74,0x72,}; -u8 cpp_main_keys_key_array_111[] = {0x75,0x73,0x69,0x6e,0x67,}; -u8 cpp_main_keys_key_array_112[] = {0x74,0x79,0x70,0x65,0x69,0x64,}; -u8 cpp_main_keys_key_array_113[] = {0x66,0x72,0x69,0x65,0x6e,0x64,}; -u8 cpp_main_keys_key_array_115[] = {0x69,0x6e,0x74,}; -u8 cpp_main_keys_key_array_116[] = {0x73,0x74,0x61,0x74,0x69,0x63,}; -u8 cpp_main_keys_key_array_117[] = {0x6e,0x61,0x6d,0x65,0x73,0x70,0x61,0x63,0x65,}; -u8 cpp_main_keys_key_array_118[] = {0x62,0x6f,0x6f,0x6c,}; -u8 cpp_main_keys_key_array_120[] = {0x75,0x6e,0x69,0x6f,0x6e,}; -u8 cpp_main_keys_key_array_122[] = {0x61,0x73,0x6d,}; -String_Const_u8 cpp_main_keys_key_array[123] = { -{cpp_main_keys_key_array_0, 4}, -{0, 0}, -{cpp_main_keys_key_array_2, 12}, -{0, 0}, -{cpp_main_keys_key_array_4, 4}, -{cpp_main_keys_key_array_5, 5}, -{cpp_main_keys_key_array_6, 8}, -{cpp_main_keys_key_array_7, 9}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_10, 7}, -{0, 0}, -{cpp_main_keys_key_array_12, 13}, -{cpp_main_keys_key_array_13, 8}, -{0, 0}, -{cpp_main_keys_key_array_15, 6}, -{0, 0}, -{cpp_main_keys_key_array_17, 11}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_23, 8}, -{cpp_main_keys_key_array_24, 16}, -{cpp_main_keys_key_array_25, 6}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_28, 3}, -{0, 0}, -{cpp_main_keys_key_array_30, 6}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_33, 6}, -{0, 0}, -{cpp_main_keys_key_array_35, 5}, -{cpp_main_keys_key_array_36, 5}, -{cpp_main_keys_key_array_37, 4}, -{cpp_main_keys_key_array_38, 10}, -{cpp_main_keys_key_array_39, 3}, -{0, 0}, -{cpp_main_keys_key_array_41, 4}, -{cpp_main_keys_key_array_42, 4}, -{cpp_main_keys_key_array_43, 8}, -{cpp_main_keys_key_array_44, 6}, -{0, 0}, -{cpp_main_keys_key_array_46, 4}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_49, 7}, -{0, 0}, -{cpp_main_keys_key_array_51, 6}, -{0, 0}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_55, 8}, -{cpp_main_keys_key_array_56, 8}, -{cpp_main_keys_key_array_57, 2}, -{cpp_main_keys_key_array_58, 6}, -{0, 0}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_62, 4}, -{0, 0}, -{cpp_main_keys_key_array_64, 5}, -{cpp_main_keys_key_array_65, 4}, -{cpp_main_keys_key_array_66, 5}, -{cpp_main_keys_key_array_67, 5}, -{cpp_main_keys_key_array_68, 3}, -{0, 0}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_72, 8}, -{cpp_main_keys_key_array_73, 6}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_76, 7}, -{cpp_main_keys_key_array_77, 7}, -{cpp_main_keys_key_array_78, 6}, -{cpp_main_keys_key_array_79, 8}, -{cpp_main_keys_key_array_80, 8}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_88, 6}, -{cpp_main_keys_key_array_89, 7}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_94, 8}, -{cpp_main_keys_key_array_95, 5}, -{0, 0}, -{cpp_main_keys_key_array_97, 4}, -{cpp_main_keys_key_array_98, 7}, -{0, 0}, -{cpp_main_keys_key_array_100, 6}, -{0, 0}, -{cpp_main_keys_key_array_102, 12}, -{0, 0}, -{0, 0}, -{cpp_main_keys_key_array_105, 2}, -{0, 0}, -{cpp_main_keys_key_array_107, 5}, -{0, 0}, -{cpp_main_keys_key_array_109, 7}, -{0, 0}, -{cpp_main_keys_key_array_111, 5}, -{cpp_main_keys_key_array_112, 6}, -{cpp_main_keys_key_array_113, 6}, -{0, 0}, -{cpp_main_keys_key_array_115, 3}, -{cpp_main_keys_key_array_116, 6}, -{cpp_main_keys_key_array_117, 9}, -{cpp_main_keys_key_array_118, 4}, -{0, 0}, -{cpp_main_keys_key_array_120, 5}, -{0, 0}, -{cpp_main_keys_key_array_122, 3}, -}; -Lexeme_Table_Value cpp_main_keys_value_array[123] = { -{8, TokenCppKind_LiteralTrue}, -{0, 0}, -{4, TokenCppKind_ThreadLocal}, -{0, 0}, -{4, TokenCppKind_Void}, -{4, TokenCppKind_Break}, -{4, TokenCppKind_Continue}, -{4, TokenCppKind_Protected}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Typedef}, -{0, 0}, -{4, TokenCppKind_StaticAssert}, -{4, TokenCppKind_Template}, -{0, 0}, -{4, TokenCppKind_Double}, -{0, 0}, -{4, TokenCppKind_StaticCast}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Register}, -{4, TokenCppKind_ReinterpretCast}, -{4, TokenCppKind_Return}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Try}, -{0, 0}, -{4, TokenCppKind_Extern}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Struct}, -{0, 0}, -{4, TokenCppKind_Const}, -{8, TokenCppKind_LiteralFalse}, -{4, TokenCppKind_Long}, -{4, TokenCppKind_ConstCast}, -{4, TokenCppKind_For}, -{0, 0}, -{4, TokenCppKind_Char}, -{4, TokenCppKind_Else}, -{4, TokenCppKind_Operator}, -{4, TokenCppKind_Inline}, -{0, 0}, -{4, TokenCppKind_Enum}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Private}, -{0, 0}, -{4, TokenCppKind_Delete}, -{0, 0}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_DeclType}, -{4, TokenCppKind_Volatile}, -{4, TokenCppKind_If}, -{4, TokenCppKind_Public}, -{0, 0}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Goto}, -{0, 0}, -{4, TokenCppKind_Class}, -{4, TokenCppKind_Case}, -{4, TokenCppKind_Catch}, -{4, TokenCppKind_Short}, -{4, TokenCppKind_New}, -{0, 0}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_NoExcept}, -{4, TokenCppKind_Switch}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Default}, -{4, TokenCppKind_Virtual}, -{4, TokenCppKind_SizeOf}, -{4, TokenCppKind_Unsigned}, -{4, TokenCppKind_Typename}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Signed}, -{4, TokenCppKind_AlignAs}, -{0, 0}, -{0, 0}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Explicit}, -{4, TokenCppKind_While}, -{0, 0}, -{4, TokenCppKind_This}, -{4, TokenCppKind_AlignOf}, -{0, 0}, -{4, TokenCppKind_Export}, -{0, 0}, -{4, TokenCppKind_DynamicCast}, -{0, 0}, -{0, 0}, -{4, TokenCppKind_Do}, -{0, 0}, -{4, TokenCppKind_Float}, -{0, 0}, -{4, TokenCppKind_NullPtr}, -{0, 0}, -{4, TokenCppKind_Using}, -{4, TokenCppKind_TypeID}, -{4, TokenCppKind_Friend}, -{0, 0}, -{4, TokenCppKind_Int}, -{4, TokenCppKind_Static}, -{4, TokenCppKind_Namespace}, -{4, TokenCppKind_Bool}, -{0, 0}, -{4, TokenCppKind_Union}, -{0, 0}, -{4, TokenCppKind_Asm}, -}; -i32 cpp_main_keys_slot_count = 123; -u64 cpp_main_keys_seed = 0xa331fd8b94791228; -u64 cpp_pp_directives_hash_array[25] = { -0x846f4708238e46c9,0x0000000000000000,0x0000000000000000,0x822ed52c6bf3eb73, -0x69c59271375ef74d,0x88e16392bac4f0f7,0x0000000000000000,0x88e16392bb0c2d67, -0x69c59271375ef4af,0x88e16392b8bc02af,0x0000000000000000,0x822ed5d04550b46f, -0x0000000000000000,0x0000000000000000,0x846f470f1a2272d3,0x0000000000000000, -0x846f470e7853ba23,0x0000000000000000,0x88e163924a3b781d,0x88e16392b2dfcd67, -0xa4079a0fca4014af,0x0000000000000000,0x0000000000000000,0x69c59271372b26d3, -0x846f470e53b52d67, -}; -u8 cpp_pp_directives_key_array_0[] = {0x70,0x72,0x61,0x67,0x6d,0x61,}; -u8 cpp_pp_directives_key_array_3[] = {0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,}; -u8 cpp_pp_directives_key_array_4[] = {0x65,0x6c,0x73,0x65,}; -u8 cpp_pp_directives_key_array_5[] = {0x65,0x72,0x72,0x6f,0x72,}; -u8 cpp_pp_directives_key_array_7[] = {0x69,0x66,0x64,0x65,0x66,}; -u8 cpp_pp_directives_key_array_8[] = {0x65,0x6c,0x69,0x66,}; -u8 cpp_pp_directives_key_array_9[] = {0x65,0x6e,0x64,0x69,0x66,}; -u8 cpp_pp_directives_key_array_11[] = {0x76,0x65,0x72,0x73,0x69,0x6f,0x6e,}; -u8 cpp_pp_directives_key_array_14[] = {0x64,0x65,0x66,0x69,0x6e,0x65,}; -u8 cpp_pp_directives_key_array_16[] = {0x69,0x6d,0x70,0x6f,0x72,0x74,}; -u8 cpp_pp_directives_key_array_18[] = {0x75,0x73,0x69,0x6e,0x67,}; -u8 cpp_pp_directives_key_array_19[] = {0x75,0x6e,0x64,0x65,0x66,}; -u8 cpp_pp_directives_key_array_20[] = {0x69,0x66,}; -u8 cpp_pp_directives_key_array_23[] = {0x6c,0x69,0x6e,0x65,}; -u8 cpp_pp_directives_key_array_24[] = {0x69,0x66,0x6e,0x64,0x65,0x66,}; -String_Const_u8 cpp_pp_directives_key_array[25] = { -{cpp_pp_directives_key_array_0, 6}, -{0, 0}, -{0, 0}, -{cpp_pp_directives_key_array_3, 7}, -{cpp_pp_directives_key_array_4, 4}, -{cpp_pp_directives_key_array_5, 5}, -{0, 0}, -{cpp_pp_directives_key_array_7, 5}, -{cpp_pp_directives_key_array_8, 4}, -{cpp_pp_directives_key_array_9, 5}, -{0, 0}, -{cpp_pp_directives_key_array_11, 7}, -{0, 0}, -{0, 0}, -{cpp_pp_directives_key_array_14, 6}, -{0, 0}, -{cpp_pp_directives_key_array_16, 6}, -{0, 0}, -{cpp_pp_directives_key_array_18, 5}, -{cpp_pp_directives_key_array_19, 5}, -{cpp_pp_directives_key_array_20, 2}, -{0, 0}, -{0, 0}, -{cpp_pp_directives_key_array_23, 4}, -{cpp_pp_directives_key_array_24, 6}, -}; -Lexeme_Table_Value cpp_pp_directives_value_array[25] = { -{5, TokenCppKind_PPPragma}, -{0, 0}, -{0, 0}, -{5, TokenCppKind_PPInclude}, -{5, TokenCppKind_PPElse}, -{5, TokenCppKind_PPError}, -{0, 0}, -{5, TokenCppKind_PPIfDef}, -{5, TokenCppKind_PPElIf}, -{5, TokenCppKind_PPEndIf}, -{0, 0}, -{5, TokenCppKind_PPVersion}, -{0, 0}, -{0, 0}, -{5, TokenCppKind_PPDefine}, -{0, 0}, -{5, TokenCppKind_PPImport}, -{0, 0}, -{5, TokenCppKind_PPUsing}, -{5, TokenCppKind_PPUndef}, -{5, TokenCppKind_PPIf}, -{0, 0}, -{0, 0}, -{5, TokenCppKind_PPLine}, -{5, TokenCppKind_PPIfNDef}, -}; -i32 cpp_pp_directives_slot_count = 25; -u64 cpp_pp_directives_seed = 0x809c31cbcce937ce; -u64 cpp_pp_keys_hash_array[2] = { -0xe8cfbff43d4bcfab,0x0000000000000000, -}; -u8 cpp_pp_keys_key_array_0[] = {0x64,0x65,0x66,0x69,0x6e,0x65,0x64,}; -String_Const_u8 cpp_pp_keys_key_array[2] = { -{cpp_pp_keys_key_array_0, 7}, -{0, 0}, -}; -Lexeme_Table_Value cpp_pp_keys_value_array[2] = { -{4, TokenCppKind_PPDefined}, -{0, 0}, -}; -i32 cpp_pp_keys_slot_count = 2; -u64 cpp_pp_keys_seed = 0x489a75c5383a5a2c; -struct Lex_State_Cpp{ -u32 flags_ZF0; -u32 flags_KF0; -u16 flags_KB0; -u8 *base; -u8 *delim_first; -u8 *delim_one_past_last; -u8 *emit_ptr; -u8 *ptr; -u8 *opl_ptr; -}; -internal void -lex_full_input_cpp_init(Lex_State_Cpp *state_ptr, String_Const_u8 input){ -state_ptr->flags_ZF0 = 0; -state_ptr->flags_KF0 = 0; -state_ptr->flags_KB0 = 0; -state_ptr->base = input.str; -state_ptr->delim_first = input.str; -state_ptr->delim_one_past_last = input.str; -state_ptr->emit_ptr = input.str; -state_ptr->ptr = input.str; -state_ptr->opl_ptr = input.str + input.size; -} -internal b32 -lex_full_input_cpp_breaks(Arena *arena, Token_List *list, Lex_State_Cpp *state_ptr, u64 max){ -b32 result = false; -u64 emit_counter = 0; -Lex_State_Cpp state; -block_copy_struct(&state, state_ptr); -{ -state_label_1: // root -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_EOF; -token.kind = 0; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -result = true; -goto end; -} -} -switch (*state.ptr){ -case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06: -case 0x07:case 0x08:case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12: -case 0x13:case 0x14:case 0x15:case 0x16:case 0x17:case 0x18:case 0x19: -case 0x1a:case 0x1b:case 0x1c:case 0x1d:case 0x1e:case 0x1f:case 0x40: -case 0x60:case 0x7f: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x09:case 0x0b:case 0x0c:case 0x0d:case 0x20: -{ -if ((HasFlag(state.flags_KF0, 0x2))){ -state.ptr += 1; -goto state_label_4; // error_body -} -state.ptr += 1; -goto state_label_3; // whitespace -}break; -case 0x0a: -{ -state.ptr += 1; -state.flags_KB0 &= ~(0x1); -state.flags_KF0 &= ~(0x1); -state.flags_KF0 &= ~(0x2); -goto state_label_3; // whitespace -}break; -case 0x21: -{ -state.ptr += 1; -goto state_label_61; // op stage -}break; -case 0x22: -{ -if ((HasFlag(state.flags_KF0, 0x1))){ -state.ptr += 1; -goto state_label_26; // include_quotes -} -state.ptr += 1; -goto state_label_32; // string -}break; -case 0x23: -{ -if ((!HasFlag(state.flags_KB0, 0x1))){ -state.ptr += 1; -goto state_label_23; // pp_directive_whitespace -} -state.ptr += 1; -goto state_label_68; // op stage -}break; -default: -{ -state.ptr += 1; -goto state_label_2; // identifier -}break; -case 0x25: -{ -state.ptr += 1; -goto state_label_65; // op stage -}break; -case 0x26: -{ -state.ptr += 1; -goto state_label_62; // op stage -}break; -case 0x27: -{ -state.ptr += 1; -state.flags_ZF0 |= 0x40; -goto state_label_32; // string -}break; -case 0x28: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_ParenOp; -token.kind = 13; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x29: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_ParenCl; -token.kind = 14; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2a: -{ -state.ptr += 1; -goto state_label_64; // op stage -}break; -case 0x2b: -{ -state.ptr += 1; -goto state_label_54; // op stage -}break; -case 0x2c: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Comma; -token.kind = 15; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2d: -{ -state.ptr += 1; -goto state_label_55; // op stage -}break; -case 0x2e: -{ -state.ptr += 1; -goto state_label_6; // operator_or_fnumber_dot -}break; -case 0x2f: -{ -state.ptr += 1; -goto state_label_7; // operator_or_comment_slash -}break; -case 0x30: -{ -state.ptr += 1; -goto state_label_9; // znumber -}break; -case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36:case 0x37: -case 0x38:case 0x39: -{ -state.ptr += 1; -goto state_label_8; // number -}break; -case 0x3a: -{ -state.ptr += 1; -goto state_label_53; // op stage -}break; -case 0x3b: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Semicolon; -token.kind = 15; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3c: -{ -if ((!HasFlag(state.flags_KF0, 0x1))){ -state.ptr += 1; -goto state_label_57; // op stage -} -state.ptr += 1; -goto state_label_25; // include_pointy -}break; -case 0x3d: -{ -state.ptr += 1; -goto state_label_60; // op stage -}break; -case 0x3e: -{ -state.ptr += 1; -goto state_label_58; // op stage -}break; -case 0x3f: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Ternary; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x4c: -{ -state.ptr += 1; -state.flags_ZF0 |= 0x4; -goto state_label_27; // pre_L -}break; -case 0x52: -{ -state.ptr += 1; -goto state_label_31; // pre_R -}break; -case 0x55: -{ -state.ptr += 1; -state.flags_ZF0 |= 0x20; -goto state_label_29; // pre_U -}break; -case 0x5b: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_BrackOp; -token.kind = 13; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x5c: -{ -state.ptr += 1; -goto state_label_5; // backslash -}break; -case 0x5d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_BrackCl; -token.kind = 14; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x5e: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Xor; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x75: -{ -state.ptr += 1; -state.flags_ZF0 |= 0x10; -goto state_label_28; // pre_u -}break; -case 0x7b: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_BraceOp; -token.kind = 11; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x7c: -{ -state.ptr += 1; -goto state_label_63; // op stage -}break; -case 0x7d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_BraceCl; -token.kind = 12; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x7e: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Tilde; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_2: // identifier -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_KB0, 0x1)){ -Lexeme_Table_Lookup lookup = lexeme_table_lookup(cpp_pp_keys_hash_array, cpp_pp_keys_key_array, cpp_pp_keys_value_array, cpp_pp_keys_slot_count, cpp_pp_keys_seed, state.emit_ptr, token.size); -if (lookup.found_match){ -token.kind = lookup.base_kind; -token.sub_kind = lookup.sub_kind; -break; -} -} -Lexeme_Table_Lookup lookup = lexeme_table_lookup(cpp_main_keys_hash_array, cpp_main_keys_key_array, cpp_main_keys_value_array, cpp_main_keys_slot_count, cpp_main_keys_seed, state.emit_ptr, token.size); -if (lookup.found_match){ -token.kind = lookup.base_kind; -token.sub_kind = lookup.sub_kind; -break; -} -token.sub_kind = TokenCppKind_Identifier; -token.kind = 6; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -case 0x00:case 0x01:case 0x02:case 0x03:case 0x04:case 0x05:case 0x06: -case 0x07:case 0x08:case 0x09:case 0x0a:case 0x0b:case 0x0c:case 0x0d: -case 0x0e:case 0x0f:case 0x10:case 0x11:case 0x12:case 0x13:case 0x14: -case 0x15:case 0x16:case 0x17:case 0x18:case 0x19:case 0x1a:case 0x1b: -case 0x1c:case 0x1d:case 0x1e:case 0x1f:case 0x20:case 0x21:case 0x22: -case 0x23:case 0x25:case 0x26:case 0x27:case 0x28:case 0x29:case 0x2a: -case 0x2b:case 0x2c:case 0x2d:case 0x2e:case 0x2f:case 0x3a:case 0x3b: -case 0x3c:case 0x3d:case 0x3e:case 0x3f:case 0x40:case 0x5b:case 0x5c: -case 0x5d:case 0x5e:case 0x60:case 0x7b:case 0x7c:case 0x7d:case 0x7e: -case 0x7f: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_KB0, 0x1)){ -Lexeme_Table_Lookup lookup = lexeme_table_lookup(cpp_pp_keys_hash_array, cpp_pp_keys_key_array, cpp_pp_keys_value_array, cpp_pp_keys_slot_count, cpp_pp_keys_seed, state.emit_ptr, token.size); -if (lookup.found_match){ -token.kind = lookup.base_kind; -token.sub_kind = lookup.sub_kind; -break; -} -} -Lexeme_Table_Lookup lookup = lexeme_table_lookup(cpp_main_keys_hash_array, cpp_main_keys_key_array, cpp_main_keys_value_array, cpp_main_keys_slot_count, cpp_main_keys_seed, state.emit_ptr, token.size); -if (lookup.found_match){ -token.kind = lookup.base_kind; -token.sub_kind = lookup.sub_kind; -break; -} -token.sub_kind = TokenCppKind_Identifier; -token.kind = 6; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -default: -{ -state.ptr += 1; -goto state_label_2; // identifier -}break; -} -} -{ -state_label_3: // whitespace -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Whitespace; -token.kind = 1; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Whitespace; -token.kind = 1; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x09:case 0x0b:case 0x0c:case 0x0d:case 0x20: -{ -state.ptr += 1; -goto state_label_3; // whitespace -}break; -case 0x0a: -{ -state.ptr += 1; -state.flags_KB0 &= ~(0x1); -state.flags_KF0 &= ~(0x1); -state.flags_KF0 &= ~(0x2); -goto state_label_3; // whitespace -}break; -} -} -{ -state_label_4: // error_body -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_PPErrorMessage; -token.kind = 10; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -state.ptr += 1; -goto state_label_4; // error_body -}break; -case 0x0a: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_PPErrorMessage; -token.kind = 10; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_5: // backslash -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Backslash; -token.kind = 1; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Backslash; -token.kind = 1; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x0a: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Backslash; -token.kind = 1; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x0d: -{ -state.ptr += 1; -goto state_label_5; // backslash -}break; -} -} -{ -state_label_6: // operator_or_fnumber_dot -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Dot; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Dot; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2a: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_DotStar; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2e: -{ -state.ptr += 1; -goto state_label_69; // op stage -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39: -{ -state.ptr += 1; -goto state_label_10; // fnumber_decimal -}break; -} -} -{ -state_label_7: // operator_or_comment_slash -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Div; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Div; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2a: -{ -state.ptr += 1; -goto state_label_49; // comment_block -}break; -case 0x2f: -{ -state.ptr += 1; -goto state_label_51; // comment_line -}break; -case 0x3d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_DivEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_8: // number -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralInteger; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralInteger; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2e: -{ -state.ptr += 1; -goto state_label_10; // fnumber_decimal -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39: -{ -state.ptr += 1; -goto state_label_8; // number -}break; -case 0x45:case 0x65: -{ -state.ptr += 1; -goto state_label_11; // fnumber_exponent -}break; -case 0x4c: -{ -state.ptr += 1; -goto state_label_18; // L_number -}break; -case 0x55:case 0x75: -{ -state.ptr += 1; -goto state_label_17; // U_number -}break; -case 0x6c: -{ -state.ptr += 1; -goto state_label_20; // l_number -}break; -} -} -{ -state_label_9: // znumber -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralInteger; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralInteger; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2e: -{ -state.ptr += 1; -goto state_label_10; // fnumber_decimal -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37: -{ -state.ptr += 1; -state.flags_ZF0 |= 0x2; -goto state_label_16; // number_oct -}break; -case 0x45:case 0x65: -{ -state.ptr += 1; -goto state_label_11; // fnumber_exponent -}break; -case 0x4c: -{ -state.ptr += 1; -goto state_label_18; // L_number -}break; -case 0x55:case 0x75: -{ -state.ptr += 1; -goto state_label_17; // U_number -}break; -case 0x58:case 0x78: -{ -state.ptr += 1; -state.flags_ZF0 |= 0x1; -goto state_label_14; // number_hex_first -}break; -case 0x6c: -{ -state.ptr += 1; -goto state_label_20; // l_number -}break; -} -} -{ -state_label_10: // fnumber_decimal -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39: -{ -state.ptr += 1; -goto state_label_10; // fnumber_decimal -}break; -case 0x45:case 0x65: -{ -state.ptr += 1; -goto state_label_11; // fnumber_exponent -}break; -case 0x46:case 0x66: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat32; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x4c:case 0x6c: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_11: // fnumber_exponent -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2b:case 0x2d: -{ -state.ptr += 1; -goto state_label_12; // fnumber_exponent_sign -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39: -{ -state.ptr += 1; -goto state_label_13; // fnumber_exponent_digits -}break; -case 0x46:case 0x66: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat32; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x4c:case 0x6c: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_12: // fnumber_exponent_sign -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39: -{ -state.ptr += 1; -goto state_label_13; // fnumber_exponent_digits -}break; -case 0x46:case 0x66: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat32; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x4c:case 0x6c: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_13: // fnumber_exponent_digits -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39: -{ -state.ptr += 1; -goto state_label_13; // fnumber_exponent_digits -}break; -case 0x46:case 0x66: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat32; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x4c:case 0x6c: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralFloat64; -token.kind = 9; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_14: // number_hex_first -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_15; // number_hex -}break; -} -} -{ -state_label_15: // number_hex -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralIntegerHex; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralIntegerHex; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_15; // number_hex -}break; -case 0x4c: -{ -state.ptr += 1; -goto state_label_18; // L_number -}break; -case 0x55:case 0x75: -{ -state.ptr += 1; -goto state_label_17; // U_number -}break; -case 0x6c: -{ -state.ptr += 1; -goto state_label_20; // l_number -}break; -} -} -{ -state_label_16: // number_oct -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralIntegerOct; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LiteralIntegerOct; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37: -{ -state.ptr += 1; -state.flags_ZF0 |= 0x2; -goto state_label_16; // number_oct -}break; -case 0x4c: -{ -state.ptr += 1; -goto state_label_18; // L_number -}break; -case 0x55:case 0x75: -{ -state.ptr += 1; -goto state_label_17; // U_number -}break; -case 0x6c: -{ -state.ptr += 1; -goto state_label_20; // l_number -}break; -} -} -{ -state_label_17: // U_number -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexU; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctU; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerU; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexU; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctU; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerU; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x4c: -{ -state.ptr += 1; -goto state_label_19; // UL_number -}break; -case 0x6c: -{ -state.ptr += 1; -goto state_label_21; // Ul_number -}break; -} -} -{ -state_label_18: // L_number -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x4c: -{ -state.ptr += 1; -goto state_label_22; // LL_number -}break; -case 0x55:case 0x75: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexUL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctUL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerUL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_19: // UL_number -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexUL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctUL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerUL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexUL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctUL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerUL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x4c: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexULL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctULL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerULL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_20: // l_number -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x55:case 0x75: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexUL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctUL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerUL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x6c: -{ -state.ptr += 1; -goto state_label_22; // LL_number -}break; -} -} -{ -state_label_21: // Ul_number -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexUL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctUL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerUL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexUL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctUL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerUL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x6c: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexULL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctULL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerULL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_22: // LL_number -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexLL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctLL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerLL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexLL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctLL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerLL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x55:case 0x75: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x1)){ -token.sub_kind = TokenCppKind_LiteralIntegerHexULL; -token.kind = 8; -break; -} -if (HasFlag(state.flags_ZF0, 0x2)){ -token.sub_kind = TokenCppKind_LiteralIntegerOctULL; -token.kind = 8; -break; -} -token.sub_kind = TokenCppKind_LiteralIntegerULL; -token.kind = 8; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_23: // pp_directive_whitespace -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x09:case 0x0b:case 0x0c:case 0x20: -{ -state.ptr += 1; -goto state_label_23; // pp_directive_whitespace -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x47:case 0x48:case 0x49:case 0x4a:case 0x4b: -case 0x4c:case 0x4d:case 0x4e:case 0x4f:case 0x50:case 0x51:case 0x52: -case 0x53:case 0x54:case 0x55:case 0x56:case 0x57:case 0x58:case 0x59: -case 0x5a:case 0x5f:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66:case 0x67:case 0x68:case 0x69:case 0x6a:case 0x6b:case 0x6c: -case 0x6d:case 0x6e:case 0x6f:case 0x70:case 0x71:case 0x72:case 0x73: -case 0x74:case 0x75:case 0x76:case 0x77:case 0x78:case 0x79:case 0x7a: -{ -state.delim_first = state.ptr; -state.flags_KB0 |= 0x1; -state.ptr += 1; -goto state_label_24; // pp_directive -}break; -} -} -{ -state_label_24: // pp_directive -if (state.ptr == state.opl_ptr){ -if ((true)){ -state.delim_one_past_last = state.ptr; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -Lexeme_Table_Lookup lookup = lexeme_table_lookup(cpp_pp_directives_hash_array, cpp_pp_directives_key_array, cpp_pp_directives_value_array, cpp_pp_directives_slot_count, cpp_pp_directives_seed, state.delim_first, (state.delim_one_past_last - state.delim_first)); -if (lookup.found_match){ -token.kind = lookup.base_kind; -token.sub_kind = lookup.sub_kind; -break; -} -token.sub_kind = TokenCppKind_PPUnknown; -token.kind = 2; -}while(0); -switch (token.sub_kind){ -case TokenCppKind_PPInclude: -{ -state.flags_KF0 |= 0x1; -}break; -case TokenCppKind_PPError: -{ -state.flags_KF0 |= 0x2; -}break; -} -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -state.delim_one_past_last = state.ptr; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -Lexeme_Table_Lookup lookup = lexeme_table_lookup(cpp_pp_directives_hash_array, cpp_pp_directives_key_array, cpp_pp_directives_value_array, cpp_pp_directives_slot_count, cpp_pp_directives_seed, state.delim_first, (state.delim_one_past_last - state.delim_first)); -if (lookup.found_match){ -token.kind = lookup.base_kind; -token.sub_kind = lookup.sub_kind; -break; -} -token.sub_kind = TokenCppKind_PPUnknown; -token.kind = 2; -}while(0); -switch (token.sub_kind){ -case TokenCppKind_PPInclude: -{ -state.flags_KF0 |= 0x1; -}break; -case TokenCppKind_PPError: -{ -state.flags_KF0 |= 0x2; -}break; -} -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x47:case 0x48:case 0x49:case 0x4a:case 0x4b: -case 0x4c:case 0x4d:case 0x4e:case 0x4f:case 0x50:case 0x51:case 0x52: -case 0x53:case 0x54:case 0x55:case 0x56:case 0x57:case 0x58:case 0x59: -case 0x5a:case 0x5f:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66:case 0x67:case 0x68:case 0x69:case 0x6a:case 0x6b:case 0x6c: -case 0x6d:case 0x6e:case 0x6f:case 0x70:case 0x71:case 0x72:case 0x73: -case 0x74:case 0x75:case 0x76:case 0x77:case 0x78:case 0x79:case 0x7a: -{ -state.ptr += 1; -goto state_label_24; // pp_directive -}break; -} -} -{ -state_label_25: // include_pointy -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x20:case 0x21:case 0x22:case 0x23:case 0x24:case 0x25:case 0x26: -case 0x27:case 0x28:case 0x29:case 0x2a:case 0x2b:case 0x2c:case 0x2d: -case 0x2e:case 0x2f:case 0x30:case 0x31:case 0x32:case 0x33:case 0x34: -case 0x35:case 0x36:case 0x37:case 0x38:case 0x39:case 0x3a:case 0x3b: -case 0x3d:case 0x3f:case 0x40:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x47:case 0x48:case 0x49:case 0x4a:case 0x4b: -case 0x4c:case 0x4d:case 0x4e:case 0x4f:case 0x50:case 0x51:case 0x52: -case 0x53:case 0x54:case 0x55:case 0x56:case 0x57:case 0x58:case 0x59: -case 0x5a:case 0x5b:case 0x5c:case 0x5d:case 0x5e:case 0x5f:case 0x61: -case 0x62:case 0x63:case 0x64:case 0x65:case 0x66:case 0x67:case 0x68: -case 0x69:case 0x6a:case 0x6b:case 0x6c:case 0x6d:case 0x6e:case 0x6f: -case 0x70:case 0x71:case 0x72:case 0x73:case 0x74:case 0x75:case 0x76: -case 0x77:case 0x78:case 0x79:case 0x7a:case 0x7b:case 0x7c:case 0x7d: -{ -state.ptr += 1; -goto state_label_25; // include_pointy -}break; -case 0x3e: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_PPIncludeFile; -token.kind = 10; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_26: // include_quotes -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x20:case 0x21:case 0x23:case 0x24:case 0x25:case 0x26:case 0x27: -case 0x28:case 0x29:case 0x2a:case 0x2b:case 0x2c:case 0x2d:case 0x2e: -case 0x2f:case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35: -case 0x36:case 0x37:case 0x38:case 0x39:case 0x3a:case 0x3b:case 0x3c: -case 0x3d:case 0x3e:case 0x3f:case 0x40:case 0x41:case 0x42:case 0x43: -case 0x44:case 0x45:case 0x46:case 0x47:case 0x48:case 0x49:case 0x4a: -case 0x4b:case 0x4c:case 0x4d:case 0x4e:case 0x4f:case 0x50:case 0x51: -case 0x52:case 0x53:case 0x54:case 0x55:case 0x56:case 0x57:case 0x58: -case 0x59:case 0x5a:case 0x5b:case 0x5c:case 0x5d:case 0x5e:case 0x5f: -case 0x61:case 0x62:case 0x63:case 0x64:case 0x65:case 0x66:case 0x67: -case 0x68:case 0x69:case 0x6a:case 0x6b:case 0x6c:case 0x6d:case 0x6e: -case 0x6f:case 0x70:case 0x71:case 0x72:case 0x73:case 0x74:case 0x75: -case 0x76:case 0x77:case 0x78:case 0x79:case 0x7a:case 0x7b:case 0x7c: -case 0x7d: -{ -state.ptr += 1; -goto state_label_26; // include_quotes -}break; -case 0x22: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_PPIncludeFile; -token.kind = 10; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_27: // pre_L -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_2; // identifier -} -} -switch (*state.ptr){ -default: -{ -goto state_label_2; // identifier -}break; -case 0x22: -{ -state.ptr += 1; -goto state_label_32; // string -}break; -case 0x52: -{ -state.ptr += 1; -goto state_label_31; // pre_R -}break; -} -} -{ -state_label_28: // pre_u -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_2; // identifier -} -} -switch (*state.ptr){ -default: -{ -goto state_label_2; // identifier -}break; -case 0x22: -{ -state.ptr += 1; -goto state_label_32; // string -}break; -case 0x38: -{ -state.ptr += 1; -state.flags_ZF0 |= 0x8; -goto state_label_30; // pre_u8 -}break; -case 0x52: -{ -state.ptr += 1; -goto state_label_31; // pre_R -}break; -} -} -{ -state_label_29: // pre_U -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_2; // identifier -} -} -switch (*state.ptr){ -default: -{ -goto state_label_2; // identifier -}break; -case 0x22: -{ -state.ptr += 1; -goto state_label_32; // string -}break; -case 0x52: -{ -state.ptr += 1; -goto state_label_31; // pre_R -}break; -} -} -{ -state_label_30: // pre_u8 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_2; // identifier -} -} -switch (*state.ptr){ -default: -{ -goto state_label_2; // identifier -}break; -case 0x22: -{ -state.ptr += 1; -goto state_label_32; // string -}break; -case 0x52: -{ -state.ptr += 1; -goto state_label_31; // pre_R -}break; -} -} -{ -state_label_31: // pre_R -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_2; // identifier -} -} -switch (*state.ptr){ -default: -{ -goto state_label_2; // identifier -}break; -case 0x22: -{ -state.ptr += 1; -state.delim_first = state.ptr; -goto state_label_45; // raw_string_get_delim -}break; -} -} -{ -state_label_32: // string -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -state.ptr += 1; -goto state_label_32; // string -}break; -case 0x0a: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x22: -{ -if ((!HasFlag(state.flags_ZF0, 0x40))){ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x4)){ -token.sub_kind = TokenCppKind_LiteralStringWide; -token.kind = 10; -break; -} -if (HasFlag(state.flags_ZF0, 0x8)){ -token.sub_kind = TokenCppKind_LiteralStringUTF8; -token.kind = 10; -break; -} -if (HasFlag(state.flags_ZF0, 0x10)){ -token.sub_kind = TokenCppKind_LiteralStringUTF16; -token.kind = 10; -break; -} -if (HasFlag(state.flags_ZF0, 0x20)){ -token.sub_kind = TokenCppKind_LiteralStringUTF32; -token.kind = 10; -break; -} -token.sub_kind = TokenCppKind_LiteralString; -token.kind = 10; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -state.ptr += 1; -goto state_label_32; // string -}break; -case 0x27: -{ -if ((HasFlag(state.flags_ZF0, 0x40))){ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x4)){ -token.sub_kind = TokenCppKind_LiteralCharacterWide; -token.kind = 10; -break; -} -if (HasFlag(state.flags_ZF0, 0x8)){ -token.sub_kind = TokenCppKind_LiteralCharacterUTF8; -token.kind = 10; -break; -} -if (HasFlag(state.flags_ZF0, 0x10)){ -token.sub_kind = TokenCppKind_LiteralCharacterUTF16; -token.kind = 10; -break; -} -if (HasFlag(state.flags_ZF0, 0x20)){ -token.sub_kind = TokenCppKind_LiteralCharacterUTF32; -token.kind = 10; -break; -} -token.sub_kind = TokenCppKind_LiteralCharacter; -token.kind = 10; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -state.ptr += 1; -goto state_label_32; // string -}break; -case 0x5c: -{ -state.ptr += 1; -goto state_label_33; // string_esc -}break; -} -} -{ -state_label_33: // string_esc -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_EOF; -token.kind = 0; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -result = true; -goto end; -} -} -switch (*state.ptr){ -default: -{ -state.ptr += 1; -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37: -{ -state.ptr += 1; -goto state_label_34; // string_esc_oct2 -}break; -case 0x55: -{ -state.ptr += 1; -goto state_label_37; // string_esc_universal_8 -}break; -case 0x75: -{ -state.ptr += 1; -goto state_label_41; // string_esc_universal_4 -}break; -case 0x78: -{ -state.ptr += 1; -goto state_label_36; // string_esc_hex -}break; -} -} -{ -state_label_34: // string_esc_oct2 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37: -{ -state.ptr += 1; -goto state_label_35; // string_esc_oct1 -}break; -} -} -{ -state_label_35: // string_esc_oct1 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37: -{ -state.ptr += 1; -goto state_label_32; // string -}break; -} -} -{ -state_label_36: // string_esc_hex -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_36; // string_esc_hex -}break; -} -} -{ -state_label_37: // string_esc_universal_8 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_38; // string_esc_universal_7 -}break; -} -} -{ -state_label_38: // string_esc_universal_7 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_39; // string_esc_universal_6 -}break; -} -} -{ -state_label_39: // string_esc_universal_6 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_40; // string_esc_universal_5 -}break; -} -} -{ -state_label_40: // string_esc_universal_5 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_41; // string_esc_universal_4 -}break; -} -} -{ -state_label_41: // string_esc_universal_4 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_42; // string_esc_universal_3 -}break; -} -} -{ -state_label_42: // string_esc_universal_3 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_43; // string_esc_universal_2 -}break; -} -} -{ -state_label_43: // string_esc_universal_2 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_44; // string_esc_universal_1 -}break; -} -} -{ -state_label_44: // string_esc_universal_1 -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_32; // string -} -} -switch (*state.ptr){ -default: -{ -goto state_label_32; // string -}break; -case 0x30:case 0x31:case 0x32:case 0x33:case 0x34:case 0x35:case 0x36: -case 0x37:case 0x38:case 0x39:case 0x41:case 0x42:case 0x43:case 0x44: -case 0x45:case 0x46:case 0x61:case 0x62:case 0x63:case 0x64:case 0x65: -case 0x66: -{ -state.ptr += 1; -goto state_label_32; // string -}break; -} -} -{ -state_label_45: // raw_string_get_delim -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_EOF; -token.kind = 0; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -result = true; -goto end; -} -} -switch (*state.ptr){ -default: -{ -state.ptr += 1; -goto state_label_45; // raw_string_get_delim -}break; -case 0x20:case 0x29:case 0x5c: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x28: -{ -state.delim_one_past_last = state.ptr; -state.ptr += 1; -goto state_label_46; // raw_string_find_close -}break; -} -} -{ -state_label_46: // raw_string_find_close -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_EOF; -token.kind = 0; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -result = true; -goto end; -} -} -switch (*state.ptr){ -default: -{ -state.ptr += 1; -goto state_label_46; // raw_string_find_close -}break; -case 0x29: -{ -state.ptr += 1; -goto state_label_47; // raw_string_try_delim -}break; -} -} -{ -state_label_47: // raw_string_try_delim -u64 delim_length = state.delim_one_past_last - state.delim_first; -u64 parse_length = 0; -for (;;){ -if (parse_length == delim_length){ -goto state_label_48; // raw_string_try_quote -} -if (state.ptr == state.opl_ptr){ -goto state_label_48; // raw_string_try_quote -} -if (*state.ptr == state.delim_first[parse_length]){ -state.ptr += 1; -parse_length += 1; -} -else{ -goto state_label_46; // raw_string_find_close -} -} -} -{ -state_label_48: // raw_string_try_quote -if (state.ptr == state.opl_ptr){ -if ((true)){ -goto state_label_46; // raw_string_find_close -} -} -switch (*state.ptr){ -default: -{ -goto state_label_46; // raw_string_find_close -}break; -case 0x22: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -if (HasFlag(state.flags_ZF0, 0x4)){ -token.sub_kind = TokenCppKind_LiteralStringWideRaw; -token.kind = 10; -break; -} -if (HasFlag(state.flags_ZF0, 0x8)){ -token.sub_kind = TokenCppKind_LiteralStringUTF8Raw; -token.kind = 10; -break; -} -if (HasFlag(state.flags_ZF0, 0x10)){ -token.sub_kind = TokenCppKind_LiteralStringUTF16Raw; -token.kind = 10; -break; -} -if (HasFlag(state.flags_ZF0, 0x20)){ -token.sub_kind = TokenCppKind_LiteralStringUTF32Raw; -token.kind = 10; -break; -} -token.sub_kind = TokenCppKind_LiteralStringRaw; -token.kind = 10; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_49: // comment_block -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_BlockComment; -token.kind = 3; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_EOF; -token.kind = 0; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -result = true; -goto end; -} -} -switch (*state.ptr){ -default: -{ -state.ptr += 1; -goto state_label_49; // comment_block -}break; -case 0x0a: -{ -state.ptr += 1; -state.flags_KB0 &= ~(0x1); -state.flags_KF0 &= ~(0x1); -goto state_label_49; // comment_block -}break; -case 0x2a: -{ -state.ptr += 1; -goto state_label_50; // comment_block_try_close -}break; -} -} -{ -state_label_50: // comment_block_try_close -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_BlockComment; -token.kind = 3; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_EOF; -token.kind = 0; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -result = true; -goto end; -} -} -switch (*state.ptr){ -default: -{ -state.ptr += 1; -goto state_label_49; // comment_block -}break; -case 0x2a: -{ -state.ptr += 1; -goto state_label_50; // comment_block_try_close -}break; -case 0x2f: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_BlockComment; -token.kind = 3; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_51: // comment_line -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LineComment; -token.kind = 3; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -state.ptr += 1; -goto state_label_51; // comment_line -}break; -case 0x0a: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LineComment; -token.kind = 3; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x5c: -{ -state.ptr += 1; -goto state_label_52; // comment_line_backslashing -}break; -} -} -{ -state_label_52: // comment_line_backslashing -if (state.ptr == state.opl_ptr){ -if ((true)){ -result = true; -goto end; -} -} -switch (*state.ptr){ -default: -{ -state.ptr += 1; -goto state_label_51; // comment_line -}break; -case 0x0d: -{ -state.ptr += 1; -goto state_label_52; // comment_line_backslashing -}break; -} -} -{ -state_label_53: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Colon; -token.kind = 15; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Colon; -token.kind = 15; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3a: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_ColonColon; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_54: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Plus; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Plus; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2b: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_PlusPlus; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_PlusEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_55: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Minus; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Minus; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_MinusMinus; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_MinusEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3e: -{ -state.ptr += 1; -goto state_label_56; // op stage -}break; -} -} -{ -state_label_56: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Arrow; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Arrow; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2a: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_ArrowStar; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_57: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Less; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Less; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3c: -{ -state.ptr += 1; -goto state_label_66; // op stage -}break; -case 0x3d: -{ -state.ptr += 1; -goto state_label_59; // op stage -}break; -} -} -{ -state_label_58: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Grtr; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Grtr; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_GrtrEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3e: -{ -state.ptr += 1; -goto state_label_67; // op stage -}break; -} -} -{ -state_label_59: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LessEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LessEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3e: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Compare; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_60: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Eq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Eq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_EqEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_61: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Not; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Not; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_NotEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_62: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_And; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_And; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x26: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_AndAnd; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_63: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Or; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Or; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x7c: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_OrOr; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_64: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Star; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Star; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_StarEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_65: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Mod; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_Mod; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_ModEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_66: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LeftLeft; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LeftLeft; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LeftLeftEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_67: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_RightRight; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_RightRight; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x3d: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_RightRightEq; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_68: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_PPStringify; -token.kind = 15; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_PPStringify; -token.kind = 15; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x23: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_PPConcat; -token.kind = 15; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -{ -state_label_69: // op stage -if (state.ptr == state.opl_ptr){ -if ((true)){ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -} -state.flags_ZF0 = 0; -goto state_label_1; // root -} -} -switch (*state.ptr){ -default: -{ -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_LexError; -token.kind = 2; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -case 0x2e: -{ -state.ptr += 1; -{ -Token token = {}; -token.pos = (i64)(state.emit_ptr - state.base); -token.size = (i64)(state.ptr - state.emit_ptr); -token.flags = state.flags_KB0; -do{ -token.sub_kind = TokenCppKind_DotDotDot; -token.kind = 7; -}while(0); -token_list_push(arena, list, &token); -emit_counter += 1; -state.emit_ptr = state.ptr; -if (emit_counter == max){ -goto end; -} -} -state.flags_ZF0 = 0; -goto state_label_1; // root -}break; -} -} -end:; -block_copy_struct(state_ptr, &state); -return(result); -} -internal Token_List -lex_full_input_cpp(Arena *arena, String_Const_u8 input){ -Lex_State_Cpp state = {}; -lex_full_input_cpp_init(&state, input); -Token_List list = {}; -lex_full_input_cpp_breaks(arena, &list, &state, max_u64); -return(list); -} diff --git a/code/custom/generated/lexer_cpp.h b/code/custom/generated/lexer_cpp.h deleted file mode 100644 index b3489c99..00000000 --- a/code/custom/generated/lexer_cpp.h +++ /dev/null @@ -1,375 +0,0 @@ -#if !defined(FCODER_LEX_GEN_HAND_WRITTEN_TYPES) -#define FCODER_LEX_GEN_HAND_WRITTEN_TYPES - -struct Lexeme_Table_Value{ - Token_Base_Kind base_kind; - u16 sub_kind; -}; - -struct Lexeme_Table_Lookup{ - b32 found_match; - Token_Base_Kind base_kind; - u16 sub_kind; -}; - -#endif -typedef u16 Token_Cpp_Kind; -enum{ -TokenCppKind_EOF = 0, -TokenCppKind_Whitespace = 1, -TokenCppKind_LexError = 2, -TokenCppKind_BlockComment = 3, -TokenCppKind_LineComment = 4, -TokenCppKind_Backslash = 5, -TokenCppKind_LiteralInteger = 6, -TokenCppKind_LiteralIntegerU = 7, -TokenCppKind_LiteralIntegerL = 8, -TokenCppKind_LiteralIntegerUL = 9, -TokenCppKind_LiteralIntegerLL = 10, -TokenCppKind_LiteralIntegerULL = 11, -TokenCppKind_LiteralIntegerHex = 12, -TokenCppKind_LiteralIntegerHexU = 13, -TokenCppKind_LiteralIntegerHexL = 14, -TokenCppKind_LiteralIntegerHexUL = 15, -TokenCppKind_LiteralIntegerHexLL = 16, -TokenCppKind_LiteralIntegerHexULL = 17, -TokenCppKind_LiteralIntegerOct = 18, -TokenCppKind_LiteralIntegerOctU = 19, -TokenCppKind_LiteralIntegerOctL = 20, -TokenCppKind_LiteralIntegerOctUL = 21, -TokenCppKind_LiteralIntegerOctLL = 22, -TokenCppKind_LiteralIntegerOctULL = 23, -TokenCppKind_LiteralFloat32 = 24, -TokenCppKind_LiteralFloat64 = 25, -TokenCppKind_LiteralString = 26, -TokenCppKind_LiteralStringWide = 27, -TokenCppKind_LiteralStringUTF8 = 28, -TokenCppKind_LiteralStringUTF16 = 29, -TokenCppKind_LiteralStringUTF32 = 30, -TokenCppKind_LiteralStringRaw = 31, -TokenCppKind_LiteralStringWideRaw = 32, -TokenCppKind_LiteralStringUTF8Raw = 33, -TokenCppKind_LiteralStringUTF16Raw = 34, -TokenCppKind_LiteralStringUTF32Raw = 35, -TokenCppKind_LiteralCharacter = 36, -TokenCppKind_LiteralCharacterWide = 37, -TokenCppKind_LiteralCharacterUTF8 = 38, -TokenCppKind_LiteralCharacterUTF16 = 39, -TokenCppKind_LiteralCharacterUTF32 = 40, -TokenCppKind_PPIncludeFile = 41, -TokenCppKind_PPErrorMessage = 42, -TokenCppKind_KeywordGeneric = 43, -TokenCppKind_BraceOp = 44, -TokenCppKind_BraceCl = 45, -TokenCppKind_ParenOp = 46, -TokenCppKind_BrackOp = 47, -TokenCppKind_ParenCl = 48, -TokenCppKind_BrackCl = 49, -TokenCppKind_Semicolon = 50, -TokenCppKind_Colon = 51, -TokenCppKind_DotDotDot = 52, -TokenCppKind_ColonColon = 53, -TokenCppKind_PlusPlus = 54, -TokenCppKind_MinusMinus = 55, -TokenCppKind_Dot = 56, -TokenCppKind_Arrow = 57, -TokenCppKind_Plus = 58, -TokenCppKind_Minus = 59, -TokenCppKind_Not = 60, -TokenCppKind_Tilde = 61, -TokenCppKind_Star = 62, -TokenCppKind_And = 63, -TokenCppKind_DotStar = 64, -TokenCppKind_ArrowStar = 65, -TokenCppKind_Div = 66, -TokenCppKind_Mod = 67, -TokenCppKind_LeftLeft = 68, -TokenCppKind_RightRight = 69, -TokenCppKind_Compare = 70, -TokenCppKind_Less = 71, -TokenCppKind_LessEq = 72, -TokenCppKind_Grtr = 73, -TokenCppKind_GrtrEq = 74, -TokenCppKind_EqEq = 75, -TokenCppKind_NotEq = 76, -TokenCppKind_Xor = 77, -TokenCppKind_Or = 78, -TokenCppKind_AndAnd = 79, -TokenCppKind_OrOr = 80, -TokenCppKind_Ternary = 81, -TokenCppKind_Eq = 82, -TokenCppKind_PlusEq = 83, -TokenCppKind_MinusEq = 84, -TokenCppKind_StarEq = 85, -TokenCppKind_DivEq = 86, -TokenCppKind_ModEq = 87, -TokenCppKind_LeftLeftEq = 88, -TokenCppKind_RightRightEq = 89, -TokenCppKind_Comma = 90, -TokenCppKind_PPStringify = 91, -TokenCppKind_PPConcat = 92, -TokenCppKind_Void = 93, -TokenCppKind_Bool = 94, -TokenCppKind_Char = 95, -TokenCppKind_Int = 96, -TokenCppKind_Float = 97, -TokenCppKind_Double = 98, -TokenCppKind_Long = 99, -TokenCppKind_Short = 100, -TokenCppKind_Unsigned = 101, -TokenCppKind_Signed = 102, -TokenCppKind_Const = 103, -TokenCppKind_Volatile = 104, -TokenCppKind_Asm = 105, -TokenCppKind_Break = 106, -TokenCppKind_Case = 107, -TokenCppKind_Catch = 108, -TokenCppKind_Continue = 109, -TokenCppKind_Default = 110, -TokenCppKind_Do = 111, -TokenCppKind_Else = 112, -TokenCppKind_For = 113, -TokenCppKind_Goto = 114, -TokenCppKind_If = 115, -TokenCppKind_Return = 116, -TokenCppKind_Switch = 117, -TokenCppKind_Try = 118, -TokenCppKind_While = 119, -TokenCppKind_StaticAssert = 120, -TokenCppKind_ConstCast = 121, -TokenCppKind_DynamicCast = 122, -TokenCppKind_ReinterpretCast = 123, -TokenCppKind_StaticCast = 124, -TokenCppKind_Class = 125, -TokenCppKind_Enum = 126, -TokenCppKind_Struct = 127, -TokenCppKind_Typedef = 128, -TokenCppKind_Union = 129, -TokenCppKind_Template = 130, -TokenCppKind_Typename = 131, -TokenCppKind_Friend = 132, -TokenCppKind_Namespace = 133, -TokenCppKind_Private = 134, -TokenCppKind_Protected = 135, -TokenCppKind_Public = 136, -TokenCppKind_Using = 137, -TokenCppKind_Extern = 138, -TokenCppKind_Export = 139, -TokenCppKind_Inline = 140, -TokenCppKind_Static = 141, -TokenCppKind_Virtual = 142, -TokenCppKind_AlignAs = 143, -TokenCppKind_Explicit = 144, -TokenCppKind_NoExcept = 145, -TokenCppKind_NullPtr = 146, -TokenCppKind_Operator = 147, -TokenCppKind_Register = 148, -TokenCppKind_This = 149, -TokenCppKind_ThreadLocal = 150, -TokenCppKind_SizeOf = 151, -TokenCppKind_AlignOf = 152, -TokenCppKind_DeclType = 153, -TokenCppKind_TypeID = 154, -TokenCppKind_New = 155, -TokenCppKind_Delete = 156, -TokenCppKind_LiteralTrue = 157, -TokenCppKind_LiteralFalse = 158, -TokenCppKind_Identifier = 159, -TokenCppKind_PPInclude = 160, -TokenCppKind_PPVersion = 161, -TokenCppKind_PPDefine = 162, -TokenCppKind_PPUndef = 163, -TokenCppKind_PPIf = 164, -TokenCppKind_PPIfDef = 165, -TokenCppKind_PPIfNDef = 166, -TokenCppKind_PPElse = 167, -TokenCppKind_PPElIf = 168, -TokenCppKind_PPEndIf = 169, -TokenCppKind_PPError = 170, -TokenCppKind_PPImport = 171, -TokenCppKind_PPUsing = 172, -TokenCppKind_PPLine = 173, -TokenCppKind_PPPragma = 174, -TokenCppKind_PPUnknown = 175, -TokenCppKind_PPDefined = 176, -TokenCppKind_COUNT = 177, -}; -char *token_cpp_kind_names[] = { -"EOF", -"Whitespace", -"LexError", -"BlockComment", -"LineComment", -"Backslash", -"LiteralInteger", -"LiteralIntegerU", -"LiteralIntegerL", -"LiteralIntegerUL", -"LiteralIntegerLL", -"LiteralIntegerULL", -"LiteralIntegerHex", -"LiteralIntegerHexU", -"LiteralIntegerHexL", -"LiteralIntegerHexUL", -"LiteralIntegerHexLL", -"LiteralIntegerHexULL", -"LiteralIntegerOct", -"LiteralIntegerOctU", -"LiteralIntegerOctL", -"LiteralIntegerOctUL", -"LiteralIntegerOctLL", -"LiteralIntegerOctULL", -"LiteralFloat32", -"LiteralFloat64", -"LiteralString", -"LiteralStringWide", -"LiteralStringUTF8", -"LiteralStringUTF16", -"LiteralStringUTF32", -"LiteralStringRaw", -"LiteralStringWideRaw", -"LiteralStringUTF8Raw", -"LiteralStringUTF16Raw", -"LiteralStringUTF32Raw", -"LiteralCharacter", -"LiteralCharacterWide", -"LiteralCharacterUTF8", -"LiteralCharacterUTF16", -"LiteralCharacterUTF32", -"PPIncludeFile", -"PPErrorMessage", -"KeywordGeneric", -"BraceOp", -"BraceCl", -"ParenOp", -"BrackOp", -"ParenCl", -"BrackCl", -"Semicolon", -"Colon", -"DotDotDot", -"ColonColon", -"PlusPlus", -"MinusMinus", -"Dot", -"Arrow", -"Plus", -"Minus", -"Not", -"Tilde", -"Star", -"And", -"DotStar", -"ArrowStar", -"Div", -"Mod", -"LeftLeft", -"RightRight", -"Compare", -"Less", -"LessEq", -"Grtr", -"GrtrEq", -"EqEq", -"NotEq", -"Xor", -"Or", -"AndAnd", -"OrOr", -"Ternary", -"Eq", -"PlusEq", -"MinusEq", -"StarEq", -"DivEq", -"ModEq", -"LeftLeftEq", -"RightRightEq", -"Comma", -"PPStringify", -"PPConcat", -"Void", -"Bool", -"Char", -"Int", -"Float", -"Double", -"Long", -"Short", -"Unsigned", -"Signed", -"Const", -"Volatile", -"Asm", -"Break", -"Case", -"Catch", -"Continue", -"Default", -"Do", -"Else", -"For", -"Goto", -"If", -"Return", -"Switch", -"Try", -"While", -"StaticAssert", -"ConstCast", -"DynamicCast", -"ReinterpretCast", -"StaticCast", -"Class", -"Enum", -"Struct", -"Typedef", -"Union", -"Template", -"Typename", -"Friend", -"Namespace", -"Private", -"Protected", -"Public", -"Using", -"Extern", -"Export", -"Inline", -"Static", -"Virtual", -"AlignAs", -"Explicit", -"NoExcept", -"NullPtr", -"Operator", -"Register", -"This", -"ThreadLocal", -"SizeOf", -"AlignOf", -"DeclType", -"TypeID", -"New", -"Delete", -"LiteralTrue", -"LiteralFalse", -"Identifier", -"PPInclude", -"PPVersion", -"PPDefine", -"PPUndef", -"PPIf", -"PPIfDef", -"PPIfNDef", -"PPElse", -"PPElIf", -"PPEndIf", -"PPError", -"PPImport", -"PPUsing", -"PPLine", -"PPPragma", -"PPUnknown", -"PPDefined", -}; diff --git a/code/custom/generated/managed_id_metadata.cpp b/code/custom/generated/managed_id_metadata.cpp deleted file mode 100644 index 99cfdce4..00000000 --- a/code/custom/generated/managed_id_metadata.cpp +++ /dev/null @@ -1,65 +0,0 @@ -function void -initialize_managed_id_metadata(Application_Links *app){ -defcolor_bar = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_bar")); -defcolor_base = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_base")); -defcolor_pop1 = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_pop1")); -defcolor_pop2 = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_pop2")); -defcolor_back = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_back")); -defcolor_margin = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_margin")); -defcolor_margin_hover = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_margin_hover")); -defcolor_margin_active = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_margin_active")); -defcolor_list_item = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_list_item")); -defcolor_list_item_hover = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_list_item_hover")); -defcolor_list_item_active = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_list_item_active")); -defcolor_cursor = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_cursor")); -defcolor_at_cursor = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_at_cursor")); -defcolor_highlight_cursor_line = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_highlight_cursor_line")); -defcolor_highlight = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_highlight")); -defcolor_at_highlight = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_at_highlight")); -defcolor_mark = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_mark")); -defcolor_text_default = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_text_default")); -defcolor_comment = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_comment")); -defcolor_comment_pop = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_comment_pop")); -defcolor_keyword = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_keyword")); -defcolor_str_constant = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_str_constant")); -defcolor_char_constant = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_char_constant")); -defcolor_int_constant = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_int_constant")); -defcolor_float_constant = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_float_constant")); -defcolor_bool_constant = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_bool_constant")); -defcolor_preproc = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_preproc")); -defcolor_include = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_include")); -defcolor_special_character = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_special_character")); -defcolor_ghost_character = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_ghost_character")); -defcolor_highlight_junk = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_highlight_junk")); -defcolor_highlight_white = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_highlight_white")); -defcolor_paste = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_paste")); -defcolor_undo = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_undo")); -defcolor_back_cycle = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_back_cycle")); -defcolor_text_cycle = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_text_cycle")); -defcolor_line_numbers_back = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_line_numbers_back")); -defcolor_line_numbers_text = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_line_numbers_text")); -defcolor_function = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_function")); -defcolor_operator = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_operator")); -defcolor_type = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_type")); -defcolor_macro = managed_id_declare(app, string_u8_litexpr("colors"), string_u8_litexpr("defcolor_macro")); -view_rewrite_loc = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_rewrite_loc")); -view_next_rewrite_loc = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_next_rewrite_loc")); -view_paste_index_loc = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_paste_index_loc")); -view_is_passive_loc = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_is_passive_loc")); -view_snap_mark_to_cursor = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_snap_mark_to_cursor")); -view_ui_data = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_ui_data")); -view_highlight_range = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_highlight_range")); -view_highlight_buffer = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_highlight_buffer")); -view_render_hook = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_render_hook")); -view_word_complete_menu = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_word_complete_menu")); -view_lister_loc = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_lister_loc")); -view_previous_buffer = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("view_previous_buffer")); -buffer_map_id = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("buffer_map_id")); -buffer_eol_setting = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("buffer_eol_setting")); -buffer_lex_task = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("buffer_lex_task")); -buffer_wrap_lines = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("buffer_wrap_lines")); -sticky_jump_marker_handle = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("sticky_jump_marker_handle")); -attachment_tokens = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("attachment_tokens")); -loco_marker_handle = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("loco_marker_handle")); -loco_marker_pair_handle = managed_id_declare(app, string_u8_litexpr("attachment"), string_u8_litexpr("loco_marker_pair_handle")); -} diff --git a/code/custom/generated/system_api.cpp b/code/custom/generated/system_api.cpp deleted file mode 100644 index 5494dd8d..00000000 --- a/code/custom/generated/system_api.cpp +++ /dev/null @@ -1,126 +0,0 @@ -/* Generated by "code/4ed_system_api.cpp" */ - -function void -system_api_fill_vtable(API_VTable_system *vtable){ - vtable->error_box = system_error_box; - vtable->get_path = system_get_path; - vtable->get_canonical = system_get_canonical; - vtable->get_file_list = system_get_file_list; - vtable->quick_file_attributes = system_quick_file_attributes; - vtable->load_handle = system_load_handle; - vtable->load_attributes = system_load_attributes; - vtable->load_file = system_load_file; - vtable->load_close = system_load_close; - vtable->save_file = system_save_file; - vtable->load_library = system_load_library; - vtable->release_library = system_release_library; - vtable->get_proc = system_get_proc; - 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_release = system_wake_up_timer_release; - vtable->wake_up_timer_set = system_wake_up_timer_set; - vtable->signal_step = system_signal_step; - vtable->sleep = system_sleep; - vtable->get_clipboard = system_get_clipboard; - vtable->post_clipboard = system_post_clipboard; - vtable->set_clipboard_catch_all = system_set_clipboard_catch_all; - vtable->get_clipboard_catch_all = system_get_clipboard_catch_all; - vtable->cli_call = system_cli_call; - vtable->cli_begin_update = system_cli_begin_update; - vtable->cli_update_step = system_cli_update_step; - vtable->cli_end_update = system_cli_end_update; - vtable->open_color_picker = system_open_color_picker; - vtable->get_screen_scale_factor = system_get_screen_scale_factor; - vtable->thread_launch = system_thread_launch; - vtable->thread_join = system_thread_join; - vtable->thread_free = system_thread_free; - vtable->thread_get_id = system_thread_get_id; - vtable->acquire_global_frame_mutex = system_acquire_global_frame_mutex; - vtable->release_global_frame_mutex = system_release_global_frame_mutex; - vtable->mutex_make = system_mutex_make; - vtable->mutex_acquire = system_mutex_acquire; - vtable->mutex_release = system_mutex_release; - vtable->mutex_free = system_mutex_free; - vtable->condition_variable_make = system_condition_variable_make; - vtable->condition_variable_wait = system_condition_variable_wait; - vtable->condition_variable_signal = system_condition_variable_signal; - vtable->condition_variable_free = system_condition_variable_free; - vtable->memory_allocate = system_memory_allocate; - vtable->memory_set_protection = system_memory_set_protection; - vtable->memory_free = system_memory_free; - vtable->memory_annotation = system_memory_annotation; - vtable->show_mouse_cursor = system_show_mouse_cursor; - vtable->set_fullscreen = system_set_fullscreen; - vtable->is_fullscreen = system_is_fullscreen; - vtable->get_keyboard_modifiers = system_get_keyboard_modifiers; - vtable->set_key_mode = system_set_key_mode; - vtable->set_source_mixer = system_set_source_mixer; - vtable->set_destination_mixer = system_set_destination_mixer; -} - -#if defined(DYNAMIC_LINK_API) -function void -system_api_read_vtable(API_VTable_system *vtable){ - system_error_box = vtable->error_box; - system_get_path = vtable->get_path; - system_get_canonical = vtable->get_canonical; - system_get_file_list = vtable->get_file_list; - system_quick_file_attributes = vtable->quick_file_attributes; - system_load_handle = vtable->load_handle; - system_load_attributes = vtable->load_attributes; - system_load_file = vtable->load_file; - system_load_close = vtable->load_close; - system_save_file = vtable->save_file; - system_load_library = vtable->load_library; - system_release_library = vtable->release_library; - system_get_proc = vtable->get_proc; - 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_release = vtable->wake_up_timer_release; - system_wake_up_timer_set = vtable->wake_up_timer_set; - system_signal_step = vtable->signal_step; - system_sleep = vtable->sleep; - system_get_clipboard = vtable->get_clipboard; - system_post_clipboard = vtable->post_clipboard; - system_set_clipboard_catch_all = vtable->set_clipboard_catch_all; - system_get_clipboard_catch_all = vtable->get_clipboard_catch_all; - system_cli_call = vtable->cli_call; - system_cli_begin_update = vtable->cli_begin_update; - system_cli_update_step = vtable->cli_update_step; - system_cli_end_update = vtable->cli_end_update; - system_open_color_picker = vtable->open_color_picker; - system_get_screen_scale_factor = vtable->get_screen_scale_factor; - system_thread_launch = vtable->thread_launch; - system_thread_join = vtable->thread_join; - system_thread_free = vtable->thread_free; - system_thread_get_id = vtable->thread_get_id; - system_acquire_global_frame_mutex = vtable->acquire_global_frame_mutex; - system_release_global_frame_mutex = vtable->release_global_frame_mutex; - system_mutex_make = vtable->mutex_make; - system_mutex_acquire = vtable->mutex_acquire; - system_mutex_release = vtable->mutex_release; - system_mutex_free = vtable->mutex_free; - system_condition_variable_make = vtable->condition_variable_make; - system_condition_variable_wait = vtable->condition_variable_wait; - system_condition_variable_signal = vtable->condition_variable_signal; - system_condition_variable_free = vtable->condition_variable_free; - system_memory_allocate = vtable->memory_allocate; - system_memory_set_protection = vtable->memory_set_protection; - system_memory_free = vtable->memory_free; - system_memory_annotation = vtable->memory_annotation; - system_show_mouse_cursor = vtable->show_mouse_cursor; - system_set_fullscreen = vtable->set_fullscreen; - system_is_fullscreen = vtable->is_fullscreen; - system_get_keyboard_modifiers = vtable->get_keyboard_modifiers; - system_set_key_mode = vtable->set_key_mode; - system_set_source_mixer = vtable->set_source_mixer; - system_set_destination_mixer = vtable->set_destination_mixer; -} -#undef DYNAMIC_LINK_API -#endif diff --git a/code/custom/generated/system_api.h b/code/custom/generated/system_api.h deleted file mode 100644 index 73809bcf..00000000 --- a/code/custom/generated/system_api.h +++ /dev/null @@ -1,298 +0,0 @@ -/* Generated by "code/4ed_system_api.cpp" */ - -#define system_error_box_sig() void system_error_box(char* msg) -#define system_get_path_sig() String_Const_u8 system_get_path(Arena* arena, System_Path_Code path_code) -#define system_get_canonical_sig() String_Const_u8 system_get_canonical(Arena* arena, String_Const_u8 name) -#define system_get_file_list_sig() File_List system_get_file_list(Arena* arena, String_Const_u8 directory) -#define system_quick_file_attributes_sig() File_Attributes system_quick_file_attributes(Arena* scratch, String_Const_u8 file_name) -#define system_load_handle_sig() b32 system_load_handle(Arena* scratch, char* file_name, Plat_Handle* out) -#define system_load_attributes_sig() File_Attributes system_load_attributes(Plat_Handle handle) -#define system_load_file_sig() b32 system_load_file(Plat_Handle handle, char* buffer, u32 size) -#define system_load_close_sig() b32 system_load_close(Plat_Handle handle) -#define system_save_file_sig() File_Attributes system_save_file(Arena* scratch, char* file_name, String_Const_u8 data) -#define system_load_library_sig() b32 system_load_library(Arena* scratch, String_Const_u8 file_name, System_Library* out) -#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_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_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_signal_step_sig() void system_signal_step(u32 code) -#define system_sleep_sig() void system_sleep(u64 microseconds) -#define system_get_clipboard_sig() String_Const_u8 system_get_clipboard(Arena* arena, i32 index) -#define system_post_clipboard_sig() void system_post_clipboard(String_Const_u8 str, i32 index) -#define system_set_clipboard_catch_all_sig() void system_set_clipboard_catch_all(b32 enabled) -#define system_get_clipboard_catch_all_sig() b32 system_get_clipboard_catch_all(void) -#define system_cli_call_sig() b32 system_cli_call(Arena* scratch, char* path, char* script, CLI_Handles* cli_out) -#define system_cli_begin_update_sig() void system_cli_begin_update(CLI_Handles* cli) -#define system_cli_update_step_sig() b32 system_cli_update_step(CLI_Handles* cli, char* dest, u32 max, u32* amount) -#define system_cli_end_update_sig() b32 system_cli_end_update(CLI_Handles* cli) -#define system_open_color_picker_sig() void system_open_color_picker(Color_Picker* picker) -#define system_get_screen_scale_factor_sig() f32 system_get_screen_scale_factor(void) -#define system_thread_launch_sig() System_Thread system_thread_launch(Thread_Function* proc, void* ptr) -#define system_thread_join_sig() void system_thread_join(System_Thread thread) -#define system_thread_free_sig() void system_thread_free(System_Thread thread) -#define system_thread_get_id_sig() i32 system_thread_get_id(void) -#define system_acquire_global_frame_mutex_sig() void system_acquire_global_frame_mutex(Thread_Context* tctx) -#define system_release_global_frame_mutex_sig() void system_release_global_frame_mutex(Thread_Context* tctx) -#define system_mutex_make_sig() System_Mutex system_mutex_make(void) -#define system_mutex_acquire_sig() void system_mutex_acquire(System_Mutex mutex) -#define system_mutex_release_sig() void system_mutex_release(System_Mutex mutex) -#define system_mutex_free_sig() void system_mutex_free(System_Mutex mutex) -#define system_condition_variable_make_sig() System_Condition_Variable system_condition_variable_make(void) -#define system_condition_variable_wait_sig() void system_condition_variable_wait(System_Condition_Variable cv, System_Mutex mutex) -#define system_condition_variable_signal_sig() void system_condition_variable_signal(System_Condition_Variable cv) -#define system_condition_variable_free_sig() void system_condition_variable_free(System_Condition_Variable cv) -#define system_memory_allocate_sig() void* system_memory_allocate(u64 size, String_Const_u8 location) -#define system_memory_set_protection_sig() b32 system_memory_set_protection(void* ptr, u64 size, u32 flags) -#define system_memory_free_sig() void system_memory_free(void* ptr, u64 size) -#define system_memory_annotation_sig() Memory_Annotation system_memory_annotation(Arena* arena) -#define system_show_mouse_cursor_sig() void system_show_mouse_cursor(i32 show) -#define system_set_fullscreen_sig() b32 system_set_fullscreen(b32 full_screen) -#define system_is_fullscreen_sig() b32 system_is_fullscreen(void) -#define system_get_keyboard_modifiers_sig() Input_Modifier_Set system_get_keyboard_modifiers(Arena* arena) -#define system_set_key_mode_sig() void system_set_key_mode(Key_Mode mode) -#define system_set_source_mixer_sig() void system_set_source_mixer(void* ctx, Audio_Mix_Sources_Function* mix_func) -#define system_set_destination_mixer_sig() void system_set_destination_mixer(Audio_Mix_Destination_Function* mix_func) - -typedef void system_error_box_type(char* msg); -typedef String_Const_u8 system_get_path_type(Arena* arena, System_Path_Code path_code); -typedef String_Const_u8 system_get_canonical_type(Arena* arena, String_Const_u8 name); -typedef File_List system_get_file_list_type(Arena* arena, String_Const_u8 directory); -typedef File_Attributes system_quick_file_attributes_type(Arena* scratch, String_Const_u8 file_name); -typedef b32 system_load_handle_type(Arena* scratch, char* file_name, Plat_Handle* out); -typedef File_Attributes system_load_attributes_type(Plat_Handle handle); -typedef b32 system_load_file_type(Plat_Handle handle, char* buffer, u32 size); -typedef b32 system_load_close_type(Plat_Handle handle); -typedef File_Attributes system_save_file_type(Arena* scratch, char* file_name, String_Const_u8 data); -typedef b32 system_load_library_type(Arena* scratch, String_Const_u8 file_name, System_Library* out); -typedef b32 system_release_library_type(System_Library handle); -typedef Void_Func* system_get_proc_type(System_Library handle, char* proc_name); -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 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_signal_step_type(u32 code); -typedef void system_sleep_type(u64 microseconds); -typedef String_Const_u8 system_get_clipboard_type(Arena* arena, i32 index); -typedef void system_post_clipboard_type(String_Const_u8 str, i32 index); -typedef void system_set_clipboard_catch_all_type(b32 enabled); -typedef b32 system_get_clipboard_catch_all_type(void); -typedef b32 system_cli_call_type(Arena* scratch, char* path, char* script, CLI_Handles* cli_out); -typedef void system_cli_begin_update_type(CLI_Handles* cli); -typedef b32 system_cli_update_step_type(CLI_Handles* cli, char* dest, u32 max, u32* amount); -typedef b32 system_cli_end_update_type(CLI_Handles* cli); -typedef void system_open_color_picker_type(Color_Picker* picker); -typedef f32 system_get_screen_scale_factor_type(void); -typedef System_Thread system_thread_launch_type(Thread_Function* proc, void* ptr); -typedef void system_thread_join_type(System_Thread thread); -typedef void system_thread_free_type(System_Thread thread); -typedef i32 system_thread_get_id_type(void); -typedef void system_acquire_global_frame_mutex_type(Thread_Context* tctx); -typedef void system_release_global_frame_mutex_type(Thread_Context* tctx); -typedef System_Mutex system_mutex_make_type(void); -typedef void system_mutex_acquire_type(System_Mutex mutex); -typedef void system_mutex_release_type(System_Mutex mutex); -typedef void system_mutex_free_type(System_Mutex mutex); -typedef System_Condition_Variable system_condition_variable_make_type(void); -typedef void system_condition_variable_wait_type(System_Condition_Variable cv, System_Mutex mutex); -typedef void system_condition_variable_signal_type(System_Condition_Variable cv); -typedef void system_condition_variable_free_type(System_Condition_Variable cv); -typedef void* system_memory_allocate_type(u64 size, String_Const_u8 location); -typedef b32 system_memory_set_protection_type(void* ptr, u64 size, u32 flags); -typedef void system_memory_free_type(void* ptr, u64 size); -typedef Memory_Annotation system_memory_annotation_type(Arena* arena); -typedef void system_show_mouse_cursor_type(i32 show); -typedef b32 system_set_fullscreen_type(b32 full_screen); -typedef b32 system_is_fullscreen_type(void); -typedef Input_Modifier_Set system_get_keyboard_modifiers_type(Arena* arena); -typedef void system_set_key_mode_type(Key_Mode mode); -typedef void system_set_source_mixer_type(void* ctx, Audio_Mix_Sources_Function* mix_func); -typedef void system_set_destination_mixer_type(Audio_Mix_Destination_Function* mix_func); - -struct API_VTable_system{ - system_error_box_type *error_box; - system_get_path_type *get_path; - system_get_canonical_type *get_canonical; - system_get_file_list_type *get_file_list; - system_quick_file_attributes_type *quick_file_attributes; - system_load_handle_type *load_handle; - system_load_attributes_type *load_attributes; - system_load_file_type *load_file; - system_load_close_type *load_close; - system_save_file_type *save_file; - system_load_library_type *load_library; - system_release_library_type *release_library; - system_get_proc_type *get_proc; - 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_release_type *wake_up_timer_release; - system_wake_up_timer_set_type *wake_up_timer_set; - system_signal_step_type *signal_step; - system_sleep_type *sleep; - system_get_clipboard_type *get_clipboard; - system_post_clipboard_type *post_clipboard; - system_set_clipboard_catch_all_type *set_clipboard_catch_all; - system_get_clipboard_catch_all_type *get_clipboard_catch_all; - system_cli_call_type *cli_call; - system_cli_begin_update_type *cli_begin_update; - system_cli_update_step_type *cli_update_step; - system_cli_end_update_type *cli_end_update; - system_open_color_picker_type *open_color_picker; - system_get_screen_scale_factor_type *get_screen_scale_factor; - system_thread_launch_type *thread_launch; - system_thread_join_type *thread_join; - system_thread_free_type *thread_free; - system_thread_get_id_type *thread_get_id; - system_acquire_global_frame_mutex_type *acquire_global_frame_mutex; - system_release_global_frame_mutex_type *release_global_frame_mutex; - system_mutex_make_type *mutex_make; - system_mutex_acquire_type *mutex_acquire; - system_mutex_release_type *mutex_release; - system_mutex_free_type *mutex_free; - system_condition_variable_make_type *condition_variable_make; - system_condition_variable_wait_type *condition_variable_wait; - system_condition_variable_signal_type *condition_variable_signal; - system_condition_variable_free_type *condition_variable_free; - system_memory_allocate_type *memory_allocate; - system_memory_set_protection_type *memory_set_protection; - system_memory_free_type *memory_free; - system_memory_annotation_type *memory_annotation; - system_show_mouse_cursor_type *show_mouse_cursor; - system_set_fullscreen_type *set_fullscreen; - system_is_fullscreen_type *is_fullscreen; - system_get_keyboard_modifiers_type *get_keyboard_modifiers; - system_set_key_mode_type *set_key_mode; - system_set_source_mixer_type *set_source_mixer; - system_set_destination_mixer_type *set_destination_mixer; -}; - -#if defined(STATIC_LINK_API) -internal void system_error_box(char* msg); -internal String_Const_u8 system_get_path(Arena* arena, System_Path_Code path_code); -internal String_Const_u8 system_get_canonical(Arena* arena, String_Const_u8 name); -internal File_List system_get_file_list(Arena* arena, String_Const_u8 directory); -internal File_Attributes system_quick_file_attributes(Arena* scratch, String_Const_u8 file_name); -internal b32 system_load_handle(Arena* scratch, char* file_name, Plat_Handle* out); -internal File_Attributes system_load_attributes(Plat_Handle handle); -internal b32 system_load_file(Plat_Handle handle, char* buffer, u32 size); -internal b32 system_load_close(Plat_Handle handle); -internal File_Attributes system_save_file(Arena* scratch, char* file_name, String_Const_u8 data); -internal b32 system_load_library(Arena* scratch, String_Const_u8 file_name, System_Library* out); -internal b32 system_release_library(System_Library handle); -internal Void_Func* system_get_proc(System_Library handle, char* proc_name); -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 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_signal_step(u32 code); -internal void system_sleep(u64 microseconds); -internal String_Const_u8 system_get_clipboard(Arena* arena, i32 index); -internal void system_post_clipboard(String_Const_u8 str, i32 index); -internal void system_set_clipboard_catch_all(b32 enabled); -internal b32 system_get_clipboard_catch_all(void); -internal b32 system_cli_call(Arena* scratch, char* path, char* script, CLI_Handles* cli_out); -internal void system_cli_begin_update(CLI_Handles* cli); -internal b32 system_cli_update_step(CLI_Handles* cli, char* dest, u32 max, u32* amount); -internal b32 system_cli_end_update(CLI_Handles* cli); -internal void system_open_color_picker(Color_Picker* picker); -internal f32 system_get_screen_scale_factor(void); -internal System_Thread system_thread_launch(Thread_Function* proc, void* ptr); -internal void system_thread_join(System_Thread thread); -internal void system_thread_free(System_Thread thread); -internal i32 system_thread_get_id(void); -internal void system_acquire_global_frame_mutex(Thread_Context* tctx); -internal void system_release_global_frame_mutex(Thread_Context* tctx); -internal System_Mutex system_mutex_make(void); -internal void system_mutex_acquire(System_Mutex mutex); -internal void system_mutex_release(System_Mutex mutex); -internal void system_mutex_free(System_Mutex mutex); -internal System_Condition_Variable system_condition_variable_make(void); -internal void system_condition_variable_wait(System_Condition_Variable cv, System_Mutex mutex); -internal void system_condition_variable_signal(System_Condition_Variable cv); -internal void system_condition_variable_free(System_Condition_Variable cv); -internal void* system_memory_allocate(u64 size, String_Const_u8 location); -internal b32 system_memory_set_protection(void* ptr, u64 size, u32 flags); -internal void system_memory_free(void* ptr, u64 size); -internal Memory_Annotation system_memory_annotation(Arena* arena); -internal void system_show_mouse_cursor(i32 show); -internal b32 system_set_fullscreen(b32 full_screen); -internal b32 system_is_fullscreen(void); -internal Input_Modifier_Set system_get_keyboard_modifiers(Arena* arena); -internal void system_set_key_mode(Key_Mode mode); -internal void system_set_source_mixer(void* ctx, Audio_Mix_Sources_Function* mix_func); -internal void system_set_destination_mixer(Audio_Mix_Destination_Function* mix_func); -#undef STATIC_LINK_API - -#elif defined(DYNAMIC_LINK_API) -global system_error_box_type *system_error_box = 0; -global system_get_path_type *system_get_path = 0; -global system_get_canonical_type *system_get_canonical = 0; -global system_get_file_list_type *system_get_file_list = 0; -global system_quick_file_attributes_type *system_quick_file_attributes = 0; -global system_load_handle_type *system_load_handle = 0; -global system_load_attributes_type *system_load_attributes = 0; -global system_load_file_type *system_load_file = 0; -global system_load_close_type *system_load_close = 0; -global system_save_file_type *system_save_file = 0; -global system_load_library_type *system_load_library = 0; -global system_release_library_type *system_release_library = 0; -global system_get_proc_type *system_get_proc = 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_release_type *system_wake_up_timer_release = 0; -global system_wake_up_timer_set_type *system_wake_up_timer_set = 0; -global system_signal_step_type *system_signal_step = 0; -global system_sleep_type *system_sleep = 0; -global system_get_clipboard_type *system_get_clipboard = 0; -global system_post_clipboard_type *system_post_clipboard = 0; -global system_set_clipboard_catch_all_type *system_set_clipboard_catch_all = 0; -global system_get_clipboard_catch_all_type *system_get_clipboard_catch_all = 0; -global system_cli_call_type *system_cli_call = 0; -global system_cli_begin_update_type *system_cli_begin_update = 0; -global system_cli_update_step_type *system_cli_update_step = 0; -global system_cli_end_update_type *system_cli_end_update = 0; -global system_open_color_picker_type *system_open_color_picker = 0; -global system_get_screen_scale_factor_type *system_get_screen_scale_factor = 0; -global system_thread_launch_type *system_thread_launch = 0; -global system_thread_join_type *system_thread_join = 0; -global system_thread_free_type *system_thread_free = 0; -global system_thread_get_id_type *system_thread_get_id = 0; -global system_acquire_global_frame_mutex_type *system_acquire_global_frame_mutex = 0; -global system_release_global_frame_mutex_type *system_release_global_frame_mutex = 0; -global system_mutex_make_type *system_mutex_make = 0; -global system_mutex_acquire_type *system_mutex_acquire = 0; -global system_mutex_release_type *system_mutex_release = 0; -global system_mutex_free_type *system_mutex_free = 0; -global system_condition_variable_make_type *system_condition_variable_make = 0; -global system_condition_variable_wait_type *system_condition_variable_wait = 0; -global system_condition_variable_signal_type *system_condition_variable_signal = 0; -global system_condition_variable_free_type *system_condition_variable_free = 0; -global system_memory_allocate_type *system_memory_allocate = 0; -global system_memory_set_protection_type *system_memory_set_protection = 0; -global system_memory_free_type *system_memory_free = 0; -global system_memory_annotation_type *system_memory_annotation = 0; -global system_show_mouse_cursor_type *system_show_mouse_cursor = 0; -global system_set_fullscreen_type *system_set_fullscreen = 0; -global system_is_fullscreen_type *system_is_fullscreen = 0; -global system_get_keyboard_modifiers_type *system_get_keyboard_modifiers = 0; -global system_set_key_mode_type *system_set_key_mode = 0; -global system_set_source_mixer_type *system_set_source_mixer = 0; -global system_set_destination_mixer_type *system_set_destination_mixer = 0; -#undef DYNAMIC_LINK_API -#endif diff --git a/code/custom/generated/system_api_constructor.cpp b/code/custom/generated/system_api_constructor.cpp deleted file mode 100644 index 351c3054..00000000 --- a/code/custom/generated/system_api_constructor.cpp +++ /dev/null @@ -1,264 +0,0 @@ -/* Generated by "code/4ed_system_api.cpp" */ - -function API_Definition* -system_api_construct(Arena *arena){ - API_Definition *result = begin_api(arena, "system"); - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("error_box"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "char*", "msg"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_path"), string_u8_litexpr("String_Const_u8"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "arena"); - api_param(arena, call, "System_Path_Code", "path_code"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_canonical"), string_u8_litexpr("String_Const_u8"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "arena"); - api_param(arena, call, "String_Const_u8", "name"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_file_list"), string_u8_litexpr("File_List"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "arena"); - api_param(arena, call, "String_Const_u8", "directory"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("quick_file_attributes"), string_u8_litexpr("File_Attributes"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "scratch"); - api_param(arena, call, "String_Const_u8", "file_name"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("load_handle"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "scratch"); - api_param(arena, call, "char*", "file_name"); - api_param(arena, call, "Plat_Handle*", "out"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("load_attributes"), string_u8_litexpr("File_Attributes"), string_u8_litexpr("")); - api_param(arena, call, "Plat_Handle", "handle"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("load_file"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Plat_Handle", "handle"); - api_param(arena, call, "char*", "buffer"); - api_param(arena, call, "u32", "size"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("load_close"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Plat_Handle", "handle"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("save_file"), string_u8_litexpr("File_Attributes"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "scratch"); - api_param(arena, call, "char*", "file_name"); - api_param(arena, call, "String_Const_u8", "data"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("load_library"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "scratch"); - api_param(arena, call, "String_Const_u8", "file_name"); - api_param(arena, call, "System_Library*", "out"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("release_library"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "System_Library", "handle"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_proc"), string_u8_litexpr("Void_Func*"), string_u8_litexpr("")); - api_param(arena, call, "System_Library", "handle"); - api_param(arena, call, "char*", "proc_name"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("now_time"), string_u8_litexpr("u64"), string_u8_litexpr("")); - (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("")); - (void)call; - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("wake_up_timer_release"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Plat_Handle", "handle"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("wake_up_timer_set"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Plat_Handle", "handle"); - api_param(arena, call, "u32", "time_milliseconds"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("signal_step"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "u32", "code"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("sleep"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "u64", "microseconds"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_clipboard"), string_u8_litexpr("String_Const_u8"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "arena"); - api_param(arena, call, "i32", "index"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("post_clipboard"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "String_Const_u8", "str"); - api_param(arena, call, "i32", "index"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_clipboard_catch_all"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "b32", "enabled"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_clipboard_catch_all"), string_u8_litexpr("b32"), string_u8_litexpr("")); - (void)call; - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("cli_call"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "scratch"); - api_param(arena, call, "char*", "path"); - api_param(arena, call, "char*", "script"); - api_param(arena, call, "CLI_Handles*", "cli_out"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("cli_begin_update"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "CLI_Handles*", "cli"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("cli_update_step"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "CLI_Handles*", "cli"); - api_param(arena, call, "char*", "dest"); - api_param(arena, call, "u32", "max"); - api_param(arena, call, "u32*", "amount"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("cli_end_update"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "CLI_Handles*", "cli"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("open_color_picker"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Color_Picker*", "picker"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_screen_scale_factor"), string_u8_litexpr("f32"), string_u8_litexpr("")); - (void)call; - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("thread_launch"), string_u8_litexpr("System_Thread"), string_u8_litexpr("")); - api_param(arena, call, "Thread_Function*", "proc"); - api_param(arena, call, "void*", "ptr"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("thread_join"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "System_Thread", "thread"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("thread_free"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "System_Thread", "thread"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("thread_get_id"), string_u8_litexpr("i32"), string_u8_litexpr("")); - (void)call; - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("acquire_global_frame_mutex"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Thread_Context*", "tctx"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("release_global_frame_mutex"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Thread_Context*", "tctx"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("mutex_make"), string_u8_litexpr("System_Mutex"), string_u8_litexpr("")); - (void)call; - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("mutex_acquire"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "System_Mutex", "mutex"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("mutex_release"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "System_Mutex", "mutex"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("mutex_free"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "System_Mutex", "mutex"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("condition_variable_make"), string_u8_litexpr("System_Condition_Variable"), string_u8_litexpr("")); - (void)call; - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("condition_variable_wait"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "System_Condition_Variable", "cv"); - api_param(arena, call, "System_Mutex", "mutex"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("condition_variable_signal"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "System_Condition_Variable", "cv"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("condition_variable_free"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "System_Condition_Variable", "cv"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("memory_allocate"), string_u8_litexpr("void*"), string_u8_litexpr("")); - api_param(arena, call, "u64", "size"); - api_param(arena, call, "String_Const_u8", "location"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("memory_set_protection"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "void*", "ptr"); - api_param(arena, call, "u64", "size"); - api_param(arena, call, "u32", "flags"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("memory_free"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "void*", "ptr"); - api_param(arena, call, "u64", "size"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("memory_annotation"), string_u8_litexpr("Memory_Annotation"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "arena"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("show_mouse_cursor"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "i32", "show"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_fullscreen"), string_u8_litexpr("b32"), string_u8_litexpr("")); - api_param(arena, call, "b32", "full_screen"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("is_fullscreen"), string_u8_litexpr("b32"), string_u8_litexpr("")); - (void)call; - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("get_keyboard_modifiers"), string_u8_litexpr("Input_Modifier_Set"), string_u8_litexpr("")); - api_param(arena, call, "Arena*", "arena"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_key_mode"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Key_Mode", "mode"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_source_mixer"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "void*", "ctx"); - api_param(arena, call, "Audio_Mix_Sources_Function*", "mix_func"); - } - { - API_Call *call = api_call_with_location(arena, result, string_u8_litexpr("set_destination_mixer"), string_u8_litexpr("void"), string_u8_litexpr("")); - api_param(arena, call, "Audio_Mix_Destination_Function*", "mix_func"); - } - return(result); -} diff --git a/code/custom/generated/system_api_master_list.h b/code/custom/generated/system_api_master_list.h deleted file mode 100644 index fc9f7620..00000000 --- a/code/custom/generated/system_api_master_list.h +++ /dev/null @@ -1,59 +0,0 @@ -/* Generated by "code/4ed_system_api.cpp" */ - -api(system) function void error_box(char* msg); -api(system) function String_Const_u8 get_path(Arena* arena, System_Path_Code path_code); -api(system) function String_Const_u8 get_canonical(Arena* arena, String_Const_u8 name); -api(system) function File_List get_file_list(Arena* arena, String_Const_u8 directory); -api(system) function File_Attributes quick_file_attributes(Arena* scratch, String_Const_u8 file_name); -api(system) function b32 load_handle(Arena* scratch, char* file_name, Plat_Handle* out); -api(system) function File_Attributes load_attributes(Plat_Handle handle); -api(system) function b32 load_file(Plat_Handle handle, char* buffer, u32 size); -api(system) function b32 load_close(Plat_Handle handle); -api(system) function File_Attributes save_file(Arena* scratch, char* file_name, String_Const_u8 data); -api(system) function b32 load_library(Arena* scratch, String_Const_u8 file_name, System_Library* out); -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 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 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 signal_step(u32 code); -api(system) function void sleep(u64 microseconds); -api(system) function String_Const_u8 get_clipboard(Arena* arena, i32 index); -api(system) function void post_clipboard(String_Const_u8 str, i32 index); -api(system) function void set_clipboard_catch_all(b32 enabled); -api(system) function b32 get_clipboard_catch_all(void); -api(system) function b32 cli_call(Arena* scratch, char* path, char* script, CLI_Handles* cli_out); -api(system) function void cli_begin_update(CLI_Handles* cli); -api(system) function b32 cli_update_step(CLI_Handles* cli, char* dest, u32 max, u32* amount); -api(system) function b32 cli_end_update(CLI_Handles* cli); -api(system) function void open_color_picker(Color_Picker* picker); -api(system) function f32 get_screen_scale_factor(void); -api(system) function System_Thread thread_launch(Thread_Function* proc, void* ptr); -api(system) function void thread_join(System_Thread thread); -api(system) function void thread_free(System_Thread thread); -api(system) function i32 thread_get_id(void); -api(system) function void acquire_global_frame_mutex(Thread_Context* tctx); -api(system) function void release_global_frame_mutex(Thread_Context* tctx); -api(system) function System_Mutex mutex_make(void); -api(system) function void mutex_acquire(System_Mutex mutex); -api(system) function void mutex_release(System_Mutex mutex); -api(system) function void mutex_free(System_Mutex mutex); -api(system) function System_Condition_Variable condition_variable_make(void); -api(system) function void condition_variable_wait(System_Condition_Variable cv, System_Mutex mutex); -api(system) function void condition_variable_signal(System_Condition_Variable cv); -api(system) function void condition_variable_free(System_Condition_Variable cv); -api(system) function void* memory_allocate(u64 size, String_Const_u8 location); -api(system) function b32 memory_set_protection(void* ptr, u64 size, u32 flags); -api(system) function void memory_free(void* ptr, u64 size); -api(system) function Memory_Annotation memory_annotation(Arena* arena); -api(system) function void show_mouse_cursor(i32 show); -api(system) function b32 set_fullscreen(b32 full_screen); -api(system) function b32 is_fullscreen(void); -api(system) function Input_Modifier_Set get_keyboard_modifiers(Arena* arena); -api(system) function void set_key_mode(Key_Mode mode); -api(system) function void set_source_mixer(void* ctx, Audio_Mix_Sources_Function* mix_func); -api(system) function void set_destination_mixer(Audio_Mix_Destination_Function* mix_func);