Mercurial > vim
comparison src/if_python.c @ 26771:fc859aea8cec v8.2.3914
patch 8.2.3914: various spelling mistakes in comments
Commit: https://github.com/vim/vim/commit/af4a61a85d6e8cacc35324f266934bc463a21673
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Mon Dec 27 17:21:41 2021 +0000
patch 8.2.3914: various spelling mistakes in comments
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pell?, closes https://github.com/vim/vim/issues/9416)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Dec 2021 18:30:05 +0100 |
parents | c4298ed56ffa |
children | 06a137af96f8 |
comparison
equal
deleted
inserted
replaced
26770:15ff3f2e0d58 | 26771:fc859aea8cec |
---|---|
672 PYTHON_PROC *ucs_as_encoded_string = | 672 PYTHON_PROC *ucs_as_encoded_string = |
673 (PYTHON_PROC*)&py_PyUnicode_AsEncodedString; | 673 (PYTHON_PROC*)&py_PyUnicode_AsEncodedString; |
674 | 674 |
675 # if !(defined(PY_NO_RTLD_GLOBAL) && defined(PY3_NO_RTLD_GLOBAL)) && defined(UNIX) && defined(FEAT_PYTHON3) | 675 # if !(defined(PY_NO_RTLD_GLOBAL) && defined(PY3_NO_RTLD_GLOBAL)) && defined(UNIX) && defined(FEAT_PYTHON3) |
676 // Can't have Python and Python3 loaded at the same time. | 676 // Can't have Python and Python3 loaded at the same time. |
677 // It cause a crash, because RTLD_GLOBAL is needed for | 677 // It causes a crash, because RTLD_GLOBAL is needed for |
678 // standard C extension libraries of one or both python versions. | 678 // standard C extension libraries of one or both python versions. |
679 if (python3_loaded()) | 679 if (python3_loaded()) |
680 { | 680 { |
681 if (verbose) | 681 if (verbose) |
682 emsg(_("E836: This Vim cannot execute :python after using :py3")); | 682 emsg(_("E836: This Vim cannot execute :python after using :py3")); |
1459 { | 1459 { |
1460 PyObject *result; | 1460 PyObject *result; |
1461 PyInt len = strlen(str); | 1461 PyInt len = strlen(str); |
1462 char *p; | 1462 char *p; |
1463 | 1463 |
1464 // Allocate an Python string object, with uninitialised contents. We | 1464 // Allocate a Python string object, with uninitialised contents. We |
1465 // must do it this way, so that we can modify the string in place | 1465 // must do it this way, so that we can modify the string in place |
1466 // later. See the Python source, Objects/stringobject.c for details. | 1466 // later. See the Python source, Objects/stringobject.c for details. |
1467 result = PyString_FromStringAndSize(NULL, len); | 1467 result = PyString_FromStringAndSize(NULL, len); |
1468 if (result == NULL) | 1468 if (result == NULL) |
1469 return NULL; | 1469 return NULL; |