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-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
|
|
|
|
|
|
|
|
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-09-04 05:31:35 +00:00
|
|
|
global Managed_ID view_rewrite_loc = 0;
|
|
|
|
global Managed_ID view_next_rewrite_loc = 0;
|
|
|
|
global Managed_ID view_paste_index_loc = 0;
|
|
|
|
global Managed_ID view_is_passive_loc = 0;
|
|
|
|
global Managed_ID view_snap_mark_to_cursor = 0;
|
|
|
|
global Managed_ID view_ui_data = 0;
|
|
|
|
global Managed_ID view_highlight_range = 0;
|
|
|
|
global Managed_ID view_highlight_buffer = 0;
|
|
|
|
global Managed_ID view_render_hook = 0;
|
2019-10-20 01:17:44 +00:00
|
|
|
global Managed_ID view_call_next = 0;
|
2019-10-28 04:20:30 +00:00
|
|
|
global Managed_ID view_word_complete_menu = 0;
|
2019-09-04 05:31:35 +00:00
|
|
|
|
2019-10-10 22:57:02 +00:00
|
|
|
global Managed_ID buffer_map_id = 0;
|
2019-10-17 04:22:06 +00:00
|
|
|
global Managed_ID buffer_eol_setting = 0;
|
2019-10-21 02:02:58 +00:00
|
|
|
global Managed_ID buffer_lex_task = 0;
|
2019-10-10 22:57:02 +00:00
|
|
|
|
2019-09-04 05:31:35 +00:00
|
|
|
global Managed_ID sticky_jump_marker_handle = 0;
|
|
|
|
|
|
|
|
global Managed_ID attachment_tokens = 0;
|
2019-08-03 21:18:40 +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
|
|
|
|
|
|
|
|
2019-10-01 02:06:21 +00:00
|
|
|
global Arena *global_config_arena = {};
|
2019-08-24 01:34:42 +00:00
|
|
|
global Config_Data global_config = {};
|
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 = {};
|
|
|
|
|
|
|
|
enum{
|
|
|
|
mapid_global = 1,
|
|
|
|
mapid_file,
|
|
|
|
default_code_map,
|
|
|
|
default_maps_count,
|
|
|
|
};
|
|
|
|
|
2018-08-05 07:09:18 +00:00
|
|
|
// BOTTOM
|
|
|
|
|