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
2318699f
Kaydet (Commit)
2318699f
authored
Mar 06, 2012
tarafından
Stefan Krah
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Whitespace.
üst
4e14174e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
mmapmodule.c
Modules/mmapmodule.c
+14
-14
No files found.
Modules/mmapmodule.c
Dosyayı görüntüle @
2318699f
...
@@ -959,13 +959,13 @@ mmap_ass_subscript(mmap_object *self, PyObject *item, PyObject *value)
...
@@ -959,13 +959,13 @@ mmap_ass_subscript(mmap_object *self, PyObject *item, PyObject *value)
}
}
static
PySequenceMethods
mmap_as_sequence
=
{
static
PySequenceMethods
mmap_as_sequence
=
{
(
lenfunc
)
mmap_length
,
/*sq_length*/
(
lenfunc
)
mmap_length
,
/*sq_length*/
(
binaryfunc
)
mmap_concat
,
/*sq_concat*/
(
binaryfunc
)
mmap_concat
,
/*sq_concat*/
(
ssizeargfunc
)
mmap_repeat
,
/*sq_repeat*/
(
ssizeargfunc
)
mmap_repeat
,
/*sq_repeat*/
(
ssizeargfunc
)
mmap_item
,
/*sq_item*/
(
ssizeargfunc
)
mmap_item
,
/*sq_item*/
0
,
/*sq_slice*/
0
,
/*sq_slice*/
(
ssizeobjargproc
)
mmap_ass_item
,
/*sq_ass_item*/
(
ssizeobjargproc
)
mmap_ass_item
,
/*sq_ass_item*/
0
,
/*sq_ass_slice*/
0
,
/*sq_ass_slice*/
};
};
static
PyMappingMethods
mmap_as_mapping
=
{
static
PyMappingMethods
mmap_as_mapping
=
{
...
@@ -1027,7 +1027,7 @@ static PyTypeObject mmap_object_type = {
...
@@ -1027,7 +1027,7 @@ static PyTypeObject mmap_object_type = {
PyObject_GenericGetAttr
,
/*tp_getattro*/
PyObject_GenericGetAttr
,
/*tp_getattro*/
0
,
/*tp_setattro*/
0
,
/*tp_setattro*/
&
mmap_as_buffer
,
/*tp_as_buffer*/
&
mmap_as_buffer
,
/*tp_as_buffer*/
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
/*tp_flags*/
Py_TPFLAGS_DEFAULT
|
Py_TPFLAGS_BASETYPE
,
/*tp_flags*/
mmap_doc
,
/*tp_doc*/
mmap_doc
,
/*tp_doc*/
0
,
/* tp_traverse */
0
,
/* tp_traverse */
0
,
/* tp_clear */
0
,
/* tp_clear */
...
@@ -1043,10 +1043,10 @@ static PyTypeObject mmap_object_type = {
...
@@ -1043,10 +1043,10 @@ static PyTypeObject mmap_object_type = {
0
,
/* tp_descr_get */
0
,
/* tp_descr_get */
0
,
/* tp_descr_set */
0
,
/* tp_descr_set */
0
,
/* tp_dictoffset */
0
,
/* tp_dictoffset */
0
,
/* tp_init */
0
,
/* tp_init */
PyType_GenericAlloc
,
/* tp_alloc */
PyType_GenericAlloc
,
/* tp_alloc */
new_mmap_object
,
/* tp_new */
new_mmap_object
,
/* tp_new */
PyObject_Del
,
/* tp_free */
PyObject_Del
,
/* tp_free */
};
};
...
@@ -1097,8 +1097,8 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
...
@@ -1097,8 +1097,8 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
int
devzero
=
-
1
;
int
devzero
=
-
1
;
int
access
=
(
int
)
ACCESS_DEFAULT
;
int
access
=
(
int
)
ACCESS_DEFAULT
;
static
char
*
keywords
[]
=
{
"fileno"
,
"length"
,
static
char
*
keywords
[]
=
{
"fileno"
,
"length"
,
"flags"
,
"prot"
,
"flags"
,
"prot"
,
"access"
,
"offset"
,
NULL
};
"access"
,
"offset"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwdict
,
"iO|iii"
_Py_PARSE_OFF_T
,
keywords
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwdict
,
"iO|iii"
_Py_PARSE_OFF_T
,
keywords
,
&
fd
,
&
map_size_obj
,
&
flags
,
&
prot
,
&
fd
,
&
map_size_obj
,
&
flags
,
&
prot
,
...
@@ -1260,8 +1260,8 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
...
@@ -1260,8 +1260,8 @@ new_mmap_object(PyTypeObject *type, PyObject *args, PyObject *kwdict)
int
access
=
(
access_mode
)
ACCESS_DEFAULT
;
int
access
=
(
access_mode
)
ACCESS_DEFAULT
;
DWORD
flProtect
,
dwDesiredAccess
;
DWORD
flProtect
,
dwDesiredAccess
;
static
char
*
keywords
[]
=
{
"fileno"
,
"length"
,
static
char
*
keywords
[]
=
{
"fileno"
,
"length"
,
"tagname"
,
"tagname"
,
"access"
,
"offset"
,
NULL
};
"access"
,
"offset"
,
NULL
};
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwdict
,
"iO|ziL"
,
keywords
,
if
(
!
PyArg_ParseTupleAndKeywords
(
args
,
kwdict
,
"iO|ziL"
,
keywords
,
&
fileno
,
&
map_size_obj
,
&
fileno
,
&
map_size_obj
,
...
...
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