Changed an unamed enumeration to a named one (input_seq_type)

This commit is contained in:
Nathan Woods 2007-12-26 21:20:34 +00:00
parent 08f8fbf348
commit eb5699299c
2 changed files with 6 additions and 6 deletions

View file

@ -2598,7 +2598,7 @@ const char *input_port_name(const input_port_entry *port)
}
const input_seq *input_port_seq(input_port_entry *port, int seqtype)
const input_seq *input_port_seq(input_port_entry *port, input_seq_type seqtype)
{
static const input_seq ip_none = SEQ_DEF_0;
input_seq *portseq;
@ -2639,7 +2639,7 @@ const input_seq *input_port_seq(input_port_entry *port, int seqtype)
}
const input_seq *input_port_default_seq(int type, int player, int seqtype)
const input_seq *input_port_default_seq(int type, int player, input_seq_type seqtype)
{
static const input_seq ip_none = SEQ_DEF_0;

View file

@ -36,13 +36,13 @@
/* sequence types for input_port_seq() call */
enum
enum _input_seq_type
{
SEQ_TYPE_STANDARD = 0,
SEQ_TYPE_INCREMENT = 1,
SEQ_TYPE_DECREMENT = 2
};
typedef enum _input_seq_type input_seq_type;
/* conditions for DIP switches */
enum
@ -876,8 +876,8 @@ read16_handler port_tag_to_handler16(const char *tag);
read32_handler port_tag_to_handler32(const char *tag);
read64_handler port_tag_to_handler64(const char *tag);
const char *input_port_name(const input_port_entry *in);
const input_seq *input_port_seq(input_port_entry *in, int seqtype);
const input_seq *input_port_default_seq(int type, int player, int seqtype);
const input_seq *input_port_seq(input_port_entry *in, input_seq_type seqtype);
const input_seq *input_port_default_seq(int type, int player, input_seq_type seqtype);
int input_port_condition(const input_port_entry *in);
void input_port_set_changed_callback(int port, UINT32 mask, void (*callback)(void *, UINT32, UINT32), void *param);