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
73c95f19
Kaydet (Commit)
73c95f19
authored
Haz 21, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #24436: Added const qualifiers for char* arguments of _PyTraceback_Add.
Patch by Michael Ensslin.
üst
753a1dfc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
traceback.h
Include/traceback.h
+1
-1
traceback.c
Python/traceback.c
+1
-1
No files found.
Include/traceback.h
Dosyayı görüntüle @
73c95f19
...
@@ -24,7 +24,7 @@ PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
...
@@ -24,7 +24,7 @@ PyAPI_FUNC(int) PyTraceBack_Here(struct _frame *);
PyAPI_FUNC
(
int
)
PyTraceBack_Print
(
PyObject
*
,
PyObject
*
);
PyAPI_FUNC
(
int
)
PyTraceBack_Print
(
PyObject
*
,
PyObject
*
);
#ifndef Py_LIMITED_API
#ifndef Py_LIMITED_API
PyAPI_FUNC
(
int
)
_Py_DisplaySourceLine
(
PyObject
*
,
PyObject
*
,
int
,
int
);
PyAPI_FUNC
(
int
)
_Py_DisplaySourceLine
(
PyObject
*
,
PyObject
*
,
int
,
int
);
PyAPI_FUNC
(
void
)
_PyTraceback_Add
(
c
har
*
,
char
*
,
int
);
PyAPI_FUNC
(
void
)
_PyTraceback_Add
(
c
onst
char
*
,
const
char
*
,
int
);
#endif
#endif
/* Reveal traceback type so we can typecheck traceback objects */
/* Reveal traceback type so we can typecheck traceback objects */
...
...
Python/traceback.c
Dosyayı görüntüle @
73c95f19
...
@@ -143,7 +143,7 @@ PyTraceBack_Here(PyFrameObject *frame)
...
@@ -143,7 +143,7 @@ PyTraceBack_Here(PyFrameObject *frame)
}
}
/* Insert a frame into the traceback for (funcname, filename, lineno). */
/* Insert a frame into the traceback for (funcname, filename, lineno). */
void
_PyTraceback_Add
(
c
har
*
funcname
,
char
*
filename
,
int
lineno
)
void
_PyTraceback_Add
(
c
onst
char
*
funcname
,
const
char
*
filename
,
int
lineno
)
{
{
PyObject
*
globals
=
NULL
;
PyObject
*
globals
=
NULL
;
PyCodeObject
*
code
=
NULL
;
PyCodeObject
*
code
=
NULL
;
...
...
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