comparison src/structs.h @ 28942:6cdf55afaae9 v8.2.4993

patch 8.2.4993: smart/C/lisp indenting is optional Commit: https://github.com/vim/vim/commit/8e145b82464a21ee4fdf7948f04e2a1d505f8bfa Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 21 20:17:31 2022 +0100 patch 8.2.4993: smart/C/lisp indenting is optional Problem: smart/C/lisp indenting is optional, which makes the code more complex, while it only reduces the executable size a bit. Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 May 2022 21:30:04 +0200
parents d0241e74bfdb
children abdea69d21b6
comparison
equal deleted inserted replaced
28941:f17de8647585 28942:6cdf55afaae9
2877 #define BUF_HAS_QF_ENTRY 1 2877 #define BUF_HAS_QF_ENTRY 1
2878 #define BUF_HAS_LL_ENTRY 2 2878 #define BUF_HAS_LL_ENTRY 2
2879 int b_has_qf_entry; 2879 int b_has_qf_entry;
2880 #endif 2880 #endif
2881 int b_p_bl; // 'buflisted' 2881 int b_p_bl; // 'buflisted'
2882 #ifdef FEAT_CINDENT
2883 int b_p_cin; // 'cindent' 2882 int b_p_cin; // 'cindent'
2884 char_u *b_p_cino; // 'cinoptions' 2883 char_u *b_p_cino; // 'cinoptions'
2885 char_u *b_p_cink; // 'cinkeys' 2884 char_u *b_p_cink; // 'cinkeys'
2886 char_u *b_p_cinsd; // 'cinscopedecls' 2885 char_u *b_p_cinsd; // 'cinscopedecls'
2887 #endif
2888 #if defined(FEAT_CINDENT) || defined(FEAT_SMARTINDENT)
2889 char_u *b_p_cinw; // 'cinwords' 2886 char_u *b_p_cinw; // 'cinwords'
2890 #endif
2891 char_u *b_p_com; // 'comments' 2887 char_u *b_p_com; // 'comments'
2892 #ifdef FEAT_FOLDING 2888 #ifdef FEAT_FOLDING
2893 char_u *b_p_cms; // 'commentstring' 2889 char_u *b_p_cms; // 'commentstring'
2894 #endif 2890 #endif
2895 char_u *b_p_cpt; // 'complete' 2891 char_u *b_p_cpt; // 'complete'
2924 # ifdef FEAT_EVAL 2920 # ifdef FEAT_EVAL
2925 char_u *b_p_inex; // 'includeexpr' 2921 char_u *b_p_inex; // 'includeexpr'
2926 long_u b_p_inex_flags; // flags for 'includeexpr' 2922 long_u b_p_inex_flags; // flags for 'includeexpr'
2927 # endif 2923 # endif
2928 #endif 2924 #endif
2929 #if defined(FEAT_CINDENT) && defined(FEAT_EVAL) 2925 #if defined(FEAT_EVAL)
2930 char_u *b_p_inde; // 'indentexpr' 2926 char_u *b_p_inde; // 'indentexpr'
2931 long_u b_p_inde_flags; // flags for 'indentexpr' 2927 long_u b_p_inde_flags; // flags for 'indentexpr'
2932 char_u *b_p_indk; // 'indentkeys' 2928 char_u *b_p_indk; // 'indentkeys'
2933 #endif 2929 #endif
2934 char_u *b_p_fp; // 'formatprg' 2930 char_u *b_p_fp; // 'formatprg'
2938 #endif 2934 #endif
2939 #ifdef FEAT_CRYPT 2935 #ifdef FEAT_CRYPT
2940 char_u *b_p_key; // 'key' 2936 char_u *b_p_key; // 'key'
2941 #endif 2937 #endif
2942 char_u *b_p_kp; // 'keywordprg' 2938 char_u *b_p_kp; // 'keywordprg'
2943 #ifdef FEAT_LISP
2944 int b_p_lisp; // 'lisp' 2939 int b_p_lisp; // 'lisp'
2945 #endif
2946 char_u *b_p_menc; // 'makeencoding' 2940 char_u *b_p_menc; // 'makeencoding'
2947 char_u *b_p_mps; // 'matchpairs' 2941 char_u *b_p_mps; // 'matchpairs'
2948 int b_p_ml; // 'modeline' 2942 int b_p_ml; // 'modeline'
2949 int b_p_ml_nobin; // b_p_ml saved for binary mode 2943 int b_p_ml_nobin; // b_p_ml saved for binary mode
2950 int b_p_ma; // 'modifiable' 2944 int b_p_ma; // 'modifiable'
2954 char_u *b_p_qe; // 'quoteescape' 2948 char_u *b_p_qe; // 'quoteescape'
2955 #endif 2949 #endif
2956 int b_p_ro; // 'readonly' 2950 int b_p_ro; // 'readonly'
2957 long b_p_sw; // 'shiftwidth' 2951 long b_p_sw; // 'shiftwidth'
2958 int b_p_sn; // 'shortname' 2952 int b_p_sn; // 'shortname'
2959 #ifdef FEAT_SMARTINDENT
2960 int b_p_si; // 'smartindent' 2953 int b_p_si; // 'smartindent'
2961 #endif
2962 long b_p_sts; // 'softtabstop' 2954 long b_p_sts; // 'softtabstop'
2963 long b_p_sts_nopaste; // b_p_sts saved for paste mode 2955 long b_p_sts_nopaste; // b_p_sts saved for paste mode
2964 #ifdef FEAT_SEARCHPATH 2956 #ifdef FEAT_SEARCHPATH
2965 char_u *b_p_sua; // 'suffixesadd' 2957 char_u *b_p_sua; // 'suffixesadd'
2966 #endif 2958 #endif
3010 #endif 3002 #endif
3011 long b_p_ul; // 'undolevels' local value 3003 long b_p_ul; // 'undolevels' local value
3012 #ifdef FEAT_PERSISTENT_UNDO 3004 #ifdef FEAT_PERSISTENT_UNDO
3013 int b_p_udf; // 'undofile' 3005 int b_p_udf; // 'undofile'
3014 #endif 3006 #endif
3015 #ifdef FEAT_LISP
3016 char_u *b_p_lw; // 'lispwords' local value 3007 char_u *b_p_lw; // 'lispwords' local value
3017 #endif
3018 #ifdef FEAT_TERMINAL 3008 #ifdef FEAT_TERMINAL
3019 long b_p_twsl; // 'termwinscroll' 3009 long b_p_twsl; // 'termwinscroll'
3020 #endif 3010 #endif
3021 3011
3022 /* 3012 /*
3023 * end of buffer options 3013 * end of buffer options
3024 */ 3014 */
3025 3015
3026 #ifdef FEAT_CINDENT
3027 // values set from b_p_cino 3016 // values set from b_p_cino
3028 int b_ind_level; 3017 int b_ind_level;
3029 int b_ind_open_imag; 3018 int b_ind_open_imag;
3030 int b_ind_no_brace; 3019 int b_ind_no_brace;
3031 int b_ind_first_open; 3020 int b_ind_first_open;
3060 int b_ind_hash_comment; 3049 int b_ind_hash_comment;
3061 int b_ind_cpp_namespace; 3050 int b_ind_cpp_namespace;
3062 int b_ind_if_for_while; 3051 int b_ind_if_for_while;
3063 int b_ind_cpp_extern_c; 3052 int b_ind_cpp_extern_c;
3064 int b_ind_pragma; 3053 int b_ind_pragma;
3065 #endif
3066 3054
3067 linenr_T b_no_eol_lnum; // non-zero lnum when last line of next binary 3055 linenr_T b_no_eol_lnum; // non-zero lnum when last line of next binary
3068 // write should not have an end-of-line 3056 // write should not have an end-of-line
3069 3057
3070 int b_start_eol; // last line had eol when it was read 3058 int b_start_eol; // last line had eol when it was read