comparison src/term.c @ 2237:770485470e59 vim73

Add a few #ifdefs to exclude functions that are not used. (Domnique Pelle)
author Bram Moolenaar <bram@vim.org>
date Sun, 30 May 2010 19:00:15 +0200
parents d92358c7d621
children 0b3be97064e5
comparison
equal deleted inserted replaced
2236:dc2e5ec0500d 2237:770485470e59
2607 2607
2608 if (out_pos >= OUT_SIZE) 2608 if (out_pos >= OUT_SIZE)
2609 out_flush(); 2609 out_flush();
2610 } 2610 }
2611 2611
2612 #if defined(FEAT_TITLE) || defined(FEAT_MOUSE_TTY) || defined(FEAT_GUI) \
2613 || defined(FEAT_TERMRESPONSE) || defined(PROTO)
2612 /* 2614 /*
2613 * A never-padding out_str. 2615 * A never-padding out_str.
2614 * use this whenever you don't want to run the string through tputs. 2616 * use this whenever you don't want to run the string through tputs.
2615 * tputs above is harmless, but tputs from the termcap library 2617 * tputs above is harmless, but tputs from the termcap library
2616 * is likely to strip off leading digits, that it mistakes for padding 2618 * is likely to strip off leading digits, that it mistakes for padding
2629 2631
2630 /* For testing we write one string at a time. */ 2632 /* For testing we write one string at a time. */
2631 if (p_wd) 2633 if (p_wd)
2632 out_flush(); 2634 out_flush();
2633 } 2635 }
2636 #endif
2634 2637
2635 /* 2638 /*
2636 * out_str(s): Put a character string a byte at a time into the output buffer. 2639 * out_str(s): Put a character string a byte at a time into the output buffer.
2637 * If HAVE_TGETENT is defined use the termcap parser. (jw) 2640 * If HAVE_TGETENT is defined use the termcap parser. (jw)
2638 * This should only be used for writing terminal codes, not for outputting 2641 * This should only be used for writing terminal codes, not for outputting
4359 * u button up 4362 * u button up
4360 * ### X cursor position padded to 3 digits 4363 * ### X cursor position padded to 3 digits
4361 * ### Y cursor position padded to 3 digits 4364 * ### Y cursor position padded to 3 digits
4362 * (s-x) SHIFT key pressed - not pressed x not reporting 4365 * (s-x) SHIFT key pressed - not pressed x not reporting
4363 * (c-x) CTRL key pressed - not pressed x not reporting 4366 * (c-x) CTRL key pressed - not pressed x not reporting
4364 * \033\\ terminateing sequence 4367 * \033\\ terminating sequence
4365 */ 4368 */
4366 4369
4367 p = tp + slen; 4370 p = tp + slen;
4368 button = mouse_code = 0; 4371 button = mouse_code = 0;
4369 switch (*p++) 4372 switch (*p++)
4605 } 4608 }
4606 # endif /* FEAT_MOUSE_DEC */ 4609 # endif /* FEAT_MOUSE_DEC */
4607 # ifdef FEAT_MOUSE_PTERM 4610 # ifdef FEAT_MOUSE_PTERM
4608 if (key_name[0] == (int)KS_PTERM_MOUSE) 4611 if (key_name[0] == (int)KS_PTERM_MOUSE)
4609 { 4612 {
4610 int button, num_clicks, action, mc, mr; 4613 int button, num_clicks, action;
4611 4614
4612 p = tp + slen; 4615 p = tp + slen;
4613 4616
4614 action = getdigits(&p); 4617 action = getdigits(&p);
4615 if (*p++ != ';') 4618 if (*p++ != ';')