diff options
author | Bastien Bouclet | 2017-10-25 19:17:11 +0200 |
---|---|---|
committer | GitHub | 2017-10-25 19:17:11 +0200 |
commit | bd82345f0b634e5ccf7b2412a0d7cad7232057c5 (patch) | |
tree | 724b183a5e39a6f3f52067d2f1214a7728b2709a /engines/director | |
parent | 2ded98b482f30d2a990f06365b7f612ab4d115b2 (diff) | |
parent | bbdbd85324a9c02019e242ab93b3ae569292356c (diff) | |
download | scummvm-rg350-bd82345f0b634e5ccf7b2412a0d7cad7232057c5.tar.gz scummvm-rg350-bd82345f0b634e5ccf7b2412a0d7cad7232057c5.tar.bz2 scummvm-rg350-bd82345f0b634e5ccf7b2412a0d7cad7232057c5.zip |
Merge pull request #1035 from bgK/require-64bits-integers
BUILD: Require 64bits integers
Diffstat (limited to 'engines/director')
-rw-r--r-- | engines/director/lingo/lingo.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h index 6cf7ceb923..10ac868592 100644 --- a/engines/director/lingo/lingo.h +++ b/engines/director/lingo/lingo.h @@ -24,6 +24,7 @@ #define DIRECTOR_LINGO_LINGO_H #include "audio/audiostream.h" +#include "common/hash-ptr.h" #include "common/hash-str.h" #include "director/director.h" @@ -86,22 +87,7 @@ struct FuncDesc { FuncDesc(Common::String n, const char *p) { name = n; proto = p; } }; -struct Pointer_EqualTo { - bool operator()(const void *x, const void *y) const { return x == y; } -}; - -struct Pointer_Hash { - uint operator()(const void *x) const { -#ifdef SCUMM_64BITS - uint64 v = (uint64)x; - return (v >> 32) ^ (v & 0xffffffff); -#else - return (uint)x; -#endif - } -}; - -typedef Common::HashMap<void *, FuncDesc *, Pointer_Hash, Pointer_EqualTo> FuncHash; +typedef Common::HashMap<void *, FuncDesc *> FuncHash; struct Symbol { /* symbol table entry */ Common::String name; |