blob: 22a8a72d03fa7630aa4e82ba4f70681225d9ae59 (
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
|
############################################################################
#
# File: itrcline.icn
#
# Subject: Procedure to filter out non-trace lines
#
# Author: Ralph E. Griswold
#
# Date: July 14, 1997
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# itrcline(f) generates lines from the file f that are Icon
# trace messages. It can, of course, be fooled.
#
############################################################################
procedure itrcline(f) #: generate trace messages in file
local line
while line := read(f) do
line ? {
if (=" :" & move(6) & ="main") | (move(12) & ": |")
then suspend line
}
end
|