mirror of https://github.com/MidnightCommander/mc
Cosmetic patches for future PC port (OS/2+NT)
This commit is contained in:
parent
5ae1ab600f
commit
1a13a4f7c7
|
@ -1923,12 +1923,7 @@ do_search (WPanel *panel, int c_code)
|
|||
break;
|
||||
wrapped = 1;
|
||||
}
|
||||
#ifdef OS2_NT
|
||||
# define FILENAME_COMPARE strncasecmp
|
||||
#else
|
||||
# define FILENAME_COMPARE strncmp
|
||||
#endif
|
||||
if (FILENAME_COMPARE (panel->dir.list [i].fname, panel->search_buffer, l) == 0){
|
||||
if (STRNCOMP (panel->dir.list [i].fname, panel->search_buffer, l) == 0){
|
||||
unselect_item (panel);
|
||||
panel->selected = i;
|
||||
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 */
|
||||
|
||||
/* {{{ Emacs local variables */
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
#ifndef __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 */
|
||||
/* one caused by typing `exit' or `logout' in the subshell */
|
||||
#define SUBSHELL_EXIT 128
|
||||
|
||||
#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 */
|
||||
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 sigchld_handler (int sig);
|
||||
|
||||
#endif /* HAVE_SUBSHELL_SUPPORT */
|
||||
#else
|
||||
int use_subshell = 0;
|
||||
#endif /* not HAVE_SUBSHELL_SUPPORT */
|
||||
|
||||
#endif /* __SUBSHELL_H */
|
||||
|
|
Loading…
Reference in New Issue