Skip to content

Commit

Permalink
srcclean and cleanup
Browse files Browse the repository at this point in the history
Started fixing #include guards that don't match the file path.  There
are still plenty more in src/devices, but it's a start.  When there are
none left in src/devices and src/mame, a CI task can be added to catch
them.
  • Loading branch information
cuavas committed Nov 23, 2024
1 parent 7b8072c commit 146c0b9
Show file tree
Hide file tree
Showing 112 changed files with 507 additions and 480 deletions.
4 changes: 2 additions & 2 deletions hash/ekara_cart.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3190,7 +3190,7 @@ license:CC0-1.0

<!-- this one has some songs programmed into it:
月光町のうた おじゃる丸・キス Gekkō Machi no Uta Ojarumaru/Kiss
詠人(うたびと) 北島三郎 Utabito Kitajima Saburō
詠人(うたびと) 北島三郎 Utabito Kitajima Saburō
アララの呪文 ちびまる子ちゃんwith爆チュー問題 Arara no Jumon Chibi Maruko-chan with Bakuchū Mondai
サザエさん 宇野ゆう子 Sazae-san Uno Yūko
島人ぬ宝 BEGIN Shimanchunu Takara BEGIN -->
Expand All @@ -3204,7 +3204,7 @@ license:CC0-1.0
<rom name="usercart.bin" size="0x100000" crc="bc4635cd" sha1="5343b254218f85a2f9e5ae9e4646b456d82c7d27"/>
</dataarea>
</part>
</software>
</software>

<!-- this one has some songs programmed into it:
世界に一つだけの花 SMAP Sekai ni Hitotsu Dake no Hana SMAP
Expand Down
4 changes: 2 additions & 2 deletions hash/ibm5170.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13423,7 +13423,7 @@ Prompts user to "press fire" but no correlated keyboard bind, requires unemulate
</software>

<software name="eyebeho3fr" cloneof="eyebeho3">
<!-- Prints regular AD&D with translated subtitle on box art -->
<!-- Prints regular AD&D with translated subtitle on box art -->
<description>Advanced Dungeons &amp; Dragons - Eye of the Beholder III: A l'assaut de Myth Drannor (France)</description>
<year>1993</year>
<publisher>SSI</publisher>
Expand Down Expand Up @@ -13455,7 +13455,7 @@ Prompts user to "press fire" but no correlated keyboard bind, requires unemulate
</software>

