@@ -235354,14 +235354,7 @@ module Log_
235354
235354
= struct
235355
235355
#1 "Log_.ml"
235356
235356
module Color = struct
235357
- let color_enabled = lazy (Unix.isatty Unix.stdout)
235358
-
235359
- let forceColor = ref false
235360
-
235361
- let get_color_enabled () = !forceColor || Lazy.force color_enabled
235362
-
235363
235357
type color = Red | Yellow | Magenta | Cyan
235364
-
235365
235358
type style = FG of color | Bold | Dim
235366
235359
235367
235360
let code_of_style = function
@@ -235374,11 +235367,11 @@ module Color = struct
235374
235367
235375
235368
let style_of_stag s =
235376
235369
match s with
235377
- | Format.String_tag "error" -> [Bold; FG Red]
235378
- | Format.String_tag "warning" -> [Bold; FG Magenta]
235379
- | Format.String_tag "info" -> [Bold; FG Yellow]
235380
- | Format.String_tag "dim" -> [Dim]
235381
- | Format.String_tag "filename" -> [FG Cyan]
235370
+ | Format.String_tag "error" -> [ Bold; FG Red ]
235371
+ | Format.String_tag "warning" -> [ Bold; FG Magenta ]
235372
+ | Format.String_tag "info" -> [ Bold; FG Yellow ]
235373
+ | Format.String_tag "dim" -> [ Dim ]
235374
+ | Format.String_tag "filename" -> [ FG Cyan ]
235382
235375
| _ -> []
235383
235376
235384
235377
let ansi_of_stag s =
@@ -235390,10 +235383,8 @@ module Color = struct
235390
235383
235391
235384
let color_functions =
235392
235385
(({
235393
- mark_open_stag =
235394
- (fun s -> if get_color_enabled () then ansi_of_stag s else "");
235395
- mark_close_stag =
235396
- (fun _ -> if get_color_enabled () then reset_lit else "");
235386
+ mark_open_stag = (fun s -> ansi_of_stag s);
235387
+ mark_close_stag = (fun _ -> reset_lit);
235397
235388
print_open_stag = (fun _ -> ());
235398
235389
print_close_stag = (fun _ -> ());
235399
235390
}
@@ -235405,7 +235396,6 @@ module Color = struct
235405
235396
Format.pp_set_formatter_stag_functions Format.std_formatter color_functions
235406
235397
235407
235398
let error ppf s = Format.fprintf ppf "@{<error>%s@}" s [@@dead "Color.error"]
235408
-
235409
235399
let info ppf s = Format.fprintf ppf "@{<info>%s@}" s
235410
235400
end
235411
235401
@@ -235427,16 +235417,16 @@ module Loc = struct
235427
235417
| Some
235428
235418
((start_line, start_line_start_char), (end_line, end_line_end_char))
235429
235419
->
235430
- if start_line = end_line then
235431
- if start_line_start_char = end_line_end_char then
235432
- Format.fprintf ppf ":@{<dim>%i:%i@}" start_line
235433
- start_line_start_char
235420
+ if start_line = end_line then
235421
+ if start_line_start_char = end_line_end_char then
235422
+ Format.fprintf ppf ":@{<dim>%i:%i@}" start_line
235423
+ start_line_start_char
235424
+ else
235425
+ Format.fprintf ppf ":@{<dim>%i:%i-%i@}" start_line
235426
+ start_line_start_char end_line_end_char
235434
235427
else
235435
- Format.fprintf ppf ":@{<dim>%i:%i-%i@}" start_line
235436
- start_line_start_char end_line_end_char
235437
- else
235438
- Format.fprintf ppf ":@{<dim>%i:%i-%i:%i@}" start_line
235439
- start_line_start_char end_line end_line_end_char
235428
+ Format.fprintf ppf ":@{<dim>%i:%i-%i:%i@}" start_line
235429
+ start_line_start_char end_line end_line_end_char
235440
235430
in
235441
235431
Format.fprintf ppf "@{<filename>%a@}%a" print_filename file dim_loc
235442
235432
normalizedRange
@@ -241933,7 +241923,6 @@ module GenType
241933
241923
= struct
241934
241924
#1 "GenType.ml"
241935
241925
let processCmt cmt =
241936
- Log_.Color.forceColor := true;
241937
241926
let config = Paths.readConfig ~namespace:(cmt |> Paths.findNameSpace) in
241938
241927
if !Debug.basic then Log_.item "Add %s\n" cmt;
241939
241928
cmt |> GenTypeMain.processCmtFile ~config
0 commit comments