Mercurial > vim
comparison src/if_python.c @ 12477:68d7bc045dbe v8.0.1118
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
commit https://github.com/vim/vim/commit/4033c55eca575777718c0701e26635a0cc47d907
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 16 20:54:51 2017 +0200
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Sep 2017 21:00:06 +0200 |
parents | 3b53bb2a0e39 |
children | 351cf7c67bbe |
comparison
equal
deleted
inserted
replaced
12476:2516383741e6 | 12477:68d7bc045dbe |
---|---|
1436 bp->buf = INVALID_BUFFER_VALUE; | 1436 bp->buf = INVALID_BUFFER_VALUE; |
1437 BUF_PYTHON_REF(buf) = NULL; | 1437 BUF_PYTHON_REF(buf) = NULL; |
1438 } | 1438 } |
1439 } | 1439 } |
1440 | 1440 |
1441 #if defined(FEAT_WINDOWS) || defined(PROTO) | |
1442 void | 1441 void |
1443 python_window_free(win_T *win) | 1442 python_window_free(win_T *win) |
1444 { | 1443 { |
1445 if (WIN_PYTHON_REF(win) != NULL) | 1444 if (WIN_PYTHON_REF(win) != NULL) |
1446 { | 1445 { |
1458 TabPageObject *tp = TAB_PYTHON_REF(tab); | 1457 TabPageObject *tp = TAB_PYTHON_REF(tab); |
1459 tp->tab = INVALID_TABPAGE_VALUE; | 1458 tp->tab = INVALID_TABPAGE_VALUE; |
1460 TAB_PYTHON_REF(tab) = NULL; | 1459 TAB_PYTHON_REF(tab) = NULL; |
1461 } | 1460 } |
1462 } | 1461 } |
1463 #endif | |
1464 | 1462 |
1465 static int | 1463 static int |
1466 PythonMod_Init(void) | 1464 PythonMod_Init(void) |
1467 { | 1465 { |
1468 /* The special value is removed from sys.path in Python_Init(). */ | 1466 /* The special value is removed from sys.path in Python_Init(). */ |