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
d0c87ee6
Kaydet (Commit)
d0c87ee6
authored
May 15, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Oops, another forgotten renaming: varobject -> PyVarObject.
üst
fe28fa05
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
9 deletions
+11
-9
object.h
Include/object.h
+1
-1
objimpl.h
Include/objimpl.h
+3
-3
rename2.h
Include/rename2.h
+1
-0
RENAME
Misc/RENAME
+1
-0
object.c
Objects/object.c
+5
-5
No files found.
Include/object.h
Dosyayı görüntüle @
d0c87ee6
...
@@ -117,7 +117,7 @@ typedef struct _object {
...
@@ -117,7 +117,7 @@ typedef struct _object {
typedef
struct
{
typedef
struct
{
PyObject_VAR_HEAD
PyObject_VAR_HEAD
}
varo
bject
;
}
PyVarO
bject
;
/*
/*
...
...
Include/objimpl.h
Dosyayı görüntüle @
d0c87ee6
...
@@ -56,7 +56,7 @@ n * tp_itemsize. This fills in the ob_size field as well.
...
@@ -56,7 +56,7 @@ n * tp_itemsize. This fills in the ob_size field as well.
#ifndef MS_COREDLL
#ifndef MS_COREDLL
extern
PyObject
*
_PyObject_New
Py_PROTO
((
PyTypeObject
*
));
extern
PyObject
*
_PyObject_New
Py_PROTO
((
PyTypeObject
*
));
extern
varo
bject
*
_PyObject_NewVar
Py_PROTO
((
PyTypeObject
*
,
int
));
extern
PyVarO
bject
*
_PyObject_NewVar
Py_PROTO
((
PyTypeObject
*
,
int
));
#define PyObject_NEW(type, typeobj) ((type *) _PyObject_New(typeobj))
#define PyObject_NEW(type, typeobj) ((type *) _PyObject_New(typeobj))
#define PyObject_NEW_VAR(type, typeobj, n) ((type *) _PyObject_NewVar(typeobj, n))
#define PyObject_NEW_VAR(type, typeobj, n) ((type *) _PyObject_NewVar(typeobj, n))
...
@@ -67,10 +67,10 @@ extern varobject *_PyObject_NewVar Py_PROTO((PyTypeObject *, int));
...
@@ -67,10 +67,10 @@ extern varobject *_PyObject_NewVar Py_PROTO((PyTypeObject *, int));
no guarantee they will use the same heap
no guarantee they will use the same heap
*/
*/
extern
PyObject
*
_PyObject_New
Py_PROTO
((
PyTypeObject
*
,
PyObject
*
));
extern
PyObject
*
_PyObject_New
Py_PROTO
((
PyTypeObject
*
,
PyObject
*
));
extern
varobject
*
_PyObject_NewVar
Py_PROTO
((
PyTypeObject
*
,
int
,
varo
bject
*
));
extern
PyVarObject
*
_PyObject_NewVar
Py_PROTO
((
PyTypeObject
*
,
int
,
PyVarO
bject
*
));
#define PyObject_NEW(type, typeobj) ((type *) _PyObject_New(typeobj,(PyObject *)malloc((typeobj)->tp_basicsize)))
#define PyObject_NEW(type, typeobj) ((type *) _PyObject_New(typeobj,(PyObject *)malloc((typeobj)->tp_basicsize)))
#define PyObject_NEW_VAR(type, typeobj, n) ((type *) _PyObject_NewVar(typeobj, n, (
varo
bject *)malloc((typeobj)->tp_basicsize + n * (typeobj)->tp_itemsize)))
#define PyObject_NEW_VAR(type, typeobj, n) ((type *) _PyObject_NewVar(typeobj, n, (
PyVarO
bject *)malloc((typeobj)->tp_basicsize + n * (typeobj)->tp_itemsize)))
#endif
/* MS_COREDLL */
#endif
/* MS_COREDLL */
...
...
Include/rename2.h
Dosyayı görüntüle @
d0c87ee6
...
@@ -115,6 +115,7 @@ PERFORMANCE OF THIS SOFTWARE.
...
@@ -115,6 +115,7 @@ PERFORMANCE OF THIS SOFTWARE.
#define longobject PyLongObject
#define longobject PyLongObject
#define noobject PyNothingObject
#define noobject PyNothingObject
#define object PyObject
#define object PyObject
#define varobject PyVarObject
#define stringobject PyStringObject
#define stringobject PyStringObject
#define typeobject PyTypeObject
#define typeobject PyTypeObject
#define listobject PyListObject
#define listobject PyListObject
...
...
Misc/RENAME
Dosyayı görüntüle @
d0c87ee6
...
@@ -79,6 +79,7 @@ intobject PyIntObject
...
@@ -79,6 +79,7 @@ intobject PyIntObject
longobject PyLongObject
longobject PyLongObject
noobject PyNothingObject
noobject PyNothingObject
object PyObject
object PyObject
varobject PyVarObject
stringobject PyStringObject
stringobject PyStringObject
typeobject PyTypeObject
typeobject PyTypeObject
listobject PyListObject
listobject PyListObject
...
...
Objects/object.c
Dosyayı görüntüle @
d0c87ee6
...
@@ -129,24 +129,24 @@ _PyObject_New(tp,op)
...
@@ -129,24 +129,24 @@ _PyObject_New(tp,op)
}
}
#ifndef MS_COREDLL
#ifndef MS_COREDLL
varo
bject
*
PyVarO
bject
*
_PyObject_NewVar
(
tp
,
size
)
_PyObject_NewVar
(
tp
,
size
)
PyTypeObject
*
tp
;
PyTypeObject
*
tp
;
int
size
;
int
size
;
#else
#else
varo
bject
*
PyVarO
bject
*
_PyObject_NewVar
(
tp
,
size
,
op
)
_PyObject_NewVar
(
tp
,
size
,
op
)
PyTypeObject
*
tp
;
PyTypeObject
*
tp
;
int
size
;
int
size
;
varo
bject
*
op
;
PyVarO
bject
*
op
;
#endif
#endif
{
{
#ifndef MS_COREDLL
#ifndef MS_COREDLL
varobject
*
op
=
(
varo
bject
*
)
PyVarObject
*
op
=
(
PyVarO
bject
*
)
malloc
(
tp
->
tp_basicsize
+
size
*
tp
->
tp_itemsize
);
malloc
(
tp
->
tp_basicsize
+
size
*
tp
->
tp_itemsize
);
#endif
#endif
if
(
op
==
NULL
)
if
(
op
==
NULL
)
return
(
varo
bject
*
)
PyErr_NoMemory
();
return
(
PyVarO
bject
*
)
PyErr_NoMemory
();
op
->
ob_type
=
tp
;
op
->
ob_type
=
tp
;
op
->
ob_size
=
size
;
op
->
ob_size
=
size
;
_Py_NewReference
(
op
);
_Py_NewReference
(
op
);
...
...
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