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
71e25a0e
Kaydet (Commit)
71e25a0e
authored
Eki 01, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Eliminate constness warnings with Tcl 8.4.
üst
0ac885e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
_tkinter.c
Modules/_tkinter.c
+13
-4
No files found.
Modules/_tkinter.c
Dosyayı görüntüle @
71e25a0e
...
@@ -41,6 +41,13 @@ Copyright (C) 1994 Steen Lumholt.
...
@@ -41,6 +41,13 @@ Copyright (C) 1994 Steen Lumholt.
#define MAC_TCL
#define MAC_TCL
#endif
#endif
/* Starting with Tcl 8.4, many APIs offer const-correctness. Unfortunately,
making _tkinter correct for this API means to break earlier
versions. USE_COMPAT_CONST allows to make _tkinter work with both 8.4 and
earlier versions. Once Tcl releases before 8.4 don't need to be supported
anymore, this should go. */
#define USE_COMPAT_CONST
#ifdef TK_FRAMEWORK
#ifdef TK_FRAMEWORK
#include <Tcl/tcl.h>
#include <Tcl/tcl.h>
#include <Tk/tk.h>
#include <Tk/tk.h>
...
@@ -607,8 +614,8 @@ Tkapp_Call(PyObject *self, PyObject *args)
...
@@ -607,8 +614,8 @@ Tkapp_Call(PyObject *self, PyObject *args)
else
{
else
{
/* We could request the object result here, but doing
/* We could request the object result here, but doing
so would confuse applications that expect a string. */
so would confuse applications that expect a string. */
char
*
s
=
Tcl_GetStringResult
(
interp
);
c
onst
c
har
*
s
=
Tcl_GetStringResult
(
interp
);
char
*
p
=
s
;
c
onst
c
har
*
p
=
s
;
/* If the result contains any bytes with the top bit set,
/* If the result contains any bytes with the top bit set,
it's UTF-8 and we should decode it to Unicode */
it's UTF-8 and we should decode it to Unicode */
...
@@ -783,7 +790,8 @@ Tkapp_AddErrorInfo(PyObject *self, PyObject *args)
...
@@ -783,7 +790,8 @@ Tkapp_AddErrorInfo(PyObject *self, PyObject *args)
static
PyObject
*
static
PyObject
*
SetVar
(
PyObject
*
self
,
PyObject
*
args
,
int
flags
)
SetVar
(
PyObject
*
self
,
PyObject
*
args
,
int
flags
)
{
{
char
*
name1
,
*
name2
,
*
ok
,
*
s
;
char
*
name1
,
*
name2
,
*
s
;
const
char
*
ok
;
PyObject
*
newValue
;
PyObject
*
newValue
;
PyObject
*
tmp
;
PyObject
*
tmp
;
...
@@ -843,7 +851,8 @@ Tkapp_GlobalSetVar(PyObject *self, PyObject *args)
...
@@ -843,7 +851,8 @@ Tkapp_GlobalSetVar(PyObject *self, PyObject *args)
static
PyObject
*
static
PyObject
*
GetVar
(
PyObject
*
self
,
PyObject
*
args
,
int
flags
)
GetVar
(
PyObject
*
self
,
PyObject
*
args
,
int
flags
)
{
{
char
*
name1
,
*
name2
=
NULL
,
*
s
;
char
*
name1
,
*
name2
=
NULL
;
const
char
*
s
;
PyObject
*
res
=
NULL
;
PyObject
*
res
=
NULL
;
if
(
!
PyArg_ParseTuple
(
args
,
"s|s:getvar"
,
&
name1
,
&
name2
))
if
(
!
PyArg_ParseTuple
(
args
,
"s|s:getvar"
,
&
name1
,
&
name2
))
...
...
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