about summary refs log tree commit diff stats
path: root/view.c
Commit message (Expand)AuthorAgeFilesLines
...
* fixed the z-layer issue described on mailinglistAnselm R. Garbe2006-09-291-1/+8
* removed the direction flippingAnselm R. Garbe2006-09-291-60/+18
* small fix of a corner caseAnselm R. Garbe2006-09-291-1/+1
* added the new dotile as described on mlAnselm R. Garbe2006-09-291-30/+98
* prelim of dotile()Anselm R. Garbe2006-09-291-37/+67
* first step to a more flexible dotile() algorithmAnselm R. Garbe2006-09-291-27/+31
* renamed column into areaAnselm R. Garbe2006-09-281-0/+18
* applied Jukkas patchAnselm R. Garbe2006-09-281-11/+11
* applied sanders jukka patcharg@mmvi2006-09-251-5/+3
* applied Jukkas patcharg@mmvi2006-09-251-3/+3
* removed all dotile checksarg@mmvi2006-09-221-3/+3
* applied Jukkas remark (dunno if this is correct though)arg@mmvi2006-09-221-2/+2
* applied jukkas patcharg@mmvi2006-09-221-8/+4
* hotfixarg@mmvi2006-09-221-5/+5
* small change to achieve Jukka's last proposalarg@mmvi2006-09-221-13/+32
* fixed issue pointed out by Jukkaarg@mmvi2006-09-221-4/+4
* implemented the maximization as I described on the mailinglist, this feels be...arg@mmvi2006-09-221-6/+17
* removed useless inclusionAnselm R. Garbe2006-09-141-1/+0
* removed a bunch of lines through making function signatures more consistent w...Anselm R. Garbe2006-09-121-32/+16
* applied sanders patch of not manipulating sel 1.5Anselm R. Garbe2006-09-081-4/+4
* using a global stack for focus recovery on arrange() - seems to work greatAnselm R. Garbe2006-09-071-5/+9
* this patch keeps track of global z-layer order of clients which are floating ...Anselm R. Garbe2006-09-061-12/+7
* no this is betterAnselm R. Garbe2006-09-061-4/+11
* drawstatus even if no client existsAnselm R. Garbe2006-09-061-1/+3
* sanders solution is convincing and elegantAnselm R. Garbe2006-09-061-41/+9
* small fixAnselm R. Garbe2006-09-061-2/+2
* no, reodering floating clients definately breaks the manage() policy which at...Anselm R. Garbe2006-09-061-8/+15
* no, ordering floating clients at the end seems betterAnselm R. Garbe2006-09-051-16/+9
* fixAnselm R. Garbe2006-09-051-1/+1
* this makes sure the issue mentioned by sanderAnselm R. Garbe2006-09-051-2/+8
* fixing zoomAnselm R. Garbe2006-09-051-3/+4
* fixing two off-by-onesAnselm R. Garbe2006-09-051-2/+2
* applied checking existance of >2 tiles patch (proposed by sander) to zoom and...Anselm R. Garbe2006-09-051-5/+14
* renamed resizetile into resizecolAnselm R. Garbe2006-09-051-1/+1
* s/growcol/resizetile/gAnselm R. Garbe2006-09-051-12/+12
* right, multihead issue is not involved with growcolAnselm R. Garbe2006-09-051-1/+1
* hotfixAnselm R. Garbe2006-09-051-1/+3
* applied a fix related to Sanders remark to growcolAnselm R. Garbe2006-09-051-1/+1
* I really need column growing, now pushing upstreamAnselm R. Garbe2006-09-051-0/+18
* don't access sel in restack without checking for NULL (multihead crashing bug)Anselm R. Garbe2006-09-051-7/+9
* removed unused varsAnselm R. Garbe2006-09-041-2/+2
* reducing focus calls (sanders patch)Anselm R. Garbe2006-09-041-6/+4
* applied Sanders max_and_focus.patchAnselm R. Garbe2006-09-041-17/+13
* reorder was misssing in Ross version of viewallAnselm R. Garbe2006-08-311-0/+1
* added viewall to mainstream (only Ross Mohns version, not the toggle)Anselm R. Garbe2006-08-311-0/+10
* applied sanders patch to remove unnecessary commit()Anselm R. Garbe2006-08-311-2/+6
* removed a warning reported by JukkaAnselm R. Garbe2006-08-301-1/+0
* improved selection policyAnselm R. Garbe2006-08-291-20/+24
* still something wrong with reorder()Anselm R. Garbe2006-08-291-49/+26
* this algorithm seems to keep order for any scenarioAnselm R. Garbe2006-08-291-14/+41
{ color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# example program: compute the factorial of 5

def main [
  local-scope
  x:num <- factorial 5
  $print [result: ], x, [ 
]
]

def factorial n:num -> result:num [
  local-scope
  load-ingredients
  {
    # if n=0 return 1
    zero?:bool <- equal n, 0
    break-unless zero?
    return 1
  }
  # return n * factorial(n-1)
  x:num <- subtract n, 1
  subresult:num <- factorial x
  result <- multiply subresult, n
]

# unit test
scenario factorial-test [
  run [
    1:num <- factorial 5
  ]
  memory-should-contain [
    1 <- 120
  ]
]