History

Use symbolic diagnostic names

... thus requiring ocaml 4.12 (currently in alpha)

malc committed 6 years ago

Commit f4291271 parent 3f8de884 files · +13 −13Browse files

Unified · Split

4 files
  1. build.bash +1 −1
  2. genconfstr.sh +1 −1
  3. listview.ml +3 −3
  4. main.ml +8 −8
build.bash+1−1
@@ -100,7 +100,7 @@ mflags() { · 99 unmodified lines
100100
101101 overs="$(ocamlc -vnum 2>/dev/null)" || overs=""
102102 test "$overs" = "4.11.1" || {
103− url=https://caml.inria.fr/pub/distrib/ocaml-4.11/ocaml-4.11.1.tar.xz
103+ url=https://caml.inria.fr/pub/distrib/ocaml-4.12/ocaml-4.12.0~alpha1.tar.xz
104104 txz=$outd/$(basename $url)
105105 keycmd="printf $url; digest $txz;"
106106 isfresh $txz "$(eval $keycmd)" || {
genconfstr.sh+1−1
@@ -101,7 +101,7 @@ i tileh 2048 · 100 unmodified lines
101101 g mustoresize memsize "256 lsl 20"
102102 b checkers true
103103 i aalevel 8
104−s urilauncher '(match[@warning "-4"] platform with |Pmacos -> {|open "%s"|}|_ -> {|echo "%s"|})'
104+s urilauncher '(match[@warning "-fragile-match"] platform with |Pmacos -> {|open "%s"|}|_ -> {|echo "%s"|})'
105105 s pathlauncher '{|lp "%s"|}'
106106 g colorspace colorspace Rgb
107107 b invert false
listview.ml+3−3
@@ -139,7 +139,7 @@ let textentrykeyboard · 138 unmodified lines
139139 in
140140 let open Keys in
141141 let kt = Wsi.ks2kt key in
142− match [@warning "-4"] kt with
142+ match [@warning "-fragile-match"] kt with
143143 | Backspace ->
144144 if emptystr text && cancelonempty
145145 then (
@@ -548,7 +548,7 @@ object (self) · 402 unmodified lines
548548 in
549549 let open Keys in
550550 let kt = Wsi.ks2kt key in
551− match [@warning "-4"] kt with
551+ match [@warning "-fragile-match"] kt with
552552 | Ascii (('r'|'s') as c) when Wsi.withctrl mask ->
553553 let incr = if c = 'r' then -1 else 1 in
554554 let active, first =
@@ -598,7 +598,7 @@ object (self) · 43 unmodified lines
598598
599599 | Ascii _ | Code _ ->
600600 let utf8 =
601− match [@warning "-8"] kt with
601+ match [@warning "-partial-match"] kt with
602602 | Ascii c -> String.make 1 c
603603 | Code code -> toutf8 code
604604 in
main.ml+8−8
@@ -197,7 +197,7 @@ let showlinktype under = · 196 unmodified lines
197197
198198 let intentry_with_suffix text key =
199199 let text =
200− match [@warning "-4"] key with
200+ match [@warning "-fragile-match"] key with
201201 | Keys.Ascii ('0'..'9' as c) -> addchar text c
202202 | Keys.Ascii ('k' | 'm' | 'g' | 'K' | 'M' | 'G' as c) ->
203203 addchar text @@ Char.lowercase_ascii c
@@ -1443,7 +1443,7 @@ let intentry text key = · 1239 unmodified lines
14431443 if emptystr text && key = Keys.Ascii '-'
14441444 then addchar text '-'
14451445 else
1446− match [@warning "-4"] key with
1446+ match [@warning "-fragile-match"] key with
14471447 | Keys.Ascii ('0'..'9' as c) -> addchar text c
14481448 | _ ->
14491449 state.text <- "invalid key";
@@ -1470,7 +1470,7 @@ let linknact f s = · 20 unmodified lines
14701470 loop 0 state.layout;
14711471 ;;
14721472
1473−let linknentry text = function [@warning "-4"]
1473+let linknentry text = function [@warning "-fragile-match"]
14741474 | Keys.Ascii c ->
14751475 let text = addchar text c in
14761476 linknact (fun under -> state.text <- undertext under) text;
@@ -1480,7 +1480,7 @@ let linknentry text = function [@warning "-4"] · 3 unmodified lines
14801480 TEcont text
14811481 ;;
14821482
1483−let textentry text key = match [@warning "-4"] key with
1483+let textentry text key = match [@warning "-fragile-match"] key with
14841484 | Keys.Ascii c -> TEcont (addchar text c)
14851485 | Keys.Code c -> TEcont (text ^ toutf8 c)
14861486 | _ -> TEcont text
@@ -1692,7 +1692,7 @@ let downbirdseye incr (conf, leftx, pageno, hooverpageno, anchor) = · 205 unmodified lines
16921692
16931693 let optentry mode _ key =
16941694 let btos b = if b then "on" else "off" in
1695− match [@warning "-4"] key with
1695+ match [@warning "-fragile-match"] key with
16961696 | Keys.Ascii 'C' ->
16971697 let ondone s =
16981698 try
@@ -2696,7 +2696,7 @@ let enterinfomode = · 997 unmodified lines
26962696 method! key key mask =
26972697 if not (Wsi.withctrl mask)
26982698 then
2699− match [@warning "-4"] Wsi.ks2kt key with
2699+ match [@warning "-fragile-match"] Wsi.ks2kt key with
27002700 | Keys.Left -> coe (self#updownlevel ~-1)
27012701 | Keys.Right -> coe (self#updownlevel 1)
27022702 | _ -> super#key key mask
@@ -3394,7 +3394,7 @@ let viewkeyboard key mask = · 691 unmodified lines
33943394 in
33953395 let ondone msg = state.text <- msg
33963396 and zmod _ _ k =
3397− match [@warning "-4"] k with
3397+ match [@warning "-fragile-match"] k with
33983398 | Keys.Ascii 'z' ->
33993399 let f pageno ys =
34003400 let ym, yM = yminmax ys in
@@ -3565,7 +3565,7 @@ let viewkeyboard key mask = · 164 unmodified lines
35653565 gotopage1 (n + conf.pagebias - 1) 0;
35663566 )
35673567 in
3568− let pageentry text = function [@warning "-4"]
3568+ let pageentry text = function [@warning "-fragile-match"]
35693569 | Keys.Ascii 'g' -> TEdone text
35703570 | key -> intentry text key
35713571 in

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t