Func.py (8478:435179113834) | Func.py (9219:258753d3bc47) |
---|---|
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 49 unchanged lines hidden (view full) --- 58 if "return_by_ref" in self and self.return_type != void_type: 59 return_type += "&" 60 elif "return_by_pointer" in self and self.return_type != void_type: 61 return_type += "*" 62 63 return "%s %s(%s);" % (return_type, self.c_ident, 64 ", ".join(self.param_strings)) 65 | 1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 49 unchanged lines hidden (view full) --- 58 if "return_by_ref" in self and self.return_type != void_type: 59 return_type += "&" 60 elif "return_by_pointer" in self and self.return_type != void_type: 61 return_type += "*" 62 63 return "%s %s(%s);" % (return_type, self.c_ident, 64 ", ".join(self.param_strings)) 65 |
66 def writeCodeFiles(self, path): | 66 def writeCodeFiles(self, path, includes): |
67 return 68 69 def generateCode(self): 70 '''This write a function of object Chip''' 71 if "external" in self: 72 return "" 73 74 code = self.symtab.codeFormatter() --- 26 unchanged lines hidden --- | 67 return 68 69 def generateCode(self): 70 '''This write a function of object Chip''' 71 if "external" in self: 72 return "" 73 74 code = self.symtab.codeFormatter() --- 26 unchanged lines hidden --- |