<software name="eyebeho3de" cloneof="eyebeho3">
<!-- TODO: assumed same as French version, verify with box art -->
<!-- TODO: assumed same as French version, verify with box art -->
<description>Advanced Dungeons &amp; Dragons - Eye of the Beholder III: Sturm auf Myth Drannor (Germany)</description>
<year>1993</year>
<publisher>SSI</publisher>
Expand Down
2 changes: 1 addition & 1 deletion hash/x68k_flop.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5008,7 +5008,7 @@ Including "Daikairei Powerup kit to Shin Scenario Make kit" &amp; "Daikairei Tsu
<description>Emerald Densetsu</description>
<year>1990</year>
<publisher>システムハウスオー (System House Oh!)</publisher>
<notes><![CDATA[
<notes><![CDATA[
Has odd GFX boss fight transitions (verify)
]]></notes>
<info name="alt_title" value="エメラルド伝説" />
Expand Down
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/a2corvus.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*********************************************************************/

#ifndef MAME_A2BUS_A2CORVUS_H
#define MAME_A2BUS_A2CORVUS_H
#ifndef MAME_BUS_A2BUS_A2CORVUS_H
#define MAME_BUS_A2BUS_A2CORVUS_H

#pragma once

Expand Down Expand Up @@ -52,4 +52,4 @@ class a2bus_corvus_device:
// device type definition
DECLARE_DEVICE_TYPE(A2BUS_CORVUS, a2bus_corvus_device)

#endif // MAME_A2BUS_A2CORVUS_H
#endif // MAME_BUS_A2BUS_A2CORVUS_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/a2eext80col.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*********************************************************************/

#ifndef MAME_BUS_A2BUS_A2EEXT809COL_H
#define MAME_BUS_A2BUS_A2EEXT809COL_H
#ifndef MAME_BUS_A2BUS_A2EEXT80COL_H
#define MAME_BUS_A2BUS_A2EEXT80COL_H

#pragma once

Expand Down Expand Up @@ -47,4 +47,4 @@ class a2eaux_ext80col_device:
// device type definition
DECLARE_DEVICE_TYPE(A2EAUX_EXT80COL, a2eaux_ext80col_device)

#endif // MAME_BUS_A2BUS_A2EEXT809COL_H
#endif // MAME_BUS_A2BUS_A2EEXT80COL_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/a2superdrive.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*********************************************************************/

#ifndef MAME_BUS_A2BUS_SUPERDRIVE_H
#define MAME_BUS_A2BUS_SUPERDRIVE_H
#ifndef MAME_BUS_A2BUS_A2SUPERDRIVE_H
#define MAME_BUS_A2BUS_A2SUPERDRIVE_H

#pragma once

Expand All @@ -19,4 +19,4 @@
// device type definition
DECLARE_DEVICE_TYPE(A2BUS_SUPERDRIVE, device_a2bus_card_interface)

#endif // MAME_BUS_A2BUS_SUPERDRIVE_H
#endif // MAME_BUS_A2BUS_A2SUPERDRIVE_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/a2wico_trackball.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
*********************************************************************/

#ifndef MAME_DEVICES_A2BUS_A2WICO_TRACKBALL_H
#define MAME_DEVICES_A2BUS_A2WICO_TRACKBALL_H
#ifndef MAME_BUS_A2BUS_A2WICO_TRACKBALL_H
#define MAME_BUS_A2BUS_A2WICO_TRACKBALL_H

#pragma once

Expand All @@ -17,4 +17,4 @@
// device type definition
DECLARE_DEVICE_TYPE(A2BUS_WICOTRACKBALL, device_a2bus_card_interface)

#endif // MAME_DEVICES_A2BUS_A2WICO_TRACKBALL_H
#endif // MAME_BUS_A2BUS_A2WICO_TRACKBALL_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/agat7ports.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*********************************************************************/

#ifndef MAME_BUS_A2BUS_AGAT7_PORTS_H
#define MAME_BUS_A2BUS_AGAT7_PORTS_H
#ifndef MAME_BUS_A2BUS_AGAT7PORTS_H
#define MAME_BUS_A2BUS_AGAT7PORTS_H

#pragma once

Expand Down Expand Up @@ -61,4 +61,4 @@ class a2bus_agat7_ports_device:
// device type definition
DECLARE_DEVICE_TYPE(A2BUS_AGAT7_PORTS, a2bus_agat7_ports_device)

#endif // MAME_BUS_A2BUS_AGAT7_PORTS_H
#endif // MAME_BUS_A2BUS_AGAT7PORTS_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/computereyes2.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*********************************************************************/

#ifndef MAME_BUS_A2BUS_COMPEYES2_H
#define MAME_BUS_A2BUS_COMPEYES2_H
#ifndef MAME_BUS_A2BUS_COMPUTEREYES2_H
#define MAME_BUS_A2BUS_COMPUTEREYES2_H

#pragma once

Expand All @@ -18,4 +18,4 @@
// device type declaration
DECLARE_DEVICE_TYPE(A2BUS_COMPUTEREYES2, device_a2bus_card_interface)

#endif // MAME_BUS_A2BUS_COMPEYES2_H
#endif // MAME_BUS_A2BUS_COMPUTEREYES2_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/ezcgi.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*********************************************************************/

#ifndef MAME_BUS_A2BUS_A2EZCGI_H
#define MAME_BUS_A2BUS_A2EZCGI_H
#ifndef MAME_BUS_A2BUS_EZCGI_H
#define MAME_BUS_A2BUS_EZCGI_H

#pragma once

Expand All @@ -22,4 +22,4 @@ DECLARE_DEVICE_TYPE(A2BUS_EZCGI, device_a2bus_card_interface)
DECLARE_DEVICE_TYPE(A2BUS_EZCGI_9938, device_a2bus_card_interface)
DECLARE_DEVICE_TYPE(A2BUS_EZCGI_9958, device_a2bus_card_interface)

#endif // MAME_BUS_A2BUS_A2EZCGI_H
#endif // MAME_BUS_A2BUS_EZCGI_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/grafex.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*********************************************************************/

#ifndef MAME_BUS_A2BUS_A2GRAFEX_H
#define MAME_BUS_A2BUS_A2GRAFEX_H
#ifndef MAME_BUS_A2BUS_GRAFEX_H
#define MAME_BUS_A2BUS_GRAFEX_H

#pragma once

Expand All @@ -18,4 +18,4 @@
// device type definition
DECLARE_DEVICE_TYPE(A2BUS_GRAFEX, device_a2bus_card_interface)

#endif // MAME_BUS_A2BUS_GRAFEX_H
#endif // MAME_BUS_A2BUS_GRAFEX_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/grappler.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
SLCT 25 26 N/C
***********************************************************************/
#ifndef MAME_BUS_A2BUS_GRAPPLERPLUS_H
#define MAME_BUS_A2BUS_GRAPPLERPLUS_H
#ifndef MAME_BUS_A2BUS_GRAPPLER_H
#define MAME_BUS_A2BUS_GRAPPLER_H

#pragma once

Expand All @@ -60,4 +60,4 @@ DECLARE_DEVICE_TYPE(A2BUS_GRAPPLERPLUS, device_a2bus_card_interface)
DECLARE_DEVICE_TYPE(A2BUS_BUFGRAPPLERPLUS, device_a2bus_card_interface)
DECLARE_DEVICE_TYPE(A2BUS_BUFGRAPPLERPLUSA, device_a2bus_card_interface)

#endif // MAME_BUS_A2BUS_GRAPPLERPLUS_H
#endif // MAME_BUS_A2BUS_GRAPPLER_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/mouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
*********************************************************************/

#ifndef MAME_DEVICES_A2BUS_MOUSE_H
#define MAME_DEVICES_A2BUS_MOUSE_H
#ifndef MAME_BUS_A2BUS_MOUSE_H
#define MAME_BUS_A2BUS_MOUSE_H

#pragma once

#include "a2bus.h"

DECLARE_DEVICE_TYPE(A2BUS_MOUSE, device_a2bus_card_interface)

#endif // MAME_DEVICES_A2BUS_MOUSE_H
#endif // MAME_BUS_A2BUS_MOUSE_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/nippelclock.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*********************************************************************/

#ifndef MAME_BUS_A2BUS_A2NIPPELCLOCK_H
#define MAME_BUS_A2BUS_A2NIPPELCLOCK_H
#ifndef MAME_BUS_A2BUS_NIPPELCLOCK_H
#define MAME_BUS_A2BUS_NIPPELCLOCK_H

#pragma once

Expand Down Expand Up @@ -48,4 +48,4 @@ class a2bus_nippelclock_device:
// device type definition
DECLARE_DEVICE_TYPE(A2BUS_NIPPELCLOCK, a2bus_nippelclock_device)

#endif // MAME_BUS_A2BUS_A2NIPPELCLOCK_H
#endif // MAME_BUS_A2BUS_NIPPELCLOCK_H
6 changes: 3 additions & 3 deletions src/devices/bus/a2bus/ssprite.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
*********************************************************************/

#ifndef MAME_BUS_A2BUS_A2SSPRITE_H
#define MAME_BUS_A2BUS_A2SSPRITE_H
#ifndef MAME_BUS_A2BUS_SSPRITE_H
#define MAME_BUS_A2BUS_SSPRITE_H

#pragma once

Expand All @@ -19,4 +19,4 @@
// device type definition
DECLARE_DEVICE_TYPE(A2BUS_SSPRITE, device_a2bus_card_interface)

#endif // MAME_BUS_A2BUS_SSPRITE_H
#endif // MAME_BUS_A2BUS_SSPRITE_H
4 changes: 2 additions & 2 deletions src/devices/bus/a2bus/transwarp.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*********************************************************************/

#ifndef MAME_BUS_A2BUS_A2TRANSWARP_H
#define MAME_BUS_A2BUS_A2TRANSWARP_H
#ifndef MAME_BUS_A2BUS_TRANSWARP_H
#define MAME_BUS_A2BUS_TRANSWARP_H

#include "a2bus.h"

Expand Down
6 changes: 3 additions & 3 deletions src/devices/bus/a2gameio/computereyes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*********************************************************************/

#ifndef MAME_BUS_A2GAMEIO_COMPEYES_H
#define MAME_BUS_A2GAMEIO_COMPEYES_H
#ifndef MAME_BUS_A2GAMEIO_COMPUTEREYES_H
#define MAME_BUS_A2GAMEIO_COMPUTEREYES_H

#pragma once

Expand All @@ -16,4 +16,4 @@
// device type declaration
DECLARE_DEVICE_TYPE(APPLE2_COMPUTEREYES, device_a2gameio_interface)

#endif // MAME_BUS_A2GAMEIO_COMPEYES_H
#endif // MAME_BUS_A2GAMEIO_COMPUTEREYES_H
8 changes: 4 additions & 4 deletions src/devices/bus/a800/a5200_supercart.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// license: BSD-3-Clause
// copyright-holders: Angelo Salese

#ifndef MAME_BUS_A5200_SUPERCART_H
#define MAME_BUS_A5200_SUPERCART_H
#ifndef MAME_BUS_A800_A5200_SUPERCART_H
#define MAME_BUS_A800_A5200_SUPERCART_H

#pragma once

Expand All @@ -26,7 +26,7 @@ class a5200_rom_supercart_device : public a5200_rom_device
u8 bank_r(offs_t offset);
};

DECLARE_DEVICE_TYPE(A5200_ROM_SUPERCART, a5200_rom_supercart_device)
DECLARE_DEVICE_TYPE(A5200_ROM_SUPERCART, a5200_rom_supercart_device)

#endif // MAME_BUS_A5200_SUPERCART_H
#endif // MAME_BUS_A800_A5200_SUPERCART_H

6 changes: 3 additions & 3 deletions src/devices/bus/a800/atari1050.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
***************************************************************************/

#ifndef MAME_BUS_A800_ATARI1050
#define MAME_BUS_A800_ATARI1050 1
#ifndef MAME_BUS_A800_ATARI1050_H
#define MAME_BUS_A800_ATARI1050_H

#pragma once

Expand Down Expand Up @@ -44,4 +44,4 @@ class atari1050_device : public device_t, public device_a8sio_card_interface

DECLARE_DEVICE_TYPE(ATARI1050, atari1050_device)

#endif // MAME_BUS_A800_ATARI1050
#endif // MAME_BUS_A800_ATARI1050_H
6 changes: 3 additions & 3 deletions src/devices/bus/a800/atari810.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
***************************************************************************/

#ifndef MAME_BUS_A800_ATARI810
#define MAME_BUS_A800_ATARI810 1
#ifndef MAME_BUS_A800_ATARI810_H
#define MAME_BUS_A800_ATARI810_H

#pragma once

Expand Down Expand Up @@ -44,4 +44,4 @@ class atari810_device : public device_t, public device_a8sio_card_interface

DECLARE_DEVICE_TYPE(ATARI810, atari810_device)

#endif // MAME_BUS_A800_ATARI810
#endif // MAME_BUS_A800_ATARI810_H
6 changes: 3 additions & 3 deletions src/devices/bus/abcbus/abcbus.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
**********************************************************************/

#ifndef MAME_DEVICES_ABCBUS_ABCBUS_H
#define MAME_DEVICES_ABCBUS_ABCBUS_H
#ifndef MAME_BUS_ABCBUS_ABCBUS_H
#define MAME_BUS_ABCBUS_ABCBUS_H

#pragma once

Expand Down Expand Up @@ -275,4 +275,4 @@ void abc1600bus_cards(device_slot_interface &device);
typedef device_type_enumerator<abcbus_slot_device> abcbus_slot_device_enumerator;


#endif // MAME_DEVICES_ABCBUS_ABCBUS_H
#endif // MAME_BUS_ABCBUS_ABCBUS_H
6 changes: 3 additions & 3 deletions src/devices/bus/abcbus/db4106.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*********************************************************************/

#ifndef MAME_BUS_ABCBUS_DATABOARD_4106_H
#define MAME_BUS_ABCBUS_DATABOARD_4106_H
#ifndef MAME_BUS_ABCBUS_DB4106_H
#define MAME_BUS_ABCBUS_DB4106_H

#pragma once

Expand Down Expand Up @@ -60,4 +60,4 @@ class databoard_4106_device : public device_t,
// device type definition
DECLARE_DEVICE_TYPE(DATABOARD_4106, databoard_4106_device)

#endif // MAME_BUS_ABCBUS_DATABOARD_4106_H
#endif // MAME_BUS_ABCBUS_DB4106_H
6 changes: 3 additions & 3 deletions src/devices/bus/abcbus/db4107.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*********************************************************************/

#ifndef MAME_BUS_ABCBUS_DATABOARD_4107_H
#define MAME_BUS_ABCBUS_DATABOARD_4107_H
#ifndef MAME_BUS_ABCBUS_DB4107_H
#define MAME_BUS_ABCBUS_DB4107_H

#pragma once

Expand Down Expand Up @@ -62,4 +62,4 @@ class databoard_4107_device : public device_t,
// device type definition
DECLARE_DEVICE_TYPE(DATABOARD_4107, databoard_4107_device)

#endif // MAME_BUS_ABCBUS_DATABOARD_4107_H
#endif // MAME_BUS_ABCBUS_DB4107_H
6 changes: 3 additions & 3 deletions src/devices/bus/abcbus/db4112.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*********************************************************************/

#ifndef MAME_BUS_ABCBUS_DATABOARD_4112_H
#define MAME_BUS_ABCBUS_DATABOARD_4112_H
#ifndef MAME_BUS_ABCBUS_DB4112_H
#define MAME_BUS_ABCBUS_DB4112_H

#pragma once

Expand Down Expand Up @@ -60,4 +60,4 @@ class abc_databoard_4112_device : public device_t,
// device type definition
DECLARE_DEVICE_TYPE(DATABOARD_4112, abc_databoard_4112_device)

#endif // MAME_BUS_ABCBUS_DATABOARD_4112_H
#endif // MAME_BUS_ABCBUS_DB4112_H
Loading

0 comments on commit 146c0b9

Please sign in to comment.