summaryrefslogtreecommitdiffstats
path: root/src/option.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-05-19 13:41:14 +0200
committerBram Moolenaar <Bram@vim.org>2011-05-19 13:41:14 +0200
commitb07269a548ee40bf509f8ce2c19f3a86d37916e5 (patch)
tree2ffea40e095946ceb9f0ab51477728153ee345bc /src/option.c
parent20f90cf99a156ba6fa93fc44047264685f210824 (diff)
updated for version 7.3.191v7.3.191
Problem: Still some RISC OS stuff to remove. Solution: Remove files and lines. (Hong Xu) Remove the 'osfiletype' option code.
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/src/option.c b/src/option.c
index a545588f41..718464951c 100644
--- a/src/option.c
+++ b/src/option.c
@@ -140,9 +140,6 @@
#define PV_MOD OPT_BUF(BV_MOD)
#define PV_MPS OPT_BUF(BV_MPS)
#define PV_NF OPT_BUF(BV_NF)
-#ifdef FEAT_OSFILETYPE
-# define PV_OFT OPT_BUF(BV_OFT)
-#endif
#ifdef FEAT_COMPL_FUNC
# define PV_OFU OPT_BUF(BV_OFU)
#endif
@@ -337,9 +334,6 @@ static int p_ma;
static int p_mod;
static char_u *p_mps;
static char_u *p_nf;
-#ifdef FEAT_OSFILETYPE
-static char_u *p_oft;
-#endif
static int p_pi;
#ifdef FEAT_TEXTOBJ
static char_u *p_qe;
@@ -1901,14 +1895,8 @@ static struct vimoption
(char_u *)NULL, PV_NONE,
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
{"osfiletype", "oft", P_STRING|P_ALLOCED|P_VI_DEF,
-#ifdef FEAT_OSFILETYPE
- (char_u *)&p_oft, PV_OFT,
- {(char_u *)DFLT_OFT, (char_u *)0L}
-#else
(char_u *)NULL, PV_NONE,
- {(char_u *)0L, (char_u *)0L}
-#endif
- SCRIPTID_INIT},
+ {(char_u *)0L, (char_u *)0L} SCRIPTID_INIT},
{"paragraphs", "para", P_STRING|P_VI_DEF,
(char_u *)&p_para, PV_NONE,
{(char_u *)"IPLPPPQPP TPHPLIPpLpItpplpipbp",
@@ -5282,9 +5270,6 @@ check_buf_options(buf)
#ifdef FEAT_AUTOCMD
check_string_option(&buf->b_p_ft);
#endif
-#ifdef FEAT_OSFILETYPE
- check_string_option(&buf->b_p_oft);
-#endif
#if defined(FEAT_SMARTINDENT) || defined(FEAT_CINDENT)
check_string_option(&buf->b_p_cinw);
#endif
@@ -9665,9 +9650,6 @@ get_varp(p)
case PV_MA: return (char_u *)&(curbuf->b_p_ma);
case PV_MOD: return (char_u *)&(curbuf->b_changed);
case PV_NF: return (char_u *)&(curbuf->b_p_nf);
-#ifdef FEAT_OSFILETYPE
- case PV_OFT: return (char_u *)&(curbuf->b_p_oft);
-#endif
case PV_PI: return (char_u *)&(curbuf->b_p_pi);
#ifdef FEAT_TEXTOBJ
case PV_QE: return (char_u *)&(curbuf->b_p_qe);
@@ -10018,9 +10000,6 @@ buf_copy_options(buf, flags)
/* Don't copy 'filetype', it must be detected */
buf->b_p_ft = empty_option;
#endif
-#ifdef FEAT_OSFILETYPE
- buf->b_p_oft = vim_strsave(p_oft);
-#endif
buf->b_p_pi = p_pi;
#if defined(FEAT_SMARTINDENT) || defined(FEAT_CINDENT)
buf->b_p_cinw = vim_strsave(p_cinw);