2018-03-24 21:43:57 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 24.03.2018
|
|
|
|
*
|
|
|
|
* CLI handling code.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
#if !defined(FRED_CLI_H)
|
|
|
|
#define FRED_CLI_H
|
|
|
|
|
2019-03-21 03:18:08 +00:00
|
|
|
struct Child_Process{
|
|
|
|
Node node;
|
|
|
|
Child_Process_ID id;
|
2018-03-24 21:43:57 +00:00
|
|
|
CLI_Handles cli;
|
|
|
|
Editing_File *out_file;
|
|
|
|
b32 cursor_at_end;
|
|
|
|
};
|
|
|
|
|
2019-03-21 03:18:08 +00:00
|
|
|
struct Child_Process_Container{
|
|
|
|
Arena arena;
|
|
|
|
Node child_process_active_list;
|
|
|
|
Node child_process_free_list;
|
|
|
|
i32 active_child_process_count;
|
|
|
|
u32 child_process_id_counter;
|
2019-09-04 05:31:35 +00:00
|
|
|
Table_u64_u64 id_to_ptr_table;
|
|
|
|
Table_u64_u64 id_to_return_code_table;
|
2019-03-21 03:18:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct Child_Process_And_ID{
|
|
|
|
Child_Process *process;
|
|
|
|
Child_Process_ID id;
|
2018-03-24 21:43:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|