]> git.xonotic.org Git - voretournament/voretournament.git/blobdiff - misc/source/fteqcc-src/progslib.h
Update the prebuilt engines to latest version of darkplaces. Also put Linux rebrand...
[voretournament/voretournament.git] / misc / source / fteqcc-src / progslib.h
index 1160959b3c5cfb782861a735adcf343b64b117ab..0bb9f1a9ab3b59ade1cf099292aacd959fe5174e 100644 (file)
@@ -109,7 +109,7 @@ struct progfuncs_s {
        pbool   (*Decompile)                            (progfuncs_t *prinst, char *fname);
 
 
-       struct prinst_s *prinst;        //internal variables. Leave alone.
+       struct prinst_s *inst;  //internal variables. Leave alone.
 
        int             *callargc;      //number of args of built-in call
        void    (*RegisterBuiltin)                      (progfuncs_t *prinst, char *, builtin_t);
@@ -139,9 +139,10 @@ struct progfuncs_s {
        void (*EntClear)                                        (progfuncs_t *progfuncs, struct edict_s *e);
        void (*FindPrefixGlobals)                       (progfuncs_t *progfuncs, char *prefix, void (*found) (progfuncs_t *progfuncs, char *name, union eval_s *val, etype_t type) );
 
-       void *(*AddressableAlloc)                       (progfuncs_t *progfuncs, int ammount); /*returns memory within the qc block, use stringtoprogs to get a usable qc pointer/string*/
+       void *(*AddressableAlloc)                       (progfuncs_t *progfuncs, unsigned int ammount); /*returns memory within the qc block, use stringtoprogs to get a usable qc pointer/string*/
 
        string_t (*AllocTempString)                     (progfuncs_t *prinst, char **str, unsigned int len);
+       void (*AddressableFree)                         (progfuncs_t *progfuncs, void *mem); /*frees a block of addressable memory*/
 };
 
 typedef struct progexterns_s {