MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

dgame
MAME Fan
Reged: 05/10/10
Posts: 5
Send PM
Re: MAME 149 SEC_REQUE$T_STATUS typo in /src/mame/machine/sec.c/h
06/21/13 07:05 PM


Read this post http://www.mameworld.info/ubbthreads/showthreaded.php?Cat=&Number=305723 and made these [adapted to 149] changes and now SDLMAME 149 (SUBTARGET=tiny) compiles and works:

/source/makefile: comment out 502 and 503
# -Wall \
# -Wcast-align \

/source/src/emu/emualloc.c: comment out 300 and 301
// if (LOG_ALLOCS)
// fprintf(stderr, "#%06d, add %d bytes (%s:%d)\n", (UINT32)entry->m_id, static_cast(entry->m_size), entry->m_file, (int)entry->m_line);

295: change
memory_entry *entry = memory_entry::find(item.m_ptr);
to
resource_pool_item *entry = resource_pool::find(item.m_ptr);

297: change
entry = memory_entry::find(reinterpret_cast(item.m_ptr) - sizeof(size_t));
to
entry = resource_pool::find(reinterpret_cast(item.m_ptr) - sizeof(size_t));

Build with "make NOASM=1 NOWERROR=1"

It is a slide-show though so I am sticking with 134.

PS: The forum seems to be gobbling up the < U I N T 8 * > needed after reinterpret_cast on line 297 above. Use the same < > syntax as the original.







Entire thread
Subject Posted by Posted on
* MAME 149 SEC_REQUE$T_STATUS typo in /src/mame/machine/sec.c/h dgame 06/19/13 07:13 PM
. * Re: MAME 149 SEC_REQUE$T_STATUS typo in /src/mame/machine/sec.c/h R. Belmont  06/19/13 07:17 PM
. * Re: MAME 149 SEC_REQUE$T_STATUS typo in /src/mame/machine/sec.c/h dgame  06/21/13 04:38 PM
. * Re: MAME 149 SEC_REQUE$T_STATUS typo in /src/mame/machine/sec.c/h R. Belmont  06/21/13 10:23 PM
. * Re: MAME 149 SEC_REQUE$T_STATUS typo in /src/mame/machine/sec.c/h dgame  06/21/13 07:05 PM
. * Re: MAME 149 SEC_REQUE$T_STATUS typo in /src/mame/machine/sec.c/h R. Belmont  06/21/13 10:34 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 543 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 1607