X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=pr_comp.h;h=6b35e5c15629352bad8344326b00a89cc2599442;hp=879999970d1fceb5004919cbed28a4276ebc0caf;hb=0a2edb85ad96a5fe17d5c3d694e70ab8aaf65def;hpb=0256e57e16a302ad45090618b8d6eb5930788809 diff --git a/pr_comp.h b/pr_comp.h index 87999997..6b35e5c1 100644 --- a/pr_comp.h +++ b/pr_comp.h @@ -143,41 +143,57 @@ typedef struct int first_statement; // negative numbers are builtins int parm_start; int locals; // total ints of parms + locals - + int profile; // runtime - + int s_name; int s_file; // source file defined in - + int numparms; qbyte parm_size[MAX_PARMS]; } dfunction_t; +typedef struct +{ + int first_statement; // negative numbers are builtins + int parm_start; + int locals; // total ints of parms + locals + + int profile; // runtime + int builtinsprofile; // cost of builtin functions called by this function + + int s_name; + int s_file; // source file defined in + + int numparms; + qbyte parm_size[MAX_PARMS]; +} mfunction_t; + #define PROG_VERSION 6 typedef struct { int version; int crc; // check of header file - + int ofs_statements; int numstatements; // statement 0 is an error int ofs_globaldefs; int numglobaldefs; - + int ofs_fielddefs; int numfielddefs; - + int ofs_functions; int numfunctions; // function 0 is an empty - + int ofs_strings; int numstrings; // first string is a null string int ofs_globals; int numglobals; - + int entityfields; } dprograms_t;