X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=pr_comp.h;h=6b35e5c15629352bad8344326b00a89cc2599442;hb=31060b267734aa1a6a5dfac52a396b76d7be1b5c;hp=614881ac3d10b052e4bfb1a42b00a0cba36fd91b;hpb=c4ee1bbcc6b2f917465f07269ad09942bbf40849;p=xonotic%2Fdarkplaces.git diff --git a/pr_comp.h b/pr_comp.h index 614881ac..6b35e5c1 100644 --- a/pr_comp.h +++ b/pr_comp.h @@ -20,6 +20,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // this file is shared by quake and qcc +#ifndef PR_COMP_H +#define PR_COMP_H + typedef int func_t; typedef int string_t; @@ -140,41 +143,59 @@ 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; +#endif +