blob: 0b0a3d6fb7ad080b8010fef209e0d6dfdbf8903a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
############################################################################
#
# File: itrbksum.icn
#
# Subject: Program to give summary of traceback
#
# Author: Ralph E. Griswold
#
# Date: March 26, 2002
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This program summarizes traceback information produced on error
# termination by filtering out the bulk of the procedure traceback
# information.
#
# Expect various options in future versions.
#
############################################################################
$define CountWidth 10
procedure main()
local line, count
while line := read() do {
if line ? =("Trace back:" | "Traceback") then break
else write(line)
}
write()
write(read())
count := 0
while line := read() do
count +:= 1
every 1 to 3 do
write("\t.")
write(line)
write()
write("at level ", count)
end
|