FormalParamAST.py (8192:be38f7b6ad9e) | FormalParamAST.py (8531:bfc59fbde824) |
---|---|
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; --- 42 unchanged lines hidden (view full) --- 51 v = Var(self.symtab, self.ident, self.location, type, param, 52 self.pairs) 53 self.symtab.newSymbol(v) 54 if self.pointer or str(type) == "TBE" or ( 55 "interface" in type and type["interface"] == "AbstractCacheEntry"): 56 57 return type, "%s* %s" % (type.c_ident, param) 58 else: | 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; --- 42 unchanged lines hidden (view full) --- 51 v = Var(self.symtab, self.ident, self.location, type, param, 52 self.pairs) 53 self.symtab.newSymbol(v) 54 if self.pointer or str(type) == "TBE" or ( 55 "interface" in type and type["interface"] == "AbstractCacheEntry"): 56 57 return type, "%s* %s" % (type.c_ident, param) 58 else: |
59 return type, "%s %s" % (type.c_ident, param) | 59 return type, "const %s& %s" % (type.c_ident, param) |