ObjDeclAST.py (11021:e8a6637afa4c) | ObjDeclAST.py (11111:6da33e720481) |
---|---|
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; --- 41 unchanged lines hidden (view full) --- 50 # FIXME : should all use accessors here to avoid public member 51 # variables 52 if self.ident == "version": 53 c_code = "m_version" 54 elif self.ident == "machineID": 55 c_code = "m_machineID" 56 elif self.ident == "clusterID": 57 c_code = "m_clusterID" | 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; --- 41 unchanged lines hidden (view full) --- 50 # FIXME : should all use accessors here to avoid public member 51 # variables 52 if self.ident == "version": 53 c_code = "m_version" 54 elif self.ident == "machineID": 55 c_code = "m_machineID" 56 elif self.ident == "clusterID": 57 c_code = "m_clusterID" |
58 elif self.ident == "recycle_latency": 59 c_code = "m_recycle_latency" |
|
58 else: 59 c_code = "(*m_%s_ptr)" % (self.ident) 60 61 # check type if this is a initialization 62 init_code = "" 63 if self.rvalue: 64 rvalue_type,init_code = self.rvalue.inline(True) 65 if type != rvalue_type: --- 18 unchanged lines hidden --- | 60 else: 61 c_code = "(*m_%s_ptr)" % (self.ident) 62 63 # check type if this is a initialization 64 init_code = "" 65 if self.rvalue: 66 rvalue_type,init_code = self.rvalue.inline(True) 67 if type != rvalue_type: --- 18 unchanged lines hidden --- |