Make kdInputMachine static const, shrinks .data a bit.

This commit is contained in:
Adam Jackson 2005-12-29 21:11:41 +00:00
parent 6d7ee4167d
commit 49a9249239
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,9 @@
* mi/misprite.c:
Style fix, make SCREEN_EPILOGUE two arguments instead of three.
* hw/kdrive/src/kinput.c:
Make kdInputMachine static const, shrinks .data a bit.
2005-12-29 Dave Airlie <airlied@linux.ie>
* hw/xfree86/os-support/bus/Pci.c: (pciByteSwap):

View File

@ -790,6 +790,7 @@ typedef struct _inputTransition {
KdMouseState nextState;
} KdInputTransition;
static const
KdInputTransition kdInputMachine[num_input_states][num_input_class] = {
/* start */
{
@ -1046,7 +1047,7 @@ KdQueueEvent (xEvent *ev)
static void
KdRunMouseMachine (KdMouseInfo *mi, KdInputClass c, xEvent *ev)
{
KdInputTransition *t;
const KdInputTransition *t;
int a;
t = &kdInputMachine[mi->mouseState][c];