emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109423: Export DEFAULT_REHASH_* to G


From: Paul Eggert
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109423: Export DEFAULT_REHASH_* to GDB.
Date: Fri, 03 Aug 2012 17:52:10 -0700
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109423
committer: Paul Eggert <address@hidden>
branch nick: trunk
timestamp: Fri 2012-08-03 17:52:10 -0700
message:
  Export DEFAULT_REHASH_* to GDB.
  
  * lisp.h (DEFAULT_REHASH_THRESHOLD, DEFAULT_REHASH_SIZE):
  Now constants, not macros.
modified:
  src/ChangeLog
  src/lisp.h
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-08-03 23:36:11 +0000
+++ b/src/ChangeLog     2012-08-04 00:52:10 +0000
@@ -1,3 +1,9 @@
+2012-08-04  Paul Eggert  <address@hidden>
+
+       Export DEFAULT_REHASH_* to GDB.
+       * lisp.h (DEFAULT_REHASH_THRESHOLD, DEFAULT_REHASH_SIZE):
+       Now constants, not macros.
+
 2012-08-03  Paul Eggert  <address@hidden>
 
        Remove unnecessary casts involving pointers.

=== modified file 'src/lisp.h'
--- a/src/lisp.h        2012-08-03 23:40:20 +0000
+++ b/src/lisp.h        2012-08-04 00:52:10 +0000
@@ -1271,11 +1271,11 @@
    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.  */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]