about summary refs log tree commit diff stats
path: root/dwm.html
Commit message (Expand)AuthorAgeFilesLines
* added dwm faviconAnselm R.Garbe2006-08-101-0/+1
* applied grammar correction by ILFAnselm R.Garbe2006-08-101-1/+1
* prepared 0.8 0.8Anselm R.Garbe2006-08-101-2/+2
* updated htmlAnselm R.Garbe2006-08-101-2/+2
* applied Sanders tiny patchesAnselm R.Garbe2006-08-081-1/+1
* updated screenshot sectionarg@10ksloc.org2006-08-071-1/+2
* prepared dwm.html 0.7arg@10ksloc.org2006-08-071-3/+6
* fixed dmenu link (thx to deifl)arg@10ksloc.org2006-08-041-1/+1
* added dmenu to dwm.htmlarg@10ksloc.org2006-08-041-0/+4
* updated dwm.htmlarg@10ksloc.org2006-08-021-3/+3
* small fixes to dwm.htmlarg@10ksloc.org2006-08-011-6/+6
* updated htmlarg@10ksloc.org2006-07-211-1/+1
* prepared 0.4 0.4arg@10ksloc.org2006-07-201-1/+1
* yet another html patcharg@10ksloc.org2006-07-201-5/+5
* updated htmlarg@10ksloc.org2006-07-201-5/+5
* some changes in the html page 0.3arg@10ksloc.org2006-07-191-2/+2
* changed occurrences of wmii.de into 10kloc.org in dwm.html, because 10kloc.or...Anselm R. Garbe2006-07-181-8/+8
* added new stuffAnselm R. Garbe2006-07-171-9/+6
* updated htmlAnselm R. Garbe2006-07-171-9/+9
* patched dwmAnselm R. Garbe2006-07-171-28/+44
* updated html 0.2Anselm R. Garbe2006-07-171-1/+1
* ordered variables in structs and source files alphabeticallyAnselm R. Garbe2006-07-171-4/+3
* changing XFlush into XSyncAnselm R. Garbe2006-07-151-3/+3
* prep 0.1 0.1Anselm R. Garbe2006-07-141-1/+3
* implemented dwm reading status text from stdin Anselm R. Garbe2006-07-141-2/+2
* made barclick to select the specific tagAnselm R. Garbe2006-07-141-2/+14
* several fixesAnselm R. Garbe2006-07-131-3/+3
* added philosophy sectionAnselm R. Garbe2006-07-131-0/+11
* added xlock command (I need it regularly)Anselm R. Garbe2006-07-131-3/+3
* fixed grammar bug reported by John-GaltAnselm R. Garbe2006-07-131-1/+1
* last change to dwm.htmlAnselm R. Garbe2006-07-131-43/+47
* renamed/changedAnselm R. Garbe2006-07-131-1/+1
* added logo+descriptionAnselm R. Garbe2006-07-131-0/+77
s="o">:&:tree:num <- new-tree 4 c:&:tree:num <- new-tree 5 x1:&:tree:num <- new-tree a, b x:&:tree:num <- new-tree x1, c y1:&:tree:num <- new-tree b, c y:&:tree:num <- new-tree a, y1 result:bool <- same-fringe x, y $print result 10/newline ] def same-fringe a:&:tree:_elem, b:&:tree:_elem -> result:bool [ local-scope load-inputs k1:continuation <- call-with-continuation-mark 100/mark, process, a k2:continuation <- call-with-continuation-mark 100/mark, process, b { k1, x:_elem, a-done?:bool <- call k1 k2, y:_elem, b-done?:bool <- call k2 break-if a-done? break-if b-done? match?:bool <- equal x, y return-unless match?, false loop } result <- and a-done?, b-done? ] # harness around traversal def process t:&:tree:_elem [ local-scope load-inputs return-continuation-until-mark 100/mark # initial traverse t zero-val:&:_elem <- new _elem:type return-continuation-until-mark 100/mark, *zero-val, true/done # final assert false, [continuation called past done] ] # core traversal def traverse t:&:tree:_elem [ local-scope load-inputs return-unless t l:&:tree:_elem <- get *t, left:offset traverse l r:&:tree:_elem <- get *t, right:offset traverse r return-if l return-if r # leaf v:_elem <- get *t, val:offset return-continuation-until-mark 100/mark, v, false/not-done ] # details def new-tree x:_elem -> result:&:tree:_elem [ local-scope load-inputs result <- new {(tree _elem): type} put *result, val:offset, x ] def new-tree l:&:tree:_elem, r:&:tree:_elem -> result:&:tree:_elem [ local-scope load-inputs result <- new {(tree _elem): type} put *result, left:offset, l put *result, right:offset, r ]