tbetter symbols - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit a4b2187729f7c9f3da0f0e28dd590758e9065a5d
DIR parent 469e5e5196565eac53b2d341ea865800150705d4
HTML Author: rsc <devnull@localhost>
Date: Tue, 14 Feb 2006 19:38:04 +0000
better symbols
Diffstat:
M acid/port | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
DIR diff --git a/acid/port b/acid/port
t@@ -603,13 +603,17 @@ defn mem(addr, fmt)
defn symbols(pattern)
{
- local l, s;
-
+ local l, s, name;
+
l = symbols;
while l do {
s = head l;
- if regexp(pattern, s[0]) then
- print(s[0], "\t", s[1], "\t", s[2], "\t", s[3], "\n");
+ if regexp(pattern, s[0]) then {
+ 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;
}
}