Remove #include <cstdarg> from emu.h and move it into source files that still require it

This commit is contained in:
AJR 2022-10-25 12:15:14 -04:00
parent edaa86db88
commit e178fbd281
32 changed files with 55 additions and 1 deletions

View File

@ -20,6 +20,7 @@
#include "corestr.h" #include "corestr.h"
#include <cstdarg>
#include <cstdio> #include <cstdio>
#include <algorithm> #include <algorithm>

View File

@ -10,6 +10,8 @@
#include "emu.h" #include "emu.h"
#include "dma.h" #include "dma.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
static inline void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const char *s_fmt, ... ) static inline void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const char *s_fmt, ... )

View File

@ -11,6 +11,8 @@
#include "gte.h" #include "gte.h"
#if 0 #if 0
#include <cstdarg>
void ATTR_PRINTF(2,3) GTELOG( uint32_t pc, const char *a, ...) void ATTR_PRINTF(2,3) GTELOG( uint32_t pc, const char *a, ...)
{ {
va_list va; va_list va;

View File

@ -11,6 +11,8 @@
#include "psx.h" #include "psx.h"
#include "irq.h" #include "irq.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
#define PSX_IRQ_MASK ( 0x7fd ) #define PSX_IRQ_MASK ( 0x7fd )

View File

@ -13,6 +13,8 @@
#include "mdec.h" #include "mdec.h"
#include "dma.h" #include "dma.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
static inline void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const char *s_fmt, ... ) static inline void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const char *s_fmt, ... )

View File

@ -10,6 +10,8 @@
#include "emu.h" #include "emu.h"
#include "rcnt.h" #include "rcnt.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
static inline void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const char *s_fmt, ... ) static inline void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const char *s_fmt, ... )

View File

@ -10,6 +10,8 @@
#include "emu.h" #include "emu.h"
#include "sio.h" #include "sio.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
static inline void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const char *s_fmt, ... ) static inline void ATTR_PRINTF(3,4) verboselog( device_t& device, int n_level, const char *s_fmt, ... )

View File

@ -11,6 +11,8 @@
#include "emu.h" #include "emu.h"
#include "adc083x.h" #include "adc083x.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
static inline void ATTR_PRINTF( 3, 4 ) verboselog( int n_level, device_t &device, const char *s_fmt, ... ) static inline void ATTR_PRINTF( 3, 4 ) verboselog( int n_level, device_t &device, const char *s_fmt, ... )

View File

@ -10,6 +10,7 @@
#include "emu.h" #include "emu.h"
#include "ds1204.h" #include "ds1204.h"
#include <cstdarg>
#include <cstdio> #include <cstdio>

View File

@ -10,6 +10,7 @@
#include "emu.h" #include "emu.h"
#include "ds1205.h" #include "ds1205.h"
#include <cstdarg>
#include <cstdio> #include <cstdio>

View File

@ -11,6 +11,8 @@
#include "emu.h" #include "emu.h"
#include "machine/ds2401.h" #include "machine/ds2401.h"
#include <cstdarg>
#define VERBOSE_LEVEL 0 #define VERBOSE_LEVEL 0
inline void ds2401_device::verboselog(int n_level, const char *s_fmt, ...) inline void ds2401_device::verboselog(int n_level, const char *s_fmt, ...)

View File

@ -25,6 +25,8 @@ there are two standard values.
#include "emu.h" #include "emu.h"
#include "machine/i2cmem.h" #include "machine/i2cmem.h"
#include <cstdarg>
constexpr int STATE_IDLE(0); constexpr int STATE_IDLE(0);
constexpr int STATE_DEVSEL(1); constexpr int STATE_DEVSEL(1);
constexpr int STATE_ADDRESSHIGH(2); constexpr int STATE_ADDRESSHIGH(2);

View File

@ -16,6 +16,7 @@
#include "screen.h" #include "screen.h"
#include <algorithm> #include <algorithm>
#include <cstdarg>
#define S3C44B0_INTCON (0x00 / 4) // Interrupt Control #define S3C44B0_INTCON (0x00 / 4) // Interrupt Control

View File

@ -16,6 +16,8 @@
#include "emu.h" #include "emu.h"
#include "machine/x76f041.h" #include "machine/x76f041.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
inline void ATTR_PRINTF( 3, 4 ) x76f041_device::verboselog( int n_level, const char *s_fmt, ... ) inline void ATTR_PRINTF( 3, 4 ) x76f041_device::verboselog( int n_level, const char *s_fmt, ... )

View File

@ -14,6 +14,8 @@
#include "emu.h" #include "emu.h"
#include "machine/x76f100.h" #include "machine/x76f100.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
inline void ATTR_PRINTF( 3, 4 ) x76f100_device::verboselog( int n_level, const char *s_fmt, ... ) inline void ATTR_PRINTF( 3, 4 ) x76f100_device::verboselog( int n_level, const char *s_fmt, ... )

View File

@ -41,6 +41,7 @@
#include "wavwrite.h" #include "wavwrite.h"
#include <atomic> #include <atomic>
#include <cstdarg>
#include <iostream> #include <iostream>

