]> git.eshelyaron.com Git - emacs.git/commitdiff
Export DEFAULT_REHASH_* to GDB.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Aug 2012 00:52:10 +0000 (17:52 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 4 Aug 2012 00:52:10 +0000 (17:52 -0700)
* lisp.h (DEFAULT_REHASH_THRESHOLD, DEFAULT_REHASH_SIZE):
Now constants, not macros.

src/ChangeLog
src/lisp.h

index c3868f521eaadf02aeb62af24fd4b1485e87dfd3..9c5d7f083d5b0e63806807bc0d1755ba81617ab1 100644 (file)
@@ -1,3 +1,9 @@
+2012-08-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Export DEFAULT_REHASH_* to GDB.
+       * lisp.h (DEFAULT_REHASH_THRESHOLD, DEFAULT_REHASH_SIZE):
+       Now constants, not macros.
+
 2012-08-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        Remove unnecessary casts involving pointers.
index dcdc23ef3f0669da625c4c2590937e2a31241f2f..dda6797df8159d2fbf123e233f6e78e9fc396383 100644 (file)
@@ -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.  */