• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A Nix-friendly SQLite-enhanced fork of Flitter, a speedrunning split timer for Unix-style terminals


Commit MetaInfo

Revisionf6115feb6e4b8508db577c5705f4d6bb2b65b545 (tree)
Time2022-12-20 19:10:21
AuthorCorbin <cds@corb...>
CommiterCorbin

Log Message

Use interface files to declare module boundaries.

This will make refactoring easier.

Change Summary

Incremental Difference

--- /dev/null
+++ b/src/colors.mli
@@ -0,0 +1,12 @@
1+open Notty
2+
3+val text : attr
4+val label : attr
5+val ahead_gain : attr
6+val ahead_loss : attr
7+val behind_gain : attr
8+val behind_loss : attr
9+val rainbow : unit -> attr
10+val default_bg : attr
11+val selection_bg : attr
12+val idle : attr
--- a/src/dune
+++ b/src/dune
@@ -3,6 +3,7 @@
33 (wrapped false)
44 (libraries core core_kernel core_unix sexplib lwt.unix notty notty.unix re color sexp_pretty)
55 (preprocess (pps lwt_ppx ppx_sexp_conv))
6+ (modules_without_implementation timer_types)
67 )
78
89 ; vim:ft=scheme
--- /dev/null
+++ b/src/splits.mli
@@ -0,0 +1,13 @@
1+val is_gold : Timer_types.timer -> int -> bool
2+val ahead_by : Timer_types.timer -> ?now:float -> int -> int option
3+val segment_time : Timer_types.timer -> ?now:float -> int -> int option
4+val archived_split_time : Timer_types.timer -> int -> int option
5+val archived_segment_time : Timer_types.timer -> int -> int option
6+
7+val archive_done_run :
8+ Timer_types.timer -> Duration.t option array -> Timer_types.archived_run
9+
10+val split_time : Timer_types.timer -> ?now:float -> int -> int option
11+val gold_sum : Timer_types.timer -> int -> int -> int option
12+val updated_golds : Timer_types.timer -> Timer_types.gold array
13+val updated_pb : Timer_types.timer -> Timer_types.archived_run option