diff options
author | Enrico Tassi <gareuselesinge@debian.org> | 2015-01-25 14:42:51 +0100 |
---|---|---|
committer | Enrico Tassi <gareuselesinge@debian.org> | 2015-01-25 14:42:51 +0100 |
commit | 7cfc4e5146be5666419451bdd516f1f3f264d24a (patch) | |
tree | e4197645da03dc3c7cc84e434cc31d0a0cca7056 /ide/config_lexer.mll | |
parent | 420f78b2caeaaddc6fe484565b2d0e49c66888e5 (diff) |
Imported Upstream version 8.5~beta1+dfsg
Diffstat (limited to 'ide/config_lexer.mll')
-rw-r--r-- | ide/config_lexer.mll | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ide/config_lexer.mll b/ide/config_lexer.mll index aafc90f4..87cc6d06 100644 --- a/ide/config_lexer.mll +++ b/ide/config_lexer.mll @@ -1,6 +1,6 @@ (************************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) -(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2014 *) +(* <O___,, * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2015 *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) @@ -10,7 +10,6 @@ open Lexing open Format - open Minilib let string_buffer = Buffer.create 1024 @@ -23,7 +22,7 @@ let ignore = space | ('#' [^ '\n']*) rule prefs m = parse |ignore* (ident as id) ignore* '=' { let conf = str_list [] lexbuf in - prefs (Stringmap.add id conf m) lexbuf } + prefs (Util.String.Map.add id conf m) lexbuf } | _ { let c = lexeme_start lexbuf in eprintf "coqiderc: invalid character (%d)\n@." c; prefs m lexbuf } @@ -48,7 +47,7 @@ and string = parse let load_file f = let c = open_in f in let lb = from_channel c in - let m = prefs Stringmap.empty lb in + let m = prefs Util.String.Map.empty lb in close_in c; m @@ -59,7 +58,7 @@ and string = parse | [] -> () | s :: sl -> fprintf fmt "%S@ %a" s print_list sl in - Stringmap.iter + Util.String.Map.iter (fun k s -> fprintf fmt "@[<hov 2>%s = %a@]@\n" k print_list s) m; fprintf fmt "@."; close_out c |