Skip to content

Commit

Permalink
use C++ library includes (nw)
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jan 22, 2020
1 parent ddf571d commit 399515c
Show file tree
Hide file tree
Showing 325 changed files with 515 additions and 515 deletions.
2 changes: 1 addition & 1 deletion benchmarks/eminline_noasm.cpp
@@ -1,5 +1,5 @@
#include "benchmark/benchmark_api.h"
#include <time.h>
#include <ctime>
#include "osdcore.h"
#include "osdcomm.h"
#define MAME_NOASM 1
Expand Down
4 changes: 2 additions & 2 deletions src/devices/bus/coco/coco_dwsock.cpp
Expand Up @@ -3,8 +3,8 @@
#include "emu.h"
#include "coco_dwsock.h"

#include <stdio.h>
#include <stdlib.h>
#include <cstdio>
#include <cstdlib>
#ifdef __GNUC__
#include <unistd.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/devices/bus/rs232/pty.cpp
Expand Up @@ -4,7 +4,7 @@
#include "emu.h"
#include "pty.h"

#include <stdio.h>
#include <cstdio>


static constexpr int TIMER_POLL = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/alph8201/8201dasm.cpp
Expand Up @@ -22,7 +22,7 @@ cpu/alph8201/ will be removed when the alpha 8304 has been dumped.
#include "emu.h"
#include "8201dasm.h"

#include <ctype.h>
#include <cctype>
#include <stdexcept>


Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/drcbex64.cpp
Expand Up @@ -166,7 +166,7 @@
***************************************************************************/

#include <stddef.h>
#include <cstddef>
#include "emu.h"
#include "debugger.h"
#include "emuopts.h"
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/drcbex86.cpp
Expand Up @@ -82,7 +82,7 @@
**************************************************************************/

#include <stddef.h>
#include <cstddef>
#include "emu.h"
#include "debugger.h"
#include "emuopts.h"
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/dsp56156/opcode.cpp
@@ -1,7 +1,7 @@
// license:BSD-3-Clause
// copyright-holders:Andrew Gardner
#include "emu.h"
#include <stdio.h>
#include <cstdio>

#include "opcode.h"

Expand Down
6 changes: 3 additions & 3 deletions src/devices/cpu/dsp56156/tables.cpp
@@ -1,9 +1,9 @@
// license:BSD-3-Clause
// copyright-holders:Andrew Gardner
#include "emu.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <cstdio>
#include <cstring>
#include <cstdlib>

#include "tables.h"
#include "dsp56def.h"
Expand Down
4 changes: 2 additions & 2 deletions src/devices/cpu/dsp56156/tables.h
Expand Up @@ -3,8 +3,8 @@
#ifndef DSP56156_TABLES_H
#define DSP56156_TABLES_H

#include <stdio.h>
#include <stdlib.h>
#include <cstdio>
#include <cstdlib>

#include "dsp56156.h"

Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/g65816/g65816cm.h
Expand Up @@ -25,7 +25,7 @@
/* ================================ INCLUDES ============================== */
/* ======================================================================== */

#include <limits.h>
#include <climits>


/* ======================================================================== */
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/hpc/hpcdasm.cpp
Expand Up @@ -15,7 +15,7 @@
#include "hpcdasm.h"

#include "util/strformat.h"
#include <ctype.h>
#include <cctype>

using osd::u32;
using util::BIT;
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/i386/x87priv.h
Expand Up @@ -5,7 +5,7 @@
#ifndef __X87PRIV_H__
#define __X87PRIV_H__

#include <math.h>
#include <cmath>


/*************************************
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/i860/i860dec.hxx
Expand Up @@ -36,7 +36,7 @@
*
*/
#include "i860.h"
#include <math.h>
#include <cmath>


#undef HOST_MSB
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/i960/i960.cpp
Expand Up @@ -7,7 +7,7 @@

#ifdef _MSC_VER
/* logb prototype is different for MS Visual C */
#include <float.h>
#include <cfloat>
#define logb _logb
#endif

Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/m37710/m37710cm.h
Expand Up @@ -10,7 +10,7 @@
/* ================================ INCLUDES ============================== */
/* ======================================================================== */

