diff options
author | 2014-04-07 06:04:18 +0000 | |
---|---|---|
committer | 2014-04-07 06:04:18 +0000 | |
commit | fec65e0b5766ade69e086d1c5b859d97494fce56 (patch) | |
tree | c22b07938e9ad590184f1276bc2bead6d888a78d /src/lib/util/corealloc.c | |
parent | 30d94e51c53f30187a1bc565ef33e4744319790e (diff) |
Cleanups and version bumpmame0153
Diffstat (limited to 'src/lib/util/corealloc.c')
-rw-r--r-- | src/lib/util/corealloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/util/corealloc.c b/src/lib/util/corealloc.c index 69535d8d495..c8a23b73f27 100644 --- a/src/lib/util/corealloc.c +++ b/src/lib/util/corealloc.c @@ -46,7 +46,7 @@ public: const char * m_file; // file the allocation was made from int m_line; // line number within that file UINT64 m_id; // unique id - bool m_array; // array? + bool m_array; // array? // hashing prime number static const int k_hash_prime = 6151; @@ -115,7 +115,7 @@ void *malloc_file_line(size_t size, const char *file, int line, bool array, bool if (clear) memset(result, 0, size); else - { + { #if !__has_feature(memory_sanitizer) && defined(INITIALIZE_ALLOCATED_MEMORY) memset(result, 0xdd, size); #endif @@ -145,7 +145,7 @@ void free_file_line(void *memory, const char *file, int line, bool array) osd_break_into_debugger("Error: attempt to free untracked memory"); return; } - + // warn about mismatched arrays if (!array && entry->m_array) { @@ -182,8 +182,8 @@ void track_memory(bool track) //------------------------------------------------- -// next_memory_id - return the ID of the next -// allocated block +// next_memory_id - return the ID of the next +// allocated block //------------------------------------------------- UINT64 next_memory_id() |