Some minor cleanups

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3224 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2009-10-12 02:26:48 +00:00
parent 6473363eb2
commit 3c25fd1934
3 changed files with 9 additions and 3 deletions
+4 -2
View File
@@ -28,7 +28,8 @@ const char *_cur_resfile_name;
// At other times, it is NULL. // At other times, it is NULL.
ResourceDesc * ResourceDesc *
lookupResourceDesc (RESOURCE_INDEX idx, RESOURCE res) { lookupResourceDesc (RESOURCE_INDEX idx, RESOURCE res)
{
return (ResourceDesc *) CharHashTable_find (idx->map, res); return (ResourceDesc *) CharHashTable_find (idx->map, res);
} }
@@ -249,7 +250,8 @@ res_DetachResource (RESOURCE res)
} }
BOOLEAN BOOLEAN
FreeResourceData (void *data) { FreeResourceData (void *data)
{
HFree (data); HFree (data);
return TRUE; return TRUE;
} }
+2
View File
@@ -24,6 +24,8 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
// for abs()
#include <errno.h> #include <errno.h>
#ifndef _WIN32_WCE #ifndef _WIN32_WCE
# include <memory.h> # include <memory.h>
+2
View File
@@ -16,6 +16,8 @@
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
#include <stdlib.h>
// for abs()
#include "sound.h" #include "sound.h"
#include "libs/tasklib.h" #include "libs/tasklib.h"
#include "libs/log.h" #include "libs/log.h"