diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2018-01-19 11:24:29 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2018-01-25 17:17:15 +0100 |
commit | 112ab4b1c396fc2117191297227d8e411f9b9bb3 (patch) | |
tree | f6d06ef60c696b43d48e2cd8e2f7f426a03b3706 /src/sheet.mli | |
parent | 098ac444e731d7674d8910264ae58fb876618a5a (diff) |
Better memory management
Diffstat (limited to 'src/sheet.mli')
-rwxr-xr-x | src/sheet.mli | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sheet.mli b/src/sheet.mli index 11881cc..d768b8f 100755 --- a/src/sheet.mli +++ b/src/sheet.mli @@ -31,11 +31,12 @@ module Raw: sig end type yank +type history type t = { selected: Selection.t; (* The selected cell *) data: Raw.t; - history: t list; (* Unlimited history *) + history: history; (* Unlimited history *) yank: yank list (* All the selected cells *) } @@ -68,6 +69,9 @@ val search: search -> t -> t option val paste: t -> t * int +(** Add or update the sheet. + The expression is added at current selection. + @return A set containing all updated cells, and the tree updated. *) val add: Expression.t -> t -> Cell.Set.t * t (** Create an empty sheet *) |