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
2aa2b3b4
Kaydet (Commit)
2aa2b3b4
authored
Eyl 28, 2011
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean up a few tabs that went in with PEP393.
üst
48a2f8fd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
26 deletions
+26
-26
Python.h
Include/Python.h
+1
-1
floatobject.h
Include/floatobject.h
+9
-9
longobject.h
Include/longobject.h
+8
-8
_sre.c
Modules/_sre.c
+0
-0
typeobject.c
Objects/typeobject.c
+8
-8
unicodeobject.c
Objects/unicodeobject.c
+0
-0
No files found.
Include/Python.h
Dosyayı görüntüle @
2aa2b3b4
...
...
@@ -141,7 +141,7 @@ PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
#endif
/* Argument must be a char or an int in [-128, 127] or [0, 255]. */
#define Py_CHARMASK(c)
((unsigned char)((c) & 0xff))
#define Py_CHARMASK(c)
((unsigned char)((c) & 0xff))
#include "pyfpe.h"
...
...
Include/floatobject.h
Dosyayı görüntüle @
2aa2b3b4
...
...
@@ -27,12 +27,12 @@ PyAPI_DATA(PyTypeObject) PyFloat_Type;
#define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN)
#endif
#define Py_RETURN_INF(sign) do
\
if (copysign(1., sign) == 1.) {
\
return PyFloat_FromDouble(Py_HUGE_VAL);
\
} else {
\
return PyFloat_FromDouble(-Py_HUGE_VAL);
\
} while(0)
#define Py_RETURN_INF(sign) do
\
if (copysign(1., sign) == 1.) {
\
return PyFloat_FromDouble(Py_HUGE_VAL);
\
} else {
\
return PyFloat_FromDouble(-Py_HUGE_VAL);
\
} while(0)
PyAPI_FUNC
(
double
)
PyFloat_GetMax
(
void
);
PyAPI_FUNC
(
double
)
PyFloat_GetMin
(
void
);
...
...
@@ -113,9 +113,9 @@ PyAPI_FUNC(int) PyFloat_ClearFreeList(void);
/* Format the object based on the format_spec, as defined in PEP 3101
(Advanced String Formatting). */
PyAPI_FUNC
(
PyObject
*
)
_PyFloat_FormatAdvanced
(
PyObject
*
obj
,
PyObject
*
format_spec
,
Py_ssize_t
start
,
Py_ssize_t
end
);
PyObject
*
format_spec
,
Py_ssize_t
start
,
Py_ssize_t
end
);
#endif
/* Py_LIMITED_API */
#ifdef __cplusplus
...
...
Include/longobject.h
Dosyayı görüntüle @
2aa2b3b4
...
...
@@ -12,7 +12,7 @@ typedef struct _longobject PyLongObject; /* Revealed in longintrepr.h */
PyAPI_DATA
(
PyTypeObject
)
PyLong_Type
;
#define PyLong_Check(op) \
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS)
PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_LONG_SUBCLASS)
#define PyLong_CheckExact(op) (Py_TYPE(op) == &PyLong_Type)
PyAPI_FUNC
(
PyObject
*
)
PyLong_FromLong
(
long
);
...
...
@@ -122,8 +122,8 @@ PyAPI_FUNC(PyObject *) _PyLong_DivmodNear(PyObject *, PyObject *);
enough memory to create the Python long.
*/
PyAPI_FUNC
(
PyObject
*
)
_PyLong_FromByteArray
(
const
unsigned
char
*
bytes
,
size_t
n
,
int
little_endian
,
int
is_signed
);
const
unsigned
char
*
bytes
,
size_t
n
,
int
little_endian
,
int
is_signed
);
/* _PyLong_AsByteArray: Convert the least-significant 8*n bits of long
v to a base-256 integer, stored in array bytes. Normally return 0,
...
...
@@ -145,8 +145,8 @@ PyAPI_FUNC(PyObject *) _PyLong_FromByteArray(
case, but bytes holds the least-signficant n bytes of the true value.
*/
PyAPI_FUNC
(
int
)
_PyLong_AsByteArray
(
PyLongObject
*
v
,
unsigned
char
*
bytes
,
size_t
n
,
int
little_endian
,
int
is_signed
);
unsigned
char
*
bytes
,
size_t
n
,
int
little_endian
,
int
is_signed
);
/* _PyLong_Format: Convert the long to a string object with given base,
...
...
@@ -156,9 +156,9 @@ PyAPI_FUNC(PyObject *) _PyLong_Format(PyObject *aa, int base);
/* Format the object based on the format_spec, as defined in PEP 3101
(Advanced String Formatting). */
PyAPI_FUNC
(
PyObject
*
)
_PyLong_FormatAdvanced
(
PyObject
*
obj
,
PyObject
*
format_spec
,
Py_ssize_t
start
,
Py_ssize_t
end
);
PyObject
*
format_spec
,
Py_ssize_t
start
,
Py_ssize_t
end
);
#endif
/* Py_LIMITED_API */
/* These aren't really part of the long object, but they're handy. The
...
...
Modules/_sre.c
Dosyayı görüntüle @
2aa2b3b4
This diff is collapsed.
Click to expand it.
Objects/typeobject.c
Dosyayı görüntüle @
2aa2b3b4
...
...
@@ -2345,21 +2345,21 @@ PyObject* PyType_FromSpec(PyType_Spec *spec)
return
NULL
;
res
->
ht_name
=
PyUnicode_FromString
(
spec
->
name
);
if
(
!
res
->
ht_name
)
goto
fail
;
goto
fail
;
res
->
ht_type
.
tp_name
=
_PyUnicode_AsString
(
res
->
ht_name
);
if
(
!
res
->
ht_type
.
tp_name
)
goto
fail
;
goto
fail
;
res
->
ht_type
.
tp_basicsize
=
spec
->
basicsize
;
res
->
ht_type
.
tp_itemsize
=
spec
->
itemsize
;
res
->
ht_type
.
tp_flags
=
spec
->
flags
|
Py_TPFLAGS_HEAPTYPE
;
for
(
slot
=
spec
->
slots
;
slot
->
slot
;
slot
++
)
{
if
(
slot
->
slot
>=
sizeof
(
slotoffsets
)
/
sizeof
(
slotoffsets
[
0
]))
{
PyErr_SetString
(
PyExc_RuntimeError
,
"invalid slot offset"
);
goto
fail
;
}
*
(
void
**
)(
res_start
+
slotoffsets
[
slot
->
slot
])
=
slot
->
pfunc
;
if
(
slot
->
slot
>=
sizeof
(
slotoffsets
)
/
sizeof
(
slotoffsets
[
0
]))
{
PyErr_SetString
(
PyExc_RuntimeError
,
"invalid slot offset"
);
goto
fail
;
}
*
(
void
**
)(
res_start
+
slotoffsets
[
slot
->
slot
])
=
slot
->
pfunc
;
/* need to make a copy of the docstring slot, which usually
points to a static string literal */
...
...
@@ -2367,7 +2367,7 @@ PyObject* PyType_FromSpec(PyType_Spec *spec)
ssize_t
len
=
strlen
(
slot
->
pfunc
)
+
1
;
char
*
tp_doc
=
PyObject_MALLOC
(
len
);
if
(
tp_doc
==
NULL
)
goto
fail
;
goto
fail
;
memcpy
(
tp_doc
,
slot
->
pfunc
,
len
);
res
->
ht_type
.
tp_doc
=
tp_doc
;
}
...
...
Objects/unicodeobject.c
Dosyayı görüntüle @
2aa2b3b4
This diff is collapsed.
Click to expand it.
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