1
1

Cosmetic patches for future PC port (OS/2+NT)

Этот коммит содержится в:
Pavel Machek 1998-04-07 21:53:41 +00:00
родитель 5ae1ab600f
Коммит 1a13a4f7c7
3 изменённых файлов: 8 добавлений и 12 удалений

Просмотреть файл

@ -1923,12 +1923,7 @@ do_search (WPanel *panel, int c_code)
break; break;
wrapped = 1; wrapped = 1;
} }
#ifdef OS2_NT if (STRNCOMP (panel->dir.list [i].fname, panel->search_buffer, l) == 0){
# define FILENAME_COMPARE strncasecmp
#else
# define FILENAME_COMPARE strncmp
#endif
if (FILENAME_COMPARE (panel->dir.list [i].fname, panel->search_buffer, l) == 0){
unselect_item (panel); unselect_item (panel);
panel->selected = i; panel->selected = i;
select_item (panel); select_item (panel);

Просмотреть файл

@ -1195,8 +1195,6 @@ static int pty_open_slave (const char *pty_name)
/* }}} */ /* }}} */
#else
const int use_subshell = 0;
#endif /* HAVE_SUBSHELL_SUPPORT */ #endif /* HAVE_SUBSHELL_SUPPORT */
/* {{{ Emacs local variables */ /* {{{ Emacs local variables */

Просмотреть файл

@ -1,15 +1,15 @@
#ifndef __SUBSHELL_H #ifndef __SUBSHELL_H
#define __SUBSHELL_H #define __SUBSHELL_H
/* If using a subshell for evaluating commands this is true */
extern int use_subshell;
/* Used to distinguish between a normal MC termination and */ /* Used to distinguish between a normal MC termination and */
/* one caused by typing `exit' or `logout' in the subshell */ /* one caused by typing `exit' or `logout' in the subshell */
#define SUBSHELL_EXIT 128 #define SUBSHELL_EXIT 128
#ifdef HAVE_SUBSHELL_SUPPORT #ifdef HAVE_SUBSHELL_SUPPORT
/* If using a subshell for evaluating commands this is true */
extern int use_subshell;
/* File descriptor of the pseudoterminal used by the subshell */ /* File descriptor of the pseudoterminal used by the subshell */
extern int subshell_pty; extern int subshell_pty;
@ -39,5 +39,8 @@ void do_subshell_chdir (char *command, int update_prompt, int reset_prompt);
void subshell_get_console_attributes (void); void subshell_get_console_attributes (void);
void sigchld_handler (int sig); void sigchld_handler (int sig);
#endif /* HAVE_SUBSHELL_SUPPORT */ #else
int use_subshell = 0;
#endif /* not HAVE_SUBSHELL_SUPPORT */
#endif /* __SUBSHELL_H */ #endif /* __SUBSHELL_H */