Skip to content

Commit d00667f

Browse files
committed
Revert simplifying ifdefs and fix python options
1 parent ccf5c05 commit d00667f

File tree

1 file changed

+42
-7
lines changed

1 file changed

+42
-7
lines changed

src/option.c

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -676,11 +676,13 @@ static struct vimoption options[] =
676676
{"bioskey", "biosk",P_BOOL|P_VI_DEF,
677677
(char_u *)NULL, PV_NONE,
678678
{(char_u *)TRUE, (char_u *)0L} SCRIPTID_INIT},
679-
#ifdef FEAT_GUI_MACVIM
680679
{"blurradius", "blur", P_NUM|P_VIM,
680+
#ifdef FEAT_GUI_MACVIM
681681
(char_u *)&p_blur, PV_NONE,
682-
{(char_u *)0L, (char_u *)0L} },
682+
#else
683+
(char_u *)NULL, PV_NONE,
683684
#endif
685+
{(char_u *)0L, (char_u *)0L} },
684686
{"bomb", NULL, P_BOOL|P_NO_MKRC|P_VI_DEF|P_RSTAT,
685687
#ifdef FEAT_MBYTE
686688
(char_u *)&p_bomb, PV_BOMB,
@@ -1376,15 +1378,23 @@ static struct vimoption options[] =
13761378
{(char_u *)FALSE, (char_u *)0L}
13771379
#endif
13781380
SCRIPTID_INIT},
1379-
#ifdef FEAT_FULLSCREEN
13801381
{"fullscreen", "fu", P_BOOL|P_NO_MKRC,
1382+
#ifdef FEAT_FULLSCREEN
13811383
(char_u *)&p_fullscreen, PV_NONE,
13821384
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
1385+
#else
1386+
(char_u *)NULL, PV_NONE,
1387+
{(char_u *)NULL, (char_u *)0L} SCRIPTID_INIT},
1388+
#endif
13831389
{"fuoptions", "fuopt", P_STRING|P_COMMA|P_NODUP|P_VI_DEF,
1390+
#ifdef FEAT_FULLSCREEN
13841391
(char_u *)&p_fuoptions, PV_NONE,
13851392
{(char_u *)"maxvert,maxhorz", (char_u *)0L}
1386-
SCRIPTID_INIT},
1393+
#else
1394+
(char_u *)NULL, PV_NONE,
1395+
{(char_u *)NULL, (char_u *)0L}
13871396
#endif
1397+
SCRIPTID_INIT},
13881398
{"gdefault", "gd", P_BOOL|P_VI_DEF|P_VIM,
13891399
(char_u *)&p_gd, PV_NONE,
13901400
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
@@ -1919,16 +1929,29 @@ static struct vimoption options[] =
19191929
{(char_u *)"", (char_u *)0L}
19201930
#endif
19211931
SCRIPTID_INIT},
1922-
#ifdef FEAT_GUI_MACVIM
19231932
{"macligatures", NULL, P_BOOL|P_VI_DEF|P_RCLR,
1933+
#ifdef FEAT_GUI_MACVIM
19241934
(char_u *)&p_macligatures, PV_NONE,
19251935
{(char_u *)FALSE, (char_u *)0L}},
1936+
#else
1937+
(char_u *)NULL, PV_NONE,
1938+
{(char_u *)NULL, (char_u *)0L}},
1939+
#endif
19261940
{"macmeta", "mmta", P_BOOL|P_VI_DEF,
1941+
#ifdef FEAT_GUI_MACVIM
19271942
(char_u *)&p_mmta, PV_MMTA,
19281943
{(char_u *)FALSE, (char_u *)0L}},
1944+
#else
1945+
(char_u *)NULL, PV_MMTA,
1946+
{(char_u *)NULL, (char_u *)0L}},
1947+
#endif
19291948
{"macthinstrokes", NULL, P_BOOL|P_VI_DEF|P_RCLR,
1949+
#ifdef FEAT_GUI_MACVIM
19301950
(char_u *)&p_macthinstrokes, PV_NONE,
19311951
{(char_u *)FALSE, (char_u *)0L}},
1952+
#else
1953+
(char_u *)NULL, PV_NONE,
1954+
{(char_u *)NULL, (char_u *)0L}},
19321955
#endif
19331956
{"magic", NULL, P_BOOL|P_VI_DEF,
19341957
(char_u *)&p_magic, PV_NONE,
@@ -2285,8 +2308,13 @@ static struct vimoption options[] =
22852308
#endif
22862309
SCRIPTID_INIT},
22872310
{"pythonthreehome", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2311+
#if defined(DYNAMIC_PYTHON3)
22882312
(char_u *)&p_py3home, PV_NONE,
22892313
{(char_u *)"", (char_u *)0L}
2314+
#else
2315+
(char_u *)NULL, PV_NONE,
2316+
{(char_u *)NULL, (char_u *)0L}
2317+
#endif
22902318
SCRIPTID_INIT},
22912319
{"pythondll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
22922320
#if defined(DYNAMIC_PYTHON)
@@ -2298,8 +2326,13 @@ static struct vimoption options[] =
22982326
#endif
22992327
SCRIPTID_INIT},
23002328
{"pythonhome", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2329+
#if defined(DYNAMIC_PYTHON)
23012330
(char_u *)&p_pyhome, PV_NONE,
23022331
{(char_u *)"", (char_u *)0L}
2332+
#else
2333+
(char_u *)NULL, PV_NONE,
2334+
{(char_u *)NULL, (char_u *)0L}
2335+
#endif
23032336
SCRIPTID_INIT},
23042337
{"pyxversion", "pyx", P_NUM|P_VI_DEF|P_SECURE,
23052338
#if defined(FEAT_PYTHON) || defined(FEAT_PYTHON3)
@@ -2899,11 +2932,13 @@ static struct vimoption options[] =
28992932
{(char_u *)0L, (char_u *)0L}
29002933
#endif
29012934
SCRIPTID_INIT},
2902-
#ifdef FEAT_TRANSPARENCY
29032935
{"transparency", "transp", P_NUM|P_VIM|P_RCLR,
2936+
#ifdef FEAT_TRANSPARENCY
29042937
(char_u *)&p_transp, PV_NONE,
2905-
{(char_u *)0L, (char_u *)0L} },
2938+
#else
2939+
(char_u *)NULL, PV_NONE,
29062940
#endif
2941+
{(char_u *)0L, (char_u *)0L} },
29072942
{"ttimeout", NULL, P_BOOL|P_VI_DEF|P_VIM,
29082943
(char_u *)&p_ttimeout, PV_NONE,
29092944
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},

0 commit comments

Comments
 (0)