diff options
author | Max Horn | 2003-05-28 20:01:47 +0000 |
---|---|---|
committer | Max Horn | 2003-05-28 20:01:47 +0000 |
commit | 1f70da01556164c5b39bb0e804e2c919dd7b3c83 (patch) | |
tree | 3b39f7df442c0cc00fb9bf93dd33808e7982f89b /scumm/resource.h | |
parent | 01ac371c6afd94b4987528a49ee2bfe8c1cf84ea (diff) | |
download | scummvm-rg350-1f70da01556164c5b39bb0e804e2c919dd7b3c83.tar.gz scummvm-rg350-1f70da01556164c5b39bb0e804e2c919dd7b3c83.tar.bz2 scummvm-rg350-1f70da01556164c5b39bb0e804e2c919dd7b3c83.zip |
const as const can!
svn-id: r8058
Diffstat (limited to 'scumm/resource.h')
-rw-r--r-- | scumm/resource.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scumm/resource.h b/scumm/resource.h index d0d09afcdb..03453c7c06 100644 --- a/scumm/resource.h +++ b/scumm/resource.h @@ -33,8 +33,8 @@ struct ResHdr { #pragma END_PACK_STRUCTS #endif -#define RES_DATA(x) (((byte*)x) + sizeof(ResHdr)) -#define RES_SIZE(x) (READ_BE_UINT32_UNALIGNED(&((ResHdr* )x)->size)) +#define RES_DATA(x) (((const byte*)x) + sizeof(ResHdr)) +#define RES_SIZE(x) (READ_BE_UINT32_UNALIGNED(&((const ResHdr* )x)->size)) enum { OF_OWNER_MASK = 0x0F, @@ -50,9 +50,9 @@ enum { }; -byte *findResource(uint32 tag, byte *searchin, int index); -byte *findResourceSmall(uint32 tag, byte *searchin, int index); -byte *findResource(uint32 tag, byte *searchin); -byte *findResourceSmall(uint32 tag, byte *searchin); +const byte *findResource(uint32 tag, const byte *searchin, int index); +const byte *findResourceSmall(uint32 tag, const byte *searchin, int index); +const byte *findResource(uint32 tag, const byte *searchin); +const byte *findResourceSmall(uint32 tag, const byte *searchin); #endif |