use new MKSH_WITH_TEXTMODE for several of the #ifdefs

This commit is contained in:
mirabilos
2017-04-02 16:41:01 +02:00
parent 7fb9d283c5
commit a6619d1ef2
5 changed files with 10 additions and 10 deletions

2
sh.h
View File

@@ -2463,7 +2463,7 @@ extern int tty_init_fd(void); /* initialise tty_fd, tty_devtty */
!mksh_cdirsep(mksh_sdirsep_s[2])) ? \
(mksh_sdirsep_s + 1) : strpbrk(mksh_sdirsep_s, "/\\"))); \
})
#define mksh_vdirsep(s) (mksh_sdirsep((s)) != NULL)
#define mksh_vdirsep(s) (mksh_sdirsep((s)) != NULL)
#else
#define mksh_abspath(s) ((s)[0] == '/')
#define mksh_cdirsep(c) ((c) == '/')