aboutsummaryrefslogtreecommitdiff
path: root/ide
diff options
context:
space:
mode:
authorherbelin2009-11-09 18:05:13 +0000
committerherbelin2009-11-09 18:05:13 +0000
commit1a4a7fa6dbd7c43c5d6c99297d1b6c5c497c0589 (patch)
treefc18af5b3330e830a8e979bc551db46b25bda05d /ide
parentcb2f5d06481f9021f600eaefbdc6b33118bd346d (diff)
A bit of cleaning around name generation + creation of dedicated file namegen.ml
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12485 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'ide')
-rw-r--r--ide/coq.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/ide/coq.ml b/ide/coq.ml
index b9257de847..bf11405526 100644
--- a/ide/coq.ml
+++ b/ide/coq.ml
@@ -24,6 +24,7 @@ open Hipattern
open Tacmach
open Reductionops
open Termops
+open Namegen
open Ideutils
let prerr_endline s = if !debug then prerr_endline s else ()
@@ -635,7 +636,7 @@ let make_cases s =
let rec rename avoid = function
| [] -> []
| (n,_)::l ->
- let n' = next_global_ident_away true
+ let n' = next_ident_away_in_goal
(id_of_name n)
avoid
in (string_of_id n')::(rename (n'::avoid) l)