home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
progs
/
itrbksum.icn
< prev
next >
Wrap
Text File
|
2002-03-26
|
1KB
|
52 lines
############################################################################
#
# 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