summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/winalloc.c
Commit message (Collapse)AuthorAgeFilesLines
* (Big tangle of changes that all happened as I was looking into the ROM Aaron Giles2011-04-131-618/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | loader rewrite, which is still in progress....) Replaced mamedriv.c with a new driver list mechanism that is generated by the build tools. The emulator core now expects the presence of a file called src/$(TARGET)/$(SUBTARGET).lst which is just a raw list of driver names, one per line. C and C++ comments are still permitted. This file is parsed by a new build tool makelist which extracts the driver names, sorts them, and generates a file called drivlist.c, which is consumed by the core. [Aaron Giles] Added new osdcore function osd_malloc_array() which is identical to osd_malloc() but obviously hints that the underlying allocation is for an array. Updated all callers to use the appropriate form. Modified the Windows allocator to only use guard pages for array-style allocations, allowing us to enable them once again in debug builds. [Aaron Giles] Created new static class driver_list to wrap accesses to the list of available drivers. Improved speed of driver lookups by relying on the presorting done by makelist. [Aaron Giles] Created helper class driver_enumerator as a helper for iterating through the list of drivers. This class supports basic filtering and iteration, and also serves as a temporary cache of machine_configs. [Aaron Giles] Created cli_frontend object to wrap all the CLI handling code in clifront.c. Updated/simplified all the code to take advantage of the driver_enumerator. [Aaron Giles] Created media_auditor object to wrap all the auditing functions in audit.c. Updated all users to the new interface. Note that the new auditing mechanism is slightly out of sync with the romload code in terms of finding ROMs owned by devices, so it may mis-report some issues until the new ROM loading code is in. [Aaron Giles] Added concept of a per-device searchpath. For most devices, their searchpath is just the short name of the device. For driver_devices, the searchpath is driver[;parent[;bios]]. This searchpath will eventually be used by the rom loader to find ROMs. For now it is used by the media auditor only. [Aaron Giles] Created info_xml_creator object to wrap all the info generation functions in info.c. Converted the file to C++ and cleaned up the input processing code. [Aaron Giles] (not for whatsnew ... Known issues: auditing of CHDs appears busted, and debug builds report unfreed memory if you use the built-in game picker)
* - Cleanup of WINUI depending compiling (no whatsnew) Miodrag Milanovic2011-02-041-5/+5
| | | | | - Rewritten some checks to be runtime instead of compile dependent - Added winmenu.c and "menu" option in windows build - winmenu.c provide just dummy implementation, and makes linking with actual menu implementation easier.
* Cleaned OSD windows and emu part from NEWUI dependencies (no whatsnew) Miodrag Milanovic2011-01-131-6/+1
|
* gcc 4.5.0 compilation fixes. Aaron Giles2009-12-291-1/+1
|
* Cleanups and version bump.mame0134u3 Aaron Giles2009-10-121-22/+22
|
* Moved all the OSD/windows code over to straight BSD license. Aaron Giles2009-10-121-2/+34
| | | | | | Updated osdmini to work again and compile as an actual target (doing nothing at the moment). Converted all of its code over to straight BSD as well.
* Added missing casts and made other tweaks. The entire project Aaron Giles2009-04-271-2/+2
| | | | | can now be optionally compiled with the C++ compiler (mingw g++ only for the moment; MSVC still has issues).
* From: Atari Ace [mailto:atari_ace@verizon.net] Aaron Giles2008-07-241-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: [patch] Conditional code cleanup resubmit Hi mamedev, This is a resubmit of a previous patch. The earlier version would not compile with 32-bit MSVC, due to the fact that its linker required external dependencies in dead code to be met before dead code elimination was done, causing linker errors. The proper fix for this would be to add the necessary dependencies, so I instead simply left the conditional code in place in winalloc.c and chd.c. ~aa Original submission email below: ---- Conditionally compiled code tends to bitrot, so MAME should try to avoid it as much as possible. I sent a patch six months ago to eliminate conditional code associated with logging, here's another patch that does more of this. Some notes: 1. drc_ops.c: I couldn't find a LOG_CODE anywhere, so I used if (0). 2. romload.c: I converted all the users of debugload to use LOG((...)) instead, following the traditional conditional logging pattern. 3. windows/sound.c: I eliminated the separate sound log and directed the few outputs to the error log. ~aa
* Centralized definitions of _WIN32_WINNT. Aaron Giles2008-03-211-4/+27
| | | | | | | | Removed malloc/calloc/realloc/free link-time overrides; we now rely exclusively on compile-time overrides. Made a few tweaks toward getting mingw-w64 working, but there are still linker issues.
* Fixed MESS compilation error Nathan Woods2008-01-121-2/+4
|
* Cleanups for 0.122u5. Aaron Giles2008-01-111-11/+11
|
* (Windows only) Aaron Giles2008-01-081-105/+235
| | | | | | | Added code to debug 64-bit builds to allocate all address space below 4GB to help find 64-bit errors. Added environment variable OSDDEBUGMALLOC which, if set, explicitly overrides the debug malloc debug settings. Added environment variable OSDDEBUG4GB which, if set, explicitly overrides the new 64-bit address space allocations. (Sadly this is necessary due to my nvidia D3D drivers being 64-bit unclean....)
* Copyright cleanup: Aaron Giles2008-01-061-1/+1
| | | | | | - removed years from copyright notices - removed redundant (c) from copyright notices - updated "the MAME Team" to be "Nicola Salmoria and the MAME Team"
* Changes for MAME 0.121u2.mame0121u2 Aaron Giles2007-12-171-8/+21
|
* Changes for MAME 0.121u1.mame0121u1 Aaron Giles2007-12-171-69/+95
|
* Initial checkin of MAME 0.121.mame0121 Aaron Giles2007-12-171-0/+395