]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - pr_comp.h
-"add color code to start of chat message to prevent nick colors from messing up...
[xonotic/darkplaces.git] / pr_comp.h
index 94410c4169fd685d3425ffcef77cbee9bcce1878..46fdc6b70c624aeee86ec6655a6f1ce0dd63ada1 100644 (file)
--- 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,60 @@ 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             callcount; // times the functions has been called since the last profile call
+
+       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
+