Some cleanups in isamem and isartc
This commit is contained in:
@@ -2165,12 +2165,12 @@ isamem_get_internal_name(int board)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
isamem_get_from_internal_name(const char *s)
|
isamem_get_from_internal_name(const char *str)
|
||||||
{
|
{
|
||||||
int c = 0;
|
int c = 0;
|
||||||
|
|
||||||
while (boards[c].dev != NULL) {
|
while (boards[c].dev != NULL) {
|
||||||
if (!strcmp(boards[c].dev->internal_name, s))
|
if (!strcmp(boards[c].dev->internal_name, str))
|
||||||
return c;
|
return c;
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -919,12 +919,12 @@ isartc_get_internal_name(int board)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
isartc_get_from_internal_name(char *s)
|
isartc_get_from_internal_name(const char *str)
|
||||||
{
|
{
|
||||||
int c = 0;
|
int c = 0;
|
||||||
|
|
||||||
while (boards[c].dev != NULL) {
|
while (boards[c].dev != NULL) {
|
||||||
if (!strcmp(boards[c].dev->internal_name, s))
|
if (!strcmp(boards[c].dev->internal_name, str))
|
||||||
return c;
|
return c;
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -42,7 +42,6 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EMU_ISAMEM_H
|
#ifndef EMU_ISAMEM_H
|
||||||
#define EMU_ISAMEM_H
|
#define EMU_ISAMEM_H
|
||||||
|
|
||||||
@@ -52,17 +51,12 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Global variables. */
|
|
||||||
extern const device_t isamem_device;
|
|
||||||
extern const device_t isamem_brat80_device;
|
|
||||||
extern const device_t isamem_ev159_device;
|
|
||||||
|
|
||||||
/* Functions. */
|
/* Functions. */
|
||||||
extern void isamem_reset(void);
|
extern void isamem_reset(void);
|
||||||
|
|
||||||
extern const char *isamem_get_name(int t);
|
extern const char *isamem_get_name(int t);
|
||||||
extern const char *isamem_get_internal_name(int t);
|
extern const char *isamem_get_internal_name(int t);
|
||||||
extern int isamem_get_from_internal_name(const char *s);
|
extern int isamem_get_from_internal_name(const char *str);
|
||||||
extern const device_t *isamem_get_device(int t);
|
extern const device_t *isamem_get_device(int t);
|
||||||
extern int isamem_has_config(int board);
|
extern int isamem_has_config(int board);
|
||||||
|
|
||||||
|
|||||||
@@ -42,7 +42,6 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef EMU_ISARTC_H
|
#ifndef EMU_ISARTC_H
|
||||||
#define EMU_ISARTC_H
|
#define EMU_ISARTC_H
|
||||||
|
|
||||||
@@ -50,13 +49,11 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Global variables. */
|
|
||||||
|
|
||||||
/* Functions. */
|
/* Functions. */
|
||||||
extern void isartc_reset(void);
|
extern void isartc_reset(void);
|
||||||
|
|
||||||
extern const char *isartc_get_internal_name(int t);
|
extern const char *isartc_get_internal_name(int t);
|
||||||
extern int isartc_get_from_internal_name(char *s);
|
extern int isartc_get_from_internal_name(const char *str);
|
||||||
extern const device_t *isartc_get_device(int t);
|
extern const device_t *isartc_get_device(int t);
|
||||||
extern int isartc_has_config(int board);
|
extern int isartc_has_config(int board);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user