PeekStatementAST.py (7007:79413d1ec307) | PeekStatementAST.py (7567:238f99c9f441) |
---|---|
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; --- 63 unchanged lines hidden (view full) --- 72 (m_block_map.count(in_msg_ptr->m_$address_field) == 1) ) { 73 if (m_block_map[in_msg_ptr->m_$address_field] != &$qcode) { 74 $qcode.delayHead(); 75 continue; 76 } 77 } 78 ''') 79 | 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; --- 63 unchanged lines hidden (view full) --- 72 (m_block_map.count(in_msg_ptr->m_$address_field) == 1) ) { 73 if (m_block_map[in_msg_ptr->m_$address_field] != &$qcode) { 74 $qcode.delayHead(); 75 continue; 76 } 77 } 78 ''') 79 |
80 if self.pairs.has_key("wake_up"): 81 address_field = self.pairs['wake_up'] 82 code(''' 83 if (m_waiting_buffers.count(in_msg_ptr->m_$address_field) > 0) { 84 wakeUpBuffers(in_msg_ptr->m_$address_field); 85 } 86 ''') 87 |
|
80 # The other statements 81 self.statements.generate(code, return_type) 82 self.symtab.popFrame() 83 code("}") 84 85 def findResources(self, resources): 86 self.statements.findResources(resources) | 88 # The other statements 89 self.statements.generate(code, return_type) 90 self.symtab.popFrame() 91 code("}") 92 93 def findResources(self, resources): 94 self.statements.findResources(resources) |