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
46ed276b
Kaydet (Commit)
46ed276b
authored
Eki 23, 1996
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Malloc debugging now flagged with USE_MALLOC_DEBUG
üst
6b9e5601
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
macmodule.c
Mac/Modules/macmodule.c
+3
-6
malloc.c
Mac/mwerks/malloc/malloc.c
+3
-1
No files found.
Mac/Modules/macmodule.c
Dosyayı görüntüle @
46ed276b
...
@@ -67,9 +67,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -67,9 +67,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#endif
#endif
/* Optional routines, for some compiler/runtime combinations */
/* Optional routines, for some compiler/runtime combinations */
#if defined(__MWERKS__) && defined(__powerc)
#define MALLOC_DEBUG
#endif
#if defined(USE_GUSI) || !defined(__MWERKS__)
#if defined(USE_GUSI) || !defined(__MWERKS__)
#define WEHAVE_FDOPEN
#define WEHAVE_FDOPEN
#endif
#endif
...
@@ -581,7 +578,7 @@ mac_write(self, args)
...
@@ -581,7 +578,7 @@ mac_write(self, args)
return
newintobject
((
long
)
size
);
return
newintobject
((
long
)
size
);
}
}
#ifdef MALLOC_DEBUG
#ifdef
USE_
MALLOC_DEBUG
static
object
*
static
object
*
mac_mstats
(
self
,
args
)
mac_mstats
(
self
,
args
)
object
*
self
;
object
*
self
;
...
@@ -591,7 +588,7 @@ mac_mstats(self, args)
...
@@ -591,7 +588,7 @@ mac_mstats(self, args)
INCREF
(
None
);
INCREF
(
None
);
return
None
;
return
None
;
}
}
#endif MALLOC_DEBUG
#endif
USE_
MALLOC_DEBUG
static
struct
methodlist
mac_methods
[]
=
{
static
struct
methodlist
mac_methods
[]
=
{
{
"chdir"
,
mac_chdir
},
{
"chdir"
,
mac_chdir
},
...
@@ -617,7 +614,7 @@ static struct methodlist mac_methods[] = {
...
@@ -617,7 +614,7 @@ static struct methodlist mac_methods[] = {
{
"remove"
,
mac_unlink
},
{
"remove"
,
mac_unlink
},
{
"unlink"
,
mac_unlink
},
{
"unlink"
,
mac_unlink
},
{
"write"
,
mac_write
},
{
"write"
,
mac_write
},
#ifdef MALLOC_DEBUG
#ifdef
USE_
MALLOC_DEBUG
{
"mstats"
,
mac_mstats
},
{
"mstats"
,
mac_mstats
},
#endif
#endif
...
...
Mac/mwerks/malloc/malloc.c
Dosyayı görüntüle @
46ed276b
...
@@ -52,12 +52,14 @@ static char *rcsid = "$Id$";
...
@@ -52,12 +52,14 @@ static char *rcsid = "$Id$";
*
*
*/
*/
#ifdef USE_MALLOC_DEBUG
/* You may also selectively enable some of these (but some are interdependent) */
#define DEBUG
#define DEBUG
#define DEBUG2
#define DEBUG2
#define MSTATS
#define MSTATS
#define RCHECK
#define RCHECK
#define VCHECK
#define VCHECK
#endif
/* USE_MALLOC_DEBUG */
typedef
unsigned
char
u_char
;
typedef
unsigned
char
u_char
;
typedef
unsigned
long
u_long
;
typedef
unsigned
long
u_long
;
...
...
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