39 #include "context.h" |
39 #include "context.h" |
40 #include "../ui/window.h" |
40 #include "../ui/window.h" |
41 #include "document.h" |
41 #include "document.h" |
42 #include "types.h" |
42 #include "types.h" |
43 |
43 |
|
44 |
44 static UiContext* global_context; |
45 static UiContext* global_context; |
45 |
46 |
46 void uic_init_global_context(void) { |
47 void uic_init_global_context(void) { |
47 CxMempool *mp = cxBasicMempoolCreate(32); |
48 CxMempool *mp = cxBasicMempoolCreate(32); |
48 global_context = uic_context(NULL, mp); |
49 global_context = uic_context(NULL, mp); |