StateMachine.py (9271:3859f5d4f2c6) | StateMachine.py (9273:05b12cb19cc8) |
---|---|
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; --- 371 unchanged lines hidden (view full) --- 380 code('void ${{action.ident}}(const Address& addr);') 381 382 # the controller internal variables 383 code(''' 384 385// Objects 386''') 387 for var in self.objects: | 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; --- 371 unchanged lines hidden (view full) --- 380 code('void ${{action.ident}}(const Address& addr);') 381 382 # the controller internal variables 383 code(''' 384 385// Objects 386''') 387 for var in self.objects: |
388 th = var.get("template_hack", "") | 388 th = var.get("template", "") |
389 code('${{var.type.c_ident}}$th* m_${{var.c_ident}}_ptr;') 390 391 if var.type.ident == "MessageBuffer": 392 self.message_buffer_names.append("m_%s_ptr" % var.c_ident) 393 394 code.dedent() 395 code('};') 396 code('#endif // __${ident}_CONTROLLER_H__') --- 166 unchanged lines hidden (view full) --- 563 if "default" in var: 564 code('(*$vid) = ${{var["default"]}};') 565 else: 566 # Normal Object 567 # added by SS 568 if "factory" in var: 569 code('$vid = ${{var["factory"]}};') 570 elif var.ident.find("mandatoryQueue") < 0: | 389 code('${{var.type.c_ident}}$th* m_${{var.c_ident}}_ptr;') 390 391 if var.type.ident == "MessageBuffer": 392 self.message_buffer_names.append("m_%s_ptr" % var.c_ident) 393 394 code.dedent() 395 code('};') 396 code('#endif // __${ident}_CONTROLLER_H__') --- 166 unchanged lines hidden (view full) --- 563 if "default" in var: 564 code('(*$vid) = ${{var["default"]}};') 565 else: 566 # Normal Object 567 # added by SS 568 if "factory" in var: 569 code('$vid = ${{var["factory"]}};') 570 elif var.ident.find("mandatoryQueue") < 0: |
571 th = var.get("template_hack", "") | 571 th = var.get("template", "") |
572 expr = "%s = new %s%s" % (vid, vtype.c_ident, th) 573 574 args = "" 575 if "non_obj" not in vtype and not vtype.isEnumeration: 576 if expr.find("TBETable") >= 0: 577 args = "m_number_of_TBEs" 578 else: 579 args = var.get("constructor_hack", "") --- 1132 unchanged lines hidden --- | 572 expr = "%s = new %s%s" % (vid, vtype.c_ident, th) 573 574 args = "" 575 if "non_obj" not in vtype and not vtype.isEnumeration: 576 if expr.find("TBETable") >= 0: 577 args = "m_number_of_TBEs" 578 else: 579 args = var.get("constructor_hack", "") --- 1132 unchanged lines hidden --- |