Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
f6d1f1fa
Kaydet (Commit)
f6d1f1fa
authored
May 19, 2015
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix some compilation warnings when using gcc (-Wmaybe-uninitialized).
üst
2545411e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
unicodeobject.c
Objects/unicodeobject.c
+17
-17
No files found.
Objects/unicodeobject.c
Dosyayı görüntüle @
f6d1f1fa
...
@@ -3566,6 +3566,7 @@ PyUnicode_DecodeLocaleAndSize(const char *str, Py_ssize_t len,
...
@@ -3566,6 +3566,7 @@ PyUnicode_DecodeLocaleAndSize(const char *str, Py_ssize_t len,
return unicode;
return unicode;
decode_error:
decode_error:
reason = NULL;
errmsg = strerror(errno);
errmsg = strerror(errno);
assert(errmsg != NULL);
assert(errmsg != NULL);
...
@@ -3576,10 +3577,9 @@ decode_error:
...
@@ -3576,10 +3577,9 @@ decode_error:
if (wstr != NULL) {
if (wstr != NULL) {
reason = PyUnicode_FromWideChar(wstr, errlen);
reason = PyUnicode_FromWideChar(wstr, errlen);
PyMem_RawFree(wstr);
PyMem_RawFree(wstr);
} else
}
errmsg = NULL;
}
}
if (
errmsg
== NULL)
if (
reason
== NULL)
reason = PyUnicode_FromString(
reason = PyUnicode_FromString(
"mbstowcs() encountered an invalid multibyte sequence");
"mbstowcs() encountered an invalid multibyte sequence");
if (reason == NULL)
if (reason == NULL)
...
@@ -9474,7 +9474,7 @@ handle_capital_sigma(int kind, void *data, Py_ssize_t length, Py_ssize_t i)
...
@@ -9474,7 +9474,7 @@ handle_capital_sigma(int kind, void *data, Py_ssize_t length, Py_ssize_t i)
{
{
Py_ssize_t j;
Py_ssize_t j;
int final_sigma;
int final_sigma;
Py_UCS4 c;
Py_UCS4 c
= 0
;
/* U+03A3 is in the Final_Sigma context when, it is found like this:
/* U+03A3 is in the Final_Sigma context when, it is found like this:
\p{cased}\p{case-ignorable}*U+03A3!(\p{case-ignorable}*\p{cased})
\p{cased}\p{case-ignorable}*U+03A3!(\p{case-ignorable}*\p{cased})
...
@@ -11144,7 +11144,7 @@ interpreted as in slice notation.");
...
@@ -11144,7 +11144,7 @@ interpreted as in slice notation.");
static PyObject *
static PyObject *
unicode_count(PyObject *self, PyObject *args)
unicode_count(PyObject *self, PyObject *args)
{
{
PyObject *substring;
PyObject *substring
= NULL
;
Py_ssize_t start = 0;
Py_ssize_t start = 0;
Py_ssize_t end = PY_SSIZE_T_MAX;
Py_ssize_t end = PY_SSIZE_T_MAX;
PyObject *result;
PyObject *result;
...
@@ -11332,9 +11332,9 @@ Return -1 on failure.");
...
@@ -11332,9 +11332,9 @@ Return -1 on failure.");
static PyObject *
static PyObject *
unicode_find(PyObject *self, PyObject *args)
unicode_find(PyObject *self, PyObject *args)
{
{
PyObject *substring;
PyObject *substring
= NULL
;
Py_ssize_t start;
Py_ssize_t start
= 0
;
Py_ssize_t end;
Py_ssize_t end
= 0
;
Py_ssize_t result;
Py_ssize_t result;
if (!stringlib_parse_args_finds_unicode("find", args, &substring,
if (!stringlib_parse_args_finds_unicode("find", args, &substring,
...
@@ -11420,9 +11420,9 @@ static PyObject *
...
@@ -11420,9 +11420,9 @@ static PyObject *
unicode_index(PyObject *self, PyObject *args)
unicode_index(PyObject *self, PyObject *args)
{
{
Py_ssize_t result;
Py_ssize_t result;
PyObject *substring;
PyObject *substring
= NULL
;
Py_ssize_t start;
Py_ssize_t start
= 0
;
Py_ssize_t end;
Py_ssize_t end
= 0
;
if (!stringlib_parse_args_finds_unicode("index", args, &substring,
if (!stringlib_parse_args_finds_unicode("index", args, &substring,
&start, &end))
&start, &end))
...
@@ -12497,9 +12497,9 @@ Return -1 on failure.");
...
@@ -12497,9 +12497,9 @@ Return -1 on failure.");
static PyObject *
static PyObject *
unicode_rfind(PyObject *self, PyObject *args)
unicode_rfind(PyObject *self, PyObject *args)
{
{
PyObject *substring;
PyObject *substring
= NULL
;
Py_ssize_t start;
Py_ssize_t start
= 0
;
Py_ssize_t end;
Py_ssize_t end
= 0
;
Py_ssize_t result;
Py_ssize_t result;
if (!stringlib_parse_args_finds_unicode("rfind", args, &substring,
if (!stringlib_parse_args_finds_unicode("rfind", args, &substring,
...
@@ -12533,9 +12533,9 @@ Like S.rfind() but raise ValueError when the substring is not found.");
...
@@ -12533,9 +12533,9 @@ Like S.rfind() but raise ValueError when the substring is not found.");
static PyObject *
static PyObject *
unicode_rindex(PyObject *self, PyObject *args)
unicode_rindex(PyObject *self, PyObject *args)
{
{
PyObject *substring;
PyObject *substring
= NULL
;
Py_ssize_t start;
Py_ssize_t start
= 0
;
Py_ssize_t end;
Py_ssize_t end
= 0
;
Py_ssize_t result;
Py_ssize_t result;
if (!stringlib_parse_args_finds_unicode("rindex", args, &substring,
if (!stringlib_parse_args_finds_unicode("rindex", args, &substring,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment