2017-04-18 14:25:53 +00:00
|
|
|
struct Application_Links;
|
2017-05-14 23:42:16 +00:00
|
|
|
#define GLOBAL_SET_SETTING_SIG(n) bool32 n(Application_Links *app, Global_Setting_ID setting, int32_t value)
|
2017-11-08 18:24:30 +00:00
|
|
|
#define GLOBAL_SET_MAPPING_SIG(n) bool32 n(Application_Links *app, void *data, int32_t size)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define EXEC_COMMAND_SIG(n) bool32 n(Application_Links *app, Command_ID command_id)
|
2017-07-17 22:46:56 +00:00
|
|
|
#define EXEC_SYSTEM_COMMAND_SIG(n) bool32 n(Application_Links *app, View_Summary *view, Buffer_Identifier buffer_id, char *path, int32_t path_len, char *command, int32_t command_len, Command_Line_Interface_Flag flags)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define CLIPBOARD_POST_SIG(n) void n(Application_Links *app, int32_t clipboard_id, char *str, int32_t len)
|
|
|
|
#define CLIPBOARD_COUNT_SIG(n) int32_t n(Application_Links *app, int32_t clipboard_id)
|
|
|
|
#define CLIPBOARD_INDEX_SIG(n) int32_t n(Application_Links *app, int32_t clipboard_id, int32_t item_index, char *out, int32_t len)
|
2017-05-21 01:22:20 +00:00
|
|
|
#define CREATE_PARSE_CONTEXT_SIG(n) Parse_Context_ID n(Application_Links *app, Parser_String_And_Type *kw, uint32_t kw_count, Parser_String_And_Type *pp, uint32_t pp_count)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define GET_BUFFER_COUNT_SIG(n) int32_t n(Application_Links *app)
|
|
|
|
#define GET_BUFFER_FIRST_SIG(n) Buffer_Summary n(Application_Links *app, Access_Flag access)
|
|
|
|
#define GET_BUFFER_NEXT_SIG(n) void n(Application_Links *app, Buffer_Summary *buffer, Access_Flag access)
|
|
|
|
#define GET_BUFFER_SIG(n) Buffer_Summary n(Application_Links *app, Buffer_ID buffer_id, Access_Flag access)
|
|
|
|
#define GET_BUFFER_BY_NAME_SIG(n) Buffer_Summary n(Application_Links *app, char *name, int32_t len, Access_Flag access)
|
2017-06-28 15:15:54 +00:00
|
|
|
#define GET_BUFFER_BY_FILE_NAME_SIG(n) Buffer_Summary n(Application_Links *app, char *name, int32_t len, Access_Flag access)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define BUFFER_READ_RANGE_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, int32_t start, int32_t end, char *out)
|
|
|
|
#define BUFFER_REPLACE_RANGE_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, int32_t start, int32_t end, char *str, int32_t len)
|
|
|
|
#define BUFFER_COMPUTE_CURSOR_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, Buffer_Seek seek, Partial_Cursor *cursor_out)
|
|
|
|
#define BUFFER_BATCH_EDIT_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, char *str, int32_t str_len, Buffer_Edit *edits, int32_t edit_count, Buffer_Batch_Edit_Type type)
|
2018-05-07 02:47:22 +00:00
|
|
|
#define BUFFER_ADD_MARKERS_SIG(n) Marker_Handle n(Application_Links *app, Buffer_Summary *buffer, uint32_t marker_count, Marker_Delete_Callback *callback, void *user_data, uint32_t user_data_size)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define GET_BUFFER_BY_MARKER_HANDLE_SIG(n) Buffer_Summary n(Application_Links *app, Marker_Handle marker, Access_Flag access)
|
2018-05-07 02:47:22 +00:00
|
|
|
#define GET_USER_DATA_BY_MARKER_HANDLE_SIG(n) Data n(Application_Links *app, Marker_Handle marker)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define BUFFER_SET_MARKERS_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, Marker_Handle marker, uint32_t first_marker_index, uint32_t marker_count, Marker *source_markers)
|
|
|
|
#define BUFFER_GET_MARKERS_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, Marker_Handle marker, uint32_t first_marker_index, uint32_t marker_count, Marker *markers_out)
|
|
|
|
#define BUFFER_REMOVE_MARKERS_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, Marker_Handle marker)
|
|
|
|
#define BUFFER_GET_SETTING_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t *value_out)
|
|
|
|
#define BUFFER_SET_SETTING_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t value)
|
2018-08-11 00:42:15 +00:00
|
|
|
#define BUFFER_GET_LIFETIME_HANDLE_SIG(n) Lifetime_Handle n(Application_Links *app, Buffer_ID buffer_id)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define BUFFER_TOKEN_COUNT_SIG(n) int32_t n(Application_Links *app, Buffer_Summary *buffer)
|
|
|
|
#define BUFFER_READ_TOKENS_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, int32_t start_token, int32_t end_token, Cpp_Token *tokens_out)
|
|
|
|
#define BUFFER_GET_TOKEN_INDEX_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, int32_t pos, Cpp_Get_Token_Result *get_result)
|
2017-04-23 00:53:19 +00:00
|
|
|
#define BUFFER_SEND_END_SIGNAL_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer)
|
2017-07-17 20:43:01 +00:00
|
|
|
#define CREATE_BUFFER_SIG(n) Buffer_Summary n(Application_Links *app, char *filename, int32_t filename_len, Buffer_Create_Flag flags)
|
2017-11-21 21:30:40 +00:00
|
|
|
#define SAVE_BUFFER_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, char *file_name, int32_t file_name_len, uint32_t flags)
|
2018-08-05 07:09:18 +00:00
|
|
|
#define KILL_BUFFER_SIG(n) Buffer_Kill_Result n(Application_Links *app, Buffer_Identifier buffer, Buffer_Kill_Flag flags)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define GET_VIEW_FIRST_SIG(n) View_Summary n(Application_Links *app, Access_Flag access)
|
|
|
|
#define GET_VIEW_NEXT_SIG(n) void n(Application_Links *app, View_Summary *view, Access_Flag access)
|
|
|
|
#define GET_VIEW_SIG(n) View_Summary n(Application_Links *app, View_ID view_id, Access_Flag access)
|
|
|
|
#define GET_ACTIVE_VIEW_SIG(n) View_Summary n(Application_Links *app, Access_Flag access)
|
|
|
|
#define OPEN_VIEW_SIG(n) View_Summary n(Application_Links *app, View_Summary *view_location, View_Split_Position position)
|
|
|
|
#define CLOSE_VIEW_SIG(n) bool32 n(Application_Links *app, View_Summary *view)
|
|
|
|
#define SET_ACTIVE_VIEW_SIG(n) bool32 n(Application_Links *app, View_Summary *view)
|
|
|
|
#define VIEW_GET_SETTING_SIG(n) bool32 n(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t *value_out)
|
|
|
|
#define VIEW_SET_SETTING_SIG(n) bool32 n(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t value)
|
2018-08-11 00:42:15 +00:00
|
|
|
#define VIEW_GET_LIFETIME_HANDLE_SIG(n) Lifetime_Handle n(Application_Links *app, View_ID view_id)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define VIEW_SET_SPLIT_PROPORTION_SIG(n) bool32 n(Application_Links *app, View_Summary *view, float t)
|
|
|
|
#define VIEW_COMPUTE_CURSOR_SIG(n) bool32 n(Application_Links *app, View_Summary *view, Buffer_Seek seek, Full_Cursor *cursor_out)
|
|
|
|
#define VIEW_SET_CURSOR_SIG(n) bool32 n(Application_Links *app, View_Summary *view, Buffer_Seek seek, bool32 set_preferred_x)
|
|
|
|
#define VIEW_SET_SCROLL_SIG(n) bool32 n(Application_Links *app, View_Summary *view, GUI_Scroll_Vars scroll)
|
|
|
|
#define VIEW_SET_MARK_SIG(n) bool32 n(Application_Links *app, View_Summary *view, Buffer_Seek seek)
|
|
|
|
#define VIEW_SET_HIGHLIGHT_SIG(n) bool32 n(Application_Links *app, View_Summary *view, int32_t start, int32_t end, bool32 turn_on)
|
|
|
|
#define VIEW_SET_BUFFER_SIG(n) bool32 n(Application_Links *app, View_Summary *view, Buffer_ID buffer_id, Set_Buffer_Flag flags)
|
|
|
|
#define VIEW_POST_FADE_SIG(n) bool32 n(Application_Links *app, View_Summary *view, float seconds, int32_t start, int32_t end, int_color color)
|
2018-07-14 01:13:05 +00:00
|
|
|
#define VIEW_START_UI_MODE_SIG(n) int32_t n(Application_Links *app, View_Summary *view)
|
|
|
|
#define VIEW_END_UI_MODE_SIG(n) int32_t n(Application_Links *app, View_Summary *view)
|
|
|
|
#define VIEW_SET_UI_SIG(n) bool32 n(Application_Links *app, View_Summary *view, UI_Control *control)
|
2018-08-04 02:41:38 +00:00
|
|
|
#define VIEW_GET_UI_COPY_SIG(n) UI_Control n(Application_Links *app, View_Summary *view, struct Partition *part)
|
2018-08-11 05:42:00 +00:00
|
|
|
#define CREATE_CORE_VARIABLE_SIG(n) int32_t n(Application_Links *app, char *null_terminated_name, uint64_t default_value)
|
2018-08-11 00:42:15 +00:00
|
|
|
#define CORE_VARIABLE_SET_SIG(n) bool32 n(Application_Links *app, Lifetime_Handle handle, int32_t location, uint64_t value)
|
|
|
|
#define CORE_VARIABLE_GET_SIG(n) bool32 n(Application_Links *app, Lifetime_Handle handle, int32_t location, uint64_t *value_out)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define GET_USER_INPUT_SIG(n) User_Input n(Application_Links *app, Input_Type_Flag get_type, Input_Type_Flag abort_type)
|
|
|
|
#define GET_COMMAND_INPUT_SIG(n) User_Input n(Application_Links *app)
|
|
|
|
#define GET_MOUSE_STATE_SIG(n) Mouse_State n(Application_Links *app)
|
|
|
|
#define START_QUERY_BAR_SIG(n) bool32 n(Application_Links *app, Query_Bar *bar, uint32_t flags)
|
|
|
|
#define END_QUERY_BAR_SIG(n) void n(Application_Links *app, Query_Bar *bar, uint32_t flags)
|
|
|
|
#define PRINT_MESSAGE_SIG(n) void n(Application_Links *app, char *str, int32_t len)
|
2018-08-10 21:52:57 +00:00
|
|
|
#define GET_THEME_COUNT_SIG(n) int32_t n(Application_Links *app)
|
|
|
|
#define GET_THEME_NAME_SIG(n) String n(Application_Links *app, Partition *arena, int32_t index)
|
2017-06-05 21:48:49 +00:00
|
|
|
#define CREATE_THEME_SIG(n) void n(Application_Links *app, Theme *theme, char *name, int32_t len)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define CHANGE_THEME_SIG(n) void n(Application_Links *app, char *name, int32_t len)
|
2018-08-10 21:52:57 +00:00
|
|
|
#define CHANGE_THEME_BY_INDEX_SIG(n) bool32 n(Application_Links *app, int32_t index)
|
2017-11-20 23:31:57 +00:00
|
|
|
#define GET_LARGEST_FACE_ID_SIG(n) Face_ID n(Application_Links *app)
|
|
|
|
#define SET_GLOBAL_FACE_SIG(n) bool32 n(Application_Links *app, Face_ID id, bool32 apply_to_all_buffers)
|
|
|
|
#define BUFFER_SET_FACE_SIG(n) bool32 n(Application_Links *app, Buffer_Summary *buffer, Face_ID id)
|
|
|
|
#define GET_FACE_DESCRIPTION_SIG(n) Face_Description n(Application_Links *app, Face_ID id)
|
|
|
|
#define GET_FACE_ID_SIG(n) Face_ID n(Application_Links *app, Buffer_Summary *buffer)
|
|
|
|
#define TRY_CREATE_NEW_FACE_SIG(n) Face_ID n(Application_Links *app, Face_Description *description)
|
|
|
|
#define TRY_MODIFY_FACE_SIG(n) bool32 n(Application_Links *app, Face_ID id, Face_Description *description)
|
|
|
|
#define TRY_RELEASE_FACE_SIG(n) bool32 n(Application_Links *app, Face_ID id, Face_ID replacement_id)
|
|
|
|
#define GET_AVAILABLE_FONT_COUNT_SIG(n) int32_t n(Application_Links *app)
|
|
|
|
#define GET_AVAILABLE_FONT_SIG(n) Available_Font n(Application_Links *app, int32_t index)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define SET_THEME_COLORS_SIG(n) void n(Application_Links *app, Theme_Color *colors, int32_t count)
|
|
|
|
#define GET_THEME_COLORS_SIG(n) void n(Application_Links *app, Theme_Color *colors, int32_t count)
|
|
|
|
#define DIRECTORY_GET_HOT_SIG(n) int32_t n(Application_Links *app, char *out, int32_t capacity)
|
2017-06-20 20:37:45 +00:00
|
|
|
#define DIRECTORY_SET_HOT_SIG(n) bool32 n(Application_Links *app, char *str, int32_t len)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define GET_FILE_LIST_SIG(n) File_List n(Application_Links *app, char *dir, int32_t len)
|
|
|
|
#define FREE_FILE_LIST_SIG(n) void n(Application_Links *app, File_List list)
|
|
|
|
#define SET_GUI_UP_DOWN_KEYS_SIG(n) void n(Application_Links *app, Key_Code up_key, Key_Modifier up_key_modifier, Key_Code down_key, Key_Modifier down_key_modifier)
|
|
|
|
#define MEMORY_ALLOCATE_SIG(n) void* n(Application_Links *app, int32_t size)
|
|
|
|
#define MEMORY_SET_PROTECTION_SIG(n) bool32 n(Application_Links *app, void *ptr, int32_t size, Memory_Protect_Flags flags)
|
|
|
|
#define MEMORY_FREE_SIG(n) void n(Application_Links *app, void *ptr, int32_t size)
|
|
|
|
#define FILE_EXISTS_SIG(n) bool32 n(Application_Links *app, char *filename, int32_t len)
|
|
|
|
#define DIRECTORY_CD_SIG(n) bool32 n(Application_Links *app, char *dir, int32_t *len, int32_t capacity, char *rel_path, int32_t rel_len)
|
|
|
|
#define GET_4ED_PATH_SIG(n) int32_t n(Application_Links *app, char *out, int32_t capacity)
|
|
|
|
#define SHOW_MOUSE_CURSOR_SIG(n) void n(Application_Links *app, Mouse_Cursor_Show_Type show)
|
2017-07-18 22:09:16 +00:00
|
|
|
#define SET_FULLSCREEN_SIG(n) bool32 n(Application_Links *app, bool32 full_screen)
|
2017-04-18 14:25:53 +00:00
|
|
|
#define IS_FULLSCREEN_SIG(n) bool32 n(Application_Links *app)
|
|
|
|
#define SEND_EXIT_SIGNAL_SIG(n) void n(Application_Links *app)
|
2017-11-30 23:25:49 +00:00
|
|
|
#define SET_WINDOW_TITLE_SIG(n) void n(Application_Links *app, char *title)
|
2017-05-14 23:42:16 +00:00
|
|
|
typedef GLOBAL_SET_SETTING_SIG(Global_Set_Setting_Function);
|
2017-11-08 18:24:30 +00:00
|
|
|
typedef GLOBAL_SET_MAPPING_SIG(Global_Set_Mapping_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef EXEC_COMMAND_SIG(Exec_Command_Function);
|
|
|
|
typedef EXEC_SYSTEM_COMMAND_SIG(Exec_System_Command_Function);
|
|
|
|
typedef CLIPBOARD_POST_SIG(Clipboard_Post_Function);
|
|
|
|
typedef CLIPBOARD_COUNT_SIG(Clipboard_Count_Function);
|
|
|
|
typedef CLIPBOARD_INDEX_SIG(Clipboard_Index_Function);
|
2017-05-21 01:22:20 +00:00
|
|
|
typedef CREATE_PARSE_CONTEXT_SIG(Create_Parse_Context_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef GET_BUFFER_COUNT_SIG(Get_Buffer_Count_Function);
|
|
|
|
typedef GET_BUFFER_FIRST_SIG(Get_Buffer_First_Function);
|
|
|
|
typedef GET_BUFFER_NEXT_SIG(Get_Buffer_Next_Function);
|
|
|
|
typedef GET_BUFFER_SIG(Get_Buffer_Function);
|
|
|
|
typedef GET_BUFFER_BY_NAME_SIG(Get_Buffer_By_Name_Function);
|
2017-06-28 15:15:54 +00:00
|
|
|
typedef GET_BUFFER_BY_FILE_NAME_SIG(Get_Buffer_By_File_Name_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef BUFFER_READ_RANGE_SIG(Buffer_Read_Range_Function);
|
|
|
|
typedef BUFFER_REPLACE_RANGE_SIG(Buffer_Replace_Range_Function);
|
|
|
|
typedef BUFFER_COMPUTE_CURSOR_SIG(Buffer_Compute_Cursor_Function);
|
|
|
|
typedef BUFFER_BATCH_EDIT_SIG(Buffer_Batch_Edit_Function);
|
|
|
|
typedef BUFFER_ADD_MARKERS_SIG(Buffer_Add_Markers_Function);
|
|
|
|
typedef GET_BUFFER_BY_MARKER_HANDLE_SIG(Get_Buffer_By_Marker_Handle_Function);
|
2018-05-07 02:47:22 +00:00
|
|
|
typedef GET_USER_DATA_BY_MARKER_HANDLE_SIG(Get_User_Data_By_Marker_Handle_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef BUFFER_SET_MARKERS_SIG(Buffer_Set_Markers_Function);
|
|
|
|
typedef BUFFER_GET_MARKERS_SIG(Buffer_Get_Markers_Function);
|
|
|
|
typedef BUFFER_REMOVE_MARKERS_SIG(Buffer_Remove_Markers_Function);
|
|
|
|
typedef BUFFER_GET_SETTING_SIG(Buffer_Get_Setting_Function);
|
|
|
|
typedef BUFFER_SET_SETTING_SIG(Buffer_Set_Setting_Function);
|
2018-08-11 00:42:15 +00:00
|
|
|
typedef BUFFER_GET_LIFETIME_HANDLE_SIG(Buffer_Get_Lifetime_Handle_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef BUFFER_TOKEN_COUNT_SIG(Buffer_Token_Count_Function);
|
|
|
|
typedef BUFFER_READ_TOKENS_SIG(Buffer_Read_Tokens_Function);
|
|
|
|
typedef BUFFER_GET_TOKEN_INDEX_SIG(Buffer_Get_Token_Index_Function);
|
2017-04-23 00:53:19 +00:00
|
|
|
typedef BUFFER_SEND_END_SIGNAL_SIG(Buffer_Send_End_Signal_Function);
|
2017-07-17 20:43:01 +00:00
|
|
|
typedef CREATE_BUFFER_SIG(Create_Buffer_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef SAVE_BUFFER_SIG(Save_Buffer_Function);
|
|
|
|
typedef KILL_BUFFER_SIG(Kill_Buffer_Function);
|
|
|
|
typedef GET_VIEW_FIRST_SIG(Get_View_First_Function);
|
|
|
|
typedef GET_VIEW_NEXT_SIG(Get_View_Next_Function);
|
|
|
|
typedef GET_VIEW_SIG(Get_View_Function);
|
|
|
|
typedef GET_ACTIVE_VIEW_SIG(Get_Active_View_Function);
|
|
|
|
typedef OPEN_VIEW_SIG(Open_View_Function);
|
|
|
|
typedef CLOSE_VIEW_SIG(Close_View_Function);
|
|
|
|
typedef SET_ACTIVE_VIEW_SIG(Set_Active_View_Function);
|
|
|
|
typedef VIEW_GET_SETTING_SIG(View_Get_Setting_Function);
|
|
|
|
typedef VIEW_SET_SETTING_SIG(View_Set_Setting_Function);
|
2018-08-11 00:42:15 +00:00
|
|
|
typedef VIEW_GET_LIFETIME_HANDLE_SIG(View_Get_Lifetime_Handle_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef VIEW_SET_SPLIT_PROPORTION_SIG(View_Set_Split_Proportion_Function);
|
|
|
|
typedef VIEW_COMPUTE_CURSOR_SIG(View_Compute_Cursor_Function);
|
|
|
|
typedef VIEW_SET_CURSOR_SIG(View_Set_Cursor_Function);
|
|
|
|
typedef VIEW_SET_SCROLL_SIG(View_Set_Scroll_Function);
|
|
|
|
typedef VIEW_SET_MARK_SIG(View_Set_Mark_Function);
|
|
|
|
typedef VIEW_SET_HIGHLIGHT_SIG(View_Set_Highlight_Function);
|
|
|
|
typedef VIEW_SET_BUFFER_SIG(View_Set_Buffer_Function);
|
|
|
|
typedef VIEW_POST_FADE_SIG(View_Post_Fade_Function);
|
2018-07-14 01:13:05 +00:00
|
|
|
typedef VIEW_START_UI_MODE_SIG(View_Start_UI_Mode_Function);
|
|
|
|
typedef VIEW_END_UI_MODE_SIG(View_End_UI_Mode_Function);
|
|
|
|
typedef VIEW_SET_UI_SIG(View_Set_UI_Function);
|
2018-08-04 02:41:38 +00:00
|
|
|
typedef VIEW_GET_UI_COPY_SIG(View_Get_UI_Copy_Function);
|
2018-08-11 00:42:15 +00:00
|
|
|
typedef CREATE_CORE_VARIABLE_SIG(Create_Core_Variable_Function);
|
|
|
|
typedef CORE_VARIABLE_SET_SIG(Core_Variable_Set_Function);
|
|
|
|
typedef CORE_VARIABLE_GET_SIG(Core_Variable_Get_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef GET_USER_INPUT_SIG(Get_User_Input_Function);
|
|
|
|
typedef GET_COMMAND_INPUT_SIG(Get_Command_Input_Function);
|
|
|
|
typedef GET_MOUSE_STATE_SIG(Get_Mouse_State_Function);
|
|
|
|
typedef START_QUERY_BAR_SIG(Start_Query_Bar_Function);
|
|
|
|
typedef END_QUERY_BAR_SIG(End_Query_Bar_Function);
|
|
|
|
typedef PRINT_MESSAGE_SIG(Print_Message_Function);
|
2018-08-10 21:52:57 +00:00
|
|
|
typedef GET_THEME_COUNT_SIG(Get_Theme_Count_Function);
|
|
|
|
typedef GET_THEME_NAME_SIG(Get_Theme_Name_Function);
|
2017-06-05 21:48:49 +00:00
|
|
|
typedef CREATE_THEME_SIG(Create_Theme_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef CHANGE_THEME_SIG(Change_Theme_Function);
|
2018-08-10 21:52:57 +00:00
|
|
|
typedef CHANGE_THEME_BY_INDEX_SIG(Change_Theme_By_Index_Function);
|
2017-11-20 23:31:57 +00:00
|
|
|
typedef GET_LARGEST_FACE_ID_SIG(Get_Largest_Face_ID_Function);
|
|
|
|
typedef SET_GLOBAL_FACE_SIG(Set_Global_Face_Function);
|
|
|
|
typedef BUFFER_SET_FACE_SIG(Buffer_Set_Face_Function);
|
|
|
|
typedef GET_FACE_DESCRIPTION_SIG(Get_Face_Description_Function);
|
|
|
|
typedef GET_FACE_ID_SIG(Get_Face_ID_Function);
|
|
|
|
typedef TRY_CREATE_NEW_FACE_SIG(Try_Create_New_Face_Function);
|
|
|
|
typedef TRY_MODIFY_FACE_SIG(Try_Modify_Face_Function);
|
|
|
|
typedef TRY_RELEASE_FACE_SIG(Try_Release_Face_Function);
|
|
|
|
typedef GET_AVAILABLE_FONT_COUNT_SIG(Get_Available_Font_Count_Function);
|
|
|
|
typedef GET_AVAILABLE_FONT_SIG(Get_Available_Font_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef SET_THEME_COLORS_SIG(Set_Theme_Colors_Function);
|
|
|
|
typedef GET_THEME_COLORS_SIG(Get_Theme_Colors_Function);
|
|
|
|
typedef DIRECTORY_GET_HOT_SIG(Directory_Get_Hot_Function);
|
2017-06-20 20:37:45 +00:00
|
|
|
typedef DIRECTORY_SET_HOT_SIG(Directory_Set_Hot_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef GET_FILE_LIST_SIG(Get_File_List_Function);
|
|
|
|
typedef FREE_FILE_LIST_SIG(Free_File_List_Function);
|
|
|
|
typedef SET_GUI_UP_DOWN_KEYS_SIG(Set_GUI_Up_Down_Keys_Function);
|
|
|
|
typedef MEMORY_ALLOCATE_SIG(Memory_Allocate_Function);
|
|
|
|
typedef MEMORY_SET_PROTECTION_SIG(Memory_Set_Protection_Function);
|
|
|
|
typedef MEMORY_FREE_SIG(Memory_Free_Function);
|
|
|
|
typedef FILE_EXISTS_SIG(File_Exists_Function);
|
|
|
|
typedef DIRECTORY_CD_SIG(Directory_CD_Function);
|
|
|
|
typedef GET_4ED_PATH_SIG(Get_4ed_Path_Function);
|
|
|
|
typedef SHOW_MOUSE_CURSOR_SIG(Show_Mouse_Cursor_Function);
|
2017-07-18 22:09:16 +00:00
|
|
|
typedef SET_FULLSCREEN_SIG(Set_Fullscreen_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
typedef IS_FULLSCREEN_SIG(Is_Fullscreen_Function);
|
|
|
|
typedef SEND_EXIT_SIGNAL_SIG(Send_Exit_Signal_Function);
|
2017-11-30 23:25:49 +00:00
|
|
|
typedef SET_WINDOW_TITLE_SIG(Set_Window_Title_Function);
|
2017-04-18 14:25:53 +00:00
|
|
|
struct Application_Links{
|
|
|
|
#if defined(ALLOW_DEP_4CODER)
|
2017-05-14 23:42:16 +00:00
|
|
|
Global_Set_Setting_Function *global_set_setting;
|
2017-11-08 18:24:30 +00:00
|
|
|
Global_Set_Mapping_Function *global_set_mapping;
|
2017-04-18 14:25:53 +00:00
|
|
|
Exec_Command_Function *exec_command;
|
|
|
|
Exec_System_Command_Function *exec_system_command;
|
|
|
|
Clipboard_Post_Function *clipboard_post;
|
|
|
|
Clipboard_Count_Function *clipboard_count;
|
|
|
|
Clipboard_Index_Function *clipboard_index;
|
2017-05-21 01:22:20 +00:00
|
|
|
Create_Parse_Context_Function *create_parse_context;
|
2017-04-18 14:25:53 +00:00
|
|
|
Get_Buffer_Count_Function *get_buffer_count;
|
|
|
|
Get_Buffer_First_Function *get_buffer_first;
|
|
|
|
Get_Buffer_Next_Function *get_buffer_next;
|
|
|
|
Get_Buffer_Function *get_buffer;
|
|
|
|
Get_Buffer_By_Name_Function *get_buffer_by_name;
|
2017-06-28 15:15:54 +00:00
|
|
|
Get_Buffer_By_File_Name_Function *get_buffer_by_file_name;
|
2017-04-18 14:25:53 +00:00
|
|
|
Buffer_Read_Range_Function *buffer_read_range;
|
|
|
|
Buffer_Replace_Range_Function *buffer_replace_range;
|
|
|
|
Buffer_Compute_Cursor_Function *buffer_compute_cursor;
|
|
|
|
Buffer_Batch_Edit_Function *buffer_batch_edit;
|
|
|
|
Buffer_Add_Markers_Function *buffer_add_markers;
|
|
|
|
Get_Buffer_By_Marker_Handle_Function *get_buffer_by_marker_handle;
|
2018-05-07 02:47:22 +00:00
|
|
|
Get_User_Data_By_Marker_Handle_Function *get_user_data_by_marker_handle;
|
2017-04-18 14:25:53 +00:00
|
|
|
Buffer_Set_Markers_Function *buffer_set_markers;
|
|
|
|
Buffer_Get_Markers_Function *buffer_get_markers;
|
|
|
|
Buffer_Remove_Markers_Function *buffer_remove_markers;
|
|
|
|
Buffer_Get_Setting_Function *buffer_get_setting;
|
|
|
|
Buffer_Set_Setting_Function *buffer_set_setting;
|
2018-08-11 00:42:15 +00:00
|
|
|
Buffer_Get_Lifetime_Handle_Function *buffer_get_lifetime_handle;
|
2017-04-18 14:25:53 +00:00
|
|
|
Buffer_Token_Count_Function *buffer_token_count;
|
|
|
|
Buffer_Read_Tokens_Function *buffer_read_tokens;
|
|
|
|
Buffer_Get_Token_Index_Function *buffer_get_token_index;
|
2017-04-23 00:53:19 +00:00
|
|
|
Buffer_Send_End_Signal_Function *buffer_send_end_signal;
|
2017-07-17 20:43:01 +00:00
|
|
|
Create_Buffer_Function *create_buffer;
|
2017-04-18 14:25:53 +00:00
|
|
|
Save_Buffer_Function *save_buffer;
|
|
|
|
Kill_Buffer_Function *kill_buffer;
|
|
|
|
Get_View_First_Function *get_view_first;
|
|
|
|
Get_View_Next_Function *get_view_next;
|
|
|
|
Get_View_Function *get_view;
|
|
|
|
Get_Active_View_Function *get_active_view;
|
|
|
|
Open_View_Function *open_view;
|
|
|
|
Close_View_Function *close_view;
|
|
|
|
Set_Active_View_Function *set_active_view;
|
|
|
|
View_Get_Setting_Function *view_get_setting;
|
|
|
|
View_Set_Setting_Function *view_set_setting;
|
2018-08-11 00:42:15 +00:00
|
|
|
View_Get_Lifetime_Handle_Function *view_get_lifetime_handle;
|
2017-04-18 14:25:53 +00:00
|
|
|
View_Set_Split_Proportion_Function *view_set_split_proportion;
|
|
|
|
View_Compute_Cursor_Function *view_compute_cursor;
|
|
|
|
View_Set_Cursor_Function *view_set_cursor;
|
|
|
|
View_Set_Scroll_Function *view_set_scroll;
|
|
|
|
View_Set_Mark_Function *view_set_mark;
|
|
|
|
View_Set_Highlight_Function *view_set_highlight;
|
|
|
|
View_Set_Buffer_Function *view_set_buffer;
|
|
|
|
View_Post_Fade_Function *view_post_fade;
|
2018-07-14 01:13:05 +00:00
|
|
|
View_Start_UI_Mode_Function *view_start_ui_mode;
|
|
|
|
View_End_UI_Mode_Function *view_end_ui_mode;
|
|
|
|
View_Set_UI_Function *view_set_ui;
|
2018-08-04 02:41:38 +00:00
|
|
|
View_Get_UI_Copy_Function *view_get_ui_copy;
|
2018-08-11 00:42:15 +00:00
|
|
|
Create_Core_Variable_Function *create_core_variable;
|
|
|
|
Core_Variable_Set_Function *core_variable_set;
|
|
|
|
Core_Variable_Get_Function *core_variable_get;
|
2017-04-18 14:25:53 +00:00
|
|
|
Get_User_Input_Function *get_user_input;
|
|
|
|
Get_Command_Input_Function *get_command_input;
|
|
|
|
Get_Mouse_State_Function *get_mouse_state;
|
|
|
|
Start_Query_Bar_Function *start_query_bar;
|
|
|
|
End_Query_Bar_Function *end_query_bar;
|
|
|
|
Print_Message_Function *print_message;
|
2018-08-10 21:52:57 +00:00
|
|
|
Get_Theme_Count_Function *get_theme_count;
|
|
|
|
Get_Theme_Name_Function *get_theme_name;
|
2017-06-05 21:48:49 +00:00
|
|
|
Create_Theme_Function *create_theme;
|
2017-04-18 14:25:53 +00:00
|
|
|
Change_Theme_Function *change_theme;
|
2018-08-10 21:52:57 +00:00
|
|
|
Change_Theme_By_Index_Function *change_theme_by_index;
|
2017-11-20 23:31:57 +00:00
|
|
|
Get_Largest_Face_ID_Function *get_largest_face_id;
|
|
|
|
Set_Global_Face_Function *set_global_face;
|
|
|
|
Buffer_Set_Face_Function *buffer_set_face;
|
|
|
|
Get_Face_Description_Function *get_face_description;
|
|
|
|
Get_Face_ID_Function *get_face_id;
|
|
|
|
Try_Create_New_Face_Function *try_create_new_face;
|
|
|
|
Try_Modify_Face_Function *try_modify_face;
|
|
|
|
Try_Release_Face_Function *try_release_face;
|
|
|
|
Get_Available_Font_Count_Function *get_available_font_count;
|
|
|
|
Get_Available_Font_Function *get_available_font;
|
2017-04-18 14:25:53 +00:00
|
|
|
Set_Theme_Colors_Function *set_theme_colors;
|
|
|
|
Get_Theme_Colors_Function *get_theme_colors;
|
|
|
|
Directory_Get_Hot_Function *directory_get_hot;
|
2017-06-20 20:37:45 +00:00
|
|
|
Directory_Set_Hot_Function *directory_set_hot;
|
2017-04-18 14:25:53 +00:00
|
|
|
Get_File_List_Function *get_file_list;
|
|
|
|
Free_File_List_Function *free_file_list;
|
|
|
|
Set_GUI_Up_Down_Keys_Function *set_gui_up_down_keys;
|
|
|
|
Memory_Allocate_Function *memory_allocate;
|
|
|
|
Memory_Set_Protection_Function *memory_set_protection;
|
|
|
|
Memory_Free_Function *memory_free;
|
|
|
|
File_Exists_Function *file_exists;
|
|
|
|
Directory_CD_Function *directory_cd;
|
|
|
|
Get_4ed_Path_Function *get_4ed_path;
|
|
|
|
Show_Mouse_Cursor_Function *show_mouse_cursor;
|
2017-07-18 22:09:16 +00:00
|
|
|
Set_Fullscreen_Function *set_fullscreen;
|
2017-04-18 14:25:53 +00:00
|
|
|
Is_Fullscreen_Function *is_fullscreen;
|
|
|
|
Send_Exit_Signal_Function *send_exit_signal;
|
2017-11-30 23:25:49 +00:00
|
|
|
Set_Window_Title_Function *set_window_title;
|
2017-04-18 14:25:53 +00:00
|
|
|
#else
|
2017-05-14 23:42:16 +00:00
|
|
|
Global_Set_Setting_Function *global_set_setting_;
|
2017-11-08 18:24:30 +00:00
|
|
|
Global_Set_Mapping_Function *global_set_mapping_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Exec_Command_Function *exec_command_;
|
|
|
|
Exec_System_Command_Function *exec_system_command_;
|
|
|
|
Clipboard_Post_Function *clipboard_post_;
|
|
|
|
Clipboard_Count_Function *clipboard_count_;
|
|
|
|
Clipboard_Index_Function *clipboard_index_;
|
2017-05-21 01:22:20 +00:00
|
|
|
Create_Parse_Context_Function *create_parse_context_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Get_Buffer_Count_Function *get_buffer_count_;
|
|
|
|
Get_Buffer_First_Function *get_buffer_first_;
|
|
|
|
Get_Buffer_Next_Function *get_buffer_next_;
|
|
|
|
Get_Buffer_Function *get_buffer_;
|
|
|
|
Get_Buffer_By_Name_Function *get_buffer_by_name_;
|
2017-06-28 15:15:54 +00:00
|
|
|
Get_Buffer_By_File_Name_Function *get_buffer_by_file_name_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Buffer_Read_Range_Function *buffer_read_range_;
|
|
|
|
Buffer_Replace_Range_Function *buffer_replace_range_;
|
|
|
|
Buffer_Compute_Cursor_Function *buffer_compute_cursor_;
|
|
|
|
Buffer_Batch_Edit_Function *buffer_batch_edit_;
|
|
|
|
Buffer_Add_Markers_Function *buffer_add_markers_;
|
|
|
|
Get_Buffer_By_Marker_Handle_Function *get_buffer_by_marker_handle_;
|
2018-05-07 02:47:22 +00:00
|
|
|
Get_User_Data_By_Marker_Handle_Function *get_user_data_by_marker_handle_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Buffer_Set_Markers_Function *buffer_set_markers_;
|
|
|
|
Buffer_Get_Markers_Function *buffer_get_markers_;
|
|
|
|
Buffer_Remove_Markers_Function *buffer_remove_markers_;
|
|
|
|
Buffer_Get_Setting_Function *buffer_get_setting_;
|
|
|
|
Buffer_Set_Setting_Function *buffer_set_setting_;
|
2018-08-11 00:42:15 +00:00
|
|
|
Buffer_Get_Lifetime_Handle_Function *buffer_get_lifetime_handle_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Buffer_Token_Count_Function *buffer_token_count_;
|
|
|
|
Buffer_Read_Tokens_Function *buffer_read_tokens_;
|
|
|
|
Buffer_Get_Token_Index_Function *buffer_get_token_index_;
|
2017-04-23 00:53:19 +00:00
|
|
|
Buffer_Send_End_Signal_Function *buffer_send_end_signal_;
|
2017-07-17 20:43:01 +00:00
|
|
|
Create_Buffer_Function *create_buffer_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Save_Buffer_Function *save_buffer_;
|
|
|
|
Kill_Buffer_Function *kill_buffer_;
|
|
|
|
Get_View_First_Function *get_view_first_;
|
|
|
|
Get_View_Next_Function *get_view_next_;
|
|
|
|
Get_View_Function *get_view_;
|
|
|
|
Get_Active_View_Function *get_active_view_;
|
|
|
|
Open_View_Function *open_view_;
|
|
|
|
Close_View_Function *close_view_;
|
|
|
|
Set_Active_View_Function *set_active_view_;
|
|
|
|
View_Get_Setting_Function *view_get_setting_;
|
|
|
|
View_Set_Setting_Function *view_set_setting_;
|
2018-08-11 00:42:15 +00:00
|
|
|
View_Get_Lifetime_Handle_Function *view_get_lifetime_handle_;
|
2017-04-18 14:25:53 +00:00
|
|
|
View_Set_Split_Proportion_Function *view_set_split_proportion_;
|
|
|
|
View_Compute_Cursor_Function *view_compute_cursor_;
|
|
|
|
View_Set_Cursor_Function *view_set_cursor_;
|
|
|
|
View_Set_Scroll_Function *view_set_scroll_;
|
|
|
|
View_Set_Mark_Function *view_set_mark_;
|
|
|
|
View_Set_Highlight_Function *view_set_highlight_;
|
|
|
|
View_Set_Buffer_Function *view_set_buffer_;
|
|
|
|
View_Post_Fade_Function *view_post_fade_;
|
2018-07-14 01:13:05 +00:00
|
|
|
View_Start_UI_Mode_Function *view_start_ui_mode_;
|
|
|
|
View_End_UI_Mode_Function *view_end_ui_mode_;
|
|
|
|
View_Set_UI_Function *view_set_ui_;
|
2018-08-04 02:41:38 +00:00
|
|
|
View_Get_UI_Copy_Function *view_get_ui_copy_;
|
2018-08-11 00:42:15 +00:00
|
|
|
Create_Core_Variable_Function *create_core_variable_;
|
|
|
|
Core_Variable_Set_Function *core_variable_set_;
|
|
|
|
Core_Variable_Get_Function *core_variable_get_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Get_User_Input_Function *get_user_input_;
|
|
|
|
Get_Command_Input_Function *get_command_input_;
|
|
|
|
Get_Mouse_State_Function *get_mouse_state_;
|
|
|
|
Start_Query_Bar_Function *start_query_bar_;
|
|
|
|
End_Query_Bar_Function *end_query_bar_;
|
|
|
|
Print_Message_Function *print_message_;
|
2018-08-10 21:52:57 +00:00
|
|
|
Get_Theme_Count_Function *get_theme_count_;
|
|
|
|
Get_Theme_Name_Function *get_theme_name_;
|
2017-06-05 21:48:49 +00:00
|
|
|
Create_Theme_Function *create_theme_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Change_Theme_Function *change_theme_;
|
2018-08-10 21:52:57 +00:00
|
|
|
Change_Theme_By_Index_Function *change_theme_by_index_;
|
2017-11-20 23:31:57 +00:00
|
|
|
Get_Largest_Face_ID_Function *get_largest_face_id_;
|
|
|
|
Set_Global_Face_Function *set_global_face_;
|
|
|
|
Buffer_Set_Face_Function *buffer_set_face_;
|
|
|
|
Get_Face_Description_Function *get_face_description_;
|
|
|
|
Get_Face_ID_Function *get_face_id_;
|
|
|
|
Try_Create_New_Face_Function *try_create_new_face_;
|
|
|
|
Try_Modify_Face_Function *try_modify_face_;
|
|
|
|
Try_Release_Face_Function *try_release_face_;
|
|
|
|
Get_Available_Font_Count_Function *get_available_font_count_;
|
|
|
|
Get_Available_Font_Function *get_available_font_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Set_Theme_Colors_Function *set_theme_colors_;
|
|
|
|
Get_Theme_Colors_Function *get_theme_colors_;
|
|
|
|
Directory_Get_Hot_Function *directory_get_hot_;
|
2017-06-20 20:37:45 +00:00
|
|
|
Directory_Set_Hot_Function *directory_set_hot_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Get_File_List_Function *get_file_list_;
|
|
|
|
Free_File_List_Function *free_file_list_;
|
|
|
|
Set_GUI_Up_Down_Keys_Function *set_gui_up_down_keys_;
|
|
|
|
Memory_Allocate_Function *memory_allocate_;
|
|
|
|
Memory_Set_Protection_Function *memory_set_protection_;
|
|
|
|
Memory_Free_Function *memory_free_;
|
|
|
|
File_Exists_Function *file_exists_;
|
|
|
|
Directory_CD_Function *directory_cd_;
|
|
|
|
Get_4ed_Path_Function *get_4ed_path_;
|
|
|
|
Show_Mouse_Cursor_Function *show_mouse_cursor_;
|
2017-07-18 22:09:16 +00:00
|
|
|
Set_Fullscreen_Function *set_fullscreen_;
|
2017-04-18 14:25:53 +00:00
|
|
|
Is_Fullscreen_Function *is_fullscreen_;
|
|
|
|
Send_Exit_Signal_Function *send_exit_signal_;
|
2017-11-30 23:25:49 +00:00
|
|
|
Set_Window_Title_Function *set_window_title_;
|
2017-04-18 14:25:53 +00:00
|
|
|
#endif
|
|
|
|
void *memory;
|
|
|
|
int32_t memory_size;
|
|
|
|
void *cmd_context;
|
|
|
|
void *system_links;
|
|
|
|
void *current_coroutine;
|
|
|
|
int32_t type_coroutine;
|
|
|
|
};
|
|
|
|
#define FillAppLinksAPI(app_links) do{\
|
2017-05-14 23:42:16 +00:00
|
|
|
app_links->global_set_setting_ = Global_Set_Setting;\
|
2017-11-08 18:24:30 +00:00
|
|
|
app_links->global_set_mapping_ = Global_Set_Mapping;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->exec_command_ = Exec_Command;\
|
|
|
|
app_links->exec_system_command_ = Exec_System_Command;\
|
|
|
|
app_links->clipboard_post_ = Clipboard_Post;\
|
|
|
|
app_links->clipboard_count_ = Clipboard_Count;\
|
|
|
|
app_links->clipboard_index_ = Clipboard_Index;\
|
2017-05-21 01:22:20 +00:00
|
|
|
app_links->create_parse_context_ = Create_Parse_Context;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->get_buffer_count_ = Get_Buffer_Count;\
|
|
|
|
app_links->get_buffer_first_ = Get_Buffer_First;\
|
|
|
|
app_links->get_buffer_next_ = Get_Buffer_Next;\
|
|
|
|
app_links->get_buffer_ = Get_Buffer;\
|
|
|
|
app_links->get_buffer_by_name_ = Get_Buffer_By_Name;\
|
2017-06-28 15:15:54 +00:00
|
|
|
app_links->get_buffer_by_file_name_ = Get_Buffer_By_File_Name;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->buffer_read_range_ = Buffer_Read_Range;\
|
|
|
|
app_links->buffer_replace_range_ = Buffer_Replace_Range;\
|
|
|
|
app_links->buffer_compute_cursor_ = Buffer_Compute_Cursor;\
|
|
|
|
app_links->buffer_batch_edit_ = Buffer_Batch_Edit;\
|
|
|
|
app_links->buffer_add_markers_ = Buffer_Add_Markers;\
|
|
|
|
app_links->get_buffer_by_marker_handle_ = Get_Buffer_By_Marker_Handle;\
|
2018-05-07 02:47:22 +00:00
|
|
|
app_links->get_user_data_by_marker_handle_ = Get_User_Data_By_Marker_Handle;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->buffer_set_markers_ = Buffer_Set_Markers;\
|
|
|
|
app_links->buffer_get_markers_ = Buffer_Get_Markers;\
|
|
|
|
app_links->buffer_remove_markers_ = Buffer_Remove_Markers;\
|
|
|
|
app_links->buffer_get_setting_ = Buffer_Get_Setting;\
|
|
|
|
app_links->buffer_set_setting_ = Buffer_Set_Setting;\
|
2018-08-11 00:42:15 +00:00
|
|
|
app_links->buffer_get_lifetime_handle_ = Buffer_Get_Lifetime_Handle;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->buffer_token_count_ = Buffer_Token_Count;\
|
|
|
|
app_links->buffer_read_tokens_ = Buffer_Read_Tokens;\
|
|
|
|
app_links->buffer_get_token_index_ = Buffer_Get_Token_Index;\
|
2017-04-23 00:53:19 +00:00
|
|
|
app_links->buffer_send_end_signal_ = Buffer_Send_End_Signal;\
|
2017-07-17 20:43:01 +00:00
|
|
|
app_links->create_buffer_ = Create_Buffer;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->save_buffer_ = Save_Buffer;\
|
|
|
|
app_links->kill_buffer_ = Kill_Buffer;\
|
|
|
|
app_links->get_view_first_ = Get_View_First;\
|
|
|
|
app_links->get_view_next_ = Get_View_Next;\
|
|
|
|
app_links->get_view_ = Get_View;\
|
|
|
|
app_links->get_active_view_ = Get_Active_View;\
|
|
|
|
app_links->open_view_ = Open_View;\
|
|
|
|
app_links->close_view_ = Close_View;\
|
|
|
|
app_links->set_active_view_ = Set_Active_View;\
|
|
|
|
app_links->view_get_setting_ = View_Get_Setting;\
|
|
|
|
app_links->view_set_setting_ = View_Set_Setting;\
|
2018-08-11 00:42:15 +00:00
|
|
|
app_links->view_get_lifetime_handle_ = View_Get_Lifetime_Handle;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->view_set_split_proportion_ = View_Set_Split_Proportion;\
|
|
|
|
app_links->view_compute_cursor_ = View_Compute_Cursor;\
|
|
|
|
app_links->view_set_cursor_ = View_Set_Cursor;\
|
|
|
|
app_links->view_set_scroll_ = View_Set_Scroll;\
|
|
|
|
app_links->view_set_mark_ = View_Set_Mark;\
|
|
|
|
app_links->view_set_highlight_ = View_Set_Highlight;\
|
|
|
|
app_links->view_set_buffer_ = View_Set_Buffer;\
|
|
|
|
app_links->view_post_fade_ = View_Post_Fade;\
|
2018-07-14 01:13:05 +00:00
|
|
|
app_links->view_start_ui_mode_ = View_Start_UI_Mode;\
|
|
|
|
app_links->view_end_ui_mode_ = View_End_UI_Mode;\
|
|
|
|
app_links->view_set_ui_ = View_Set_UI;\
|
2018-08-04 02:41:38 +00:00
|
|
|
app_links->view_get_ui_copy_ = View_Get_UI_Copy;\
|
2018-08-11 00:42:15 +00:00
|
|
|
app_links->create_core_variable_ = Create_Core_Variable;\
|
|
|
|
app_links->core_variable_set_ = Core_Variable_Set;\
|
|
|
|
app_links->core_variable_get_ = Core_Variable_Get;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->get_user_input_ = Get_User_Input;\
|
|
|
|
app_links->get_command_input_ = Get_Command_Input;\
|
|
|
|
app_links->get_mouse_state_ = Get_Mouse_State;\
|
|
|
|
app_links->start_query_bar_ = Start_Query_Bar;\
|
|
|
|
app_links->end_query_bar_ = End_Query_Bar;\
|
|
|
|
app_links->print_message_ = Print_Message;\
|
2018-08-10 21:52:57 +00:00
|
|
|
app_links->get_theme_count_ = Get_Theme_Count;\
|
|
|
|
app_links->get_theme_name_ = Get_Theme_Name;\
|
2017-06-05 21:48:49 +00:00
|
|
|
app_links->create_theme_ = Create_Theme;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->change_theme_ = Change_Theme;\
|
2018-08-10 21:52:57 +00:00
|
|
|
app_links->change_theme_by_index_ = Change_Theme_By_Index;\
|
2017-11-20 23:31:57 +00:00
|
|
|
app_links->get_largest_face_id_ = Get_Largest_Face_ID;\
|
|
|
|
app_links->set_global_face_ = Set_Global_Face;\
|
|
|
|
app_links->buffer_set_face_ = Buffer_Set_Face;\
|
|
|
|
app_links->get_face_description_ = Get_Face_Description;\
|
|
|
|
app_links->get_face_id_ = Get_Face_ID;\
|
|
|
|
app_links->try_create_new_face_ = Try_Create_New_Face;\
|
|
|
|
app_links->try_modify_face_ = Try_Modify_Face;\
|
|
|
|
app_links->try_release_face_ = Try_Release_Face;\
|
|
|
|
app_links->get_available_font_count_ = Get_Available_Font_Count;\
|
|
|
|
app_links->get_available_font_ = Get_Available_Font;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->set_theme_colors_ = Set_Theme_Colors;\
|
|
|
|
app_links->get_theme_colors_ = Get_Theme_Colors;\
|
|
|
|
app_links->directory_get_hot_ = Directory_Get_Hot;\
|
2017-06-20 20:37:45 +00:00
|
|
|
app_links->directory_set_hot_ = Directory_Set_Hot;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->get_file_list_ = Get_File_List;\
|
|
|
|
app_links->free_file_list_ = Free_File_List;\
|
|
|
|
app_links->set_gui_up_down_keys_ = Set_GUI_Up_Down_Keys;\
|
|
|
|
app_links->memory_allocate_ = Memory_Allocate;\
|
|
|
|
app_links->memory_set_protection_ = Memory_Set_Protection;\
|
|
|
|
app_links->memory_free_ = Memory_Free;\
|
|
|
|
app_links->file_exists_ = File_Exists;\
|
|
|
|
app_links->directory_cd_ = Directory_CD;\
|
|
|
|
app_links->get_4ed_path_ = Get_4ed_Path;\
|
|
|
|
app_links->show_mouse_cursor_ = Show_Mouse_Cursor;\
|
2017-07-18 22:09:16 +00:00
|
|
|
app_links->set_fullscreen_ = Set_Fullscreen;\
|
2017-04-18 14:25:53 +00:00
|
|
|
app_links->is_fullscreen_ = Is_Fullscreen;\
|
2017-11-30 16:39:35 +00:00
|
|
|
app_links->send_exit_signal_ = Send_Exit_Signal;\
|
2017-11-30 23:25:49 +00:00
|
|
|
app_links->set_window_title_ = Set_Window_Title;} while(false)
|
2017-04-18 14:25:53 +00:00
|
|
|
#if defined(ALLOW_DEP_4CODER)
|
2017-05-14 23:42:16 +00:00
|
|
|
static inline bool32 global_set_setting(Application_Links *app, Global_Setting_ID setting, int32_t value){return(app->global_set_setting(app, setting, value));}
|
2017-11-08 18:24:30 +00:00
|
|
|
static inline bool32 global_set_mapping(Application_Links *app, void *data, int32_t size){return(app->global_set_mapping(app, data, size));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline bool32 exec_command(Application_Links *app, Command_ID command_id){return(app->exec_command(app, command_id));}
|
2017-07-17 22:46:56 +00:00
|
|
|
static inline bool32 exec_system_command(Application_Links *app, View_Summary *view, Buffer_Identifier buffer_id, char *path, int32_t path_len, char *command, int32_t command_len, Command_Line_Interface_Flag flags){return(app->exec_system_command(app, view, buffer_id, path, path_len, command, command_len, flags));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline void clipboard_post(Application_Links *app, int32_t clipboard_id, char *str, int32_t len){(app->clipboard_post(app, clipboard_id, str, len));}
|
|
|
|
static inline int32_t clipboard_count(Application_Links *app, int32_t clipboard_id){return(app->clipboard_count(app, clipboard_id));}
|
|
|
|
static inline int32_t clipboard_index(Application_Links *app, int32_t clipboard_id, int32_t item_index, char *out, int32_t len){return(app->clipboard_index(app, clipboard_id, item_index, out, len));}
|
2017-05-21 01:22:20 +00:00
|
|
|
static inline Parse_Context_ID create_parse_context(Application_Links *app, Parser_String_And_Type *kw, uint32_t kw_count, Parser_String_And_Type *pp, uint32_t pp_count){return(app->create_parse_context(app, kw, kw_count, pp, pp_count));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline int32_t get_buffer_count(Application_Links *app){return(app->get_buffer_count(app));}
|
|
|
|
static inline Buffer_Summary get_buffer_first(Application_Links *app, Access_Flag access){return(app->get_buffer_first(app, access));}
|
|
|
|
static inline void get_buffer_next(Application_Links *app, Buffer_Summary *buffer, Access_Flag access){(app->get_buffer_next(app, buffer, access));}
|
|
|
|
static inline Buffer_Summary get_buffer(Application_Links *app, Buffer_ID buffer_id, Access_Flag access){return(app->get_buffer(app, buffer_id, access));}
|
|
|
|
static inline Buffer_Summary get_buffer_by_name(Application_Links *app, char *name, int32_t len, Access_Flag access){return(app->get_buffer_by_name(app, name, len, access));}
|
2017-06-28 15:15:54 +00:00
|
|
|
static inline Buffer_Summary get_buffer_by_file_name(Application_Links *app, char *name, int32_t len, Access_Flag access){return(app->get_buffer_by_file_name(app, name, len, access));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline bool32 buffer_read_range(Application_Links *app, Buffer_Summary *buffer, int32_t start, int32_t end, char *out){return(app->buffer_read_range(app, buffer, start, end, out));}
|
|
|
|
static inline bool32 buffer_replace_range(Application_Links *app, Buffer_Summary *buffer, int32_t start, int32_t end, char *str, int32_t len){return(app->buffer_replace_range(app, buffer, start, end, str, len));}
|
|
|
|
static inline bool32 buffer_compute_cursor(Application_Links *app, Buffer_Summary *buffer, Buffer_Seek seek, Partial_Cursor *cursor_out){return(app->buffer_compute_cursor(app, buffer, seek, cursor_out));}
|
|
|
|
static inline bool32 buffer_batch_edit(Application_Links *app, Buffer_Summary *buffer, char *str, int32_t str_len, Buffer_Edit *edits, int32_t edit_count, Buffer_Batch_Edit_Type type){return(app->buffer_batch_edit(app, buffer, str, str_len, edits, edit_count, type));}
|
2018-05-07 02:47:22 +00:00
|
|
|
static inline Marker_Handle buffer_add_markers(Application_Links *app, Buffer_Summary *buffer, uint32_t marker_count, Marker_Delete_Callback *callback, void *user_data, uint32_t user_data_size){return(app->buffer_add_markers(app, buffer, marker_count, callback, user_data, user_data_size));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline Buffer_Summary get_buffer_by_marker_handle(Application_Links *app, Marker_Handle marker, Access_Flag access){return(app->get_buffer_by_marker_handle(app, marker, access));}
|
2018-05-07 02:47:22 +00:00
|
|
|
static inline Data get_user_data_by_marker_handle(Application_Links *app, Marker_Handle marker){return(app->get_user_data_by_marker_handle(app, marker));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline bool32 buffer_set_markers(Application_Links *app, Buffer_Summary *buffer, Marker_Handle marker, uint32_t first_marker_index, uint32_t marker_count, Marker *source_markers){return(app->buffer_set_markers(app, buffer, marker, first_marker_index, marker_count, source_markers));}
|
|
|
|
static inline bool32 buffer_get_markers(Application_Links *app, Buffer_Summary *buffer, Marker_Handle marker, uint32_t first_marker_index, uint32_t marker_count, Marker *markers_out){return(app->buffer_get_markers(app, buffer, marker, first_marker_index, marker_count, markers_out));}
|
|
|
|
static inline bool32 buffer_remove_markers(Application_Links *app, Buffer_Summary *buffer, Marker_Handle marker){return(app->buffer_remove_markers(app, buffer, marker));}
|
|
|
|
static inline bool32 buffer_get_setting(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t *value_out){return(app->buffer_get_setting(app, buffer, setting, value_out));}
|
|
|
|
static inline bool32 buffer_set_setting(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t value){return(app->buffer_set_setting(app, buffer, setting, value));}
|
2018-08-11 00:42:15 +00:00
|
|
|
static inline Lifetime_Handle buffer_get_lifetime_handle(Application_Links *app, Buffer_ID buffer_id){return(app->buffer_get_lifetime_handle(app, buffer_id));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline int32_t buffer_token_count(Application_Links *app, Buffer_Summary *buffer){return(app->buffer_token_count(app, buffer));}
|
|
|
|
static inline bool32 buffer_read_tokens(Application_Links *app, Buffer_Summary *buffer, int32_t start_token, int32_t end_token, Cpp_Token *tokens_out){return(app->buffer_read_tokens(app, buffer, start_token, end_token, tokens_out));}
|
|
|
|
static inline bool32 buffer_get_token_index(Application_Links *app, Buffer_Summary *buffer, int32_t pos, Cpp_Get_Token_Result *get_result){return(app->buffer_get_token_index(app, buffer, pos, get_result));}
|
2017-04-23 00:53:19 +00:00
|
|
|
static inline bool32 buffer_send_end_signal(Application_Links *app, Buffer_Summary *buffer){return(app->buffer_send_end_signal(app, buffer));}
|
2017-07-17 20:43:01 +00:00
|
|
|
static inline Buffer_Summary create_buffer(Application_Links *app, char *filename, int32_t filename_len, Buffer_Create_Flag flags){return(app->create_buffer(app, filename, filename_len, flags));}
|
2017-11-21 21:30:40 +00:00
|
|
|
static inline bool32 save_buffer(Application_Links *app, Buffer_Summary *buffer, char *file_name, int32_t file_name_len, uint32_t flags){return(app->save_buffer(app, buffer, file_name, file_name_len, flags));}
|
2018-08-05 07:09:18 +00:00
|
|
|
static inline Buffer_Kill_Result kill_buffer(Application_Links *app, Buffer_Identifier buffer, Buffer_Kill_Flag flags){return(app->kill_buffer(app, buffer, flags));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline View_Summary get_view_first(Application_Links *app, Access_Flag access){return(app->get_view_first(app, access));}
|
|
|
|
static inline void get_view_next(Application_Links *app, View_Summary *view, Access_Flag access){(app->get_view_next(app, view, access));}
|
|
|
|
static inline View_Summary get_view(Application_Links *app, View_ID view_id, Access_Flag access){return(app->get_view(app, view_id, access));}
|
|
|
|
static inline View_Summary get_active_view(Application_Links *app, Access_Flag access){return(app->get_active_view(app, access));}
|
|
|
|
static inline View_Summary open_view(Application_Links *app, View_Summary *view_location, View_Split_Position position){return(app->open_view(app, view_location, position));}
|
|
|
|
static inline bool32 close_view(Application_Links *app, View_Summary *view){return(app->close_view(app, view));}
|
|
|
|
static inline bool32 set_active_view(Application_Links *app, View_Summary *view){return(app->set_active_view(app, view));}
|
|
|
|
static inline bool32 view_get_setting(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t *value_out){return(app->view_get_setting(app, view, setting, value_out));}
|
|
|
|
static inline bool32 view_set_setting(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t value){return(app->view_set_setting(app, view, setting, value));}
|
2018-08-11 00:42:15 +00:00
|
|
|
static inline Lifetime_Handle view_get_lifetime_handle(Application_Links *app, View_ID view_id){return(app->view_get_lifetime_handle(app, view_id));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline bool32 view_set_split_proportion(Application_Links *app, View_Summary *view, float t){return(app->view_set_split_proportion(app, view, t));}
|
|
|
|
static inline bool32 view_compute_cursor(Application_Links *app, View_Summary *view, Buffer_Seek seek, Full_Cursor *cursor_out){return(app->view_compute_cursor(app, view, seek, cursor_out));}
|
|
|
|
static inline bool32 view_set_cursor(Application_Links *app, View_Summary *view, Buffer_Seek seek, bool32 set_preferred_x){return(app->view_set_cursor(app, view, seek, set_preferred_x));}
|
|
|
|
static inline bool32 view_set_scroll(Application_Links *app, View_Summary *view, GUI_Scroll_Vars scroll){return(app->view_set_scroll(app, view, scroll));}
|
|
|
|
static inline bool32 view_set_mark(Application_Links *app, View_Summary *view, Buffer_Seek seek){return(app->view_set_mark(app, view, seek));}
|
|
|
|
static inline bool32 view_set_highlight(Application_Links *app, View_Summary *view, int32_t start, int32_t end, bool32 turn_on){return(app->view_set_highlight(app, view, start, end, turn_on));}
|
|
|
|
static inline bool32 view_set_buffer(Application_Links *app, View_Summary *view, Buffer_ID buffer_id, Set_Buffer_Flag flags){return(app->view_set_buffer(app, view, buffer_id, flags));}
|
|
|
|
static inline bool32 view_post_fade(Application_Links *app, View_Summary *view, float seconds, int32_t start, int32_t end, int_color color){return(app->view_post_fade(app, view, seconds, start, end, color));}
|
2018-07-14 01:13:05 +00:00
|
|
|
static inline int32_t view_start_ui_mode(Application_Links *app, View_Summary *view){return(app->view_start_ui_mode(app, view));}
|
|
|
|
static inline int32_t view_end_ui_mode(Application_Links *app, View_Summary *view){return(app->view_end_ui_mode(app, view));}
|
|
|
|
static inline bool32 view_set_ui(Application_Links *app, View_Summary *view, UI_Control *control){return(app->view_set_ui(app, view, control));}
|
2018-08-04 02:41:38 +00:00
|
|
|
static inline UI_Control view_get_ui_copy(Application_Links *app, View_Summary *view, struct Partition *part){return(app->view_get_ui_copy(app, view, part));}
|
2018-08-11 05:42:00 +00:00
|
|
|
static inline int32_t create_core_variable(Application_Links *app, char *null_terminated_name, uint64_t default_value){return(app->create_core_variable(app, null_terminated_name, default_value));}
|
2018-08-11 00:42:15 +00:00
|
|
|
static inline bool32 core_variable_set(Application_Links *app, Lifetime_Handle handle, int32_t location, uint64_t value){return(app->core_variable_set(app, handle, location, value));}
|
|
|
|
static inline bool32 core_variable_get(Application_Links *app, Lifetime_Handle handle, int32_t location, uint64_t *value_out){return(app->core_variable_get(app, handle, location, value_out));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline User_Input get_user_input(Application_Links *app, Input_Type_Flag get_type, Input_Type_Flag abort_type){return(app->get_user_input(app, get_type, abort_type));}
|
|
|
|
static inline User_Input get_command_input(Application_Links *app){return(app->get_command_input(app));}
|
|
|
|
static inline Mouse_State get_mouse_state(Application_Links *app){return(app->get_mouse_state(app));}
|
|
|
|
static inline bool32 start_query_bar(Application_Links *app, Query_Bar *bar, uint32_t flags){return(app->start_query_bar(app, bar, flags));}
|
|
|
|
static inline void end_query_bar(Application_Links *app, Query_Bar *bar, uint32_t flags){(app->end_query_bar(app, bar, flags));}
|
|
|
|
static inline void print_message(Application_Links *app, char *str, int32_t len){(app->print_message(app, str, len));}
|
2018-08-10 21:52:57 +00:00
|
|
|
static inline int32_t get_theme_count(Application_Links *app){return(app->get_theme_count(app));}
|
|
|
|
static inline String get_theme_name(Application_Links *app, Partition *arena, int32_t index){return(app->get_theme_name(app, arena, index));}
|
2017-06-05 21:48:49 +00:00
|
|
|
static inline void create_theme(Application_Links *app, Theme *theme, char *name, int32_t len){(app->create_theme(app, theme, name, len));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline void change_theme(Application_Links *app, char *name, int32_t len){(app->change_theme(app, name, len));}
|
2018-08-10 21:52:57 +00:00
|
|
|
static inline bool32 change_theme_by_index(Application_Links *app, int32_t index){return(app->change_theme_by_index(app, index));}
|
2017-11-20 23:31:57 +00:00
|
|
|
static inline Face_ID get_largest_face_id(Application_Links *app){return(app->get_largest_face_id(app));}
|
|
|
|
static inline bool32 set_global_face(Application_Links *app, Face_ID id, bool32 apply_to_all_buffers){return(app->set_global_face(app, id, apply_to_all_buffers));}
|
|
|
|
static inline bool32 buffer_set_face(Application_Links *app, Buffer_Summary *buffer, Face_ID id){return(app->buffer_set_face(app, buffer, id));}
|
|
|
|
static inline Face_Description get_face_description(Application_Links *app, Face_ID id){return(app->get_face_description(app, id));}
|
|
|
|
static inline Face_ID get_face_id(Application_Links *app, Buffer_Summary *buffer){return(app->get_face_id(app, buffer));}
|
|
|
|
static inline Face_ID try_create_new_face(Application_Links *app, Face_Description *description){return(app->try_create_new_face(app, description));}
|
|
|
|
static inline bool32 try_modify_face(Application_Links *app, Face_ID id, Face_Description *description){return(app->try_modify_face(app, id, description));}
|
|
|
|
static inline bool32 try_release_face(Application_Links *app, Face_ID id, Face_ID replacement_id){return(app->try_release_face(app, id, replacement_id));}
|
|
|
|
static inline int32_t get_available_font_count(Application_Links *app){return(app->get_available_font_count(app));}
|
|
|
|
static inline Available_Font get_available_font(Application_Links *app, int32_t index){return(app->get_available_font(app, index));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline void set_theme_colors(Application_Links *app, Theme_Color *colors, int32_t count){(app->set_theme_colors(app, colors, count));}
|
|
|
|
static inline void get_theme_colors(Application_Links *app, Theme_Color *colors, int32_t count){(app->get_theme_colors(app, colors, count));}
|
|
|
|
static inline int32_t directory_get_hot(Application_Links *app, char *out, int32_t capacity){return(app->directory_get_hot(app, out, capacity));}
|
2017-06-20 20:37:45 +00:00
|
|
|
static inline bool32 directory_set_hot(Application_Links *app, char *str, int32_t len){return(app->directory_set_hot(app, str, len));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline File_List get_file_list(Application_Links *app, char *dir, int32_t len){return(app->get_file_list(app, dir, len));}
|
|
|
|
static inline void free_file_list(Application_Links *app, File_List list){(app->free_file_list(app, list));}
|
|
|
|
static inline void set_gui_up_down_keys(Application_Links *app, Key_Code up_key, Key_Modifier up_key_modifier, Key_Code down_key, Key_Modifier down_key_modifier){(app->set_gui_up_down_keys(app, up_key, up_key_modifier, down_key, down_key_modifier));}
|
|
|
|
static inline void* memory_allocate(Application_Links *app, int32_t size){return(app->memory_allocate(app, size));}
|
|
|
|
static inline bool32 memory_set_protection(Application_Links *app, void *ptr, int32_t size, Memory_Protect_Flags flags){return(app->memory_set_protection(app, ptr, size, flags));}
|
|
|
|
static inline void memory_free(Application_Links *app, void *ptr, int32_t size){(app->memory_free(app, ptr, size));}
|
|
|
|
static inline bool32 file_exists(Application_Links *app, char *filename, int32_t len){return(app->file_exists(app, filename, len));}
|
|
|
|
static inline bool32 directory_cd(Application_Links *app, char *dir, int32_t *len, int32_t capacity, char *rel_path, int32_t rel_len){return(app->directory_cd(app, dir, len, capacity, rel_path, rel_len));}
|
|
|
|
static inline int32_t get_4ed_path(Application_Links *app, char *out, int32_t capacity){return(app->get_4ed_path(app, out, capacity));}
|
|
|
|
static inline void show_mouse_cursor(Application_Links *app, Mouse_Cursor_Show_Type show){(app->show_mouse_cursor(app, show));}
|
2017-07-18 22:09:16 +00:00
|
|
|
static inline bool32 set_fullscreen(Application_Links *app, bool32 full_screen){return(app->set_fullscreen(app, full_screen));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline bool32 is_fullscreen(Application_Links *app){return(app->is_fullscreen(app));}
|
|
|
|
static inline void send_exit_signal(Application_Links *app){(app->send_exit_signal(app));}
|
2017-11-30 23:25:49 +00:00
|
|
|
static inline void set_window_title(Application_Links *app, char *title){(app->set_window_title(app, title));}
|
2017-04-18 14:25:53 +00:00
|
|
|
#else
|
2017-05-14 23:42:16 +00:00
|
|
|
static inline bool32 global_set_setting(Application_Links *app, Global_Setting_ID setting, int32_t value){return(app->global_set_setting_(app, setting, value));}
|
2017-11-08 18:24:30 +00:00
|
|
|
static inline bool32 global_set_mapping(Application_Links *app, void *data, int32_t size){return(app->global_set_mapping_(app, data, size));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline bool32 exec_command(Application_Links *app, Command_ID command_id){return(app->exec_command_(app, command_id));}
|
2017-07-17 22:46:56 +00:00
|
|
|
static inline bool32 exec_system_command(Application_Links *app, View_Summary *view, Buffer_Identifier buffer_id, char *path, int32_t path_len, char *command, int32_t command_len, Command_Line_Interface_Flag flags){return(app->exec_system_command_(app, view, buffer_id, path, path_len, command, command_len, flags));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline void clipboard_post(Application_Links *app, int32_t clipboard_id, char *str, int32_t len){(app->clipboard_post_(app, clipboard_id, str, len));}
|
|
|
|
static inline int32_t clipboard_count(Application_Links *app, int32_t clipboard_id){return(app->clipboard_count_(app, clipboard_id));}
|
|
|
|
static inline int32_t clipboard_index(Application_Links *app, int32_t clipboard_id, int32_t item_index, char *out, int32_t len){return(app->clipboard_index_(app, clipboard_id, item_index, out, len));}
|
2017-05-21 01:22:20 +00:00
|
|
|
static inline Parse_Context_ID create_parse_context(Application_Links *app, Parser_String_And_Type *kw, uint32_t kw_count, Parser_String_And_Type *pp, uint32_t pp_count){return(app->create_parse_context_(app, kw, kw_count, pp, pp_count));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline int32_t get_buffer_count(Application_Links *app){return(app->get_buffer_count_(app));}
|
|
|
|
static inline Buffer_Summary get_buffer_first(Application_Links *app, Access_Flag access){return(app->get_buffer_first_(app, access));}
|
|
|
|
static inline void get_buffer_next(Application_Links *app, Buffer_Summary *buffer, Access_Flag access){(app->get_buffer_next_(app, buffer, access));}
|
|
|
|
static inline Buffer_Summary get_buffer(Application_Links *app, Buffer_ID buffer_id, Access_Flag access){return(app->get_buffer_(app, buffer_id, access));}
|
|
|
|
static inline Buffer_Summary get_buffer_by_name(Application_Links *app, char *name, int32_t len, Access_Flag access){return(app->get_buffer_by_name_(app, name, len, access));}
|
2017-06-28 15:15:54 +00:00
|
|
|
static inline Buffer_Summary get_buffer_by_file_name(Application_Links *app, char *name, int32_t len, Access_Flag access){return(app->get_buffer_by_file_name_(app, name, len, access));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline bool32 buffer_read_range(Application_Links *app, Buffer_Summary *buffer, int32_t start, int32_t end, char *out){return(app->buffer_read_range_(app, buffer, start, end, out));}
|
|
|
|
static inline bool32 buffer_replace_range(Application_Links *app, Buffer_Summary *buffer, int32_t start, int32_t end, char *str, int32_t len){return(app->buffer_replace_range_(app, buffer, start, end, str, len));}
|
|
|
|
static inline bool32 buffer_compute_cursor(Application_Links *app, Buffer_Summary *buffer, Buffer_Seek seek, Partial_Cursor *cursor_out){return(app->buffer_compute_cursor_(app, buffer, seek, cursor_out));}
|
|
|
|
static inline bool32 buffer_batch_edit(Application_Links *app, Buffer_Summary *buffer, char *str, int32_t str_len, Buffer_Edit *edits, int32_t edit_count, Buffer_Batch_Edit_Type type){return(app->buffer_batch_edit_(app, buffer, str, str_len, edits, edit_count, type));}
|
2018-05-07 02:47:22 +00:00
|
|
|
static inline Marker_Handle buffer_add_markers(Application_Links *app, Buffer_Summary *buffer, uint32_t marker_count, Marker_Delete_Callback *callback, void *user_data, uint32_t user_data_size){return(app->buffer_add_markers_(app, buffer, marker_count, callback, user_data, user_data_size));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline Buffer_Summary get_buffer_by_marker_handle(Application_Links *app, Marker_Handle marker, Access_Flag access){return(app->get_buffer_by_marker_handle_(app, marker, access));}
|
2018-05-07 02:47:22 +00:00
|
|
|
static inline Data get_user_data_by_marker_handle(Application_Links *app, Marker_Handle marker){return(app->get_user_data_by_marker_handle_(app, marker));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline bool32 buffer_set_markers(Application_Links *app, Buffer_Summary *buffer, Marker_Handle marker, uint32_t first_marker_index, uint32_t marker_count, Marker *source_markers){return(app->buffer_set_markers_(app, buffer, marker, first_marker_index, marker_count, source_markers));}
|
|
|
|
static inline bool32 buffer_get_markers(Application_Links *app, Buffer_Summary *buffer, Marker_Handle marker, uint32_t first_marker_index, uint32_t marker_count, Marker *markers_out){return(app->buffer_get_markers_(app, buffer, marker, first_marker_index, marker_count, markers_out));}
|
|
|
|
static inline bool32 buffer_remove_markers(Application_Links *app, Buffer_Summary *buffer, Marker_Handle marker){return(app->buffer_remove_markers_(app, buffer, marker));}
|
|
|
|
static inline bool32 buffer_get_setting(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t *value_out){return(app->buffer_get_setting_(app, buffer, setting, value_out));}
|
|
|
|
static inline bool32 buffer_set_setting(Application_Links *app, Buffer_Summary *buffer, Buffer_Setting_ID setting, int32_t value){return(app->buffer_set_setting_(app, buffer, setting, value));}
|
2018-08-11 00:42:15 +00:00
|
|
|
static inline Lifetime_Handle buffer_get_lifetime_handle(Application_Links *app, Buffer_ID buffer_id){return(app->buffer_get_lifetime_handle_(app, buffer_id));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline int32_t buffer_token_count(Application_Links *app, Buffer_Summary *buffer){return(app->buffer_token_count_(app, buffer));}
|
|
|
|
static inline bool32 buffer_read_tokens(Application_Links *app, Buffer_Summary *buffer, int32_t start_token, int32_t end_token, Cpp_Token *tokens_out){return(app->buffer_read_tokens_(app, buffer, start_token, end_token, tokens_out));}
|
|
|
|
static inline bool32 buffer_get_token_index(Application_Links *app, Buffer_Summary *buffer, int32_t pos, Cpp_Get_Token_Result *get_result){return(app->buffer_get_token_index_(app, buffer, pos, get_result));}
|
2017-04-23 00:53:19 +00:00
|
|
|
static inline bool32 buffer_send_end_signal(Application_Links *app, Buffer_Summary *buffer){return(app->buffer_send_end_signal_(app, buffer));}
|
2017-07-17 20:43:01 +00:00
|
|
|
static inline Buffer_Summary create_buffer(Application_Links *app, char *filename, int32_t filename_len, Buffer_Create_Flag flags){return(app->create_buffer_(app, filename, filename_len, flags));}
|
2017-11-21 21:30:40 +00:00
|
|
|
static inline bool32 save_buffer(Application_Links *app, Buffer_Summary *buffer, char *file_name, int32_t file_name_len, uint32_t flags){return(app->save_buffer_(app, buffer, file_name, file_name_len, flags));}
|
2018-08-05 07:09:18 +00:00
|
|
|
static inline Buffer_Kill_Result kill_buffer(Application_Links *app, Buffer_Identifier buffer, Buffer_Kill_Flag flags){return(app->kill_buffer_(app, buffer, flags));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline View_Summary get_view_first(Application_Links *app, Access_Flag access){return(app->get_view_first_(app, access));}
|
|
|
|
static inline void get_view_next(Application_Links *app, View_Summary *view, Access_Flag access){(app->get_view_next_(app, view, access));}
|
|
|
|
static inline View_Summary get_view(Application_Links *app, View_ID view_id, Access_Flag access){return(app->get_view_(app, view_id, access));}
|
|
|
|
static inline View_Summary get_active_view(Application_Links *app, Access_Flag access){return(app->get_active_view_(app, access));}
|
|
|
|
static inline View_Summary open_view(Application_Links *app, View_Summary *view_location, View_Split_Position position){return(app->open_view_(app, view_location, position));}
|
|
|
|
static inline bool32 close_view(Application_Links *app, View_Summary *view){return(app->close_view_(app, view));}
|
|
|
|
static inline bool32 set_active_view(Application_Links *app, View_Summary *view){return(app->set_active_view_(app, view));}
|
|
|
|
static inline bool32 view_get_setting(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t *value_out){return(app->view_get_setting_(app, view, setting, value_out));}
|
|
|
|
static inline bool32 view_set_setting(Application_Links *app, View_Summary *view, View_Setting_ID setting, int32_t value){return(app->view_set_setting_(app, view, setting, value));}
|
2018-08-11 00:42:15 +00:00
|
|
|
static inline Lifetime_Handle view_get_lifetime_handle(Application_Links *app, View_ID view_id){return(app->view_get_lifetime_handle_(app, view_id));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline bool32 view_set_split_proportion(Application_Links *app, View_Summary *view, float t){return(app->view_set_split_proportion_(app, view, t));}
|
|
|
|
static inline bool32 view_compute_cursor(Application_Links *app, View_Summary *view, Buffer_Seek seek, Full_Cursor *cursor_out){return(app->view_compute_cursor_(app, view, seek, cursor_out));}
|
|
|
|
static inline bool32 view_set_cursor(Application_Links *app, View_Summary *view, Buffer_Seek seek, bool32 set_preferred_x){return(app->view_set_cursor_(app, view, seek, set_preferred_x));}
|
|
|
|
static inline bool32 view_set_scroll(Application_Links *app, View_Summary *view, GUI_Scroll_Vars scroll){return(app->view_set_scroll_(app, view, scroll));}
|
|
|
|
static inline bool32 view_set_mark(Application_Links *app, View_Summary *view, Buffer_Seek seek){return(app->view_set_mark_(app, view, seek));}
|
|
|
|
static inline bool32 view_set_highlight(Application_Links *app, View_Summary *view, int32_t start, int32_t end, bool32 turn_on){return(app->view_set_highlight_(app, view, start, end, turn_on));}
|
|
|
|
static inline bool32 view_set_buffer(Application_Links *app, View_Summary *view, Buffer_ID buffer_id, Set_Buffer_Flag flags){return(app->view_set_buffer_(app, view, buffer_id, flags));}
|
|
|
|
static inline bool32 view_post_fade(Application_Links *app, View_Summary *view, float seconds, int32_t start, int32_t end, int_color color){return(app->view_post_fade_(app, view, seconds, start, end, color));}
|
2018-07-14 01:13:05 +00:00
|
|
|
static inline int32_t view_start_ui_mode(Application_Links *app, View_Summary *view){return(app->view_start_ui_mode_(app, view));}
|
|
|
|
static inline int32_t view_end_ui_mode(Application_Links *app, View_Summary *view){return(app->view_end_ui_mode_(app, view));}
|
|
|
|
static inline bool32 view_set_ui(Application_Links *app, View_Summary *view, UI_Control *control){return(app->view_set_ui_(app, view, control));}
|
2018-08-04 02:41:38 +00:00
|
|
|
static inline UI_Control view_get_ui_copy(Application_Links *app, View_Summary *view, struct Partition *part){return(app->view_get_ui_copy_(app, view, part));}
|
2018-08-11 05:42:00 +00:00
|
|
|
static inline int32_t create_core_variable(Application_Links *app, char *null_terminated_name, uint64_t default_value){return(app->create_core_variable_(app, null_terminated_name, default_value));}
|
2018-08-11 00:42:15 +00:00
|
|
|
static inline bool32 core_variable_set(Application_Links *app, Lifetime_Handle handle, int32_t location, uint64_t value){return(app->core_variable_set_(app, handle, location, value));}
|
|
|
|
static inline bool32 core_variable_get(Application_Links *app, Lifetime_Handle handle, int32_t location, uint64_t *value_out){return(app->core_variable_get_(app, handle, location, value_out));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline User_Input get_user_input(Application_Links *app, Input_Type_Flag get_type, Input_Type_Flag abort_type){return(app->get_user_input_(app, get_type, abort_type));}
|
|
|
|
static inline User_Input get_command_input(Application_Links *app){return(app->get_command_input_(app));}
|
|
|
|
static inline Mouse_State get_mouse_state(Application_Links *app){return(app->get_mouse_state_(app));}
|
|
|
|
static inline bool32 start_query_bar(Application_Links *app, Query_Bar *bar, uint32_t flags){return(app->start_query_bar_(app, bar, flags));}
|
|
|
|
static inline void end_query_bar(Application_Links *app, Query_Bar *bar, uint32_t flags){(app->end_query_bar_(app, bar, flags));}
|
|
|
|
static inline void print_message(Application_Links *app, char *str, int32_t len){(app->print_message_(app, str, len));}
|
2018-08-10 21:52:57 +00:00
|
|
|
static inline int32_t get_theme_count(Application_Links *app){return(app->get_theme_count_(app));}
|
|
|
|
static inline String get_theme_name(Application_Links *app, Partition *arena, int32_t index){return(app->get_theme_name_(app, arena, index));}
|
2017-06-05 21:48:49 +00:00
|
|
|
static inline void create_theme(Application_Links *app, Theme *theme, char *name, int32_t len){(app->create_theme_(app, theme, name, len));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline void change_theme(Application_Links *app, char *name, int32_t len){(app->change_theme_(app, name, len));}
|
2018-08-10 21:52:57 +00:00
|
|
|
static inline bool32 change_theme_by_index(Application_Links *app, int32_t index){return(app->change_theme_by_index_(app, index));}
|
2017-11-20 23:31:57 +00:00
|
|
|
static inline Face_ID get_largest_face_id(Application_Links *app){return(app->get_largest_face_id_(app));}
|
|
|
|
static inline bool32 set_global_face(Application_Links *app, Face_ID id, bool32 apply_to_all_buffers){return(app->set_global_face_(app, id, apply_to_all_buffers));}
|
|
|
|
static inline bool32 buffer_set_face(Application_Links *app, Buffer_Summary *buffer, Face_ID id){return(app->buffer_set_face_(app, buffer, id));}
|
|
|
|
static inline Face_Description get_face_description(Application_Links *app, Face_ID id){return(app->get_face_description_(app, id));}
|
|
|
|
static inline Face_ID get_face_id(Application_Links *app, Buffer_Summary *buffer){return(app->get_face_id_(app, buffer));}
|
|
|
|
static inline Face_ID try_create_new_face(Application_Links *app, Face_Description *description){return(app->try_create_new_face_(app, description));}
|
|
|
|
static inline bool32 try_modify_face(Application_Links *app, Face_ID id, Face_Description *description){return(app->try_modify_face_(app, id, description));}
|
|
|
|
static inline bool32 try_release_face(Application_Links *app, Face_ID id, Face_ID replacement_id){return(app->try_release_face_(app, id, replacement_id));}
|
|
|
|
static inline int32_t get_available_font_count(Application_Links *app){return(app->get_available_font_count_(app));}
|
|
|
|
static inline Available_Font get_available_font(Application_Links *app, int32_t index){return(app->get_available_font_(app, index));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline void set_theme_colors(Application_Links *app, Theme_Color *colors, int32_t count){(app->set_theme_colors_(app, colors, count));}
|
|
|
|
static inline void get_theme_colors(Application_Links *app, Theme_Color *colors, int32_t count){(app->get_theme_colors_(app, colors, count));}
|
|
|
|
static inline int32_t directory_get_hot(Application_Links *app, char *out, int32_t capacity){return(app->directory_get_hot_(app, out, capacity));}
|
2017-06-20 20:37:45 +00:00
|
|
|
static inline bool32 directory_set_hot(Application_Links *app, char *str, int32_t len){return(app->directory_set_hot_(app, str, len));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline File_List get_file_list(Application_Links *app, char *dir, int32_t len){return(app->get_file_list_(app, dir, len));}
|
|
|
|
static inline void free_file_list(Application_Links *app, File_List list){(app->free_file_list_(app, list));}
|
|
|
|
static inline void set_gui_up_down_keys(Application_Links *app, Key_Code up_key, Key_Modifier up_key_modifier, Key_Code down_key, Key_Modifier down_key_modifier){(app->set_gui_up_down_keys_(app, up_key, up_key_modifier, down_key, down_key_modifier));}
|
|
|
|
static inline void* memory_allocate(Application_Links *app, int32_t size){return(app->memory_allocate_(app, size));}
|
|
|
|
static inline bool32 memory_set_protection(Application_Links *app, void *ptr, int32_t size, Memory_Protect_Flags flags){return(app->memory_set_protection_(app, ptr, size, flags));}
|
|
|
|
static inline void memory_free(Application_Links *app, void *ptr, int32_t size){(app->memory_free_(app, ptr, size));}
|
|
|
|
static inline bool32 file_exists(Application_Links *app, char *filename, int32_t len){return(app->file_exists_(app, filename, len));}
|
|
|
|
static inline bool32 directory_cd(Application_Links *app, char *dir, int32_t *len, int32_t capacity, char *rel_path, int32_t rel_len){return(app->directory_cd_(app, dir, len, capacity, rel_path, rel_len));}
|
|
|
|
static inline int32_t get_4ed_path(Application_Links *app, char *out, int32_t capacity){return(app->get_4ed_path_(app, out, capacity));}
|
|
|
|
static inline void show_mouse_cursor(Application_Links *app, Mouse_Cursor_Show_Type show){(app->show_mouse_cursor_(app, show));}
|
2017-07-18 22:09:16 +00:00
|
|
|
static inline bool32 set_fullscreen(Application_Links *app, bool32 full_screen){return(app->set_fullscreen_(app, full_screen));}
|
2017-04-18 14:25:53 +00:00
|
|
|
static inline bool32 is_fullscreen(Application_Links *app){return(app->is_fullscreen_(app));}
|
|
|
|
static inline void send_exit_signal(Application_Links *app){(app->send_exit_signal_(app));}
|
2017-11-30 23:25:49 +00:00
|
|
|
static inline void set_window_title(Application_Links *app, char *title){(app->set_window_title_(app, title));}
|
2017-04-18 14:25:53 +00:00
|
|
|
#endif
|