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
408027ea
Kaydet (Commit)
408027ea
authored
Ara 30, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rename DEBUG macro to Py_DEBUG
üst
a0dc1c4a
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
23 deletions
+23
-23
frameobject.h
Include/frameobject.h
+1
-1
node.h
Include/node.h
+1
-1
object.h
Include/object.h
+2
-2
acceler.c
Parser/acceler.c
+2
-2
grammar.c
Parser/grammar.c
+1
-1
parser.c
Parser/parser.c
+5
-5
pgen.c
Parser/pgen.c
+1
-1
tokenizer.c
Parser/tokenizer.c
+1
-1
ceval.c
Python/ceval.c
+3
-3
thread.c
Python/thread.c
+3
-3
thread_sgi.h
Python/thread_sgi.h
+3
-3
No files found.
Include/frameobject.h
Dosyayı görüntüle @
408027ea
...
@@ -80,7 +80,7 @@ PyFrameObject * PyFrame_New
...
@@ -80,7 +80,7 @@ PyFrameObject * PyFrame_New
/* Tuple access macros */
/* Tuple access macros */
#ifndef DEBUG
#ifndef
Py_
DEBUG
#define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i))
#define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i))
#define GETITEMNAME(v, i) \
#define GETITEMNAME(v, i) \
PyString_AS_STRING((PyStringObject *)GETITEM((v), (i)))
PyString_AS_STRING((PyStringObject *)GETITEM((v), (i)))
...
...
Include/node.h
Dosyayı görüntüle @
408027ea
...
@@ -56,7 +56,7 @@ extern void PyNode_Free Py_PROTO((node *n));
...
@@ -56,7 +56,7 @@ extern void PyNode_Free Py_PROTO((node *n));
#define STR(n) ((n)->n_str)
#define STR(n) ((n)->n_str)
/* Assert that the type of a node is what we expect */
/* Assert that the type of a node is what we expect */
#ifndef DEBUG
#ifndef
Py_
DEBUG
#define REQ(n, type) {
/*pass*/
; }
#define REQ(n, type) {
/*pass*/
; }
#else
#else
#define REQ(n, type) \
#define REQ(n, type) \
...
...
Include/object.h
Dosyayı görüntüle @
408027ea
...
@@ -84,7 +84,7 @@ whose size is determined when the object is allocated.
...
@@ -84,7 +84,7 @@ whose size is determined when the object is allocated.
123456789-123456789-123456789-123456789-123456789-123456789-123456789-12
123456789-123456789-123456789-123456789-123456789-123456789-123456789-12
*/
*/
#ifdef DEBUG
#ifdef
Py_
DEBUG
/* Turn on heavy reference debugging */
/* Turn on heavy reference debugging */
#define Py_TRACE_REFS
#define Py_TRACE_REFS
...
@@ -92,7 +92,7 @@ whose size is determined when the object is allocated.
...
@@ -92,7 +92,7 @@ whose size is determined when the object is allocated.
/* Turn on reference counting */
/* Turn on reference counting */
#define Py_REF_DEBUG
#define Py_REF_DEBUG
#endif
/* DEBUG */
#endif
/*
Py_
DEBUG */
#ifdef Py_TRACE_REFS
#ifdef Py_TRACE_REFS
#define PyObject_HEAD \
#define PyObject_HEAD \
...
...
Parser/acceler.c
Dosyayı görüntüle @
408027ea
...
@@ -56,14 +56,14 @@ addaccelerators(g)
...
@@ -56,14 +56,14 @@ addaccelerators(g)
{
{
dfa
*
d
;
dfa
*
d
;
int
i
;
int
i
;
#ifdef DEBUG
#ifdef
Py_
DEBUG
fprintf
(
stderr
,
"Adding parser accelerators ...
\n
"
);
fprintf
(
stderr
,
"Adding parser accelerators ...
\n
"
);
#endif
#endif
d
=
g
->
g_dfa
;
d
=
g
->
g_dfa
;
for
(
i
=
g
->
g_ndfas
;
--
i
>=
0
;
d
++
)
for
(
i
=
g
->
g_ndfas
;
--
i
>=
0
;
d
++
)
fixdfa
(
g
,
d
);
fixdfa
(
g
,
d
);
g
->
g_accel
=
1
;
g
->
g_accel
=
1
;
#ifdef DEBUG
#ifdef
Py_
DEBUG
fprintf
(
stderr
,
"Done.
\n
"
);
fprintf
(
stderr
,
"Done.
\n
"
);
#endif
#endif
}
}
...
...
Parser/grammar.c
Dosyayı görüntüle @
408027ea
...
@@ -171,7 +171,7 @@ translatelabels(g)
...
@@ -171,7 +171,7 @@ translatelabels(g)
{
{
int
i
;
int
i
;
#ifdef DEBUG
#ifdef
Py_
DEBUG
printf
(
"Translating labels ...
\n
"
);
printf
(
"Translating labels ...
\n
"
);
#endif
#endif
/* Don't translate EMPTY */
/* Don't translate EMPTY */
...
...
Parser/parser.c
Dosyayı görüntüle @
408027ea
...
@@ -44,7 +44,7 @@ PERFORMANCE OF THIS SOFTWARE.
...
@@ -44,7 +44,7 @@ PERFORMANCE OF THIS SOFTWARE.
#include "errcode.h"
#include "errcode.h"
#ifdef DEBUG
#ifdef
Py_
DEBUG
extern
int
debugging
;
extern
int
debugging
;
#define D(x) if (!debugging); else x
#define D(x) if (!debugging); else x
#else
#else
...
@@ -85,7 +85,7 @@ s_push(s, d, parent)
...
@@ -85,7 +85,7 @@ s_push(s, d, parent)
return
0
;
return
0
;
}
}
#ifdef DEBUG
#ifdef
Py_
DEBUG
static
void
s_pop
PROTO
((
stack
*
));
static
void
s_pop
PROTO
((
stack
*
));
...
@@ -98,7 +98,7 @@ s_pop(s)
...
@@ -98,7 +98,7 @@ s_pop(s)
s
->
s_top
++
;
s
->
s_top
++
;
}
}
#else
/* !DEBUG */
#else
/* !
Py_
DEBUG */
#define s_pop(s) (s)->s_top++
#define s_pop(s) (s)->s_top++
...
@@ -309,7 +309,7 @@ addtoken(ps, type, str, lineno)
...
@@ -309,7 +309,7 @@ addtoken(ps, type, str, lineno)
}
}
#ifdef DEBUG
#ifdef
Py_
DEBUG
/* DEBUG OUTPUT */
/* DEBUG OUTPUT */
...
@@ -379,7 +379,7 @@ printtree(ps)
...
@@ -379,7 +379,7 @@ printtree(ps)
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
#endif
/* DEBUG */
#endif
/*
Py_
DEBUG */
/*
/*
...
...
Parser/pgen.c
Dosyayı görüntüle @
408027ea
...
@@ -166,7 +166,7 @@ addnfa(gr, name)
...
@@ -166,7 +166,7 @@ addnfa(gr, name)
return
nf
;
return
nf
;
}
}
#ifdef DEBUG
#ifdef
Py_
DEBUG
static
char
REQNFMT
[]
=
"metacompile: less than %d children
\n
"
;
static
char
REQNFMT
[]
=
"metacompile: less than %d children
\n
"
;
...
...
Parser/tokenizer.c
Dosyayı görüntüle @
408027ea
...
@@ -736,7 +736,7 @@ tok_get(tok, p_start, p_end)
...
@@ -736,7 +736,7 @@ tok_get(tok, p_start, p_end)
}
}
#ifdef DEBUG
#ifdef
Py_
DEBUG
void
void
tok_dump
(
type
,
start
,
end
)
tok_dump
(
type
,
start
,
end
)
...
...
Python/ceval.c
Dosyayı görüntüle @
408027ea
...
@@ -51,7 +51,7 @@ PERFORMANCE OF THIS SOFTWARE.
...
@@ -51,7 +51,7 @@ PERFORMANCE OF THIS SOFTWARE.
/* Turn this on if your compiler chokes on the big switch: */
/* Turn this on if your compiler chokes on the big switch: */
/* #define CASE_TOO_BIG 1 */
/* #define CASE_TOO_BIG 1 */
#ifdef DEBUG
#ifdef
Py_
DEBUG
/* For debugging the interpreter: */
/* For debugging the interpreter: */
#define LLTRACE 1
/* Low-level trace feature */
#define LLTRACE 1
/* Low-level trace feature */
#define CHECKEXC 1
/* Double-check exception checking */
#define CHECKEXC 1
/* Double-check exception checking */
...
@@ -339,7 +339,7 @@ eval_code2(co, globals, locals,
...
@@ -339,7 +339,7 @@ eval_code2(co, globals, locals,
#ifdef LLTRACE
#ifdef LLTRACE
int
lltrace
;
int
lltrace
;
#endif
#endif
#if defined(DEBUG) || defined(LLTRACE)
#if defined(
Py_
DEBUG) || defined(LLTRACE)
/* Make it easier to find out where we are with a debugger */
/* Make it easier to find out where we are with a debugger */
char
*
filename
=
getstringvalue
(
co
->
co_filename
);
char
*
filename
=
getstringvalue
(
co
->
co_filename
);
#endif
#endif
...
@@ -602,7 +602,7 @@ eval_code2(co, globals, locals,
...
@@ -602,7 +602,7 @@ eval_code2(co, globals, locals,
/* Extract opcode and argument */
/* Extract opcode and argument */
#if defined(DEBUG) || defined(LLTRACE)
#if defined(
Py_
DEBUG) || defined(LLTRACE)
f
->
f_lasti
=
INSTR_OFFSET
();
f
->
f_lasti
=
INSTR_OFFSET
();
#endif
#endif
...
...
Python/thread.c
Dosyayı görüntüle @
408027ea
...
@@ -83,7 +83,7 @@ extern char *getenv();
...
@@ -83,7 +83,7 @@ extern char *getenv();
#define _P2(v1,t1,v2,t2) (v1,v2) t1; t2;
#define _P2(v1,t1,v2,t2) (v1,v2) t1; t2;
#endif
/* __STDC__ */
#endif
/* __STDC__ */
#ifdef DEBUG
#ifdef
Py_
DEBUG
static
int
thread_debug
=
0
;
static
int
thread_debug
=
0
;
#define dprintf(args) ((thread_debug & 1) && printf args)
#define dprintf(args) ((thread_debug & 1) && printf args)
#define d2printf(args) ((thread_debug & 8) && printf args)
#define d2printf(args) ((thread_debug & 8) && printf args)
...
@@ -98,7 +98,7 @@ static void _init_thread(); /* Forward */
...
@@ -98,7 +98,7 @@ static void _init_thread(); /* Forward */
void
init_thread
_P0
()
void
init_thread
_P0
()
{
{
#ifdef DEBUG
#ifdef
Py_
DEBUG
char
*
p
=
getenv
(
"THREADDEBUG"
);
char
*
p
=
getenv
(
"THREADDEBUG"
);
if
(
p
)
{
if
(
p
)
{
...
@@ -107,7 +107,7 @@ void init_thread _P0()
...
@@ -107,7 +107,7 @@ void init_thread _P0()
else
else
thread_debug
=
1
;
thread_debug
=
1
;
}
}
#endif
/* DEBUG */
#endif
/*
Py_
DEBUG */
if
(
initialized
)
if
(
initialized
)
return
;
return
;
initialized
=
1
;
initialized
=
1
;
...
...
Python/thread_sgi.h
Dosyayı görüntüle @
408027ea
...
@@ -77,7 +77,7 @@ static void exit_sig _P0()
...
@@ -77,7 +77,7 @@ static void exit_sig _P0()
}
}
if
(
do_exit
)
{
if
(
do_exit
)
{
d2printf
((
"exiting in exit_sig
\n
"
));
d2printf
((
"exiting in exit_sig
\n
"
));
#ifdef DEBUG
#ifdef
Py_
DEBUG
if
((
thread_debug
&
8
)
==
0
)
if
((
thread_debug
&
8
)
==
0
)
thread_debug
&=
~
1
;
/* don't produce debug messages */
thread_debug
&=
~
1
;
/* don't produce debug messages */
#endif
#endif
...
@@ -140,12 +140,12 @@ static void _init_thread _P0()
...
@@ -140,12 +140,12 @@ static void _init_thread _P0()
if
(
usconfig
(
CONF_ARENATYPE
,
US_SHAREDONLY
)
<
0
)
if
(
usconfig
(
CONF_ARENATYPE
,
US_SHAREDONLY
)
<
0
)
perror
(
"usconfig - CONF_ARENATYPE"
);
perror
(
"usconfig - CONF_ARENATYPE"
);
usconfig
(
CONF_LOCKTYPE
,
US_DEBUG
);
/* XXX */
usconfig
(
CONF_LOCKTYPE
,
US_DEBUG
);
/* XXX */
#ifdef DEBUG
#ifdef
Py_
DEBUG
if
(
thread_debug
&
4
)
if
(
thread_debug
&
4
)
usconfig
(
CONF_LOCKTYPE
,
US_DEBUGPLUS
);
usconfig
(
CONF_LOCKTYPE
,
US_DEBUGPLUS
);
else
if
(
thread_debug
&
2
)
else
if
(
thread_debug
&
2
)
usconfig
(
CONF_LOCKTYPE
,
US_DEBUG
);
usconfig
(
CONF_LOCKTYPE
,
US_DEBUG
);
#endif
/* DEBUG */
#endif
/*
Py_
DEBUG */
if
((
shared_arena
=
usinit
(
tmpnam
(
0
)))
==
0
)
if
((
shared_arena
=
usinit
(
tmpnam
(
0
)))
==
0
)
perror
(
"usinit"
);
perror
(
"usinit"
);
#ifdef USE_DL
#ifdef USE_DL
...
...
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