|
@@ -270,22 +270,20 @@ module Setup = struct
|
|
|
end
|
|
|
|
|
|
let check_defines com =
|
|
|
- if is_next com then begin
|
|
|
- PMap.iter (fun k v ->
|
|
|
- try
|
|
|
- let reason = Hashtbl.find Define.deprecation_lut k in
|
|
|
- let p = fake_pos ("-D " ^ k) in
|
|
|
- begin match reason with
|
|
|
- | DueTo reason ->
|
|
|
- com.warning WDeprecatedDefine [] reason p
|
|
|
- | InFavorOf d ->
|
|
|
- Define.raw_define_value com.defines d v;
|
|
|
- com.warning WDeprecatedDefine [] (Printf.sprintf "-D %s has been deprecated in favor of -D %s" k d) p
|
|
|
- end;
|
|
|
- with Not_found ->
|
|
|
- ()
|
|
|
- ) com.defines.values
|
|
|
- end
|
|
|
+ PMap.iter (fun k v ->
|
|
|
+ try
|
|
|
+ let reason = Hashtbl.find Define.deprecation_lut k in
|
|
|
+ let p = fake_pos ("-D " ^ k) in
|
|
|
+ begin match reason with
|
|
|
+ | DueTo reason ->
|
|
|
+ com.warning WDeprecatedDefine [] reason p
|
|
|
+ | InFavorOf d ->
|
|
|
+ Define.raw_define_value com.defines d v;
|
|
|
+ com.warning WDeprecatedDefine [] (Printf.sprintf "-D %s has been deprecated in favor of -D %s" k d) p
|
|
|
+ end;
|
|
|
+ with Not_found ->
|
|
|
+ ()
|
|
|
+ ) com.defines.values
|
|
|
|
|
|
(** Creates the typer context and types [classes] into it. *)
|
|
|
let do_type ctx mctx actx display_file_dot_path =
|