mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* src/myslang.h [HAS_ACS_AS_PCCHARS]: Remove all code ifdef-ed
HAS_ACS_AS_PCCHARS - it's unused. * src/help.c [HAS_ACS_AS_PCCHARS]: Likewise. * src/layout.c (init_curses) [HAS_ACS_AS_PCCHARS]: Remove redundant code.
This commit is contained in:
parent
021572bf8f
commit
3efbdcb0f7
@ -1,3 +1,10 @@
|
|||||||
|
2007-10-15 Pavel Tsekov <ptsekov@gmx.net>
|
||||||
|
|
||||||
|
* myslang.h [HAS_ACS_AS_PCCHARS]: Remove all code ifdef-ed
|
||||||
|
HAS_ACS_AS_PCCHARS - it's unused.
|
||||||
|
* help.c [HAS_ACS_AS_PCCHARS]: Likewise.
|
||||||
|
* layout.c (init_curses) [HAS_ACS_AS_PCCHARS]: Remove redundant code.
|
||||||
|
|
||||||
2007-09-24 David Sterba <dave@jikos.cz>
|
2007-09-24 David Sterba <dave@jikos.cz>
|
||||||
|
|
||||||
* widget.h: Define new mode for listbox insertion.
|
* widget.h: Define new mode for listbox insertion.
|
||||||
|
31
src/help.c
31
src/help.c
@ -98,37 +98,6 @@ static int inside_link_area = 0;
|
|||||||
|
|
||||||
static cb_ret_t help_callback (struct Dlg_head *h, dlg_msg_t, int parm);
|
static cb_ret_t help_callback (struct Dlg_head *h, dlg_msg_t, int parm);
|
||||||
|
|
||||||
#ifdef HAS_ACS_AS_PCCHARS
|
|
||||||
static const struct {
|
|
||||||
int acscode;
|
|
||||||
int pccode;
|
|
||||||
} acs2pc_table [] = {
|
|
||||||
{ 'q', 0xC4 },
|
|
||||||
{ 'x', 0xB3 },
|
|
||||||
{ 'l', 0xDA },
|
|
||||||
{ 'k', 0xBF },
|
|
||||||
{ 'm', 0xC0 },
|
|
||||||
{ 'j', 0xD9 },
|
|
||||||
{ 'a', 0xB0 },
|
|
||||||
{ 'u', 0xB4 },
|
|
||||||
{ 't', 0xC3 },
|
|
||||||
{ 'w', 0xC2 },
|
|
||||||
{ 'v', 0xC1 },
|
|
||||||
{ 'n', 0xC5 },
|
|
||||||
{ 0, 0 } };
|
|
||||||
|
|
||||||
static int acs2pc (int acscode)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
for (i = 0; acs2pc_table[i].acscode != 0; i++)
|
|
||||||
if (acscode == acs2pc_table[i].acscode) {
|
|
||||||
return acs2pc_table[i].pccode;
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* returns the position where text was found in the start buffer */
|
/* returns the position where text was found in the start buffer */
|
||||||
/* or 0 if not found */
|
/* or 0 if not found */
|
||||||
static const char *
|
static const char *
|
||||||
|
@ -552,10 +552,6 @@ static void check_split (void)
|
|||||||
void
|
void
|
||||||
init_curses ()
|
init_curses ()
|
||||||
{
|
{
|
||||||
#ifndef HAS_ACS_AS_PCCHARS
|
|
||||||
if (force_ugly_line_drawing)
|
|
||||||
SLtt_Has_Alt_Charset = 0;
|
|
||||||
#endif
|
|
||||||
SLsmg_init_smg ();
|
SLsmg_init_smg ();
|
||||||
do_enter_ca_mode ();
|
do_enter_ca_mode ();
|
||||||
init_colors ();
|
init_colors ();
|
||||||
|
@ -27,17 +27,10 @@ enum {
|
|||||||
#define ACS_URCORNER SLSMG_URCORN_CHAR
|
#define ACS_URCORNER SLSMG_URCORN_CHAR
|
||||||
#define ACS_LRCORNER SLSMG_LRCORN_CHAR
|
#define ACS_LRCORNER SLSMG_LRCORN_CHAR
|
||||||
|
|
||||||
#ifdef HAS_ACS_AS_PCCHARS
|
#define ACS_LTEE 't'
|
||||||
# define ACS_LTEE 0xC3
|
#define acs() SLsmg_set_char_set(1)
|
||||||
# define acs() ;
|
#define noacs() SLsmg_set_char_set (0)
|
||||||
# define noacs() ;
|
#define baudrate() SLang_TT_Baud_Rate
|
||||||
# define baudrate() 19200
|
|
||||||
#else
|
|
||||||
# define ACS_LTEE 't'
|
|
||||||
# define acs() SLsmg_set_char_set(1)
|
|
||||||
# define noacs() SLsmg_set_char_set (0)
|
|
||||||
# define baudrate() SLang_TT_Baud_Rate
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
COLOR_BLACK, COLOR_RED, COLOR_GREEN, COLOR_YELLOW, COLOR_BLUE,
|
COLOR_BLACK, COLOR_RED, COLOR_GREEN, COLOR_YELLOW, COLOR_BLUE,
|
||||||
|
Loading…
Reference in New Issue
Block a user