[Synopsis-changes] Synopsis/Synopsis/Synopsis/Formatter DUMP.py,1.16,1.17
Stefan Seefeld stefan at synopsis.fresco.orgFri Oct 3 15:00:34 UTC 2003
- Previous message: [Synopsis-changes] Synopsis/Synopsis/tests/Parser/C++/src cast.cc,NONE,1.1 comment_proximity.cc,NONE,1.1 comments.cc,NONE,1.1 concat.cc,NONE,1.1 condition.cc,NONE,1.1 for.cc,NONE,1.1 forward_class.cc,NONE,1.1 func.cc,NONE,1.1 func_ptr.cc,NONE,1.1 func_template.cc,NONE,1.1 func_template_arg.cc,NONE,1.1 if.cc,NONE,1.1 koenig.cc,NONE,1.1 macro.cc,NONE,1.1 operator.cc,NONE,1.1 static_cast.cc,NONE,1.1 std.cc,NONE,1.1 template.cc,NONE,1.1 template_spec.cc,NONE,1.1 template_spec2.cc,NONE,1.1 try.cc,NONE,1.1 typename.cc,NONE,1.1 using.cc,NONE,1.1 using2.cc,NONE,1.1 using3.cc,NONE,1.1 using4.cc,NONE,1.1
- Next message: [Synopsis-changes] Synopsis/Synopsis/tests/Linker - New directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/Synopsis/Formatter
In directory frida:/tmp/cvs-serv20475/Synopsis/Formatter
Modified Files:
DUMP.py
Log Message:
bug fix
Index: DUMP.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/Synopsis/Formatter/DUMP.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -d -r1.16 -r1.17
--- DUMP.py 3 Oct 2003 14:47:54 -0000 1.16
+++ DUMP.py 3 Oct 2003 15:00:32 -0000 1.17
@@ -19,6 +19,9 @@
# 02111-1307, USA.
#
# $Log$
+# Revision 1.17 2003/10/03 15:00:32 stefan
+# bug fix
+#
# Revision 1.16 2003/10/03 14:47:54 stefan
# let DUMP finally respect the '-o' option
#
@@ -113,13 +116,13 @@ class Dumper:
i,t = id(obj), type(obj)
if self.visited.has_key(i):
if t == types.InstanceType: t = obj.__class__.__name__+" instance"
+ i = self.identify and '( %d ) '%i or ''
if hasattr(obj, 'name'):
- ident = self.identify and '( %d ) '%i or ''
- self.write("<already visited %s %s'%s'>"%(t,ident,string.join(obj.name(),"::")))
+ self.write("<already visited %s %s'%s'>"%(t,i,string.join(obj.name(),"::")))
elif hasattr(obj, 'filename'):
- self.write("<already visited %s %s'%s'>"%(t,ident,obj.filename()))
+ self.write("<already visited %s %s'%s'>"%(t,i,obj.filename()))
else:
- self.write("<already visited %s %s>"%(t,ident))
+ self.write("<already visited %s %s>"%(t,i))
return
if self.handlers.has_key(t):
self.handlers[t](obj)
- Previous message: [Synopsis-changes] Synopsis/Synopsis/tests/Parser/C++/src cast.cc,NONE,1.1 comment_proximity.cc,NONE,1.1 comments.cc,NONE,1.1 concat.cc,NONE,1.1 condition.cc,NONE,1.1 for.cc,NONE,1.1 forward_class.cc,NONE,1.1 func.cc,NONE,1.1 func_ptr.cc,NONE,1.1 func_template.cc,NONE,1.1 func_template_arg.cc,NONE,1.1 if.cc,NONE,1.1 koenig.cc,NONE,1.1 macro.cc,NONE,1.1 operator.cc,NONE,1.1 static_cast.cc,NONE,1.1 std.cc,NONE,1.1 template.cc,NONE,1.1 template_spec.cc,NONE,1.1 template_spec2.cc,NONE,1.1 try.cc,NONE,1.1 typename.cc,NONE,1.1 using.cc,NONE,1.1 using2.cc,NONE,1.1 using3.cc,NONE,1.1 using4.cc,NONE,1.1
- Next message: [Synopsis-changes] Synopsis/Synopsis/tests/Linker - New directory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list