comparison src/ex_getln.c @ 8647:59866aabe737 v7.4.1613

commit https://github.com/vim/vim/commit/064154c3fedd6a46ca2f61463d7e5567bd22d9f1 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 19 22:50:43 2016 +0100 patch 7.4.1613 Problem: Still can't build with small features. Solution: Adjust #ifdefs.
author Christian Brabandt <cb@256bit.org>
date Sat, 19 Mar 2016 23:00:05 +0100
parents f4819f0fc5ad
children f2e81ae5ab48
comparison
equal deleted inserted replaced
8646:2cebcdc44e20 8647:59866aabe737
5859 } 5859 }
5860 #endif 5860 #endif
5861 5861
5862 #endif /* FEAT_CMDHIST */ 5862 #endif /* FEAT_CMDHIST */
5863 5863
5864 #if defined(FEAT_EVAL) || defined(PROTO) 5864 #if defined(FEAT_EVAL) || defined(FEAT_CMDWIN) || defined(PROTO)
5865 /* 5865 /*
5866 * Get pointer to the command line info to use. cmdline_paste() may clear 5866 * Get pointer to the command line info to use. cmdline_paste() may clear
5867 * ccline and put the previous value in prev_ccline. 5867 * ccline and put the previous value in prev_ccline.
5868 */ 5868 */
5869 static struct cmdline_info * 5869 static struct cmdline_info *
5875 return &ccline; 5875 return &ccline;
5876 if (prev_ccline_used && prev_ccline.cmdbuff != NULL) 5876 if (prev_ccline_used && prev_ccline.cmdbuff != NULL)
5877 return &prev_ccline; 5877 return &prev_ccline;
5878 return NULL; 5878 return NULL;
5879 } 5879 }
5880 5880 #endif
5881
5882 #if defined(FEAT_EVAL) || defined(PROTO)
5881 /* 5883 /*
5882 * Get the current command line in allocated memory. 5884 * Get the current command line in allocated memory.
5883 * Only works when the command line is being edited. 5885 * Only works when the command line is being edited.
5884 * Returns NULL when something is wrong. 5886 * Returns NULL when something is wrong.
5885 */ 5887 */
5946 struct cmdline_info *p = get_ccline_ptr(); 5948 struct cmdline_info *p = get_ccline_ptr();
5947 5949
5948 if (p == NULL) 5950 if (p == NULL)
5949 return NUL; 5951 return NUL;
5950 if (p->cmdfirstc == NUL) 5952 if (p->cmdfirstc == NUL)
5951 return (p->input_fn) ? '@' : '-'; 5953 return
5954 # ifdef FEAT_EVAL
5955 (p->input_fn) ? '@' :
5956 # endif
5957 '-';
5952 return p->cmdfirstc; 5958 return p->cmdfirstc;
5953 } 5959 }
5954 #endif 5960 #endif
5955 5961
5956 #if defined(FEAT_QUICKFIX) || defined(FEAT_CMDHIST) || defined(PROTO) 5962 #if defined(FEAT_QUICKFIX) || defined(FEAT_CMDHIST) || defined(PROTO)