Skip to contentSkip to conversation

Duplicate initializer in curses_keys.h

Qemu-devel Blue Swirl 3 participants 3 messages Oct 27, 2008

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Sparse complains about initializer entry defined twice in curses_keys.h:

    ['\t'] = 15, /* Tab */
    [0x009] = 23 | CNTRL, /* Control + i */

Which one is correct?

#1 lore raw

2008/10/27 Blue Swirl <[email protected]>:

Quoted 5 lines

Sparse complains about initializer entry defined twice in curses_keys.h:

   ['\t'] = 15, /* Tab */
   [0x009] = 23 | CNTRL, /* Control + i */

Which one is correct?

Turns out both are correct :-p Ctrl + i and Tab are indistinguishable in console. While it doesn't matter when the guest is also a unix console, I guess Tab is more useful so I'll remove ^I.

Cheers

#2 lore raw
In reply to Blue Swirl
Quoted 5 lines · Blue Swirl, le Mon 27 Oct 2008 21:39:00 +0200, a écrit :

Sparse complains about initializer entry defined twice in curses_keys.h:

    ['\t'] = 15, /* Tab */
    [0x009] = 23 | CNTRL, /* Control + i */

Which one is correct?

Both :)

I'd say we should keep 15.

Samuel