summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/osdcomm.h
Commit message (Collapse)AuthorAgeFilesLines
* Renamed flipendian -> swapendian, as I spent minutes trying to find the ↵ mooglyguy2018-11-051-12/+12
| | | | functions to tell to another person who spent minutes trying to find the functions, and we refer to such functions as swapping just about everywhere else in the codebase, nw
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-191-19/+12
| | | | | | | | | | | | * New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
* Revert "Added IS_ENABLED, so we have compiler check for non used part, it is ↵ Miodrag Milanovic2016-11-121-16/+0
| | | | | | checked but not compiled in (nw)" This reverts commit c0407f073bf7afe26407c4add5cfeaf7104913c9.
* Added IS_ENABLED, so we have compiler check for non used part, it is checked ↵ Miodrag Milanovic2016-11-111-0/+16
| | | | | | but not compiled in (nw) false and true now used instead of integer where used as bool
* final cleanup of TRUE/FALSE, left only in windows section where it represent ↵ Miodrag Milanovic2016-10-221-13/+0
| | | | BOOL (nw)
* fixed benchmarks build and cleanup U64 and S64 macro definition, it is now ↵ Miodrag Milanovic2016-10-221-8/+0
| | | | in standard (nw)
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-29/+29
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* [[noreturn]] instead of ATTR_NORETURN (nw) Miodrag Milanovic2016-10-221-2/+0
|
* use standard types uintptr_t, char16_t and char32_t instead of FPTR, ↵ Miodrag Milanovic2016-10-221-11/+0
| | | | utf16_char, unicode_char (nw)
* Cleanup, TIMER_CALLBACK was only in unused parts (nw) Miodrag Milanovic2016-10-211-4/+0
|
* Cleanup for VS2015 build (nw) Miodrag Milanovic2016-08-281-2/+0
|
* some C++14 features are not supported by VS2013. VS2015 is free for home use ↵ Miodrag Milanovic2016-08-271-7/+0
| | | | so no need for legacy support (nw)
* made constexprs lower case and used constexpr for returning input value as ↵ Miodrag Milanovic2016-07-311-12/+12
| | | | well for rest of defines in osdcomm.h (nw)
* macros should be turned into constexpr or they can't be used in many ↵ Vas Crabb2016-07-311-39/+19
| | | | | | situations they were previously use in the silly _partialNN functions are necessary because MSVC doesn't support C++14 properly
* std::min and std:max instead of MIN and MAX, also some more macros converted ↵ Miodrag Milanovic2016-07-311-33/+37
| | | | to inline functions (nw)
* Create osd_is_valid_filename_char() and osd_is_valid_filepath_char() ↵ Nathan Woods2016-07-051-0/+5
| | | | functions to check to see if a character is legal, and moved retired is_valid_filename_char() in filecreate.cpp. POSIX versions not implemented yet.
* misc fixes (nw) Vas Crabb2016-05-281-0/+11
| | | | | | * fix a mismatched new[]/delete error in corealloc * _name massacre in corealloc while at it * add template/macro for delaring array with equivalent dimensions
* fix OSX compile (nw) Miodrag Milanovic2016-05-271-1/+1
|
* ui refactoring [Vas Crabb] Vas Crabb2016-05-271-5/+5
| | | | | | | | * Make ARRAY_LENGTH cause a compile error if used with a pointer/vector * Clean up text input code, move common operations to inline templates * Fix numerous one-byte buffer overruns * Don't flat-out ignore input beyond the C1 hole * Fix decoding of SDL text input
* Removed I64FMT and SIZETFMT, one usage left in chdman.cpp (nw) Miodrag Milanovic2016-03-071-19/+0
|
* hopefully fix build for everyone Vas Crabb2016-03-061-15/+8
|
* Pick off some low-hanging PTR64 fruit Vas Crabb2016-02-281-5/+1
|
* limit internationalization to UI where it belongs (nw) Miodrag Milanovic2016-02-201-4/+0
|
* Doing some preps for internationalization (nw) Miodrag Milanovic2016-02-191-0/+4
|
* cleanup of osdcomm.h (nw) Miodrag Milanovic2015-12-091-44/+15
|
* Revert "Cleanup of osdcomm.h (nw)" Miodrag Milanovic2015-12-091-13/+49
| | | | This reverts commit 1d40aecb585e8dd1fedefdd35a833c66fc2a1b96.
* Cleanup of osdcomm.h (nw) Miodrag Milanovic2015-12-091-49/+13
|
* VS2012 is not supported anymore (nw) Miodrag Milanovic2015-12-071-11/+0
|
* Fixed comment. dankan18902015-10-301-2/+2
|
* Fix for VS2013 build. dankan18902015-10-301-6/+7
|
* update suggested by DrMefistO (nw) Miodrag Milanovic2015-10-201-2/+1
|
* fix compile on VS2013 (need check on VS2015 if this is needed at all) (nw) Miodrag Milanovic2015-10-191-0/+2
|
* osdcomm.h: func me MSVC (nw) Peter Ferrie2015-09-301-0/+1
|
* Nope. (nw) balr0g2015-06-071-1/+0
| | | | | | This reverts commit 72794f8ff1c1e79bd0350bb52fb3757bdf04d004. At least this provides a more useful stacktrace, if anyone wants to debug.
* Use attribute unused for inlined new/delete. (nw) balr0g2015-06-071-0/+1
| | | | | | This is still not compliant code, and will probably break with LTO, but is a cleaner fix for the warning. Using this attribute also ensures that the linker doesn't remove the code.
* Cleanups and version bumpmame0161 Miodrag Milanovic2015-04-291-1/+1
|
* fixed alloca define to standard one (nw) Miodrag Milanovic2015-04-181-1/+1
|
* VS2015 compile works (nw) Miodrag Milanovic2015-04-101-0/+3
|
* Remove need for winprefix.h and moved alloca define to osdcomm.h (nw) Miodrag Milanovic2015-03-311-0/+6
|
* removed windows/osinline.h and placed MSVC dependent files in top folder (nw) Miodrag Milanovic2015-03-301-0/+19
| | | | | | moved MSVC defines from winprefix.h to osdcomm.h removed empty file compilation - porttime.c removed osinline.h in windows and sdl and change files using them.
* More cleanups, there is issue with srcclean that needs to be taken care as ↵ Miodrag Milanovic2014-07-221-1/+1
| | | | well, just doing now what we can
* implemented ATTR_FORCE_INLINE for Visual Studio (nw) Oliver Stöneberg2014-06-301-1/+1
|
* Cleanups and version bumpmame0153 Miodrag Milanovic2014-04-071-2/+2
|
* Moved core template container classes up from emutempl.h to coretmpl.h: Aaron Giles2014-03-111-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Aaron Giles] * these classes now no longer take a resource_pool; everything is managed globally -- this means that objects added to lists must be allocated with global_alloc * added new auto_pointer<> template which wraps a pointer and auto-frees it upon destruction; it also defaults to NULL so it doesn't need to be explicitly initialized * moved tagged_list template to tagmap.h Redo of the low-level memory tracking system: [Aaron Giles] * moved low-level tracking out of emu\emualloc into lib\util\corealloc so it can be shared among all components and used by core libraries * global_alloc and friends no longer use a resource pool to track allocations; turns out this was a wholly redundant system that wasted a lot of memory * removed global_resource_pool entirely * added global_free_array to delete arrays allocated with global_alloc_array * added tracking of object versus array allocation; we will now error if you use global_free on an array, or global_free_array on an object Added new utility helper const_string_pool which can be used to efficiently accumulate strings that are not intended to be modified. Used by updated makelist and software list code. [Aaron Giles] Updated png2bdc and makelist tools to not leak memory and use more modern techniques (no more MAX_DRIVERS in makelist, for example). [Aaron Giles] Deprecated auto_strdup and removed all uses by way of caller-managed astrings and the software list rewrite. [Aaron Giles] Rewrote software list management: [Aaron Giles] * removed the notion of a software_list that is separate from a software_list_device; they are one and the same now * moved several functions into device_image_interface since they really didn't belong in the core software list class * lots of simplification as a result of the above changes Additional notes (no whatsnew): Moved definition of FPTR to osdcomm.h. Some changes happened in the OSD code to fix issues, especially regarding freeing arrays. SDL folks may need to fix up some of these. The following devices still are using tokens and should be modernized (I found them because they kept their token as void * and tried to delete it, which you can't): namco_52xx_device (mame/audio/namco52.c) namco_54xx_device (mame/audio/namco54.c) namco_06xx_device (mame/machine/namco06.c) namco_50xx_device (mame/machine/namco50.c) namco_51xx_device (mame/machine/namco51.c) namco_53xx_device (mame/machine/namco53.c) voodoo_device (emu/video/voodoo.c) mos6581_device (emu/sound/mos6581.c) aica_device (emu/sound/aica.c) scsp_device (emu/sound/scsp.c) dmadac_sound_device (emu/sound/dmadac.c) s3c2440_device (emu/machine/s3c2440.c) wd1770_device (emu/machine/wd17xx.c) latch8_device (emu/machine/latch8.c) duart68681_device (emu/machine/68681.c) s3c2400_device (emu/machine/s3c2400.c) s3c2410_device (emu/machine/s3c2410.c) strataflash_device (mess/machine/strata.c) hd63450_device (mess/machine/hd63450.c) tap_990_device (mess/machine/ti99/990_tap.c) omti8621_device (mess/machine/omti8621.c) vdt911_device (mess/video/911_vdt.c) apollo_graphics_15i (mess/video/apollo.c) asr733_device (mess/video/733_asr.c)
* fixed #if checks for Visual Studio in osd/osdcomm.h (nw) Oliver Stöneberg2014-02-261-2/+2
|
* fixed 32-bit compilation (nw) Oliver Stöneberg2014-02-261-0/+4
|
* first round of printf fixes (nw) Oliver Stöneberg2014-02-251-0/+6
|
* Bulk convert files that already had standard BSD license in my name Aaron Giles2013-10-161-31/+2
| | | | to new license tagged form.
* Cleanups and version bumpmame0150 Miodrag Milanovic2013-09-171-3/+3
|
* removed DECL_NORETURN in favor of ATTR_NORETURN (nw) Oliver Stöneberg2013-08-221-8/+4
|