#include <limits.h>
#include <climits>
#include "m37710.h"


Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/m68000/m68kcpu.h
Expand Up @@ -21,7 +21,7 @@
#undef REG_SP
#undef REG_PC
#else
#include <limits.h>
#include <climits>
#endif

/* ======================================================================== */
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/pic16c5x/16c5xdsm.cpp
Expand Up @@ -26,7 +26,7 @@
#include "emu.h"
#include "16c5xdsm.h"

#include <ctype.h>
#include <cctype>
#include <stdexcept>


Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/pic16c62x/16c62xdsm.cpp
Expand Up @@ -29,7 +29,7 @@
#include "emu.h"
#include "16c62xdsm.h"

#include <ctype.h>
#include <cctype>
#include <stdexcept>


Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/sc61860/readpc.cpp
Expand Up @@ -7,7 +7,7 @@
#include <fcntl.h>
#include <unistd.h>
#endif
#include <stdio.h>
#include <cstdio>
#include <dos.h>

// gcc -O
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/sharc/compute.hxx
Expand Up @@ -2,7 +2,7 @@
// copyright-holders:Ville Linde
/* compute operations */

#include <math.h>
#include <cmath>

#define CLEAR_ALU_FLAGS() (m_core->astat &= ~(AZ|AN|AV|AC|AS|AI))

Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/spc700/spc700.cpp
Expand Up @@ -67,7 +67,7 @@ Address Function Register R/W When Reset Remarks

#include "debugger.h"

#include <limits.h>
#include <climits>


/* ======================================================================== */
Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/tms32010/32010dsm.cpp
Expand Up @@ -27,7 +27,7 @@
#include "emu.h"
#include "32010dsm.h"

#include <ctype.h>
#include <cctype>
#include <stdexcept>


Expand Down
4 changes: 2 additions & 2 deletions src/devices/cpu/tms32010/dis32010.cpp
Expand Up @@ -11,8 +11,8 @@
* *
\**************************************************************************/

#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <cstring>

#include "32010dsm.c"

Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/tms32025/32025dsm.cpp
Expand Up @@ -33,7 +33,7 @@
#include "emu.h"
#include "32025dsm.h"

#include <ctype.h>
#include <cctype>
#include <stdexcept>


Expand Down
2 changes: 1 addition & 1 deletion src/devices/cpu/z8000/makedab.cpp
@@ -1,6 +1,6 @@
// license:BSD-3-Clause
// copyright-holders:Juergen Buchmueller,Ernesto Corvi
#include <stdio.h>
#include <cstdio>

#define CF 0x100
#define HF 0x200
Expand Down
2 changes: 1 addition & 1 deletion src/devices/machine/corvushd.h
Expand Up @@ -18,7 +18,7 @@
#pragma once

#include "imagedev/harddriv.h"
#include <ctype.h>
#include <cctype>

