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
91a3b9e4
Kaydet (Commit)
91a3b9e4
authored
Nis 05, 2009
tarafından
Matthias Klose
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)'
to avoid compiler warnings.
üst
a5d58c83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
object.h
Include/object.h
+2
-2
NEWS
Misc/NEWS
+2
-1
readline.c
Modules/readline.c
+2
-2
No files found.
Include/object.h
Dosyayı görüntüle @
91a3b9e4
...
...
@@ -801,8 +801,8 @@ PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);
} while (0)
/* Macros to use in case the object pointer may be NULL: */
#define Py_XINCREF(op)
if ((op) == NULL) ; else Py_INCREF(op
)
#define Py_XDECREF(op)
if ((op) == NULL) ; else Py_DECREF(op
)
#define Py_XINCREF(op)
do { if ((op) == NULL) ; else Py_INCREF(op); } while (0
)
#define Py_XDECREF(op)
do { if ((op) == NULL) ; else Py_DECREF(op); } while (0
)
/*
These are provided as conveniences to Python runtime embedders, so that
...
...
Misc/NEWS
Dosyayı görüntüle @
91a3b9e4
...
...
@@ -207,7 +207,8 @@ Core and Builtins
- Issue #3845: In PyRun_SimpleFileExFlags avoid invalid memory access with
short file names.
- Py_DECREF: Add `do { ... } while (0)' to avoid compiler warnings.
- Issue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)'
to avoid compiler warnings.
Library
-------
...
...
Modules/readline.c
Dosyayı görüntüle @
91a3b9e4
...
...
@@ -694,13 +694,13 @@ on_completion_display_matches_hook(char **matches,
r
=
PyObject_CallFunction
(
completion_display_matches_hook
,
"sOi"
,
matches
[
0
],
m
,
max_length
);
Py_DECREF
(
m
)
,
m
=
NULL
;
Py_DECREF
(
m
)
;
m
=
NULL
;
if
(
r
==
NULL
||
(
r
!=
Py_None
&&
PyInt_AsLong
(
r
)
==
-
1
&&
PyErr_Occurred
()))
{
goto
error
;
}
Py_XDECREF
(
r
)
,
r
=
NULL
;
Py_XDECREF
(
r
)
;
r
=
NULL
;
if
(
0
)
{
error:
...
...
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