Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ae1f6982
Commit
ae1f6982
authored
Aug 02, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Make the keymap entries const.
parent
518ee99f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
editline.c
dlls/kernel/editline.c
+12
-12
No files found.
dlls/kernel/editline.c
View file @
ae1f6982
...
...
@@ -46,7 +46,7 @@ typedef struct
{
DWORD
keyState
;
/* keyState (from INPUT_RECORD) to match */
BOOL
chkChar
;
/* check vk or char */
KeyEntry
*
entries
;
/* array of entries */
const
KeyEntry
*
entries
;
/* array of entries */
}
KeyMap
;
typedef
struct
WCEL_Context
{
...
...
@@ -648,7 +648,7 @@ static void WCEL_RepeatCount(WCEL_Context* ctx)
* ====================================================================*/
#define CTRL(x) ((x) - '@')
static
KeyEntry
StdKeyMap
[]
=
static
const
KeyEntry
StdKeyMap
[]
=
{
{
/*BACK*/
0x08
,
WCEL_DeletePrevChar
},
{
/*RETURN*/
0x0d
,
WCEL_Done
},
...
...
@@ -656,14 +656,14 @@ static KeyEntry StdKeyMap[] =
{
0
,
NULL
}
};
static
KeyEntry
Win32ExtraStdKeyMap
[]
=
static
const
KeyEntry
Win32ExtraStdKeyMap
[]
=
{
{
/*VK_F8*/
0x77
,
WCEL_FindPrevInHist
},
{
0
,
NULL
}
};
static
KeyEntry
EmacsKeyMapCtrl
[]
=
static
const
KeyEntry
EmacsKeyMapCtrl
[]
=
{
{
CTRL
(
'@'
),
WCEL_SetMark
},
{
CTRL
(
'A'
),
WCEL_MoveToBeg
},
...
...
@@ -695,7 +695,7 @@ static KeyEntry EmacsKeyMapCtrl[] =
{
0
,
NULL
}
};
static
KeyEntry
EmacsKeyMapAlt
[]
=
static
const
KeyEntry
EmacsKeyMapAlt
[]
=
{
{
/*DEL*/
127
,
WCEL_DeleteLeftWord
},
{
'<'
,
WCEL_MoveToFirstHist
},
...
...
@@ -712,7 +712,7 @@ static KeyEntry EmacsKeyMapAlt[] =
{
0
,
NULL
}
};
static
KeyEntry
EmacsKeyMapExtended
[]
=
static
const
KeyEntry
EmacsKeyMapExtended
[]
=
{
{
/*RETURN*/
0x0d
,
WCEL_Done
},
{
/*VK_PRIOR*/
0x21
,
WCEL_MoveToPrevHist
},
...
...
@@ -725,7 +725,7 @@ static KeyEntry EmacsKeyMapExtended[] =
{
0
,
NULL
}
};
static
KeyMap
EmacsKeyMap
[]
=
static
const
KeyMap
EmacsKeyMap
[]
=
{
{
0x00000000
,
1
,
StdKeyMap
},
{
0x00000001
,
1
,
EmacsKeyMapAlt
},
/* left alt */
...
...
@@ -736,7 +736,7 @@ static KeyMap EmacsKeyMap[] =
{
0
,
0
,
0
}
};
static
KeyEntry
Win32KeyMapExtended
[]
=
static
const
KeyEntry
Win32KeyMapExtended
[]
=
{
{
/*VK_LEFT*/
0x25
,
WCEL_MoveLeft
},
{
/*VK_RIGHT*/
0x27
,
WCEL_MoveRight
},
...
...
@@ -748,7 +748,7 @@ static KeyEntry Win32KeyMapExtended[] =
{
0
,
NULL
}
};
static
KeyEntry
Win32KeyMapCtrlExtended
[]
=
static
const
KeyEntry
Win32KeyMapCtrlExtended
[]
=
{
{
/*VK_LEFT*/
0x25
,
WCEL_MoveToLeftWord
},
{
/*VK_RIGHT*/
0x27
,
WCEL_MoveToRightWord
},
...
...
@@ -756,7 +756,7 @@ static KeyEntry Win32KeyMapCtrlExtended[] =
{
0
,
NULL
}
};
KeyMap
Win32KeyMap
[]
=
static
const
KeyMap
Win32KeyMap
[]
=
{
{
0x00000000
,
1
,
StdKeyMap
},
{
0x00000000
,
0
,
Win32ExtraStdKeyMap
},
...
...
@@ -777,8 +777,8 @@ WCHAR* CONSOLE_Readline(HANDLE hConsoleIn)
{
WCEL_Context
ctx
;
INPUT_RECORD
ir
;
KeyMap
*
km
;
KeyEntry
*
ke
;
const
KeyMap
*
km
;
const
KeyEntry
*
ke
;
unsigned
ofs
;
void
(
*
func
)(
struct
WCEL_Context
*
ctx
);
DWORD
ks
;
...
...
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