X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=pr_comp.h;h=7a744645669fa785d49d721c059f4f07587eda88;hb=fbf1b6e59f36920a1deaa277178c4c7023128fa7;hp=94410c4169fd685d3425ffcef77cbee9bcce1878;hpb=8dcce44300385b12c46d494c06aadcfa35a8bc14;p=xonotic%2Fdarkplaces.git diff --git a/pr_comp.h b/pr_comp.h index 94410c41..7a744645 100644 --- a/pr_comp.h +++ b/pr_comp.h @@ -20,7 +20,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // this file is shared by quake and qcc -typedef int func_t; +#ifndef PR_COMP_H +#define PR_COMP_H + +typedef unsigned int func_t; typedef int string_t; typedef enum {ev_void, ev_string, ev_float, ev_vector, ev_entity, ev_field, ev_function, ev_pointer} etype_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; - byte parm_size[MAX_PARMS]; + 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 +