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
777e4ff5
Kaydet (Commit)
777e4ff5
authored
May 03, 2009
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Eliminate some locale-dependent calls to isspace and tolower.
üst
85e269b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
complexobject.c
Objects/complexobject.c
+4
-4
floatobject.c
Objects/floatobject.c
+6
-6
pystrtod.c
Python/pystrtod.c
+1
-1
No files found.
Objects/complexobject.c
Dosyayı görüntüle @
777e4ff5
...
@@ -950,13 +950,13 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
...
@@ -950,13 +950,13 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
/* position on first nonblank */
/* position on first nonblank */
start
=
s
;
start
=
s
;
while
(
*
s
&&
isspace
(
Py_CHARMASK
(
*
s
)
))
while
(
Py_ISSPACE
(
*
s
))
s
++
;
s
++
;
if
(
*
s
==
'('
)
{
if
(
*
s
==
'('
)
{
/* Skip over possible bracket from repr(). */
/* Skip over possible bracket from repr(). */
got_bracket
=
1
;
got_bracket
=
1
;
s
++
;
s
++
;
while
(
*
s
&&
isspace
(
Py_CHARMASK
(
*
s
)
))
while
(
Py_ISSPACE
(
*
s
))
s
++
;
s
++
;
}
}
...
@@ -1038,7 +1038,7 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
...
@@ -1038,7 +1038,7 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
}
}
/* trailing whitespace and closing bracket */
/* trailing whitespace and closing bracket */
while
(
*
s
&&
isspace
(
Py_CHARMASK
(
*
s
)
))
while
(
Py_ISSPACE
(
*
s
))
s
++
;
s
++
;
if
(
got_bracket
)
{
if
(
got_bracket
)
{
/* if there was an opening parenthesis, then the corresponding
/* if there was an opening parenthesis, then the corresponding
...
@@ -1046,7 +1046,7 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
...
@@ -1046,7 +1046,7 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
if
(
*
s
!=
')'
)
if
(
*
s
!=
')'
)
goto
parse_error
;
goto
parse_error
;
s
++
;
s
++
;
while
(
*
s
&&
isspace
(
Py_CHARMASK
(
*
s
)
))
while
(
Py_ISSPACE
(
*
s
))
s
++
;
s
++
;
}
}
...
...
Objects/floatobject.c
Dosyayı görüntüle @
777e4ff5
...
@@ -214,7 +214,7 @@ PyFloat_FromString(PyObject *v, char **pend)
...
@@ -214,7 +214,7 @@ PyFloat_FromString(PyObject *v, char **pend)
}
}
last
=
s
+
len
;
last
=
s
+
len
;
while
(
*
s
&&
isspace
(
Py_CHARMASK
(
*
s
)
))
while
(
Py_ISSPACE
(
*
s
))
s
++
;
s
++
;
/* We don't care about overflow or underflow. If the platform
/* We don't care about overflow or underflow. If the platform
* supports them, infinities and signed zeroes (on underflow) are
* supports them, infinities and signed zeroes (on underflow) are
...
@@ -235,7 +235,7 @@ PyFloat_FromString(PyObject *v, char **pend)
...
@@ -235,7 +235,7 @@ PyFloat_FromString(PyObject *v, char **pend)
}
}
/* Since end != s, the platform made *some* kind of sense out
/* Since end != s, the platform made *some* kind of sense out
of the input. Trust it. */
of the input. Trust it. */
while
(
*
end
&&
isspace
(
Py_CHARMASK
(
*
end
)
))
while
(
Py_ISSPACE
(
*
end
))
end
++
;
end
++
;
if
(
end
!=
last
)
{
if
(
end
!=
last
)
{
if
(
*
end
==
'\0'
)
if
(
*
end
==
'\0'
)
...
@@ -1220,7 +1220,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
...
@@ -1220,7 +1220,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
********************/
********************/
/* leading whitespace and optional sign */
/* leading whitespace and optional sign */
while
(
isspace
(
*
s
))
while
(
Py_ISSPACE
(
*
s
))
s
++
;
s
++
;
if
(
*
s
==
'-'
)
{
if
(
*
s
==
'-'
)
{
s
++
;
s
++
;
...
@@ -1244,7 +1244,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
...
@@ -1244,7 +1244,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
s_store
=
s
;
s_store
=
s
;
if
(
*
s
==
'0'
)
{
if
(
*
s
==
'0'
)
{
s
++
;
s
++
;
if
(
tolower
(
*
s
)
==
(
int
)
'x
'
)
if
(
*
s
==
'x'
||
*
s
==
'X
'
)
s
++
;
s
++
;
else
else
s
=
s_store
;
s
=
s_store
;
...
@@ -1274,7 +1274,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
...
@@ -1274,7 +1274,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
goto
insane_length_error
;
goto
insane_length_error
;
/* [p <exponent>] */
/* [p <exponent>] */
if
(
tolower
(
*
s
)
==
(
int
)
'p
'
)
{
if
(
*
s
==
'p'
||
*
s
==
'P
'
)
{
s
++
;
s
++
;
exp_start
=
s
;
exp_start
=
s
;
if
(
*
s
==
'-'
||
*
s
==
'+'
)
if
(
*
s
==
'-'
||
*
s
==
'+'
)
...
@@ -1290,7 +1290,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
...
@@ -1290,7 +1290,7 @@ float_fromhex(PyObject *cls, PyObject *arg)
exp
=
0
;
exp
=
0
;
/* optional trailing whitespace leading to the end of the string */
/* optional trailing whitespace leading to the end of the string */
while
(
isspace
(
*
s
))
while
(
Py_ISSPACE
(
*
s
))
s
++
;
s
++
;
if
(
s
!=
s_end
)
if
(
s
!=
s_end
)
goto
parse_error
;
goto
parse_error
;
...
...
Python/pystrtod.c
Dosyayı görüntüle @
777e4ff5
...
@@ -718,7 +718,7 @@ _PyOS_double_to_string(char *buf, size_t buf_len, double val,
...
@@ -718,7 +718,7 @@ _PyOS_double_to_string(char *buf, size_t buf_len, double val,
/* Convert to upper case. */
/* Convert to upper case. */
char
*
p
;
char
*
p
;
for
(
p
=
buf
;
*
p
;
p
++
)
for
(
p
=
buf
;
*
p
;
p
++
)
*
p
=
toupper
(
*
p
);
*
p
=
Py_TOUPPER
(
*
p
);
}
}
if
(
ptype
)
if
(
ptype
)
...
...
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