[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/heap 04de075 30/31: Tidy up unnecessary macros by makin
From: |
Stefan Monnier |
Subject: |
[elpa] externals/heap 04de075 30/31: Tidy up unnecessary macros by making them into defsubst or defun. |
Date: |
Mon, 14 Dec 2020 12:13:39 -0500 (EST) |
branch: externals/heap
commit 04de075a67c4c67de000633904720e2693295fc3
Author: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Commit: Toby S. Cubitt <toby-predictive@dr-qubit.org>
Tidy up unnecessary macros by making them into defsubst or defun.
---
heap.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/heap.el b/heap.el
index 928e604..c526e9a 100644
--- a/heap.el
+++ b/heap.el
@@ -102,11 +102,11 @@
j (+ 3 k)))))))
-(defmacro heap--vswap (vect i j) ; INTERNAL USE ONLY
+(defsubst heap--vswap (vect i j) ; INTERNAL USE ONLY
;; Swap elements I and J of vector VECT.
- `(let ((tmp (aref ,vect ,i)))
- (aset ,vect ,i (aref ,vect ,j))
- (aset ,vect ,j tmp) ,vect))
+ (let ((tmp (aref vect i)))
+ (aset vect i (aref vect j))
+ (aset vect j tmp) vect))
(defun heap--sift-up (heap n) ; INTERNAL USE ONLY
- [elpa] externals/heap a3ddd78 23/31: Remove ChangeLogs from library headers., (continued)
- [elpa] externals/heap a3ddd78 23/31: Remove ChangeLogs from library headers., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 5ad96c3 14/31: Updated Package-Version, Package-Requires, and Keywords package headers., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 11738aa 12/31: Re-filled to 72 chars/line, for mailing to gnu-emacs-sources list, Stefan Monnier, 2020/12/14
- [elpa] externals/heap 596261c 28/31: Implement iterator generators on collection data structures., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 32e75bb 31/31: * heap.el: Fix first line format, Stefan Monnier, 2020/12/14
- [elpa] externals/heap 8a40ef4 08/31: Version 0.12.1 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 8ece2ad 24/31: Enable lexical binding, and fix issues it picks up., Stefan Monnier, 2020/12/14
- [elpa] externals/heap aa998ae 20/31: Updated copyright attribution and license (GPL2 -> GPL3)., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 778a848 26/31: Bump version numbers and copyright years., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 10a68e6 29/31: Bump version numbers since we've added iterator generators., Stefan Monnier, 2020/12/14
- [elpa] externals/heap 04de075 30/31: Tidy up unnecessary macros by making them into defsubst or defun.,
Stefan Monnier <=
- [elpa] externals/heap 151a314 17/31: Added heap-merge function for merging heaps., Stefan Monnier, 2020/12/14
- [elpa] externals/heap c71bf79 27/31: Implement trie-fuzzy-match and trie-fuzzy-complete functions., Stefan Monnier, 2020/12/14