2018-05-12 00:53:02 +00:00
|
|
|
/*
|
|
|
|
4coder_default_framework_variables.cpp - Declares the global variables used by the framework for
|
|
|
|
the default 4coder behavior.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
2019-11-24 23:13:51 +00:00
|
|
|
CUSTOM_ID(attachment, view_rewrite_loc);
|
|
|
|
CUSTOM_ID(attachment, view_next_rewrite_loc);
|
|
|
|
CUSTOM_ID(attachment, view_paste_index_loc);
|
|
|
|
CUSTOM_ID(attachment, view_is_passive_loc);
|
|
|
|
CUSTOM_ID(attachment, view_snap_mark_to_cursor);
|
|
|
|
CUSTOM_ID(attachment, view_ui_data);
|
|
|
|
CUSTOM_ID(attachment, view_highlight_range);
|
|
|
|
CUSTOM_ID(attachment, view_highlight_buffer);
|
|
|
|
CUSTOM_ID(attachment, view_render_hook);
|
|
|
|
CUSTOM_ID(attachment, view_word_complete_menu);
|
2020-02-29 23:38:38 +00:00
|
|
|
CUSTOM_ID(attachment, view_lister_loc);
|
2020-05-03 13:40:07 +00:00
|
|
|
CUSTOM_ID(attachment, view_previous_buffer);
|
2019-11-24 23:13:51 +00:00
|
|
|
|
|
|
|
CUSTOM_ID(attachment, buffer_map_id);
|
|
|
|
CUSTOM_ID(attachment, buffer_eol_setting);
|
|
|
|
CUSTOM_ID(attachment, buffer_lex_task);
|
|
|
|
CUSTOM_ID(attachment, buffer_wrap_lines);
|
|
|
|
|
|
|
|
CUSTOM_ID(attachment, sticky_jump_marker_handle);
|
|
|
|
CUSTOM_ID(attachment, attachment_tokens);
|
|
|
|
|
|
|
|
////////////////////////////////
|
|
|
|
|
2020-10-23 02:36:17 +00:00
|
|
|
#if 0
|
2019-12-03 19:35:41 +00:00
|
|
|
CUSTOM_ID(command_map, mapid_global);
|
|
|
|
CUSTOM_ID(command_map, mapid_file);
|
|
|
|
CUSTOM_ID(command_map, mapid_code);
|
2020-10-23 02:36:17 +00:00
|
|
|
#endif
|
2019-12-03 19:35:41 +00:00
|
|
|
|
|
|
|
////////////////////////////////
|
|
|
|
|
2019-08-24 01:34:42 +00:00
|
|
|
global b32 allow_immediate_close_without_checking_for_changes = false;
|
2018-08-05 07:09:18 +00:00
|
|
|
|
2019-08-24 01:34:42 +00:00
|
|
|
global char *default_extensions[] = {
|
2018-05-12 00:53:02 +00:00
|
|
|
"cpp",
|
|
|
|
"hpp",
|
|
|
|
"c",
|
|
|
|
"h",
|
|
|
|
"cc",
|
|
|
|
"cs",
|
2018-09-25 08:41:49 +00:00
|
|
|
"java",
|
|
|
|
"rs",
|
|
|
|
"glsl",
|
|
|
|
"m",
|
2018-05-12 00:53:02 +00:00
|
|
|
};
|
|
|
|
|
2018-06-08 22:51:36 +00:00
|
|
|
#if !defined(AUTO_CENTER_AFTER_JUMPS)
|
|
|
|
#define AUTO_CENTER_AFTER_JUMPS true
|
|
|
|
#endif
|
2019-08-24 01:34:42 +00:00
|
|
|
global b32 auto_center_after_jumps = AUTO_CENTER_AFTER_JUMPS;
|
|
|
|
global u8 locked_buffer_space[256];
|
|
|
|
global String_Const_u8 locked_buffer = {};
|
2018-06-08 22:51:36 +00:00
|
|
|
|
2024-02-10 23:38:37 +00:00
|
|
|
global View_ID global_compilation_view = 0;
|
|
|
|
global b32 global_compilation_view_expanded = 0;
|
2019-08-24 01:34:42 +00:00
|
|
|
global View_ID build_footer_panel_view_id = 0;
|
2018-06-08 22:51:36 +00:00
|
|
|
|
2019-08-24 01:34:42 +00:00
|
|
|
global u8 out_buffer_space[1024];
|
|
|
|
global u8 command_space[1024];
|
|
|
|
global char hot_directory_space[1024];
|
2018-06-08 22:51:36 +00:00
|
|
|
|
2019-08-24 01:34:42 +00:00
|
|
|
global b32 suppressing_mouse = false;
|
2018-06-08 22:51:36 +00:00
|
|
|
|
2019-08-24 01:34:42 +00:00
|
|
|
global b32 show_fps_hud = false;
|
2019-02-25 23:42:13 +00:00
|
|
|
|
2019-09-04 05:31:35 +00:00
|
|
|
// TODO(allen): REMOVE THIS!
|
2019-08-24 01:34:42 +00:00
|
|
|
global Heap global_heap;
|
2019-02-26 19:59:57 +00:00
|
|
|
|
2018-09-27 20:15:32 +00:00
|
|
|
enum{
|
2018-09-30 12:14:47 +00:00
|
|
|
FCoderMode_Original = 0,
|
|
|
|
FCoderMode_NotepadLike = 1,
|
2018-09-27 20:15:32 +00:00
|
|
|
};
|
2019-08-24 01:34:42 +00:00
|
|
|
global i32 fcoder_mode = FCoderMode_Original;
|
2018-06-08 22:51:36 +00:00
|
|
|
|
2019-08-24 01:34:42 +00:00
|
|
|
global ID_Pos_Jump_Location prev_location = {};
|
2018-06-08 22:51:36 +00:00
|
|
|
|
2020-11-24 06:27:33 +00:00
|
|
|
global Arena global_permanent_arena = {};
|
2018-06-08 22:51:36 +00:00
|
|
|
|
2020-03-11 23:22:37 +00:00
|
|
|
global Arena global_config_arena = {};
|
2018-06-08 22:51:36 +00:00
|
|
|
|
2019-08-24 01:34:42 +00:00
|
|
|
global char previous_isearch_query[256] = {};
|
2018-06-16 20:57:32 +00:00
|
|
|
|
2019-10-10 22:57:02 +00:00
|
|
|
global Mapping framework_mapping = {};
|
|
|
|
|
2019-11-05 06:25:19 +00:00
|
|
|
global Buffer_Modified_Set global_buffer_modified_set = {};
|
|
|
|
|
2020-11-26 00:56:02 +00:00
|
|
|
global b32 def_enable_virtual_whitespace = false;
|
|
|
|
|
2019-12-23 17:15:18 +00:00
|
|
|
////////////////////////////////
|
|
|
|
|
|
|
|
global b32 global_keyboard_macro_is_recording = false;
|
|
|
|
global Range_i64 global_keyboard_macro_range = {};
|
|
|
|
|
2020-01-15 18:14:17 +00:00
|
|
|
////////////////////////////////
|
|
|
|
|
|
|
|
global Fade_Range_List buffer_fade_ranges = {};
|
|
|
|
global Arena fade_range_arena = {};
|
|
|
|
global Fade_Range *free_fade_ranges = 0;
|
|
|
|
|
2020-02-15 20:33:18 +00:00
|
|
|
////////////////////////////////
|
|
|
|
|
2020-05-10 15:00:50 +00:00
|
|
|
global Point_Stack point_stack = {};
|
|
|
|
|
|
|
|
////////////////////////////////
|
|
|
|
|
2020-02-15 20:33:18 +00:00
|
|
|
global Clipboard clipboard0 = {};
|
|
|
|
|
2024-02-10 23:38:37 +00:00
|
|
|
////////////////////////////////
|
|
|
|
|
|
|
|
// Modal System Maps
|
|
|
|
global String_ID modal_map_id_global;
|
|
|
|
global String_ID modal_map_id_file;
|
|
|
|
global String_ID modal_map_id_code;
|
|
|
|
|
|
|
|
// Modal system modes
|
|
|
|
global Modal_Mode* modal_modes;
|
|
|
|
global u32 modal_modes_cap;
|
|
|
|
|
|
|
|
// State Tracking
|
|
|
|
global u32 modal_last_mode;
|
|
|
|
global u32 modal_curr_mode;
|
|
|
|
|
|
|
|
// Mode Ids
|
|
|
|
global u32 modal_mode_input = 0;
|
|
|
|
global u32 modal_mode_cmd = 1;
|
|
|
|
global u32 modal_mode_debug = 2;
|
|
|
|
|
|
|
|
////////////////////////////////
|
|
|
|
|
|
|
|
static String_Const_u8 go_to_definition_last_lexeme = {};
|
|
|
|
static u64 go_to_definition_last_lexeme_index = 0;
|
|
|
|
|
|
|
|
|
2018-08-05 07:09:18 +00:00
|
|
|
// BOTTOM
|
|
|
|
|