Mercurial > vim
comparison src/if_python3.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 |
---|---|
1569 bp->buf = INVALID_BUFFER_VALUE; | 1569 bp->buf = INVALID_BUFFER_VALUE; |
1570 BUF_PYTHON_REF(buf) = NULL; | 1570 BUF_PYTHON_REF(buf) = NULL; |
1571 } | 1571 } |
1572 } | 1572 } |
1573 | 1573 |
1574 #if defined(FEAT_WINDOWS) || defined(PROTO) | |
1575 void | 1574 void |
1576 python3_window_free(win_T *win) | 1575 python3_window_free(win_T *win) |
1577 { | 1576 { |
1578 if (WIN_PYTHON_REF(win) != NULL) | 1577 if (WIN_PYTHON_REF(win) != NULL) |
1579 { | 1578 { |
1591 TabPageObject *tp = TAB_PYTHON_REF(tab); | 1590 TabPageObject *tp = TAB_PYTHON_REF(tab); |
1592 tp->tab = INVALID_TABPAGE_VALUE; | 1591 tp->tab = INVALID_TABPAGE_VALUE; |
1593 TAB_PYTHON_REF(tab) = NULL; | 1592 TAB_PYTHON_REF(tab) = NULL; |
1594 } | 1593 } |
1595 } | 1594 } |
1596 #endif | |
1597 | 1595 |
1598 static PyObject * | 1596 static PyObject * |
1599 Py3Init_vim(void) | 1597 Py3Init_vim(void) |
1600 { | 1598 { |
1601 /* The special value is removed from sys.path in Python3_Init(). */ | 1599 /* The special value is removed from sys.path in Python3_Init(). */ |