Hi,

attached patch cleans up the RES_TYPE_MIN structure defined in
src/data.c. This is a smaller version of the RES_TYPE structure in
lib/framework/frameresource.h which has some more fields.

Instead of removing the unused fields from RES_TYPE_MIN as done in the
attached patch, we could alternatively use the RES_TYPE structure in
src/data.c too, and initialize the not needed values to NULL here.

Please comment.

Regards,
Stefan

--- src/data.c  (revision 412)
+++ src/data.c  (working copy)
@@ -1191,16 +1191,12 @@
 
 
 
-// New reduced resource type ... specially for PSX
-// These are statically defined in data.c
-// this is also defined in frameresource.c - needs moving to a .h file
+// Reduced resource type - the complete RES_TYPE is defined in frameresource.h
 typedef struct
 {
        const STRING *aType;                    // points to the string 
defining the type (e.g. SCRIPT) - NULL indicates end of list
        RES_BUFFERLOAD buffLoad;                // routine to process the data 
for this type
        RES_FREE release;                       // routine to release the data 
(NULL indicates none)
-       void *ResourceData;                     // Linked list of data - set to 
null initially
-       UDWORD HashedType;                      // hashed version of aType
 } RES_TYPE_MIN;
 
 
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to