Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9477a0ad
Commit
9477a0ad
authored
Jul 05, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serialui: Replace a macro with ARRAY_SIZE.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4a900755
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
confdlg.c
dlls/serialui/confdlg.c
+5
-7
No files found.
dlls/serialui/confdlg.c
View file @
9477a0ad
...
@@ -112,36 +112,34 @@ typedef struct tagPARAM2STR
...
@@ -112,36 +112,34 @@ typedef struct tagPARAM2STR
}
PARAM2STR
,
*
LPPARAM2STR
;
}
PARAM2STR
,
*
LPPARAM2STR
;
typedef
const
PARAM2STR
*
LPCPARAM2STR
;
typedef
const
PARAM2STR
*
LPCPARAM2STR
;
#define SERIALUI_TABLESIZE(x) ((sizeof (x))/(sizeof (x[0])))
static
PARAM2STRDATA
SERIALUI_Baud2StrData
[]
=
{
static
PARAM2STRDATA
SERIALUI_Baud2StrData
[]
=
{
{
110
,
"110"
},
{
300
,
"300"
},
{
600
,
"600"
},
{
1200
,
"1200"
},
{
110
,
"110"
},
{
300
,
"300"
},
{
600
,
"600"
},
{
1200
,
"1200"
},
{
2400
,
"2400"
},
{
4800
,
"4800"
},
{
9600
,
"9600"
},
{
14400
,
"14400"
},
{
2400
,
"2400"
},
{
4800
,
"4800"
},
{
9600
,
"9600"
},
{
14400
,
"14400"
},
{
19200
,
"19200"
},
{
38400L
,
"38400"
},
{
56000L
,
"56000"
},
{
57600L
,
"57600"
},
{
19200
,
"19200"
},
{
38400L
,
"38400"
},
{
56000L
,
"56000"
},
{
57600L
,
"57600"
},
{
115200L
,
"115200"
},
{
128000L
,
"128000"
},
{
256000L
,
"256000"
}
{
115200L
,
"115200"
},
{
128000L
,
"128000"
},
{
256000L
,
"256000"
}
};
};
static
PARAM2STR
SERIALUI_Baud2Str
=
{
SERIALUI_TABLESIZE
(
SERIALUI_Baud2StrData
),
SERIALUI_Baud2StrData
};
static
PARAM2STR
SERIALUI_Baud2Str
=
{
ARRAY_SIZE
(
SERIALUI_Baud2StrData
),
SERIALUI_Baud2StrData
};
static
PARAM2STRDATA
SERIALUI_Parity2StrData
[]
=
{
static
PARAM2STRDATA
SERIALUI_Parity2StrData
[]
=
{
{
NOPARITY
,
"None"
},
{
ODDPARITY
,
"Odd"
},
{
EVENPARITY
,
"Even"
},
{
MARKPARITY
,
"Mark"
},
{
NOPARITY
,
"None"
},
{
ODDPARITY
,
"Odd"
},
{
EVENPARITY
,
"Even"
},
{
MARKPARITY
,
"Mark"
},
{
SPACEPARITY
,
"Space"
}
{
SPACEPARITY
,
"Space"
}
};
};
static
PARAM2STR
SERIALUI_Parity2Str
=
{
SERIALUI_TABLESIZE
(
SERIALUI_Parity2StrData
),
SERIALUI_Parity2StrData
};
static
PARAM2STR
SERIALUI_Parity2Str
=
{
ARRAY_SIZE
(
SERIALUI_Parity2StrData
),
SERIALUI_Parity2StrData
};
static
PARAM2STRDATA
SERIALUI_Stop2StrData
[]
=
{
static
PARAM2STRDATA
SERIALUI_Stop2StrData
[]
=
{
{
ONESTOPBIT
,
"1"
},
{
ONE5STOPBITS
,
"1.5"
},
{
TWOSTOPBITS
,
"2"
}
{
ONESTOPBIT
,
"1"
},
{
ONE5STOPBITS
,
"1.5"
},
{
TWOSTOPBITS
,
"2"
}
};
};
static
PARAM2STR
SERIALUI_Stop2Str
=
{
SERIALUI_TABLESIZE
(
SERIALUI_Stop2StrData
),
SERIALUI_Stop2StrData
};
static
PARAM2STR
SERIALUI_Stop2Str
=
{
ARRAY_SIZE
(
SERIALUI_Stop2StrData
),
SERIALUI_Stop2StrData
};
static
PARAM2STRDATA
SERIALUI_Data2StrData
[]
=
{
static
PARAM2STRDATA
SERIALUI_Data2StrData
[]
=
{
{
5
,
"5"
},
{
6
,
"6"
},
{
7
,
"7"
},
{
8
,
"8"
},
{
16
,
"16"
}
{
5
,
"5"
},
{
6
,
"6"
},
{
7
,
"7"
},
{
8
,
"8"
},
{
16
,
"16"
}
};
};
static
PARAM2STR
SERIALUI_Data2Str
=
{
SERIALUI_TABLESIZE
(
SERIALUI_Data2StrData
),
SERIALUI_Data2StrData
};
static
PARAM2STR
SERIALUI_Data2Str
=
{
ARRAY_SIZE
(
SERIALUI_Data2StrData
),
SERIALUI_Data2StrData
};
static
PARAM2STRDATA
SERIALUI_Flow2StrData
[]
=
{
static
PARAM2STRDATA
SERIALUI_Flow2StrData
[]
=
{
{
0
,
"None"
},
{
1
,
"Hardware (RTS/CTS)"
},
{
2
,
"Software (XON/XOFF)"
}
{
0
,
"None"
},
{
1
,
"Hardware (RTS/CTS)"
},
{
2
,
"Software (XON/XOFF)"
}
};
};
static
PARAM2STR
SERIALUI_Flow2Str
=
{
SERIALUI_TABLESIZE
(
SERIALUI_Flow2StrData
),
SERIALUI_Flow2StrData
};
static
PARAM2STR
SERIALUI_Flow2Str
=
{
ARRAY_SIZE
(
SERIALUI_Flow2StrData
),
SERIALUI_Flow2StrData
};
/*
/*
* Add all the fields to a combo box and highlight the current value
* Add all the fields to a combo box and highlight the current value
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment