4coder/4ed_system_shared.h

47 lines
825 B
C
Raw Normal View History

2016-02-11 17:17:52 +00:00
/*
* Mr. 4th Dimention - Allen Webster
*
* 09.02.2016
*
* Shared system functions
*
*/
// TOP
// TODO(allen): Find a new name/classification for this.
2016-02-11 17:17:52 +00:00
2017-03-19 18:25:12 +00:00
#if !defined(FRED_SYSTEM_SHARED_H)
#define FRED_SYSTEM_SHARED_H
2016-05-11 20:40:53 +00:00
struct File_Data{
char *data;
u32 size;
2016-05-11 20:40:53 +00:00
b32 got_file;
};
global File_Data null_file_data = {0};
2016-05-11 20:40:53 +00:00
2016-05-27 17:11:38 +00:00
#define Sys_File_Can_Be_Made_Sig(name) b32 name(char *filename)
internal Sys_File_Can_Be_Made_Sig(system_file_can_be_made);
#define Sys_Get_Binary_Path_Sig(name) i32 name(String *out)
2016-05-27 17:11:38 +00:00
internal Sys_Get_Binary_Path_Sig(system_get_binary_path);
2016-02-11 17:17:52 +00:00
/////////////////////////////////////
struct Shared_Vars{
File_Track_System track;
void *track_table;
u32 track_table_size;
u32 track_node_size;
Partition scratch;
};
global Shared_Vars shared_vars;
2016-02-11 17:17:52 +00:00
2017-03-19 18:25:12 +00:00
#endif
2016-02-11 17:17:52 +00:00
// BOTTOM