annotate osdep/getch2.h @ 22697:2fe9bd97a7f6

Fix configure -march detection for athlon-xp The configure script uses SSE support to distinguish between athlon and athlon-xp, but SSE support was tested _after_ deciding the basic CPU type. Thus athlon-xp was always misdetected as athlon. Fix this by moving the CPU extensions check before the CPU type check. Patch from Andrew Savchenko, bircoph list ru.
author uau
date Sun, 18 Mar 2007 13:38:55 +0000
parents 5385740067a1
children 50e1e79056b6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1 /* GyS-TermIO v2.0 (for GySmail v3) (C) 1999 A'rpi/ESP-team */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 /* a very small replacement of ncurses library */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 /* Screen size. Initialized by load_termcap() and get_screen_size() */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 extern int screen_width;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6 extern int screen_height;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7
17240
11459d1ff17c Use termcap "erase to end of line" character code instead of using spaces
ods15
parents: 9380
diff changeset
8 /* Termcap code to erase to end of line */
11459d1ff17c Use termcap "erase to end of line" character code instead of using spaces
ods15
parents: 9380
diff changeset
9 extern char * erase_to_end_of_line;
11459d1ff17c Use termcap "erase to end of line" character code instead of using spaces
ods15
parents: 9380
diff changeset
10
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 /* Get screen-size using IOCTL call. */
17566
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 17240
diff changeset
12 extern void get_screen_size(void);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14 /* Load key definitions from the TERMCAP database. 'termtype' can be NULL */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 extern int load_termcap(char *termtype);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 /* Enable and disable STDIN line-buffering */
17566
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 17240
diff changeset
18 extern void getch2_enable(void);
f580a7755ac5 Patch by Stefan Huehner / stefan % huehner ! org \
rathann
parents: 17240
diff changeset
19 extern void getch2_disable(void);
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 /* Read a character or a special key code (see keycodes.h) */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22 extern int getch2(int halfdelay_time);
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23
19808
5385740067a1 * remove extern definitions of functions in .c files
attila
parents: 17566
diff changeset
24 #ifdef __MINGW32__
5385740067a1 * remove extern definitions of functions in .c files
attila
parents: 17566
diff changeset
25 extern int mp_input_win32_slave_cmd_func(int fd,char* dest,int size);
5385740067a1 * remove extern definitions of functions in .c files
attila
parents: 17566
diff changeset
26 #endif