srcclean and cleanup

This commit is contained in:
Vas Crabb 2024-05-26 07:39:22 +10:00
parent d2d85d3951
commit 7e52678a2c
43 changed files with 308 additions and 304 deletions

View File

@ -1631,7 +1631,7 @@ tests: $(REGTESTS)
cleansrc:
@echo Cleaning up tabs/spaces/end of lines....
ifeq (posix,$(SHELLTYPE))
$(SILENT) find src \( \
$(SILENT)- find src \( \
-name \*.c -o -name \*.cpp -o \
-name \*.h -o -name \*.hpp -o -name \*.hxx -o \
-name \*.ipp -o \
@ -1639,10 +1639,10 @@ ifeq (posix,$(SHELLTYPE))
-name \*.lay -o \
-name \*.lst \
\) -print0 | xargs -0 -n 20 ./srcclean >&2
$(SILENT) find hash \( -name \*.hsi -o -name \*.xml \) -print0 | xargs -0 -n 20 ./srcclean >&2
$(SILENT) find bgfx \( -name \*.json \) -print0 | xargs -0 -n 20 ./srcclean >&2
$(SILENT) find plugins \( -name \*.lua -o -name \*.json \) -print0 | xargs -0 -n 20 ./srcclean >&2
$(SILENT) find scripts \( -name \*.lua \) -print0 | xargs -0 -n 20 ./srcclean >&2
$(SILENT)- find hash \( -name \*.hsi -o -name \*.xml \) -print0 | xargs -0 -n 20 ./srcclean >&2
$(SILENT)- find bgfx \( -name \*.json \) -print0 | xargs -0 -n 20 ./srcclean >&2
$(SILENT)- find plugins \( -name \*.lua -o -name \*.json \) -print0 | xargs -0 -n 20 ./srcclean >&2
$(SILENT)- find scripts \( -name \*.lua \) -print0 | xargs -0 -n 20 ./srcclean >&2
else
$(shell for /r src %%i in (*.c, *.cpp, *.h, *.hpp, *.hxx, *.ipp, *.mm, *.lay, *.lst) do srcclean %%i >&2 )
$(shell for /r hash %%i in (*.hsi, *.xml) do srcclean %%i >&2 )

View File

@ -16,10 +16,12 @@
#include "screen.h"
#include "speaker.h"
namespace {
class psr540_state : public driver_device {
public:
psr540_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag),
psr540_state(const machine_config &mconfig, device_type type, const char *tag) :
driver_device(mconfig, type, tag),
m_maincpu(*this, "maincpu"),
m_swx00(*this, "swx00"),
m_lcdc(*this, "ks0066"),
@ -360,4 +362,6 @@ ROM_START( psr540 )
ROM_LOAD("psr540-lcd.svg", 0, 634772, CRC(606d85ab) SHA1(6eff1f028c531cdcd070b21949e4624af0a586a1))
ROM_END
} // anonymous namespace
SYST( 1999, psr540, 0, 0, psr540, psr540, psr540_state, empty_init, "Yamaha", "PSR540", MACHINE_IS_SKELETON )