class corvus_hdc_device : public device_t
{
Expand Down
2 changes: 1 addition & 1 deletion src/devices/machine/ds1204.cpp
Expand Up @@ -10,7 +10,7 @@
#include "emu.h"
#include "ds1204.h"

#include <stdio.h>
#include <cstdio>


#define VERBOSE_LEVEL ( 0 )
Expand Down
2 changes: 1 addition & 1 deletion src/devices/machine/ds1205.cpp
Expand Up @@ -10,7 +10,7 @@
#include "emu.h"
#include "ds1205.h"

#include <stdio.h>
#include <cstdio>


#define VERBOSE_LEVEL ( 0 )
Expand Down
2 changes: 1 addition & 1 deletion src/devices/machine/ds1994.cpp
Expand Up @@ -15,7 +15,7 @@
#include "emu.h"
#include "machine/ds1994.h"

#include <time.h>
#include <ctime>

#define VERBOSE_LEVEL 0

Expand Down
2 changes: 1 addition & 1 deletion src/devices/machine/ds2404.cpp
Expand Up @@ -12,7 +12,7 @@
#include "ds2404.h"

#include <algorithm>
#include <time.h> // FIXME: re-write in terms of device_rtc_interface and remove this
#include <ctime> // FIXME: re-write in terms of device_rtc_interface and remove this


//**************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/devices/machine/i8087.cpp
Expand Up @@ -21,7 +21,7 @@

#include "emu.h"
#include "i8087.h"
#include <math.h>
#include <cmath>

/*************************************
*
Expand Down
2 changes: 1 addition & 1 deletion src/devices/machine/k054321.cpp
Expand Up @@ -33,7 +33,7 @@
#include "emu.h"
#include "k054321.h"

#include <math.h>
#include <cmath>

DEFINE_DEVICE_TYPE(K054321, k054321_device, "k054321", "K054321 Maincpu-Soundcpu interface")

Expand Down
4 changes: 2 additions & 2 deletions src/devices/machine/ram.cpp
Expand Up @@ -12,8 +12,8 @@
#include "ram.h"
#include "emuopts.h"

#include <stdio.h>
#include <ctype.h>
#include <cstdio>
#include <cctype>

#include <algorithm>
#include <functional>
Expand Down
2 changes: 1 addition & 1 deletion src/devices/machine/tms9901.cpp
Expand Up @@ -147,7 +147,7 @@ Clock mode:
#include "emu.h"
#include "tms9901.h"

#include <math.h>
#include <cmath>

#define LOG_GENERAL (1U << 0)
#define LOG_PINS (1U << 1)
Expand Down
2 changes: 1 addition & 1 deletion src/devices/machine/tms9902.cpp
Expand Up @@ -41,7 +41,7 @@
#include "emu.h"
#include "tms9902.h"

#include <math.h>
#include <cmath>

#define LOG_GENERAL (1U << 0)
#define LOG_LINES (1U << 1)
Expand Down
2 changes: 1 addition & 1 deletion src/devices/machine/wd2010.cpp
Expand Up @@ -41,7 +41,7 @@ UNIMPLEMENTED FEATURES :
#define VERBOSE 1
#include "logmacro.h"

#include <math.h>
#include <cmath>
//**************************************************************************
// MACROS / CONSTANTS
//**************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/devices/sound/disc_mth.hxx
Expand Up @@ -49,7 +49,7 @@
*
************************************************************************/

#include <float.h>
#include <cfloat>



Expand Down
2 changes: 1 addition & 1 deletion src/devices/sound/mea8000.cpp
Expand Up @@ -30,7 +30,7 @@
#include "emu.h"
#include "mea8000.h"

#include <math.h>
#include <cmath>

//#define VERBOSE 1
#include "logmacro.h"
Expand Down
2 changes: 1 addition & 1 deletion src/devices/video/poly.h
Expand Up @@ -39,7 +39,7 @@

#include "screen.h"

#include <limits.h>
#include <climits>
#include <atomic>


Expand Down
2 changes: 1 addition & 1 deletion src/emu/attotime.h
Expand Up @@ -38,7 +38,7 @@
#include "emucore.h"
#include "xtal.h"

#include <math.h>
#include <cmath>
#undef min
#undef max

Expand Down
2 changes: 1 addition & 1 deletion src/emu/debug/debugcmd.cpp
Expand Up @@ -20,7 +20,7 @@
#include "debugvw.h"
#include "natkeyboard.h"
#include "render.h"
#include <ctype.h>
#include <cctype>
#include <algorithm>
#include <fstream>

Expand Down
2 changes: 1 addition & 1 deletion src/emu/debug/debugcon.cpp
Expand Up @@ -14,7 +14,7 @@
#include "debugvw.h"
#include "textbuf.h"
#include "debugger.h"
#include <ctype.h>
#include <cctype>
#include <fstream>

/***************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion src/emu/debug/debughlp.cpp
Expand Up @@ -10,7 +10,7 @@

#include "emu.h"
#include "debughlp.h"
#include <ctype.h>
#include <cctype>



Expand Down

0 comments on commit 399515c

Please sign in to comment.