dff7e11c20
add lua 5.2 to third_party BUG= R=bungeman@google.com Review URL: https://codereview.chromium.org/14907017 git-svn-id: http://skia.googlecode.com/svn/trunk@9149 2bbb7eff-a529-9590-31e7-b0007b416f81
16 lines
251 B
Lua
16 lines
251 B
Lua
canvas = {}
|
|
total = 0
|
|
function accumulate(verb)
|
|
total = total + 1
|
|
n = canvas[verb] or 0
|
|
n = n + 1
|
|
canvas[verb] = n
|
|
end
|
|
function summarize()
|
|
io.write('total='..total..' ')
|
|
for k, v in next, canvas do
|
|
io.write(k..'='..v..' ')
|
|
end
|
|
end
|
|
|