[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] externals/caml 432e972 081/197: duh
From: |
Stefan Monnier |
Subject: |
[nongnu] externals/caml 432e972 081/197: duh |
Date: |
Sat, 21 Nov 2020 01:19:42 -0500 (EST) |
branch: externals/caml
commit 432e97209ba967cf7cc7ec508d66be57c9927b12
Author: Damien Doligez <damien.doligez-inria.fr>
Commit: Damien Doligez <damien.doligez-inria.fr>
duh
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5741
f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
---
caml-types.el | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/caml-types.el b/caml-types.el
index a89a041..b0f1e27 100644
--- a/caml-types.el
+++ b/caml-types.el
@@ -231,24 +231,16 @@ See `caml-types-location-re' for annotation file format.
; trouve le premier fils qui commence apres la position
; ou (length node) si tous commencent avant
-;(defun caml-types-search (node pos)
-; (let ((min 3)
-; (max (length node))
-; med)
-; (while (< min max)
-; (setq med (/ (+ min max) 2))
-; (if (caml-types-pos<= (elt (elt node med) 0) pos)
-; (setq min (1+ med))
-; (setq max med)))
-; min))
-
-; a remplacer par une dichotomie
(defun caml-types-search (node pos)
- (let ((i 3))
- (while (and (< i (length node))
- (caml-types-pos<= (elt (elt node i) 0) targ-pos))
- (setq i (1+ i)))
- i))
+ (let ((min 3)
+ (max (length node))
+ med)
+ (while (< min max)
+ (setq med (/ (+ min max) 2))
+ (if (caml-types-pos<= (elt (elt node med) 0) pos)
+ (setq min (1+ med))
+ (setq max med)))
+ min))
(defun caml-types-pos-inside (pos node)
(let ((left-pos (elt node 0))
- [nongnu] externals/caml 8364471 027/197: changed label_pattern syntax, (continued)
- [nongnu] externals/caml 8364471 027/197: changed label_pattern syntax, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 97c1bb7 037/197: highlight ignore, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 32f0f75 056/197: Updated caml-help.el, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 1a97395 057/197: detabisation, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 758702f 060/197: Several bug fixes and improvements in caml-help., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml bb899a1 069/197: amelioration des locations, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml e149514 072/197: PR#1704, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 850c621 048/197: Made run-caml autoload in caml.el, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 778e3cf 079/197: utilisation d'un arbre, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 38c4de4 082/197: bricoles, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 432e972 081/197: duh,
Stefan Monnier <=
- [nongnu] externals/caml 285775f 080/197: plus rapide, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml e1a8649 084/197: - added file caml-xemacs.el for XEmacs compatibility., Stefan Monnier, 2020/11/21
- [nongnu] externals/caml a94bd19 083/197: hash-table des annotations, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml d7bde19 088/197: Modified `caml-types-explore' so that all well-typed subexpressions of the, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 570c595 089/197: installer caml-emacs.el, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml ab2d4cc 107/197: fusion des modifs de 3.08.4, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 347ceba 108/197: PR#3767 features 1 and 2: display full location of events instead of one position, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 4238e85 110/197: fusion des changements 3.09.3 -> release309_merge310, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 074d219 106/197: fusion des changements jusqu'a 3.08.3, Stefan Monnier, 2020/11/21
- [nongnu] externals/caml 8fc9a47 117/197: amelioration des annotations, Stefan Monnier, 2020/11/21