]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_comp.h
remove the exec default.cfg call from the reset to defaults, I have no idea why it...
[xonotic/darkplaces.git] / pr_comp.h
index 94410c4169fd685d3425ffcef77cbee9bcce1878..6b35e5c15629352bad8344326b00a89cc2599442 100644 (file)
--- 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;
-       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
+