2017-07-18 16:41:40 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 18.07.2017
|
|
|
|
*
|
|
|
|
* Code to link system functions using a name convention
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
// TODO(allen): Should auto-gen this!
|
|
|
|
|
2017-07-18 17:44:54 +00:00
|
|
|
#define SYSLINK(name) sysfunc.name = system_##name
|
2017-07-18 16:41:40 +00:00
|
|
|
|
|
|
|
internal void
|
2017-07-19 16:33:12 +00:00
|
|
|
link_system_code(){
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(get_canonical);
|
2019-08-04 00:49:40 +00:00
|
|
|
SYSLINK(get_file_list);
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(add_listener);
|
|
|
|
SYSLINK(remove_listener);
|
|
|
|
SYSLINK(get_file_change);
|
2019-02-14 00:24:03 +00:00
|
|
|
SYSLINK(quick_file_attributes);
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(load_handle);
|
2019-02-13 23:15:22 +00:00
|
|
|
SYSLINK(load_attributes);
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(load_file);
|
|
|
|
SYSLINK(load_close);
|
|
|
|
SYSLINK(save_file);
|
|
|
|
|
|
|
|
SYSLINK(now_time);
|
2019-02-04 01:33:44 +00:00
|
|
|
SYSLINK(wake_up_timer_create);
|
|
|
|
SYSLINK(wake_up_timer_release);
|
|
|
|
SYSLINK(wake_up_timer_set);
|
2017-07-18 16:41:40 +00:00
|
|
|
|
|
|
|
SYSLINK(post_clipboard);
|
|
|
|
|
|
|
|
SYSLINK(create_coroutine);
|
|
|
|
SYSLINK(launch_coroutine);
|
|
|
|
SYSLINK(resume_coroutine);
|
|
|
|
SYSLINK(yield_coroutine);
|
|
|
|
|
|
|
|
SYSLINK(cli_call);
|
|
|
|
SYSLINK(cli_begin_update);
|
|
|
|
SYSLINK(cli_update_step);
|
|
|
|
SYSLINK(cli_end_update);
|
|
|
|
|
2019-02-24 07:22:16 +00:00
|
|
|
SYSLINK(open_color_picker);
|
|
|
|
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(post_job);
|
|
|
|
SYSLINK(cancel_job);
|
|
|
|
SYSLINK(check_cancel);
|
|
|
|
SYSLINK(grow_thread_memory);
|
|
|
|
SYSLINK(acquire_lock);
|
|
|
|
SYSLINK(release_lock);
|
|
|
|
|
|
|
|
SYSLINK(memory_allocate);
|
|
|
|
SYSLINK(memory_set_protection);
|
|
|
|
SYSLINK(memory_free);
|
2017-11-30 15:44:08 +00:00
|
|
|
|
2017-07-19 16:33:12 +00:00
|
|
|
SYSLINK(get_current_path);
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(get_4ed_path);
|
2017-11-30 15:44:08 +00:00
|
|
|
|
2017-07-18 22:09:16 +00:00
|
|
|
SYSLINK(set_fullscreen);
|
2017-07-18 16:41:40 +00:00
|
|
|
SYSLINK(is_fullscreen);
|
|
|
|
SYSLINK(show_mouse_cursor);
|
|
|
|
}
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|