mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
better symbols
This commit is contained in:
parent
469e5e5196
commit
a4b2187729
1 changed files with 8 additions and 4 deletions
12
acid/port
12
acid/port
|
@ -603,13 +603,17 @@ defn mem(addr, fmt)
|
||||||
|
|
||||||
defn symbols(pattern)
|
defn symbols(pattern)
|
||||||
{
|
{
|
||||||
local l, s;
|
local l, s, name;
|
||||||
|
|
||||||
l = symbols;
|
l = symbols;
|
||||||
while l do {
|
while l do {
|
||||||
s = head l;
|
s = head l;
|
||||||
if regexp(pattern, s[0]) then
|
if regexp(pattern, s[0]) then {
|
||||||
print(s[0], "\t", s[1], "\t", s[2], "\t", s[3], "\n");
|
name = s[4];
|
||||||
|
if name == {} then
|
||||||
|
name = "";
|
||||||
|
print(s[0], "\t", s[1], "\t", s[2], "\t", s[3], "\t", name, "\n");
|
||||||
|
}
|
||||||
l = tail l;
|
l = tail l;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue