mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
* gc.c (scm_mallocated): Just make this signed.
(scm_igc): Check for underflow by seeing if this is negative. Much cleaner. * gc.h (scm_mallocated): Fix declaration. (Thanks to Greg Harvey.)
This commit is contained in:
parent
d2ab9696bb
commit
a5c314c80e
2 changed files with 10 additions and 14 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
#ifndef GCH
|
||||
#define GCH
|
||||
/* Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -72,7 +72,7 @@ extern unsigned long scm_gc_cells_collected;
|
|||
extern unsigned long scm_gc_malloc_collected;
|
||||
extern unsigned long scm_gc_ports_collected;
|
||||
extern unsigned long scm_cells_allocated;
|
||||
extern unsigned long scm_mallocated;
|
||||
extern long scm_mallocated;
|
||||
extern unsigned long scm_mtrigger;
|
||||
|
||||
#ifdef DEBUG_FREELIST
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue