StateMachine.py (7056:b66b558578bd) | StateMachine.py (7454:3a3e8e8cce1b) |
---|---|
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; --- 507 unchanged lines hidden (view full) --- 516 # Set Priority 517 if "rank" in var: 518 code('$vid->setPriority(${{var["rank"]}})') 519 520 # Set buffer size 521 if vtype.isBuffer: 522 code(''' 523if (m_buffer_size > 0) { | 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; --- 507 unchanged lines hidden (view full) --- 516 # Set Priority 517 if "rank" in var: 518 code('$vid->setPriority(${{var["rank"]}})') 519 520 # Set buffer size 521 if vtype.isBuffer: 522 code(''' 523if (m_buffer_size > 0) { |
524 $vid->setSize(m_buffer_size); | 524 $vid->resize(m_buffer_size); |
525} 526''') 527 528 # set description (may be overriden later by port def) 529 code(''' 530$vid->setDescription("[Version " + to_string(m_version) + ", ${ident}, name=${{var.c_ident}}]"); 531 532''') --- 703 unchanged lines hidden --- | 525} 526''') 527 528 # set description (may be overriden later by port def) 529 code(''' 530$vid->setDescription("[Version " + to_string(m_version) + ", ${ident}, name=${{var.c_ident}}]"); 531 532''') --- 703 unchanged lines hidden --- |