Remove SniFF

This commit is contained in:
John Schmidt 2014-03-17 17:24:38 +01:00 committed by Thiago de Arruda
parent 8a0043130f
commit 44a6f194b4
7 changed files with 2 additions and 20 deletions

View File

@ -1661,11 +1661,6 @@ char_u* skiptowhite(char_u *p)
return p; return p;
} }
#if defined(FEAT_LISTCMDS) \
|| defined(FEAT_SIGNS) \
|| defined(FEAT_SNIFF) \
|| defined(PROTO)
/// skiptowhite_esc: Like skiptowhite(), but also skip escaped chars /// skiptowhite_esc: Like skiptowhite(), but also skip escaped chars
/// ///
/// @param p /// @param p
@ -1682,9 +1677,6 @@ char_u* skiptowhite_esc(char_u *p)
return p; return p;
} }
#endif // if defined(FEAT_LISTCMDS) || defined(FEAT_SIGNS)
// || defined(FEAT_SNIFF) || defined(PROTO)
/// Getdigits: Get a number from a string and skip over it. /// Getdigits: Get a number from a string and skip over it.
/// ///
/// Note: the argument is a pointer to a char_u pointer! /// Note: the argument is a pointer to a char_u pointer!

View File

@ -859,8 +859,6 @@ enum CMD_index
RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
EX(CMD_snext, "snext", ex_next, EX(CMD_snext, "snext", ex_next,
RANGE|NOTADR|BANG|FILES|EDITCMD|ARGOPT|TRLBAR), RANGE|NOTADR|BANG|FILES|EDITCMD|ARGOPT|TRLBAR),
EX(CMD_sniff, "sniff", ex_sniff,
EXTRA|TRLBAR),
EX(CMD_snomagic, "snomagic", ex_submagic, EX(CMD_snomagic, "snomagic", ex_submagic,
RANGE|WHOLEFOLD|EXTRA|CMDWIN), RANGE|WHOLEFOLD|EXTRA|CMDWIN),
EX(CMD_snoremap, "snoremap", ex_map, EX(CMD_snoremap, "snoremap", ex_map,

View File

@ -191,7 +191,6 @@ static void ex_nogui(exarg_T *eap);
# define ex_ruby ex_script_ni # define ex_ruby ex_script_ni
# define ex_rubydo ex_ni # define ex_rubydo ex_ni
# define ex_rubyfile ex_ni # define ex_rubyfile ex_ni
# define ex_sniff ex_ni
static void ex_swapname(exarg_T *eap); static void ex_swapname(exarg_T *eap);
static void ex_syncbind(exarg_T *eap); static void ex_syncbind(exarg_T *eap);
static void ex_read(exarg_T *eap); static void ex_read(exarg_T *eap);

View File

@ -216,8 +216,6 @@ enum key_extra {
, KE_TAB /* unshifted TAB key */ , KE_TAB /* unshifted TAB key */
, KE_S_TAB_OLD /* shifted TAB key (no longer used) */ , KE_S_TAB_OLD /* shifted TAB key (no longer used) */
, KE_SNIFF /* SNiFF+ input waiting */
, KE_XF1 /* extra vt100 function keys for xterm */ , KE_XF1 /* extra vt100 function keys for xterm */
, KE_XF2 , KE_XF2
, KE_XF3 , KE_XF3
@ -454,8 +452,6 @@ enum key_extra {
#define K_IGNORE TERMCAP2KEY(KS_EXTRA, KE_IGNORE) #define K_IGNORE TERMCAP2KEY(KS_EXTRA, KE_IGNORE)
#define K_NOP TERMCAP2KEY(KS_EXTRA, KE_NOP) #define K_NOP TERMCAP2KEY(KS_EXTRA, KE_NOP)
#define K_SNIFF TERMCAP2KEY(KS_EXTRA, KE_SNIFF)
#define K_MOUSEDOWN TERMCAP2KEY(KS_EXTRA, KE_MOUSEDOWN) #define K_MOUSEDOWN TERMCAP2KEY(KS_EXTRA, KE_MOUSEDOWN)
#define K_MOUSEUP TERMCAP2KEY(KS_EXTRA, KE_MOUSEUP) #define K_MOUSEUP TERMCAP2KEY(KS_EXTRA, KE_MOUSEUP)
#define K_MOUSELEFT TERMCAP2KEY(KS_EXTRA, KE_MOUSELEFT) #define K_MOUSELEFT TERMCAP2KEY(KS_EXTRA, KE_MOUSELEFT)

View File

@ -1566,7 +1566,6 @@ error:
* "msec" == 0 will check for characters once. * "msec" == 0 will check for characters once.
* "msec" == -1 will block until a character is available. * "msec" == -1 will block until a character is available.
* When a GUI is being used, this will not be used for input -- webb * When a GUI is being used, this will not be used for input -- webb
* Returns also, when a request from Sniff is waiting -- toni.
* Or when a Linux GPM mouse event is waiting. * Or when a Linux GPM mouse event is waiting.
*/ */
static int RealWaitForChar(fd, msec, check_for_gpm) static int RealWaitForChar(fd, msec, check_for_gpm)

View File

@ -292,7 +292,7 @@ void ui_breakcheck(void)
* descriptions which would otherwise overflow. The buffer is considered full * descriptions which would otherwise overflow. The buffer is considered full
* when only this extra space (or part of it) remains. * when only this extra space (or part of it) remains.
*/ */
# define INBUFLEN 250 # define INBUFLEN 4096
static char_u inbuf[INBUFLEN + MAX_KEY_CODE_LEN]; static char_u inbuf[INBUFLEN + MAX_KEY_CODE_LEN];
static int inbufcount = 0; /* number of chars in inbuf[] */ static int inbufcount = 0; /* number of chars in inbuf[] */
@ -364,8 +364,7 @@ void set_input_buf(char_u *p)
#if defined(FEAT_GUI) \ #if defined(FEAT_GUI) \
|| defined(FEAT_MOUSE_GPM) || defined(FEAT_SYSMOUSE) \ || defined(FEAT_MOUSE_GPM) || defined(FEAT_SYSMOUSE) \
|| defined(FEAT_XCLIPBOARD) || defined(VMS) \ || defined(FEAT_XCLIPBOARD) || defined(VMS) \
|| defined(FEAT_SNIFF) || defined(FEAT_CLIENTSERVER) \ || defined(PROTO) || defined(FEAT_CLIENTSERVER)
|| defined(PROTO)
/* /*
* Add the given bytes to the input buffer * Add the given bytes to the input buffer
* Special keys start with CSI. A real CSI must have been translated to * Special keys start with CSI. A real CSI must have been translated to

View File

@ -153,7 +153,6 @@ static char *(features[]) = {
"+scrollbind", "+scrollbind",
"+signs", "+signs",
"+smartindent", "+smartindent",
"-sniff",
#ifdef STARTUPTIME #ifdef STARTUPTIME
"+startuptime", "+startuptime",
#else // ifdef STARTUPTIME #else // ifdef STARTUPTIME