[Synopsis-changes] Synopsis/Synopsis/Synopsis/Linker Unduplicator.py,1.5,1.6

Stefan Seefeld stefan at synopsis.fresco.org
Tue Oct 7 02:54:41 UTC 2003


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





More information about the Synopsis-changes mailing list