[Synopsis-changes] Synopsis/Synopsis/Synopsis/Linker Unduplicator.py,1.5,1.6
Stefan Seefeld stefan at synopsis.fresco.orgTue Oct 7 02:54:41 UTC 2003
- Previous message: [Synopsis-changes] Synopsis/Synopsis/tests/Parser/C++/src groups.cc,NONE,1.1
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Linker Comments.py,1.18,1.19
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /cvs/synopsis/Synopsis/Synopsis/Linker
In directory frida:/tmp/cvs-serv26893/Synopsis/Linker
Modified Files:
Unduplicator.py
Log Message:
don't remove duplicate 'dummy' declarations
Index: Unduplicator.py
===================================================================
RCS file: /cvs/synopsis/Synopsis/Synopsis/Linker/Unduplicator.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -p -d -r1.5 -r1.6
--- Unduplicator.py 10 Dec 2002 07:28:49 -0000 1.5
+++ Unduplicator.py 7 Oct 2003 02:54:38 -0000 1.6
@@ -20,6 +20,9 @@
# 02111-1307, USA.
#
# $Log$
+# Revision 1.6 2003/10/07 02:54:38 stefan
+# don't remove duplicate 'dummy' declarations
+#
# Revision 1.5 2002/12/10 07:28:49 chalky
# Unduplicate the list of declarations for each file
#
@@ -222,7 +225,7 @@ class Unduplicator(AST.Visitor, Type.Vis
name = decl.name()
dict = self.__dicts[-1]
decls = self.top().declarations()
- if dict.has_key(name):
+ if dict.has_key(name) and name != ('dummy',):
prev = dict[name]
if not isinstance(prev, AST.Forward):
return
- Previous message: [Synopsis-changes] Synopsis/Synopsis/tests/Parser/C++/src groups.cc,NONE,1.1
- Next message: [Synopsis-changes] Synopsis/Synopsis/Synopsis/Linker Comments.py,1.18,1.19
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Synopsis-changes mailing list