Declare static functions in header file as static inline, as that reduces warnings quite a bit.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4071
This commit is contained in:
parent
6485a80102
commit
aa8bf6041e
1 changed files with 2 additions and 2 deletions
|
@ -149,11 +149,11 @@ typedef struct {
|
|||
|
||||
extern Int10Data int10;
|
||||
|
||||
static Bit8u CURSOR_POS_COL(Bit8u page) {
|
||||
static inline Bit8u CURSOR_POS_COL(Bit8u page) {
|
||||
return real_readb(BIOSMEM_SEG,BIOSMEM_CURSOR_POS+page*2);
|
||||
}
|
||||
|
||||
static Bit8u CURSOR_POS_ROW(Bit8u page) {
|
||||
static inline Bit8u CURSOR_POS_ROW(Bit8u page) {
|
||||
return real_readb(BIOSMEM_SEG,BIOSMEM_CURSOR_POS+page*2+1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue