From: Paul Eggert Date: Sat, 4 Aug 2012 00:52:10 +0000 (-0700) Subject: Export DEFAULT_REHASH_* to GDB. X-Git-Tag: emacs-24.2.90~866 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=185ee1468eede6b20587e15b3b81aebe66b6479a;p=emacs.git Export DEFAULT_REHASH_* to GDB. * lisp.h (DEFAULT_REHASH_THRESHOLD, DEFAULT_REHASH_SIZE): Now constants, not macros. --- diff --git a/src/ChangeLog b/src/ChangeLog index c3868f521ea..9c5d7f083d5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-08-04 Paul Eggert + + Export DEFAULT_REHASH_* to GDB. + * lisp.h (DEFAULT_REHASH_THRESHOLD, DEFAULT_REHASH_SIZE): + Now constants, not macros. + 2012-08-03 Paul Eggert Remove unnecessary casts involving pointers. diff --git a/src/lisp.h b/src/lisp.h index dcdc23ef3f0..dda6797df81 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -1271,11 +1271,11 @@ enum DEFAULT_HASH_SIZE { DEFAULT_HASH_SIZE = 65 }; value gives the ratio of current entries in the hash table and the size of the hash table. */ -#define DEFAULT_REHASH_THRESHOLD 0.8 +static double const DEFAULT_REHASH_THRESHOLD = 0.8; /* Default factor by which to increase the size of a hash table. */ -#define DEFAULT_REHASH_SIZE 1.5 +static double const DEFAULT_REHASH_SIZE = 1.5; /* Most code should use this macro to access Lisp fields in a different misc objects. */