diff options
author | Paweł Kołodziejski | 2002-08-31 07:43:34 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-08-31 07:43:34 +0000 |
commit | bd7b93061b368ef4e1a45efbce2ef7110969512c (patch) | |
tree | 13dec9e9e72750f40ea23bac19c780df8fbeb527 /scumm/sys.cpp | |
parent | 70eec529410c223d088d0e6166d4362ca6ce44ca (diff) | |
download | scummvm-rg350-bd7b93061b368ef4e1a45efbce2ef7110969512c.tar.gz scummvm-rg350-bd7b93061b368ef4e1a45efbce2ef7110969512c.tar.bz2 scummvm-rg350-bd7b93061b368ef4e1a45efbce2ef7110969512c.zip |
added class File
svn-id: r4873
Diffstat (limited to 'scumm/sys.cpp')
-rw-r--r-- | scumm/sys.cpp | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/scumm/sys.cpp b/scumm/sys.cpp index 2369f53520..e8619a331e 100644 --- a/scumm/sys.cpp +++ b/scumm/sys.cpp @@ -162,33 +162,21 @@ uint32 Scumm::fileReadDwordBE(void *handle) return (b << 16) | a; } -bool Scumm::checkFixedDisk() +bool Scumm::checkFixedDisk() { return true; } #ifdef NEED_STRDUP -char *strdup(const char *s) -{ - if (s) { - int len = strlen(s) + 1; - char *d = (char *)malloc(len); - if (d) - memcpy(d, s, len); - return d; - } - return NULL; -} +char *strdup(const char *s); #endif /* NEED_STRDUP */ -void *operator new(size_t size) -{ +void *operator new(size_t size) { return calloc(size, 1); } -void operator delete(void *ptr) -{ +void operator delete(void *ptr) { free(ptr); } |