View File

@ -15,6 +15,8 @@
#include "screen.h" #include "screen.h"
#include <cstdarg>
namespace { namespace {

View File

@ -11,6 +11,8 @@
#include "emu.h" #include "emu.h"
#include "video/gf4500.h" #include "video/gf4500.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
static inline void ATTR_PRINTF(3,4) verboselog( device_t &device, int n_level, const char *s_fmt, ...) static inline void ATTR_PRINTF(3,4) verboselog( device_t &device, int n_level, const char *s_fmt, ...)

View File

@ -28,7 +28,6 @@
#include <map> #include <map>
#include <unordered_map> #include <unordered_map>
#include <unordered_set> #include <unordered_set>
#include <cstdarg>
// core emulator headers -- must be first (profiler needs attotime, attotime needs xtal) // core emulator headers -- must be first (profiler needs attotime, attotime needs xtal)
#include "emucore.h" #include "emucore.h"

View File

@ -16,6 +16,7 @@
#include "formats/atari_dsk.h" #include "formats/atari_dsk.h"
#include <cctype> #include <cctype>
#include <cstdarg>
#define VERBOSE_SERIAL 0 #define VERBOSE_SERIAL 0

View File

@ -178,6 +178,7 @@
#include "emupal.h" #include "emupal.h"
#include "speaker.h" #include "speaker.h"
#include <cstdarg>
#include <cstdio> #include <cstdio>

View File

@ -11,6 +11,8 @@
#include "machine/s3c2410.h" #include "machine/s3c2410.h"
#include "screen.h" #include "screen.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
struct lcd_spi_t struct lcd_spi_t

View File

@ -14,6 +14,8 @@
#include "emu.h" #include "emu.h"
#include "zs01.h" #include "zs01.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
inline void ATTR_PRINTF( 3, 4 ) zs01_device::verboselog( int n_level, const char *s_fmt, ... ) inline void ATTR_PRINTF( 3, 4 ) zs01_device::verboselog( int n_level, const char *s_fmt, ... )

View File

@ -18,6 +18,8 @@
#include "softlist_dev.h" #include "softlist_dev.h"
#include "speaker.h" #include "speaker.h"
#include <cstdarg>
namespace { namespace {

View File

@ -322,6 +322,8 @@ Pin 22 Solder Side - Gun 2 Trigger
#include "screen.h" #include "screen.h"
#include "speaker.h" #include "speaker.h"
#include <cstdarg>
#define C76_SPEEDUP ( 1 ) /* sound cpu idle skipping */ #define C76_SPEEDUP ( 1 ) /* sound cpu idle skipping */
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )

View File

@ -1105,6 +1105,8 @@ The lever must be wired to analog port 0 (pin B22 parts side) of the Namco 48-wa
#include "screen.h" #include "screen.h"
#include "speaker.h" #include "speaker.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )

View File

@ -20,6 +20,8 @@
#include "softlist_dev.h" #include "softlist_dev.h"
#include "speaker.h" #include "speaker.h"
#include <cstdarg>
/* Sound Registers */ /* Sound Registers */
#define SOUNDCNT_L HWLO(0x080) /* 0x4000080 2 R/W Control Stereo/Volume/Enable */ #define SOUNDCNT_L HWLO(0x080) /* 0x4000080 2 R/W Control Stereo/Volume/Enable */

View File

@ -17,6 +17,8 @@
#include "emu.h" #include "emu.h"
#include "nds.h" #include "nds.h"
#include <cstdarg>
#define VERBOSE_LEVEL (0) #define VERBOSE_LEVEL (0)
// Measured value from GBATEK. Actual crystal unknown. // Measured value from GBATEK. Actual crystal unknown.

View File

@ -69,6 +69,8 @@ end
#include "machine/smartmed.h" #include "machine/smartmed.h"
#include "screen.h" #include "screen.h"
#include <cstdarg>
#define PALM_Z22_BATTERY_LEVEL 75 #define PALM_Z22_BATTERY_LEVEL 75
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )

View File

@ -42,6 +42,8 @@
#include "dm7000.h" #include "dm7000.h"
#include "screen.h" #include "screen.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 9 ) #define VERBOSE_LEVEL ( 9 )
static inline void ATTR_PRINTF(3,4) verboselog( device_t &device, int n_level, const char *s_fmt, ...) static inline void ATTR_PRINTF(3,4) verboselog( device_t &device, int n_level, const char *s_fmt, ...)

View File

@ -14,6 +14,8 @@
#include "screen.h" #include "screen.h"
#include "speaker.h" #include "speaker.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )

View File

@ -11,6 +11,8 @@
#include "emu.h" #include "emu.h"
#include "docg3.h" #include "docg3.h"
#include <cstdarg>
#define VERBOSE_LEVEL ( 0 ) #define VERBOSE_LEVEL ( 0 )
static inline void ATTR_PRINTF(3,4) verboselog( device_t &device, int n_level, const char *s_fmt, ... ) static inline void ATTR_PRINTF(3,4) verboselog( device_t &device, int n_level, const char *s_fmt, ... )