emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 846e88e: Get BYTE_CODE_METER working again


From: Paul Eggert
Subject: [Emacs-diffs] master 846e88e: Get BYTE_CODE_METER working again
Date: Tue, 9 Aug 2016 07:37:12 +0000 (UTC)

branch: master
commit 846e88eb99ddb66f0a949d17a0483a977d748305
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Get BYTE_CODE_METER working again
    
    BYTE_CODE_METER hasn’t worked since 2013, and nobody seems to have
    noticed.  Perhaps we should remove it?
    * src/bytecode.c (METER_2) [BYTE_CODE_METER]:
    Use *aref_addr instead of AREF, since it needs to be an lvalue.
---
 src/bytecode.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bytecode.c b/src/bytecode.c
index 6ccad46..ff43653 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -53,7 +53,8 @@ along with GNU Emacs.  If not, see 
<http://www.gnu.org/licenses/>.  */
 
 #ifdef BYTE_CODE_METER
 
-#define METER_2(code1, code2) AREF (AREF (Vbyte_code_meter, code1), code2)
+#define METER_2(code1, code2) \
+  (*aref_addr (AREF (Vbyte_code_meter, code1), code2))
 #define METER_1(code) METER_2 (0, code)
 
 #define METER_CODE(last_code, this_code)                               \



reply via email to

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