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