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
774c8a39
Kaydet (Commit)
774c8a39
authored
Agu 09, 2012
tarafından
Andrew Svetlov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix docs for c-api memory functions
üst
8afcec41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
memory.rst
Doc/c-api/memory.rst
+3
-3
No files found.
Doc/c-api/memory.rst
Dosyayı görüntüle @
774c8a39
...
@@ -98,7 +98,7 @@ memory from the Python heap:
...
@@ -98,7 +98,7 @@ memory from the Python heap:
Allocates *n* bytes and returns a pointer of type :c:type:`void\*` to the
Allocates *n* bytes and returns a pointer of type :c:type:`void\*` to the
allocated memory, or *NULL* if the request fails. Requesting zero bytes returns
allocated memory, or *NULL* if the request fails. Requesting zero bytes returns
a distinct non-*NULL* pointer if possible, as if
:c:func:`PyMem_Malloc(1)
` had
a distinct non-*NULL* pointer if possible, as if
``PyMem_Malloc(1)`
` had
been called instead. The memory will not have been initialized in any way.
been called instead. The memory will not have been initialized in any way.
...
@@ -106,7 +106,7 @@ memory from the Python heap:
...
@@ -106,7 +106,7 @@ memory from the Python heap:
Resizes the memory block pointed to by *p* to *n* bytes. The contents will be
Resizes the memory block pointed to by *p* to *n* bytes. The contents will be
unchanged to the minimum of the old and the new sizes. If *p* is *NULL*, the
unchanged to the minimum of the old and the new sizes. If *p* is *NULL*, the
call is equivalent to
:c:func:`PyMem_Malloc(n)
`; else if *n* is equal to zero,
call is equivalent to
``PyMem_Malloc(n)`
`; else if *n* is equal to zero,
the memory block is resized but is not freed, and the returned pointer is
the memory block is resized but is not freed, and the returned pointer is
non-*NULL*. Unless *p* is *NULL*, it must have been returned by a previous call
non-*NULL*. Unless *p* is *NULL*, it must have been returned by a previous call
to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. If the request fails,
to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. If the request fails,
...
@@ -118,7 +118,7 @@ memory from the Python heap:
...
@@ -118,7 +118,7 @@ memory from the Python heap:
Frees the memory block pointed to by *p*, which must have been returned by a
Frees the memory block pointed to by *p*, which must have been returned by a
previous call to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. Otherwise, or
previous call to :c:func:`PyMem_Malloc` or :c:func:`PyMem_Realloc`. Otherwise, or
if
:c:func:`PyMem_Free(p)
` has been called before, undefined behavior occurs. If
if
``PyMem_Free(p)`
` has been called before, undefined behavior occurs. If
*p* is *NULL*, no operation is performed.
*p* is *NULL*, no operation is performed.
The following type-oriented macros are provided for convenience. Note that
The following type-oriented macros are provided for convenience. Note that
...
...
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