mirror of
https://github.com/sheumann/hush.git
synced 2025-01-10 16:29:44 +00:00
vi: tweak regex.h include
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
104e01409d
commit
066f399566
@ -161,8 +161,11 @@
|
|||||||
//usage: )
|
//usage: )
|
||||||
//usage: "\n -H Short help regarding available features"
|
//usage: "\n -H Short help regarding available features"
|
||||||
|
|
||||||
#include <regex.h>
|
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
/* Should be after libbb.h: on some systems regex.h needs sys/types.h: */
|
||||||
|
#if ENABLE_FEATURE_VI_REGEX_SEARCH
|
||||||
|
# include <regex.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* the CRASHME code is unmaintained, and doesn't currently build */
|
/* the CRASHME code is unmaintained, and doesn't currently build */
|
||||||
#define ENABLE_FEATURE_VI_CRASHME 0
|
#define ENABLE_FEATURE_VI_CRASHME 0
|
||||||
@ -181,9 +184,9 @@
|
|||||||
|
|
||||||
/* 0x9b is Meta-ESC */
|
/* 0x9b is Meta-ESC */
|
||||||
#if ENABLE_FEATURE_VI_8BIT
|
#if ENABLE_FEATURE_VI_8BIT
|
||||||
#define Isprint(c) ((unsigned char)(c) >= ' ' && (c) != 0x7f && (unsigned char)(c) != 0x9b)
|
# define Isprint(c) ((unsigned char)(c) >= ' ' && (c) != 0x7f && (unsigned char)(c) != 0x9b)
|
||||||
#else
|
#else
|
||||||
#define Isprint(c) ((unsigned char)(c) >= ' ' && (unsigned char)(c) < 0x7f)
|
# define Isprint(c) ((unsigned char)(c) >= ' ' && (unsigned char)(c) < 0x7f)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user