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
ebfcfb01
Kaydet (Commit)
ebfcfb01
authored
Mar 02, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bugs #1668032, #1668036, #1669304: clarify behavior of PyMem_Realloc and _Resize.
(backport from rev. 54088)
üst
d882e36f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
memory.tex
Doc/api/memory.tex
+5
-2
No files found.
Doc/api/memory.tex
Dosyayı görüntüle @
ebfcfb01
...
...
@@ -100,7 +100,9 @@ are available for allocating and releasing memory from the Python heap:
memory block is resized but is not freed, and the returned pointer
is non-
\NULL
. Unless
\var
{
p
}
is
\NULL
, it must have been
returned by a previous call to
\cfunction
{
PyMem
_
Malloc()
}
or
\cfunction
{
PyMem
_
Realloc()
}
.
\cfunction
{
PyMem
_
Realloc()
}
. If the request fails,
\cfunction
{
PyMem
_
Realloc()
}
returns
\NULL
{}
and
\var
{
p
}
remains a
valid pointer to the previous memory area.
\end{cfuncdesc}
\begin{cfuncdesc}
{
void
}{
PyMem
_
Free
}{
void *p
}
...
...
@@ -124,7 +126,8 @@ that \var{TYPE} refers to any C type.
\begin{cfuncdesc}
{
\var
{
TYPE
}
*
}{
PyMem
_
Resize
}{
void *p, TYPE, size
_
t n
}
Same as
\cfunction
{
PyMem
_
Realloc()
}
, but the memory block is resized
to
\code
{
(
\var
{
n
}
* sizeof(
\var
{
TYPE
}
))
}
bytes. Returns a pointer
cast to
\ctype
{
\var
{
TYPE
}
*
}
.
cast to
\ctype
{
\var
{
TYPE
}
*
}
. On return,
\var
{
p
}
will be a pointer to
the new memory area, or
\NULL
{}
in the event of failure.
\end{cfuncdesc}
\begin{cfuncdesc}
{
void
}{
PyMem
_
Del
}{
void *p
}
...
...
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