aboutsummaryrefslogtreecommitdiffstats
path: root/code/4ed_cli.h
blob: 701f07a0385fc8d68e0b5787875d78459988daf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 * Mr. 4th Dimention - Allen Webster
 *
 * 24.03.2018
 *
 * CLI handling code.
 *
 */

// TOP

#if !defined(FRED_CLI_H)
#define FRED_CLI_H

struct Child_Process{
    Node node;
    Child_Process_ID id;
    CLI_Handles cli;
    Editing_File *out_file;
    b32 cursor_at_end;
};

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;
    Table_u64_u64 id_to_ptr_table;
    Table_u64_u64 id_to_return_code_table;
};

struct Child_Process_And_ID{
    Child_Process *process;
    Child_Process_ID id;
};

#endif

// BOTTOM