[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 284f635: memory_full_cons_threshold is a consta
From: |
Basil L. Contovounesios |
Subject: |
Re: [Emacs-diffs] master 284f635: memory_full_cons_threshold is a constant |
Date: |
Sun, 03 Mar 2019 02:06:28 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
address@hidden (Paul Eggert) writes:
> branch: master
> commit 284f635da833d2dbf0102af3442197b46adf78c5
> Author: Paul Eggert <address@hidden>
> Commit: Paul Eggert <address@hidden>
>
> memory_full_cons_threshold is a constant
>
> * src/alloc.c (memory_full_cons_threshold): Now const.
> (memory_full): Omit no-longer-needed initialization.
> ---
> src/alloc.c | 12 ++++--------
> src/lisp.h | 2 +-
> 2 files changed, 5 insertions(+), 9 deletions(-)
>
> diff --git a/src/alloc.c b/src/alloc.c
> index 452d31f..9b3dc4b 100644
> --- a/src/alloc.c
> +++ b/src/alloc.c
> @@ -234,7 +234,7 @@ byte_ct gc_relative_threshold;
> /* Minimum number of bytes of consing since GC before next GC,
> when memory is full. */
>
> -byte_ct memory_full_cons_threshold;
> +byte_ct const memory_full_cons_threshold = sizeof (struct cons_block);
struct cons_block doesn't seem to be defined yet, because I get the
following error with gcc 8.2.0:
CC alloc.o
alloc.c:237:52: error: invalid application of ‘sizeof’ to incomplete type
‘struct cons_block’
byte_ct const memory_full_cons_threshold = sizeof (struct cons_block);
--
Basil
- Re: [Emacs-diffs] master 284f635: memory_full_cons_threshold is a constant,
Basil L. Contovounesios <=