certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/scripts GenMsgAST.py


From: CERTI CVS commits
Subject: [certi-cvs] certi/scripts GenMsgAST.py
Date: Fri, 10 Jun 2011 14:47:19 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      11/06/10 14:47:19

Modified files:
        scripts        : GenMsgAST.py 

Log message:
        Tolerate message specification without factory

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/GenMsgAST.py?cvsroot=certi&r1=1.17&r2=1.18

Patches:
Index: GenMsgAST.py
===================================================================
RCS file: /sources/certi/certi/scripts/GenMsgAST.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- GenMsgAST.py        24 Jun 2010 14:07:05 -0000      1.17
+++ GenMsgAST.py        10 Jun 2011 14:47:19 -0000      1.18
@@ -20,7 +20,7 @@
 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 ## USA
 ##
-## $Id: GenMsgAST.py,v 1.17 2010/06/24 14:07:05 erk Exp $
+## $Id: GenMsgAST.py,v 1.18 2011/06/10 14:47:19 erk Exp $
 ## ----------------------------------------------------------------------------
 
 """
@@ -1168,8 +1168,8 @@
                 else:
                     msg.merge = AST.getType(msg.merge)
 
-        # check the factory methods
-
+        # check the factory methods if any
+        if AST.factory != None:
         if AST.factory.hasFactoryCreator():
             if not AST.isDefined(AST.factory.creator[0]):
                 self.logger.fatal('The return type <%s> of the creator factory 
method is unknown (not a builtin, nor native, nor message)'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]