comparison src/vim.h @ 376:d2bc505a6d91

updated for version 7.0098
author vimboss
date Thu, 30 Jun 2005 21:52:39 +0000
parents e111db373ca4
children bd4c7ce1da02
comparison
equal deleted inserted replaced
375:f14cbd913415 376:d2bc505a6d91
499 #define REDRAW_TOP 30 /* display first w_upd_rows screen lines */ 499 #define REDRAW_TOP 30 /* display first w_upd_rows screen lines */
500 #define NOT_VALID 40 /* buffer needs complete redraw */ 500 #define NOT_VALID 40 /* buffer needs complete redraw */
501 #define CLEAR 50 /* screen messed up, clear it */ 501 #define CLEAR 50 /* screen messed up, clear it */
502 502
503 /* 503 /*
504 * Hints used to optimize screen updating.
505 */
506 #define HINT_NONE 0 /* no current hint */
507 #define HINT_DEL_CHAR 1 /* delete character */
508 #define HINT_INS_CHAR 2 /* insert character */
509
510 /*
511 * Flags for w_valid. 504 * Flags for w_valid.
512 * These are set when something in a window structure becomes invalid, except 505 * These are set when something in a window structure becomes invalid, except
513 * when the cursor is moved. Call check_cursor_moved() before testing one of 506 * when the cursor is moved. Call check_cursor_moved() before testing one of
514 * the flags. 507 * the flags.
515 * These are reset when that thing has been updated and is valid again. 508 * These are reset when that thing has been updated and is valid again.
620 #define BF_WRITE_MASK (BF_NOTEDITED + BF_NEW + BF_READERR) 613 #define BF_WRITE_MASK (BF_NOTEDITED + BF_NEW + BF_READERR)
621 614
622 /* 615 /*
623 * values for xp_context when doing command line completion 616 * values for xp_context when doing command line completion
624 */ 617 */
625 #define CONTEXT_UNKNOWN (-3)
626 #define EXPAND_UNSUCCESSFUL (-2) 618 #define EXPAND_UNSUCCESSFUL (-2)
627 #define EXPAND_OK (-1) 619 #define EXPAND_OK (-1)
628 #define EXPAND_NOTHING 0 620 #define EXPAND_NOTHING 0
629 #define EXPAND_COMMANDS 1 621 #define EXPAND_COMMANDS 1
630 #define EXPAND_FILES 2 622 #define EXPAND_FILES 2
732 # else 724 # else
733 # define SST_MAX_ENTRIES 1000 /* maximal size for state stack array */ 725 # define SST_MAX_ENTRIES 1000 /* maximal size for state stack array */
734 # endif 726 # endif
735 # define SST_FIX_STATES 7 /* size of sst_stack[]. */ 727 # define SST_FIX_STATES 7 /* size of sst_stack[]. */
736 # define SST_DIST 16 /* normal distance between entries */ 728 # define SST_DIST 16 /* normal distance between entries */
737 # define SST_INVALID (synstate_T *)-1 /* invalid syn_state pointer */
738 #endif 729 #endif
739 730
740 /* Values for 'options' argument in do_search() and searchit() */ 731 /* Values for 'options' argument in do_search() and searchit() */
741 #define SEARCH_REV 0x01 /* go in reverse of previous dir. */ 732 #define SEARCH_REV 0x01 /* go in reverse of previous dir. */
742 #define SEARCH_ECHO 0x02 /* echo the search command and handle options */ 733 #define SEARCH_ECHO 0x02 /* echo the search command and handle options */
979 #define VIM_LAST_TYPE 4 /* sentinel value */ 970 #define VIM_LAST_TYPE 4 /* sentinel value */
980 971
981 /* 972 /*
982 * Return values for functions like gui_yesnocancel() 973 * Return values for functions like gui_yesnocancel()
983 */ 974 */
984 #define VIM_OK 1
985 #define VIM_YES 2 975 #define VIM_YES 2
986 #define VIM_NO 3 976 #define VIM_NO 3
987 #define VIM_CANCEL 4 977 #define VIM_CANCEL 4
988 #define VIM_ALL 5 978 #define VIM_ALL 5
989 #define VIM_DISCARDALL 6 979 #define VIM_DISCARDALL 6
1851 1841
1852 #ifdef NBDEBUG /* Netbeans debugging. */ 1842 #ifdef NBDEBUG /* Netbeans debugging. */
1853 # include "nbdebug.h" 1843 # include "nbdebug.h"
1854 #else 1844 #else
1855 # define nbdebug(a) 1845 # define nbdebug(a)
1856 # define nbprint(a)
1857 #endif 1846 #endif
1858 1847
1859 #ifdef IN_PERL_FILE 1848 #ifdef IN_PERL_FILE
1860 /* 1849 /*
1861 * Avoid clashes between Perl and Vim namespace. 1850 * Avoid clashes between Perl and Vim namespace.