---------------------------------------- > What happens when you do > > #define A B > #define A C > ? It is a warning and A is now C [1]. But we need no warnings hence we > undefine it [2] a few lines before. And even more lines before there is an > answer to the question “why when dynamic python only” [3]. > > The reason of having [1] is to avoid #if branching when using newer python: > we need to import all symbols we use and without #undef you have to write > more lines to import other symbols on newer python. > > [1]: > https://bitbucket.org/ZyX_I/vim/src/36b3878656262abb03c3cd98b116208569be58c4/src/if_python.c#cl-143 > [2]: > https://bitbucket.org/ZyX_I/vim/src/36b3878656262abb03c3cd98b116208569be58c4/src/if_python.c#cl-133 > [3]: > https://bitbucket.org/ZyX_I/vim/src/36b3878656262abb03c3cd98b116208569be58c4/src/if_python.c#cl-106 I'm not following your train of thought here and none of your links is working. Don't see where we undefine PY_SSIZE_T_CLEAN in the source. Sean -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
- RE: [PATCH] Use proper return type when handling python ou... Sean Estabrooks
- Re: [PATCH] Use proper return type when handling pyth... Maxim Philippov
- Re: [PATCH] Use proper return type when handling ... Maxim Philippov
- RE: [PATCH] Use proper return type when handling ... Sean Estabrooks
- Re: [PATCH] Use proper return type when handl... Maxim Philippov
- RE: [PATCH] Use proper return type when h... Sean Estabrooks
- Re: [PATCH] Use proper return type when h... Maxim Philippov
- RE: [PATCH] Use proper return type when h... Sean Estabrooks
- Re: [PATCH] Use proper return type when h... Maxim Philippov
- Re: [PATCH] Use proper return type when h... ZyX
- RE: [PATCH] Use proper return type when h... Sean Estabrooks
- Re: [PATCH] Use proper return type when h... ZyX
- Re: [PATCH] Use proper return type when h... ZyX
- Re: [PATCH] Use proper return type when h... Maxim Philippov
- Re: [PATCH] Use proper return type when h... ZyX
- RE: [PATCH] Use proper return type when h... Sean Estabrooks
- Re: [PATCH] Use proper return type when h... Maxim Philippov
- Re: [PATCH] Use proper return type when h... Maxim Philippov
- Re: [PATCH] Use proper return type when h... Bram Moolenaar
- Re: [PATCH] Use proper return type when h... Maxim Philippov
